83 lines
4.7 KiB
PHP
83 lines
4.7 KiB
PHP
<section class="content-header">
|
|
<h1>
|
|
<small></small>
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
|
<li><a href="<?php echo base_url()?>index.php/ps_screen">Screen</a></li>
|
|
<li class="active"><?php echo $title;?></li>
|
|
</ol>
|
|
</section>
|
|
<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>
|
|
<div class="box-body">
|
|
<?php if(validation_errors()){ ?>
|
|
<div class="alert alert-danger alert-dismissable">
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
<h4><i class="icon fa fa-ban"></i> Alert!</h4>
|
|
<?php echo validation_errors() ?>
|
|
</div>
|
|
<?php }
|
|
|
|
$setdisabled ="";
|
|
$setidedit ="";
|
|
|
|
if ($actionform=="prosesview"){
|
|
$setdisabled="disabled=''";
|
|
}
|
|
|
|
?>
|
|
<form class="form-horizontal" id="form" action="<?php echo(base_url()); ?>index.php/ps_screen/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
|
<div class="box-body form-horizontal">
|
|
<div class="box-body">
|
|
<div class="box">
|
|
<div class="box-body no-padding">
|
|
<table class="table table-striped">
|
|
<tr>
|
|
<th width="5%">No</th>
|
|
<th>Nama Klinik</th>
|
|
<th width="15%">Screen 1</th>
|
|
<th width="15%">Screen 2</th>
|
|
<th width="15%">Screen 3</th>
|
|
</tr>
|
|
<?php
|
|
$no=0;
|
|
foreach ($ms as $dataklinik){$no++;
|
|
|
|
|
|
?>
|
|
<input hidden="" id="idk<?php echo $no;?>" name="idk<?php echo $no;?>" value="<?php echo $dataklinik->mk_id;?>" />
|
|
<tr>
|
|
<td><?php echo $no;?></td>
|
|
<td><?php echo $dataklinik->mk_nama;?></td>
|
|
<td><input type="radio" name="sc<?php echo $no;?>" value="1" class="flat-red" <?php if($dataklinik->mk_screen==1){echo "checked";}else{echo $setdisabled;}?> /></td>
|
|
<td><input type="radio" name="sc<?php echo $no;?>" value="2" class="flat-red" <?php if($dataklinik->mk_screen==2){echo "checked";}else{echo $setdisabled;}?> /></td>
|
|
<td><input type="radio" name="sc<?php echo $no;?>" value="3" class="flat-red" <?php if($dataklinik->mk_screen==3){echo "checked";}else{echo $setdisabled;}?> /></td>
|
|
</tr>
|
|
<?php
|
|
}$lastnumber = $no;
|
|
|
|
?>
|
|
</table>
|
|
<input hidden="" id="lastnumber" name="lastnumber" value="<?php echo $no;?>" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="box-footer">
|
|
<a href="<?php echo base_url();?>index.php/ps_screen" class="btn btn-default">Cancel</a>
|
|
<?php if ($actionform!="prosesview"){ ?>
|
|
<button type="submit" class="btn btn-warning">Submit</button>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|