PHP Classes

File: view/melis-cms/mini-template-menu-manager/render-menu-manager-tool-add-category-body-plugins-table.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/mini-template-menu-manager/render-menu-manager-tool-add-category-body-plugins-table.phtml   Download  
File: view/melis-cms/mini-template-menu-manager/render-menu-manager-tool-add-category-body-plugins-table.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: 1,509 bytes
 

Contents

Class file image Download
<?php if ($this->formType != 'add') : ?>
<div id="<?= $this->zoneconfig['conf']['id'] ?>" data-meliskey="<?= $this->zoneconfig['conf']['melisKey'] ?>">
    <?php
   
/*
     * This functions prepares the TABLE element in HTML. ID and class associative array attribute will be placed in table like
     * <table id="tableToolProspect" class="table table-bordered table-condensed table-striped table-primary table-vertical-center checkboxs js-table-sortable">
     */
   
$this->melisGenericTable()->setTable([
       
'id' => 'tableMiniTemplateMenuManagerPlugins',
       
'class' => 'table table-striped table-primary dt-responsive nowrap',
       
'cellspacing' => '0',
       
'width' => '100%'
   
]);
   
/**
     * This process retrieves the value inside the View Model that is being generated from app.tools.php `columns` attribute
     * @reference please see app.tools.php
     */
   
$columns = [];
   
$columnStyle = [];
    foreach (
$this->tableColumns as $columnText) {
       
$columns[] = $columnText['text'];
    }

   
// this process inserts all the array columns into the table.
    // the 'center' value indicates where your column texts are positioned.
   
$this->melisGenericTable()->setColumns($columns);

    echo
$this->melisGenericTable()->renderTable();
   
?>

    <script type="text/javascript">
        $(document).ready(function() {
            <?= (! empty($this->getToolDataTableConfig)) ? $this->getToolDataTableConfig : '' ?>
});
    </script>
</div>
<?php endif; ?>