ok
Direktori : /home2/selectio/public_html/mm-tailor-billing/themes/default/views/customers/ |
Current File : /home2/selectio/public_html/mm-tailor-billing/themes/default/views/customers/add.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('enter_info'); ?></h3> </div> <div class="box-body"> <?php echo form_open("customers/add");?> <div class="col-md-6"> <div class="form-group"> <label class="control-label" for="code"><?= $this->lang->line("name"); ?></label> <?= form_input('name', set_value('name'), 'class="form-control input-sm" id="name"'); ?> </div> <div class="form-group"> <label class="control-label" for="email_address"><?= $this->lang->line("email_address"); ?></label> <?= form_input('email', set_value('email'), 'class="form-control input-sm" id="email_address"'); ?> </div> <div class="form-group"> <label class="control-label" for="phone"><?= $this->lang->line("phone"); ?></label> <input type='text' class='form-control input-sm' id='cphone' name='phone' onkeypress="if(this.value.length==10) return false;return isNumber(event)" /> </div> <div class="form-group"> <label class="control-label" for="cf1"><?= $this->lang->line("address"); ?></label> <?= form_input('cf1', set_value('cf1'), 'class="form-control input-sm" id="cf1"'); ?> </div> <div class="form-group"> <label class="control-label" for="cf2"><?= $this->lang->line("additional_phone_no"); ?></label> <input type='text' class='form-control input-sm' id='cf2' name='cf2' onkeypress="if(this.value.length==10) return false;return isNumber(event)" /> </div> <div class="form-group"> <?php echo form_submit('add_customer', $this->lang->line("add_customer"), '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>