ok
Direktori : /home2/selectio/www/mm-tailor-billing/themes/default/views/auth/ |
Current File : /home2/selectio/www/mm-tailor-billing/themes/default/views/auth/create_user.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"> <div class="col-lg-6"> <?= form_open('auth/create_user'); ?> <div class="form-group"> <?= lang("group", "group"); ?> <?php foreach ($groups as $group) { $gp[$group['id']] = $group['name']; } echo form_dropdown('group', $gp, set_value('group'), 'id="group" data-placeholder="' . lang("select") . ' ' . lang("group") . '" class="form-control input-tip" style="width:100%;"'); ?> </div> <div class="form-group"> <label>Full Name</label> <?= form_input('first_name', set_value('first_name'), 'class="form-control tip" id="first_name" required="required"'); ?> </div> <div class="form-group" hidden> <?= lang('last_name', 'last_name'); ?> <?= form_input('last_name', set_value('last_name'), 'class="form-control tip" id="last_name"'); ?> </div> <div class="form-group"> <?= lang('phone', 'phone'); ?> <input type="tel" name="phone" class="form-control tip" id="phone" onkeypress="if(this.value.length==10) return false;return isNumber(event)" /> </div> <div class="form-group" hidden> <?= lang('gender', 'gender'); ?> <?php $gnders = array('male' => lang('male'), 'female' => lang('female')); ?> <?= form_dropdown('gender', $gnders, set_value('gender'), 'class="form-control tip select2" style="width:100%;" id="gender" '); ?> </div> <div class="form-group" hidden> <?= lang('salary', 'salary'); ?> <?= form_input('salary', set_value('salary'), 'class="form-control tip" id="salary"'); ?> </div> <div class="form-group" hidden> <?= lang('salary_type', 'salary_type'); ?> <?php $salary_type = array('day' => lang('day'), 'week' => lang('week'), 'month' => lang('month'),); ?> <?= form_dropdown('salary_type', $salary_type, set_value('salary_type'), 'class="form-control tip select2" style="width:100%;" id="salary_type"'); ?> </div> <div class="form-group"> <label>Employee Role</label> <?php $emp_role = array('cutting unit' => lang('Cutting Unit'), 'stitching unit' => lang('Stitching Unit'), 'both cutting & stitching' => lang('Both Cutting & Stitching'), 'general' => lang('General')); ?> <?= form_dropdown('emp_role', $emp_role, set_value('emp_role'), 'class="form-control tip select2" style="width:100%;" id="emp_role" required="required"'); ?> </div> <div class="form-group"> <label>Employee Categories</label> <select name="categories" id="categories" class="form-control select2"> <option value="">Select Category</option> <option value="Pant">Pant</option> <option value="Shirt">Shirt</option> <option value="Pant and Shirt">Pant and Shirt</option> <option value="General">General</option> </select> </div> <div class="form-group"> <?= lang('username', 'username'); ?> <?= form_input('username', set_value('username'), 'class="form-control tip" id="username" required="required"'); ?> </div> <div class="form-group"> <?= lang('email', 'email'); ?> <?= form_input('email', set_value('email'), 'class="form-control tip" id="email" '); ?> </div> <div class="form-group"> <?= lang('password', 'password'); ?> <?= form_password('password', '', 'class="form-control tip" id="password"'); ?> </div> <div class="form-group"> <?= lang('confirm_password', 'confirm_password'); ?> <?= form_password('confirm_password', '', 'class="form-control tip" id="confirm_password"'); ?> </div> <div class="form-group" hidden> <?= lang('status', 'status'); ?> <?php $opt = array('' => '', 1 => lang('active'), 0 => lang('inactive')); echo form_dropdown('status', $opt, (isset($_POST['status']) ? $_POST['status'] : '1'), 'id="status" data-placeholder="' . lang("select") . ' ' . lang("status") . '" class="form-control input-tip select2" style="width:100%;"'); ?> </div> <div class="form-group store-con" id="store_id" hidden="hidden"> <?= lang("store", "store_id"); ?> <?php foreach ($stores as $store) { $st[$store->id] = $store->name; } echo form_dropdown('store_id', $st, (isset($_POST['store_id']) ? $_POST['store_id'] : '1'), set_value('store_id'), 'id="store_id" data-placeholder="' . lang("select") . ' ' . lang("store") . '" class="form-control input-tip select2" style="width:100%;"'); ?> </div> <div class="form-group"> <label class="checkbox" for="notify"><input type="checkbox" name="notify" value="1" id="notify" checked="checked"/> <?= lang('notify_user_by_email') ?></label> </div> <div class="form-group"> <?= form_submit('add_user', lang('add_user'), 'class="btn btn-primary"'); ?> </div> <?= form_close(); ?> </div> </div> </div> </div> </div> </section> <script type="text/javascript"> $(document).ready(function () { $("#store_id").hide(); }); </script> <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>