Exemple #1
0
<?php 
echo $this->FlashMsg();
?>
<div style="text-align:right">
<?php 
echo UI::showButtonMode($mode, $row[$pk]);
?>
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Nama</td>
<td class="td-input"><?php 
echo UI::createTextBox('nama', $row['nama'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php 
if ($edited) {
    ?>
<tr><td></td><td><?php 
    echo UI::showButtonMode('save', null, $edited);
    ?>
</td></tr>
<?php 
}
?>
</table>
Exemple #2
0
<?php 
echo $this->FlashMsg();
?>
<div style="text-align:right">
<?php 
echo UI::showButtonMode($mode);
?>
</div>
  <table class="table table-striped">
    <thead>
    <?php 
echo UI::showHeader($header, $filter_arr, $list_sort, $list_order);
?>
    </thead>
    <tbody>
    <?php 
$i = ($page - 1) * $limit;
foreach ($list['rows'] as $rows) {
    $i++;
    echo "<tr>";
    echo "<td>{$i}</td>";
    foreach ($header as $rows1) {
        $val = $rows[$rows1['name']];
        if ($rows1['name'] == 'id_member') {
            echo "<td><a href='" . ($url = URL::Base($page_ctrl . "/detail/{$rows[$pk]}")) . "'>{$val}</a></td>";
        } else {
            switch ($rows1['type']) {
                case 'list':
                    echo "<td>" . $rows1["value"][$val] . "</td>";
                    break;