| Server IP : 103.161.17.216 / Your IP : 216.73.216.1 Web Server : nginx/1.18.0 System : Linux tipsysaigoncharming 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/app.houseland.info/application/views/admin/estimate_request/ |
Upload File : |
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php init_head(); ?>
<div id="wrapper">
<div class="content">
<div class="row">
<div class="col-md-12">
<?php if (staff_can('create', 'estimate_request')) { ?>
<div class="tw-mb-2 sm:tw-mb-4">
<a href="<?php echo admin_url('estimate_request/form'); ?>" class="btn btn-primary">
<i class="fa-regular fa-plus tw-mr-1"></i>
<?php echo _l('new_form'); ?>
</a>
</div>
<?php } ?>
<div class="panel_s">
<div class="panel-body">
<div>
<?php
$table_data = [];
$_table_data = [
[
'name' => _l('the_number_sign'),
'th_attrs' => ['class' => 'toggleable', 'id' => 'th-number'],
],
[
'name' => _l('estimate_request_dt_email'),
'th_attrs' => ['class' => 'toggleable', 'id' => 'th-email'],
],
];
$_table_data[] = [
'name' => _l('tags'),
'th_attrs' => ['class' => 'toggleable', 'id' => 'th-tags'],
];
$_table_data[] = [
'name' => _l('estimate_request_dt_assigned'),
'th_attrs' => ['class' => 'toggleable', 'id' => 'th-assigned'],
];
$_table_data[] = [
'name' => _l('estimate_request_dt_status'),
'th_attrs' => ['class' => 'toggleable', 'id' => 'th-status'],
];
$_table_data[] = [
'name' => _l('estimate_request_dt_datecreated'),
'th_attrs' => ['class' => 'date-created toggleable', 'id' => 'th-date-created'],
];
foreach ($_table_data as $_t) {
array_push($table_data, $_t);
}
$table_data = hooks()->apply_filters('estimate_request_table_columns', $table_data);
?>
<div class="panel-table-full">
<?php
render_datatable(
$table_data,
'estimates_request number-index-1',
[],
[
'id' => 'table-estimate-request',
]
);
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php init_tail(); ?>
<script>
initDataTable('#table-estimate-request', admin_url + 'estimate_request/table', undefined, undefined, 'undefined', [5,
'desc'
]);
function mark_estimate_request_as(status_id, request_id) {
var data = {};
data.status = status_id;
data.requestid = request_id;
$.post(admin_url + 'estimate_request/update_request_status', data).done(function(response) {
$('table#table-estimate-request').DataTable().ajax.reload(null, false);
});
}
</script>
</body>
</html>