Your IP : 216.73.216.240


Current Path : /home/juvelize/saulnois/tmp/install_695d2cf0b4957/src/View/Back/
Upload File :
Current File : /home/juvelize/saulnois/tmp/install_695d2cf0b4957/src/View/Back/TfViewPresets.php

<?php
/*
* @package		Tech Fry Library
* @license		https://www.gnu.org/licenses/gpl-3.0.en.html
*/

namespace TechFry\Library\View\Back;

\defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;

class TfViewPresets extends TfView
{    
    public $toolbar_buttons = array('dashboard');
    
    public $heads = [];

    public $rows = [];
    
    public function display($tpl = null)
    {
        $this->icon = 'fa-solid fa-cubes';
        
        parent::display($tpl);
    }
    
    public function presets_layout()
    {
        echo '<div id="j-main-container" class="j-main-container">';
        echo '<table class="table table-hover table-striped">';
            echo '<thead>';
                echo '<tr>';
                foreach ($this->heads as $head)
                {
                    echo '<th>' . $head . '</th>';
                }
                echo '</tr>';
            echo '</thead>';

            echo '<tbody>';
                foreach ($this->rows as $row)
                {
                    echo '<tr>';
                    foreach ($row as $column)
                    {
                        echo '<td>' . Text::_($column) . '</td>';
                    }
                    echo '</tr>';
                }
            echo '</tbody>';

        echo '</table>';
        echo '</div>';
    }
}