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: app.php
<div class="main-content"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <h4>Application Settings</h4> <hr /> <table class="table table-responsive table-striped"> <thead> <tr> <td><b>NAME</b></td> <td><b>VALUE</b></td> </tr> </thead> <tbody> <?php if(!empty($settings)) { foreach($settings as $s) { echo ' <tr> <td>'.ucwords($s->name).'</td> <td> <input id="value'.$s->id.'" type="text" value="'.$s->value.'" class="form-control" oninput="update_app('.$s->id.');" /> </td> </tr> '; } } ?> </tbody> </table> </div> </div> </div> </div> </div> <script> function update_app(id) { var value = $('#value' + id).val(); $.ajax({ url: '<?php echo base_url('settings/update_app'); ?>', type: 'post', data: {id: id, value: value}, success: function(data) {} }); } </script>
Upload File
Create Folder