excel_table_main.inc.php 1.49 KB
<?php defined('ABSPATH') or die('Access denied.'); ?>

<?php
/**
 * Template file for the plain HTML table
 * wpDataTables Module
 *
 * @author cjbug@ya.ru
 * @since 10.10.2012
 *
 **/
?>
<?php if ($this->getFilteringForm()) { ?>
    <?php do_action('wpdatatables_before_filtering_form', $this->getWpId()); ?>
    <!-- Filter in form -->
    <?php do_action('wpdatatables_after_filtering_form', $this->getWpId()); ?>
<?php } ?>

<?php do_action('wpdatatables_before_table', $this->getWpId()); ?>
<?php wp_nonce_field('wdtFrontendEditTableNonce', 'wdtNonceFrontendEdit'); ?>
<input type="hidden" id="<?php echo $this->getId() ?>_desc" value='<?php echo $this->getJsonDescription(); ?>'/>

<?php if (!$this->serverSide()): ?>
    <input type="hidden" id="<?php echo $this->getId() ?>_data"
           value='<?php echo json_encode($this->getDataRows(), JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_TAG); ?>'/>
<?php endif; ?>
<div id="<?php echo $this->getId() ?>_search_filter" class="wpExcelTable_search_filter">
    <label><?php _e('Search', 'wpdatatables'); ?>: <input type="search" class="" placeholder=""
                                                         aria-controls="<?php echo $this->getId() ?>"></label>
</div>

<div id="<?php echo $this->getId() ?>" class="<?php echo $this->getCSSClasses() ?> wpExcelTable"
     data-described-by='<?php echo $this->getId() ?>_desc'
     data-wpdatatable_id="<?php echo $this->getWpId(); ?>">
</div>

<?php do_action('wpdatatables_after_table', $this->getWpId()); ?>

<br/><br/>