PHP Classes

File: view/melis-cms-page-analytics/melis-cms-page-analytics-page-details-tool/tool-content-container.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis PHP CMS Analytics by Page   view/melis-cms-page-analytics/melis-cms-page-analytics-page-details-tool/tool-content-container.phtml   Download  
File: view/melis-cms-page-analytics/melis-cms-page-analytics-page-details-tool/tool-content-container.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis PHP CMS Analytics by Page
Melis CMS module to provide page access statistics
Author: By
Last change:
Date: 1 year ago
Size: 1,118 bytes
 

Contents

Class file image Download
<?php
    $dataMelisKey
= empty($this->melisKey)? 'melis_cms_page_analytics_page_table': $this->melisKey;
   
$id = empty($this->zoneconfig['conf']['id'])? $this->pageHitId.'_id_melis_cms_page_analytics_page_table': $this->pageHitId.'_'.$this->zoneconfig['conf']['id'];
?>

<div id="<?= $id; ?>" data-melisKey="<?= $dataMelisKey; ?>" class="col-ms-12">
    <br>
    <?php
        $this
->melisGenericTable()->setTable(array(
           
'id' => $this->pageHitId . '_tableMelisCmsPageAnalyticsPageDetails',
           
'class' => 'table table-striped table-primary dt-responsive nowrap',
           
'cellspacing' => '0',
           
'width' => '100%'
       
));
       
$columns = array();
       
$columnStyle = array();
        foreach(
$this->tableColumns as $columnText)
        {
           
$columns[] = $columnText['text'];
        }
       
$this->melisGenericTable()->setColumns($columns);
        echo
$this->melisGenericTable()->renderTable();
   
?>
<script type="text/javascript">
        $(document).ready(function() {
            <?= $this->getToolDataTableConfig; ?>
});
    </script>
</div>