<tr> <td width="5%"><?php echo $index + 1; ?> </td> <td><?php echo CHtml::link(CHtml::encode($data->NAMA_PASIEN), array('view', 'id' => $data->ID_PASIEN), array('title' => 'Detil')); ?> </td> <td><?php echo CHtml::encode($data->ALAMAT); ?> </td> <td><?php echo CHtml::encode($data->NO_TELP); ?> </td> <td><?php echo CHtml::encode($data->JENIS_KELAMIN == 'L' ? '<i class="fa fa-mars"></i> Pria' : 'Wanita'); ?> </td> <td><?php echo CHtml::encode(MyFormatter::formatTanggalWaktu($data->TANGGAL_REGISTRASI)); ?> </td> <td width="12%"> <?php echo CHtml::link('<i class="fa fa-trash-o"></i> Hapus', array('delete', 'id' => $data->ID_PASIEN), array('class' => 'btn btn-sm red filter-cancel', 'submit' => array('delete', 'id' => $data->ID_PASIEN), 'confirm' => 'Apakah Anda yakin akan menghapus ' . $data->NAMA_PASIEN . '?')); ?> </td> </tr>
<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>
/* @var $this OrderController */ /* @var $data Order */ ?> <tr> <td width="5%"><?php echo $index + 1; ?> </td> <td><?php echo CHtml::link(CHtml::encode('Invoice #' . $data->KODE_ORDER . ' - ' . $data->pasien->NAMA_PASIEN), array('view', 'id' => $data->KODE_ORDER), array('title' => 'Detil Order')); ?> </td> <td><?php echo MyFormatter::formatTanggalWaktu($data->TANGGAL_ORDER); ?> </td> <td><?php echo OrderDetail::getJumlahItem($data->KODE_ORDER); ?> </td> <td><?php echo MyFormatter::formatUang($data->getTotal()); ?> </td> <td width="8%"> <?php //echo CHtml::link('<i class="fa fa-pencil"></i> Ubah',array('/order/update/','id'=>$data->KODE_ORDER),array('class'=>'btn btn-sm default btn-editable')); ?> <?php
</div> <div><?php echo $model->pasien->ALAMAT; ?> </div> </div--> </header> <main> <div id="details" class="clearfix"> <div id="client"> <h2 class="nameNota">NOTA : #<?php echo $model->KODE_ORDER; ?> </h2> <div class="date">TANGGAL : <?php echo MyFormatter::formatTanggalWaktu($model->TANGGAL_ORDER); ?> </div> </div> <div id="invoice"> </div> </div> <table border="0" cellspacing="0" cellpadding="0"> <thead> <tr style="border-top: 1px dotted #000000;"> <!--th>#</th--> <th class="unit">KODE</th> <th class="qty">QTY</th> <th class="unit">HARGA</th>
</thead> <tbody> <?php foreach (Order::ListOrder() as $dex => $item) { ?> <tr> <td><?php echo $dex + 1; ?> </td> <td><?php echo CHtml::link(CHtml::encode('Invoice #' . $item->KODE_ORDER . ' - ' . $item->pasien->NAMA_PASIEN), array('/admin/order/view/', 'id' => $item->KODE_ORDER), array('title' => 'Detil Order')); ?> </td> <td><?php echo MyFormatter::formatTanggalWaktu($item->TANGGAL_ORDER); ?> </td> <td><?php echo '<span class="label bg-yellow-gold">' . OrderDetail::getJumlahItem($item->KODE_ORDER) . '</span>'; ?> </td> <td><?php echo MyFormatter::formatUang($item->getTotal()); ?> </td> <!-- <td> <?php echo CHtml::link('<i class="fa fa-search"></i>', array('/admin/order/view/', 'id' => $item->KODE_ORDER), array('class' => 'btn default btn-xs green-stripe')); ?> </td> -->