excel_table_main.inc.php
1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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/>