ok
Direktori : /home2/selectio/www/mm-tailor-billing/themes/default/views/suppliers/ |
Current File : /home2/selectio/www/mm-tailor-billing/themes/default/views/suppliers/edit.php |
<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); ?> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header"> <h3 class="box-title"><?= lang('update_info'); ?></h3> </div> <div class="box-body"> <?php echo form_open("suppliers/edit/".$supplier->id);?> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="code">Name of the Supplier</label> <?= form_input('name', set_value('name', $supplier->name), 'class="form-control input-sm" id="name"'); ?> </div> <div class="form-group"> <label class="control-label" for="phone">Phone Number</label> <?= form_input('phone', set_value('phone', $supplier->phone), 'class="form-control input-sm" onkeypress="if(this.value.length==10) return false;return isNumber(event)" id="phone"');?> </div> <div class="form-group"> <label class="control-label" for="cf1">Address</label> <?= form_input('cf1', set_value('cf1', $supplier->cf1), 'class="form-control input-sm" id="cf1"'); ?> </div> <div class="form-group"> <label class="control-label" for="email_address"><?= $this->lang->line("email_address"); ?></label> <?= form_input('email', set_value('email', $supplier->email), 'class="form-control input-sm" id="email_address"'); ?> </div> <div class="form-group"> <label class="control-label" for="cf2">Gpay Number</label> <?= form_input('cf2', set_value('cf2', $supplier->cf2), 'class="form-control input-sm" onkeypress="if(this.value.length==10) return false;return isNumber(event)" id="cf2"');?> </div> <div class="form-group"> <label class="control-label" for="cf2">Bank Details</label> <textarea name="bank_details" rows="5" class="form-control input-sm" id="bank_details"><?=$supplier->bank_details?></textarea> </div> <div class="form-group"> <?php echo form_submit('edit_supplier', $this->lang->line("edit_supplier"), 'class="btn btn-primary"');?> </div> </div> <?php echo form_close();?> </div> </div> </div> </div> </section> <script> function isNumber(evt) { evt = (evt) ? evt : window.event; var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode > 31 && (charCode < 48 || charCode > 57)) { return false; } return true; } </script>