Skip to content

Instantly share code, notes, and snippets.

@desawarna
Created May 20, 2019 02:37
Show Gist options
  • Save desawarna/6347418bc429f789721815c3985116df to your computer and use it in GitHub Desktop.
Save desawarna/6347418bc429f789721815c3985116df to your computer and use it in GitHub Desktop.
Copas Code ini di /arteri-1.2.1/application/views/
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<nav class="navbar navbar-inverse navbar-submenu">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#module-submenu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Data Arsip</a>
</div>
<form class="navbar-form navbar-left width-half-full" method="get" action="<?php echo site_url('/home/search'); ?>">
<div class="input-group width-full">
<input type="text" name="katakunci" class="form-control" placeholder="nomor arsip/kata kunci uraian" /><span class="input-group-btn">
<button class="btn btn-primary" type="submit"><i class="glyphicon glyphicon-search"></i></button></span>
</div>
</form>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="module-submenu">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" role="button" data-toggle="collapse" data-target="#advanced-search"
aria-expanded="false" aria-controls="advanced-search"
class="open-advanced-search"><i class="glyphicon glyphicon-search"></i> Pencarian Lanjut</a></li>
<li><a href="<?php echo site_url('/home/dl').($_SERVER['QUERY_STRING']? '?'.$_SERVER['QUERY_STRING'] : '') ?>"><i class="glyphicon glyphicon-download"></i> Download Data</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<?php echo $this->session->flashdata('zz'); ?>
<div class="panel panel-default panel-hidden collapse" id="advanced-search">
<div class="panel-heading"><h3 class="panel-title">Pencarian Lanjut</h3></div>
<div class="panel-body">
<form action="<?php echo site_url('/home/search'); ?>" method="get" id="srcmain">
<div class = "input-group">
<span class = "input-group-addon">Uraian</span>
<input id="uraian" name="uraian" class="form-control input-md" type="text" value="<?php echo $src['uraian'] ?>">
<span class = "input-group-addon">No Surat/Arsip</span>
<input id="noarsip" name="noarsip" class="form-control input-md" type="text" value="<?php echo $src['noarsip'] ?>">
<span class = "input-group-addon">Retensi</span>
<select class="form-control" name="retensi" id="retensi">
<option value="all" >Semua</option>
<option value="sudah" <?php echo ($src['retensi']=='sudah'?'selected=selected':''); ?> >Sudah</option>
<option value="belum" <?php echo ($src['retensi']=='belum'?'selected=selected':''); ?> >Belum</option>
</select>
</div>
<br/>
<div class = "input-group">
<span class = "input-group-addon">Pencipta arsip</span>
<select class="form-control" name="penc" id="penc">
<option value="all" >Semua</option>
<?php
if(isset($penc)) {
foreach($penc as $p) {
echo "<option value=\"".$p['id']."\" ".($src['penc']==$p['id']?"selected=selected":"").">"." - ".$p['nama_pencipta']."</option>";
}
}
?>
</select>
<span class = "input-group-addon">Unit pengolah</span>
<select class="form-control" name="peng" id="peng">
<option value="all" >Semua</option>
<?php
if(isset($peng)) {
foreach($peng as $p) {
echo "<option value=\"".$p['id']."\" ".($src['peng']==$p['id']?"selected=selected":"").">"." - ".$p['nama_pengolah']."</option>";
}
}
?>
</select>
<span class = "input-group-addon">Lokasi</span>
<select class="form-control" name="lok" id="lok">
<option value="all" >Semua</option>
<?php
if(isset($lok)) {
foreach($lok as $p) {
echo "<option value=\"".$p['id']."\" ".($src['lok']==$p['id']?"selected=selected":"").">"." - ".$p['nama_lokasi']."</option>";
}
}
?>
</select>
<span class = "input-group-addon">Media</span>
<select class="form-control" name="med" id="med">
<option value="all" >Semua</option>
<?php
if(isset($med)) {
foreach($med as $p) {
echo "<option value=\"".$p['id']."\" ".($src['med']==$p['id']?"selected=selected":"").">"." - ".$p['nama_media']."</option>";
}
}
?>
</select>
</div>
<br/>
<div class = "input-group">
<span class = "input-group-addon">Tanggal (yyyy-mm-dd)</span>
<input id="tanggal" name="tanggal" class="form-control input-md" type="text" value="<?php echo $src['tanggal'] ?>">
<span class = "input-group-addon">Ket</span>
<select class="form-control" name="ket" id="ket">
<option value="all" >Semua</option>
<option value="asli" <?php echo ($src['ket']=='asli'?'selected=selected':''); ?> >Asli</option>
<option value="copy" <?php echo ($src['ket']=='copy'?'selected=selected':''); ?> >Copy</option>
</select>
<span class = "input-group-addon">Kode Klasifikasi</span>
<select class="form-control" name="kode" id="zkode">
<option value="all" >Semua</option>
<?php
if(isset($kode)) {
foreach($kode as $p) {
echo "<option value=\"".$p['kode']."\" ".($src['kode']==$p['kode']?"selected=selected":"").">".$p['kode']." - ".$p['nama']."</option>";
}
}
?>
</select>
<span class = "input-group-addon">No. Box</span>
<input id="nobox" name="nobox" class="form-control input-md" type="text" value="<?php echo $src['nobox'] ?>">
<span class="input-group-btn">
<button class="btn btn-primary" type="submit" id="go"> Cari</button>
</span>
</div>
</form>
</div>
<!-- ./panel body -->
</div>
<!-- ./panel -->
<!-- Title -->
<div class="well well-sm">
<div class="row">
<div class="col-xs-9">Ditemukan data sebanyak : <em class='small'>(<?php echo number_format($jml); ?>)</em> arsip</div>
<div class="col-xs-3 text-right"></div>
</div>
</div>
<!-- /.row -->
<!-- Page Features -->
<div class="row" id="hslsrc">
<table id="tblhslsrc" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
<thead>
<tr>
<th>No Arsip</th>
<th>Tanggal</th>
<th>Kode Klasifikasi</th>
<th>Uraian</th>
<th>Ket</th>
<th>File</th>
<th>Jumlah</th>
<th>No. Box</th>
<th>Retensi</th>
<th class="width-sm"></th>
<th class="width-sm"></th>
<th class="width-sm"></th>
</tr>
</thead>
<tbody>
<?php
foreach($data as $a) {
echo "<tr>";
echo "<td>".$a['noarsip']."</td>";
echo "<td>".$a['tanggal']."</td>";
echo "<td>".$a['nama_kode']."</td>";
echo "<td>".$a['uraian']."</td>";
echo "<td>".$a['ket']."</td>";
if($a['file']=="") {
echo "<td></td>";
}else {
echo "<td><a href='".base_url('files/'.$a['file'])."' target='_blank'><span class='glyphicon glyphicon-save' aria-hidden='true'></span></a></td>";
}
echo "<td>".$a['jumlah']."</td>";
echo "<td>".$a['nobox']."</td>";
echo "<td ".($a['f']=='sudah'?"class='danger'":"").">".$a['b']."</td>";
echo "<td><a href='".site_url('home/view/'.$a['id'])."' ><i class=\"glyphicon glyphicon-search\"></i></a></td>";
echo "<td>";
if(isset($_SESSION['akses_modul']['entridata']) && $_SESSION['akses_modul']['entridata']=='on') {
echo "<a href='".site_url('/admin/vedit/'.$a['id'])."'><span class='glyphicon glyphicon-pencil' aria-hidden='true'></span></a>";
}
echo "</td>";
echo "<td>";
if(isset($_SESSION['akses_modul']['entridata']) && $_SESSION['akses_modul']['entridata']=='on') {
echo "<a class='deldata' id='".$a['id']."' href='#' data-toggle=\"modal\" data-target=\"#deldata\"><i class=\"glyphicon glyphicon-trash\"></i></a>";
}
echo "</td>";
echo "</tr>";
}
?>
</tbody>
</table>
</div>
<!-- /.row -->
<?php
echo $pages;
?>
<div class="modal fade" id="deldata">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">Delete Data</h4>
</div>
<div class="modal-body">
<form id="fdeldata" class="form-horizontal" role="form" method="post" action="<?php echo site_url("/admin/del1"); ?>">
<h4 class="modal-title">Yakin ingin Hapus Data ini?</h4>
<input type="hidden" name="id" id="deliddata" value="">
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="deldatago">Hapus</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment