File manager - Edit - /home/wwwroot/camplus.hk/master.camplus.hk/public_html/application/modules/attendance/views/user_trule_assign.php
Back
<!-- BEGIN DATATABLE SCRIPTS --> <link href="<?php echo base_url(); ?>assets/custom/datatables/datatables.min.css" rel="stylesheet" > <script src="<?php echo base_url(); ?>assets/custom/datatables/datatables.min.js"></script> <script src="<?php echo base_url(); ?>assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.js"></script> <script src="<?php echo base_url(); ?>assets/custom/js/camplus-datatable.js"></script> <!-- END DATATABLE SCRIPTS --> <div class="portlet light bordered"> <div class="portlet-title"> <div class="caption"> <i class="icon-doc font-dark"></i> <span class="bold"><?php echo $pagetitle; ?></span> </div> <div class="actions"> <?php //if($this->acl->hasPermission('ADD_xxxxxx')) : ?> <a href="<?php echo base_url(); ?>attendance/setting/add_user_trule" class="dt-button btn green-jungle btn-outline" > <i class="fa fa-plus"></i> <?php echo $this->lang->line('add'); ?> </a> <?php //endif; ?> </div> </div> <div class="portlet-body"> <table class="table table-striped table-bordered table-hover" id="data_table"> <thead> <tr> <th><?php echo $this->lang->line('time_rule'); ?></th> <th><?php echo $this->lang->line('effective_from'); ?></th> <th><?php echo $this->lang->line('effective_to'); ?></th> <th><?php echo $this->lang->line('users'); ?></th> <th><?php echo $this->lang->line('actions'); ?></th> </tr> </thead> <tbody> <!-- load variables from controller --> <?php foreach($usertimerule as $key => $value): ?> <tr class="odd gradeX"> <td><?php echo $value['rule_name']; ?></td> <td><?php echo $value['effective_from']; ?></td> <td><?php echo $value['effective_to']; ?></td> <td> <?= $value['uids'];?> </td> <td> <div> <?php //if($this->acl->hasPermission('EDIT_xxxxxx')) : ?> <a class="btn btn-xs blue editxxxxxx" data-id="<?php echo $value['id']; ?>" data-toggle="modal" href="<?php echo base_url(); ?>attendance/setting/edit_user_trule/<?php echo $value['id']; ?>"" > <i class="fa fa-edit"></i> <?php echo $this->lang->line('edit'); ?> </a> <?php //endif; ?> <?php //if($this->acl->hasPermission('DELETE_xxxxxx')) : ?> <a class="btn btn-xs red actionModal" data-id="<?php echo $value['id'];?>" data-action-title="Delete" data-toggle="modal" href="#actionModal" > <i class="fa fa-trash-o"></i> <?php echo $this->lang->line('delete'); ?> </a> <?php //endif; ?> </div> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div> <div id="addModal" class="modal fade" tabindex="-1" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <form method="post" action="<?php echo base_url(); ?>xxxxxx/xxxxxx/add" class="createxxxxxxForm"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title"><?php echo $this->lang->line('create'); ?> <?php echo $pagetitle; ?></h4> </div> <div class="modal-body"> <div class="scroller" style="height:300px" data-always-visible="1" data-rail-visible="1"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('xxxxxx'); ?><span class="required">*</span></label> <input type="text" name="xxxxxx" class="form-control" required> </div> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('xxxxxx'); ?></label> <select class="select2" name="xxxxxx"> <option value="">Select Special Venue</option> <?php foreach ($examples as $key => $example) { ?> <option value="<?php echo $example['id']?>"><?php echo $example['title']?></option> <?php } ?> </select> </div> <div class="form-group"> <label class="mt-checkbox mt-checkbox-single mt-checkbox-outline"> <input type="checkbox" value="1" name="status" class="form-control" checked> <?php echo $this->lang->line('enable'); ?> <span></span> </label> </div> </div> </div> <div class="modal-footer"> <button type="button" data-dismiss="modal" class="btn default"><?php echo $this->lang->line('close'); ?></button> <input type="submit" class="btn green" value="<?php echo $this->lang->line('create'); ?>"> </div> </form> </div> </div> </div> <div id="editModal" class="modal fade" tabindex="-1" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <form method="post" action="" class="editxxxxxxForm"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title"><?php echo $this->lang->line('edit'); ?> <?php echo $pagetitle; ?></h4> </div> <div class="modal-body"> <div class="scroller" style="height:300px" data-always-visible="1" data-rail-visible="1"> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('xxxxxx'); ?><span class="required">*</span></label> <input type="text" name="xxxxxx" class="form-control" required> </div> <div class="form-group"> <label class="control-label"><?php echo $this->lang->line('xxxxxx'); ?></label> <select class="select2" name="xxxxxx"> <option value="">Select Special Venue</option> <?php foreach ($examples as $key => $example) { ?> <option value="<?php echo $example['id']?>"><?php echo $example['title']?></option> <?php } ?> </select> </div> <div class="form-group"> <label class="mt-checkbox mt-checkbox-single mt-checkbox-outline"> <input type="checkbox" value="1" name="status" class="form-control" checked> <?php echo $this->lang->line('enable'); ?> <span></span> </label> </div> </div> </div> <div class="modal-footer"> <button type="button" data-dismiss="modal" class="btn default"><?php echo $this->lang->line('close'); ?></button> <input type="submit" class="btn green" value="<?php echo $this->lang->line('edit'); ?>"> </div> </form> </div> </div> </div> <div id="actionModal" class="modal fade" tabindex="-1" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button> <h4 class="modal-title"><span class="actionEventTitle"></span> <?php echo $pagetitle; ?></h4> </div> <div class="modal-body"> <h4><?php echo $this->lang->line('are_you_sure'); ?></h4> </div> <div class="modal-footer"> <button type="button" data-dismiss="modal" class="btn default"><?php echo $this->lang->line('close'); ?></button> <a href="" type="button" class="btn default green confirmAction"><?php echo $this->lang->line('yes'); ?></a> </div> </div> </div> </div> <script> $(document).ready(function(){ initTable(); $(document).on('click','.actionModal',function(){ $('#actionModal span.actionEventTitle').html($(this).attr('data-action-title')); $('#actionModal span.actionEvent').html('<?php echo $this->lang->line("Delete");?>'); $('a.confirmAction').attr('href', BASE_URL + 'attendance/setting/delete_user_trule/' + $(this).attr('data-id')); }); $(document).on('click','.editxxxxxx',function(){ var id = $(this).attr('data-id'); $.ajax({ type: "POST", url: BASE_URL + "xxxxxx/xxxxxx/get/" + $(this).attr('data-id'), dataType: "json", success: function(data) { console.log($('#editModal select[name=xxxxxx]')); $('#editModal input[name=xxxxxx]').val(data['xxxxxx']); $('#editModal select[name=xxxxxx]').val(data['xxxxxx']).change(); if(data['xxxxxx']==1){ $('#editModal input[name=xxxxxx]').attr('checked','checked'); $('#editModal input[name=xxxxxx]').parent().addClass('checked'); } $('#editModal').modal('show'); $('.editxxxxxxForm').attr('action',BASE_URL+'xxxxxx/xxxxxx/edit/'+id); $('.editxxxxxxForm').validate(); } }); }); }); </script>
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Generation time: 0.23 |
proxy
|
phpinfo
|
Settings