示例#1
0
文件: _view.php 项目: bangphe/klinik
<tr>
    <td width="5%"><?php 
echo $index + 1;
?>
</td>
    <td><?php 
echo CHtml::link(CHtml::encode($data->NAMA), array('view', 'id' => $data->ID_USER), array('title' => 'Detil'));
?>
</td>
    <td><?php 
echo MyFormatter::formatRoleUser($data->ID_ROLE);
?>
</td>
    <td><?php 
echo CHtml::encode($data->USERNAME);
?>
</td>
    <td><?php 
echo $data->TERAKHIR_LOGIN == NULL ? '-' : CHtml::encode(MyFormatter::formatTanggalWaktu($data->TERAKHIR_LOGIN));
?>
</td>
    <td><?php 
echo MyFormatter::statusAktif($data->STATUS);
?>
</td>
    <td width="12%">
        <?php 
echo CHtml::link('<i class="fa fa-trash-o"></i> Hapus', array('delete', 'id' => $data->ID_USER), array('class' => 'btn btn-sm red filter-cancel', 'submit' => array('delete', 'id' => $data->ID_USER), 'confirm' => 'Apakah Anda yakin akan menghapus ' . $data->NAMA . '?'));
?>
    </td>
</tr>
示例#2
0
文件: index.php 项目: bangphe/klinik
            ?>
</td>
                                            <td><?php 
            echo $item->UKURAN;
            ?>
</td>
                                            <td><?php 
            echo $item->SATUAN;
            ?>
</td>
                                            <td><?php 
            echo MyFormatter::formatUang($item->HARGA_JUAL);
            ?>
</td>
                                            <td><?php 
            echo MyFormatter::statusAktif($item->STATUS);
            ?>
</td>
                                            <td width="20%">
                                                <?php 
            echo CHtml::link('<i class="fa fa-pencil-square-o"></i> Ubah', array('/admin/item/update/', 'id' => $item->ID_ITEM), array('class' => 'btn dark btn-sm btn-outline sbold uppercase'));
            ?>
                                                <?php 
            echo CHtml::link('<i class="fa fa-trash-o"></i> Hapus', array('/admin/item/hapus/', 'id' => $item->ID_ITEM), array('class' => 'btn red btn-sm btn-outline sbold uppercase', 'submit' => array('hapus', 'id' => $item->ID_ITEM), 'confirm' => 'Apakah Anda yakin akan menghapus ' . $item->NAMA_ITEM . '?'));
            ?>
                                            </td>
                                            <!-- <a href="javascript:;" class="btn dark btn-sm btn-outline sbold uppercase">
                                                        <i class="fa fa-share"></i> View </a> -->
                                        </tr>
                                        <?php 
        }