X7ROOT File Manager
Current Path:
/home/hamdjcne/app.hamdalillahitravel.com/app/Views/setting
home
/
hamdjcne
/
app.hamdalillahitravel.com
/
app
/
Views
/
setting
/
ðŸ“
..
📄
.DS_Store
(6 KB)
📄
access.php
(8.18 KB)
📄
app.php
(1.79 KB)
📄
area.php
(11.96 KB)
📄
area_form.php
(4.85 KB)
📄
module.php
(6.52 KB)
📄
module_form.php
(3.3 KB)
📄
platform.php
(10.33 KB)
📄
role.php
(6.57 KB)
📄
role_form.php
(1.76 KB)
📄
territory.php
(8.63 KB)
📄
territory_form.php
(5.29 KB)
Editing: access.php
<?php use App\Models\Crud; $this->Crud = new Crud(); ?> <?=$this->extend('designs/backend');?> <?=$this->section('title');?> <?=$title;?> <?=$this->endSection();?> <?=$this->section('content');?> <div class="app-wrapper d-flex " style="margin-left: 1px; "> <!--begin::Wrapper container--> <div class="app-container container-fluid "> <!--begin::Main--> <div class="app-main flex-column flex-row-fluid " id="kt_app_main"> <!--begin::Content wrapper--> <div class="d-flex flex-column flex-column-fluid"> <!--begin::Toolbar--> <div id="kt_app_toolbar" class="app-toolbar "> <!--begin::Toolbar container--> <div class="d-flex flex-stack flex-row-fluid"> <!--begin::Toolbar wrapper--> <div class="d-flex flex-column flex-row-fluid"> <!--begin::Breadcrumb--> <ul class="breadcrumb breadcrumb-separatorless fw-semibold mb-3"> <!--begin::Item--> <li class="breadcrumb-item text-gray-600 fw-bold lh-1"> <a href="<?=site_url(); ?>" class="text-white text-hover-success"> <i class="ki-duotone ki-home text-gray-500 fs-2"></i> </a> </li> <!--end::Item--> <!--begin::Item--> <li class="breadcrumb-item"> <i class="ki-duotone ki-right fs-3 text-gray-500 mx-n1"></i> </li> <!--end::Item--> <!--begin::Item--> <li class="breadcrumb-item text-gray-600 fw-bold lh-1"> Access CRUD </li> </ul> <div class="page-title d-flex align-items-center me-3"> <!--begin::Title--> <h1 class="page-heading d-flex text-gray-900 fw-bolder fs-1 flex-column justify-content-center my-0"> Access CRUD List </h1> <!--end::Title--> </div> <!--end::Page title--> </div> </div> <!--end::Toolbar container--> </div> <!--end::Toolbar--> <!--begin::Content--> <div id="kt_app_content" class="app-content "> <!--begin::Card--> <div class="card"> <!--begin::Card header--> <div class="card-header border-0 pt-6"> <!--begin::Card title--> <div class="card-title"> <!--begin::Search--> <div class="d-flex align-items-center position-relative my-1"> <i class="ki-duotone ki-magnifier fs-3 position-absolute ms-5"><span class="path1"></span><span class="path2"></span></i> <input type="text" data-kt-customer-table-filter="search" id="datatable_search" class="form-control form-control-solid w-250px ps-12" placeholder="Search" /> </div> <!--end::Search--> </div> </div> <!--end::Card header--> <!--begin::Card body--> <div class="card-body pt-0 table-responsive"> <div class="form-group mb-10"> <select id="role_id" name="role_id" class="form-select js-select2" data-placeholder="Choose Role.." tabindex="-1" aria-hidden="true" onchange="getModule();"> <option value="">Select</option> <?php if(!empty($allrole)): ?> <?php foreach($allrole as $rol): ?> <option value="<?php echo $rol->id; ?>" <?php if(!empty($e_role_id)){if($e_role_id == $rol->id){echo 'selected';}} ?>><?php echo $rol->name; ?></option> <?php endforeach; ?> <?php endif; ?> </select> </div> <!--begin::Table--> <table class="table align-middle table-row-dashed fs-6 gy-5" id="dtable"> <thead> <tr> <th>Module</th> <th><u>C</u><span class="hidden-xs">reate</span></th> <th><u>R</u><span class="hidden-xs">ead</span></th> <th><u>U</u><span class="hidden-xs">pdate</span></th> <th><u>D</u><span class="hidden-xs">elete</span></th> </tr> </thead> <tbody id="module_list"> </tbody> </table> <!--end::Table--> </div> <!--end::Card body--> </div> </div> <!--end::Content--> </div> <!--begin::Footer--> <div id="kt_app_footer" class="app-footer d-flex flex-column flex-md-row align-items-center flex-center flex-md-stack "> <div class="text-gray-900 order-2 order-md-1"> <span class="text-gray-500 fw-semibold me-1"><?=date('Y'); ?>©</span> <a href="javascript:;" target="_blank" class="text-gray-500 text-hover-success"><?=app_name; ?></a> </div> </div> <!--end::Footer--> </div> </div> <!--end::Wrapper container--> </div> <?=$this->endSection();?> <?=$this->section('scripts');?> <script> $(function() { $('.js-select2').select2(); }); function getModule() { var role_id = $('#role_id').val(); $('#module_list').html('<tr><td colspan="8"><div class="col-sm-12 fs-2 text-center" data-kt-indicator="on"> <span class="indicator-progress">Please wait... <span class="spinner-border spinner-border-sm align-middle ms-2"></span></span></div></td></tr>'); $.ajax({ url: '<?php echo site_url('settings/get_module'); ?>', type: 'post', data: {role_id: role_id}, success: function(data) { $('#module_list').html(data); }, complete: function() { // icheck(); } }); } function saveModule(x) { var rol = $('#rol').val(); var mod = $('#mod' + x).val(); var c = $('#c' + x); var r = $('#r' + x); var u = $('#u' + x); var d = $('#d' + x); if(c.is(':checked')){c = 1;} else {c = 0;} if(r.is(':checked')){r = 1;} else {r = 0;} if(u.is(':checked')){u = 1;} else {u = 0;} if(d.is(':checked')){d = 1;} else {d = 0;} $.ajax({ url: '<?php echo site_url('settings/save_module'); ?>', type: 'post', data: {rol: rol, mod: mod, c: c, r: r, u: u, d: d}, success: function(data) { //$('#module_list').html(data); } }); } function icheck() { $('input[type="checkbox"].minimal-red').iCheck({ checkboxClass: 'icheckbox_minimal-red' }); } </script> <?=$this->endSection();?>
Upload File
Create Folder