403Webshell
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/clients/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/app.houseland.info/application/views/admin/clients/all_contacts.php
<?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">
                <div class="panel_s panel-table-full">
                    <div class="panel-body">
                        <?php if (isset($consent_purposes)) { ?>
                        <div class="row mbot15">
                            <div class="col-md-3 contacts-filter-column">
                                <div class="select-placeholder">
                                    <select name="custom_view" title="<?php echo _l('gdpr_consent'); ?>"
                                        id="custom_view" class="selectpicker" data-width="100%">
                                        <option value=""></option>
                                        <?php foreach ($consent_purposes as $purpose) { ?>
                                        <option value="consent_<?php echo e($purpose['id']); ?>">
                                            <?php echo e($purpose['name']); ?>
                                        </option>
                                        <?php } ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <?php } ?>
                        <div class="clearfix"></div>
                        <?php
        $table_data = [_l('client_firstname'), _l('client_lastname')];
        if (is_gdpr() && get_option('gdpr_enable_consent_for_contacts') == '1') {
            array_push($table_data, [
          'name'     => _l('gdpr_consent') . ' (' . _l('gdpr_short') . ')',
          'th_attrs' => ['id' => 'th-consent', 'class' => 'not-export'],
        ]);
        }
       $table_data = array_merge($table_data, [
        _l('client_email'),
        _l('clients_list_company'),
        _l('client_phonenumber'),
        _l('contact_position'),
        _l('clients_list_last_login'),
        _l('contact_active'),
      ]);
       $custom_fields = get_custom_fields('contacts', ['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],
         ]);
       }
      render_datatable($table_data, 'all-contacts');
      ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php init_tail(); ?>
<?php $this->load->view('admin/clients/client_js'); ?>
<div id="contact_data"></div>
<div id="consent_data"></div>
<script>
$(function() {
    var optionsHeading = [];
    var allContactsServerParams = {
        "custom_view": "[name='custom_view']",
    }
    <?php if (is_gdpr() && get_option('gdpr_enable_consent_for_contacts') == '1') { ?>
    optionsHeading.push($('#th-consent').index());
    <?php } ?>
    _table_api = initDataTable('.table-all-contacts', window.location.href, optionsHeading, optionsHeading,
        allContactsServerParams, [0, 'asc']);
    if (_table_api) {
        <?php if (is_gdpr() && get_option('gdpr_enable_consent_for_contacts') == '1') { ?>
        _table_api.on('draw', function() {
            var tableData = $('.table-all-contacts').find('tbody tr');
            $.each(tableData, function() {
                $(this).find('td:eq(2)').addClass('bg-neutral');
            });
        });
        $('select[name="custom_view"]').on('change', function() {
            _table_api.ajax.reload()
                .columns.adjust()
                .responsive.recalc();
        });
        <?php } ?>
    }
});
</script>
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit