82 lines
3.9 KiB
PHP
82 lines
3.9 KiB
PHP
<?php
|
|
//---------------------start check access action-------------------//
|
|
$editbutton="";
|
|
$viewbutton="";
|
|
if(!empty($this->varedit)){
|
|
$editbutton="<a href='".base_url()."index.php/ps_screen/edit' class='btn btn-warning btn-sm'><i class='fa fa-edit'></i> Edit</a> ";
|
|
}
|
|
if(!empty($this->varview)){
|
|
$viewbutton="<a href='".base_url()."index.php/ps_screen/view' class='btn btn-primary btn-sm'><i class='fa fa-eye'></i> View</a> ";
|
|
}
|
|
//---------------------end check access action-------------------//
|
|
?>
|
|
|
|
<body class="hold-transition skin-blue sidebar-mini">
|
|
<section class="content-header">
|
|
<h1><small>
|
|
<?php echo $viewbutton.$editbutton;?>
|
|
</small></h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
|
<li>Setting</li>
|
|
<li class="active"><?php echo $title ?></li>
|
|
</ol>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title"><?php echo $title ?></h3>
|
|
</div><!-- /.box-header -->
|
|
<div class="box-body">
|
|
<?php if($this->session->flashdata('message')){?>
|
|
<div class="alert alert-success alert-dismissable">
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
<h4> <i class="icon fa fa-check"></i> Alert!</h4>
|
|
<?php echo $this->session->flashdata('message');?>
|
|
</div>
|
|
<?php }?>
|
|
<div class="box-body table-responsive no-padding">
|
|
<table id="example1" class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">No</th>
|
|
<th>Nama Screen</th>
|
|
<th>Klinik</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$no=0;
|
|
for($i=1;$i<=3;$i++){
|
|
$appendklinik ="";
|
|
foreach ($ms as $dataklinik) {
|
|
if($dataklinik->mk_screen==$i){
|
|
$appendklinik = $appendklinik."<code>$dataklinik->mk_nama | </code>";
|
|
}
|
|
}
|
|
|
|
$no++;
|
|
?>
|
|
<tr>
|
|
<td><?php echo $no;?></td>
|
|
<td>Layar Screen <?php echo $i;?></td>
|
|
<td><?php echo $appendklinik;?></td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div><!-- /.box-body -->
|
|
</div><!-- /.box -->
|
|
</div><!-- /.col -->
|
|
</div><!-- /.row -->
|
|
</section>
|
|
<div class="control-sidebar-bg"></div>
|
|
</body>
|