PHP Classes

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

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS Prospects   view/melis-cms-prospects/tool-prospects/render-tool-prospects-content.phtml   Download  
File: view/melis-cms-prospects/tool-prospects/render-tool-prospects-content.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis CMS Prospects
Melis CMS module to track business prospects
Author: By
Last change:
Date: 1 year ago
Size: 1,976 bytes


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

<div <?= $id; ?> data-melisKey="<?= $data_melisKey; ?>">
    <div class="spacing-x2 innerAll">
             * 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">
'id' => 'tableToolProspect',
'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 `columns` attribute
             * @reference please see
$columns = array();
$columnStyle = array();
$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.
<!-- // END TABLE -->
            <script type="text/javascript">
            // this script cannot be separated to this file since all table configuration and initialization are done here
            // render table to DataTable plugin
            $(document).ready(function() {
                <?= $this->getToolDataTableConfig; ?>
$(toolProspects.table()).on("init.dt", function(e, settings) {