PHP Classes

File: view/melis-tool-creator/tool-creator/render-step3-db-tables.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Tool Creator   view/melis-tool-creator/tool-creator/render-step3-db-tables.phtml   Download  
File: view/melis-tool-creator/tool-creator/render-step3-db-tables.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis Tool Creator
Module for the Melis CMS to create tools
Author: By
Last change:
Date: 1 year ago
Size: 892 bytes
 

Contents

Class file image Download
<ul data-type="<?php echo $this->type ?>">
    <?php
   
foreach ($this->tables As $tbl){
       
$icon = 'fa-square-o';
        if (
$tbl->getName() == $this->selectedTbl){
           
$icon = 'fa-check-square-o text-success';
        }

       
$hasPrimaryTbl = null;
        if (!empty(
$this->selectedPrimaryTbl))
            if (
$this->selectedPrimaryTbl == $tbl->getName())
               
$hasPrimaryTbl = 'class="melis-toolcreator-disable-db-tbl-item"';

        echo
'<li data-table-name="'.$tbl->getName().'" '.$hasPrimaryTbl.'>
                <span><i class="fa '
.$icon.' fa-lg"></i> '.$tbl->getName().'</span>
            </li>'
;
    }
   
?>
</ul>
<?php
    $form
= $this->step3Form;
   
$form->setAttribute('id', $form->getAttribute('id').'-'.$this->type);
    echo
$this->form()->openTag($form);
    echo
$this->formCollection($form, false);
    echo
$this->form()->closeTag();