Created
May 19, 2016 07:12
-
-
Save virbo/b5a7d72d0f04cc53371e12516791d274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$this->title = $temp['error_desc']!==''?'Error '.$temp['error_code'].': '.$temp['error_desc']:'List Table'; | |
$this->params['breadcrumbs'][] = ['label' => 'List Table', 'url' => ['list']]; | |
$this->params['breadcrumbs'][] = 'View Table'; | |
?> | |
<div class="page-header" style="margin-top: 0px;" > | |
<div class="row"> | |
<div class="col-md-12"> | |
<h4>View Table {{<?php echo $table;?>}}. Jumlah data: <?php echo $total['result']; ?></h4> | |
</div> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-md-12"> | |
<?php | |
if ($temp['error_desc']!=='') { | |
echo "<div class=\"alert alert-danger\"> | |
<h4>Error ".$temp['error_code']."</h4> | |
<p>".$temp['error_desc']."</p> | |
</div>"; | |
} else { | |
?> | |
<table class="table table-hover table-striped table-bordered"> | |
<thead> | |
<tr> | |
<th>#</th> | |
<?php | |
foreach ($dictionary['result'] as $value) { | |
echo "<th>".$value['column_name']."</th>"; | |
} | |
?> | |
</tr> | |
</thead> | |
<tbody> | |
<?php | |
$i=0; | |
foreach ($temp['result'] as $value) { | |
echo "<tr> | |
<td>".++$i."</td>"; | |
foreach ($dictionary['result'] as $dict) { | |
if (isset($value[$dict['column_name']])) { | |
$temp_isi = $value[$dict['column_name']]; | |
} else { | |
$temp_isi = ""; | |
} | |
echo "<td>".$temp_isi."</td>"; | |
} | |
echo "</tr>"; | |
} | |
?> | |
</tbody> | |
</table> | |
<?php } ?> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment