PHP Classes

File: view/melis-cms/language/render-tool-language-content.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/language/render-tool-language-content.phtml   Download  
File: view/melis-cms/language/render-tool-language-content.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis CMS
Content management system that provides its tools
Author: By
Last change:
Date: 1 year ago
Size: 950 bytes
 

Contents

Class file image Download
<?php
$id
= '';
if (!empty(
$this->zoneconfig['conf']['id']))
   
$id = ' id="' .$this->zoneconfig['conf']['id'] . '"';
   
$data_melisKey = $this->melisKey;

?>

<div <?= $id; ?> data-melisKey="<?= $data_melisKey; ?>">
    <div class="spacing-x2 innerAll">
        <?php
        $this
->melisGenericTable()->setTable(array(
           
'id' => 'tableLanguagesCms',
           
'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'];
        }

       
// set table columns
       
$this->MelisGenericTable()->setColumns($columns);

        echo
$this->melisGenericTable()->renderTable();
       
       
?>
<script type="text/javascript">
        // render table to DataTable plugin
        $(document).ready(function() {
            <?= $this->getToolDataTableConfig; ?>
});
        </script>

       
       
       
    </div>
</div>