| 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/contracts/ |
Upload File : |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
$table_data = [
_l('the_number_sign'),
_l('contract_list_subject'),
[
'name' => _l('contract_list_client'),
'th_attrs' => ['class' => (isset($client) ? 'not_visible' : '')],
],
_l('contract_types_list_name'),
_l('contract_value'),
_l('contract_list_start_date'),
_l('contract_list_end_date'),
(!isset($project) ? _l('project') : [
'name' => _l('project'),
'th_attrs' => ['class' => 'not_visible'],
]),
_l('signature'),
];
$custom_fields = get_custom_fields('contracts', ['show_on_table' => 1]);
foreach ($custom_fields as $field) {
array_push($table_data, [
'name' => $field['name'],
'th_attrs' => ['data-type' => $field['type'], 'data-custom-field' => 1],
]);
}
$table_data = hooks()->apply_filters('contracts_table_columns', $table_data);
render_datatable($table_data, (isset($class) ? $class : 'contracts'), ['number-index-1'], [
'data-last-order-identifier' => 'contracts',
'data-default-order' => get_table_last_order('contracts'),
'id'=> $table_id ?? 'contracts',
]);