Spaces:
Running
Running
File size: 7,176 Bytes
971eb1e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | <?php
$this->load->view('template/head');
$appName = $this->session->userdata('appName');
//$this->load->view('template/topbar');
//$this->load->view('template/sidebar');
$this->db->select('Display_Rows,decFormat');
$resGlobal = $this->db->get('tglobalsetting')->result();
foreach($resGlobal as $row) :
$Display_Rows = $row->Display_Rows;
$decFormat = $row->decFormat;
endforeach;
if($decFormat == 0)
$decFormat = 2;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style type="text/css">@import url("<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/css/style.css'; ?>");</style>
<style type="text/css">@import url("<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/css/styleZebra.css'; ?>");</style>
<title><?php echo $appName; ?> | Data Tables</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.6 -->
<link rel="stylesheet" href="<?php echo base_url() . 'assets/AdminLTE-2.0.5/bootstrap/css/bootstrapa.min.css'; ?>">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo base_url() . 'assets/css/font-awesome.min.css'; ?>">
<!-- Ionicons -->
<link rel="stylesheet" href="<?php echo base_url() . 'assets/css/ionicons.min.css'; ?>">
<link rel="stylesheet" href="<?php echo base_url() . 'assets/AdminLTE.min.css'; ?>">
<!-- DataTables -->
<link rel="stylesheet" href="<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/datatables/dataTables.bootstrap.css'; ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url() . 'assets/AdminLTE-2.0.5/dist/css/AdminLTE.minaa.css'; ?>">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?php echo base_url() . 'assets/AdminLTE-2.0.5/dist/css/skins/_all-skins.min.css'; ?>">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo base_url() . 'assets/AdminLTE.css'; ?>">
</head>
<script src="<?php echo base_url('assets/js/jquery-1.10.1.min.js') ?>" type="text/javascript"></script>
<?php
$this->load->view('template/topbar');
$this->load->view('template/sidebar');
$ISREAD = $this->session->userdata['ISREAD'];
$ISCREATE = $this->session->userdata['ISCREATE'];
$ISAPPROVE = $this->session->userdata['ISAPPROVE'];
$ISDWONL = $this->session->userdata['ISDWONL'];
$LangID = $this->session->userdata['LangID'];
$sqlTransl = "SELECT MLANG_CODE, MLANG_$LangID AS LangTransl FROM tbl_translate";
$resTransl = $this->db->query($sqlTransl)->result();
foreach($resTransl as $rowTransl) :
$TranslCode = $rowTransl->MLANG_CODE;
$LangTransl = $rowTransl->LangTransl;
if($TranslCode == 'Add')$Add = $LangTransl;
if($TranslCode == 'Edit')$Edit = $LangTransl;
if($TranslCode == 'PatternCode')$PatternCode = $LangTransl;
if($TranslCode == 'PatternName')$PatternName = $LangTransl;
if($TranslCode == 'YearAktive')$YearAktive = $LangTransl;
if($TranslCode == 'MonthAktive')$MonthAktive = $LangTransl;
if($TranslCode == 'DateAktive')$DateAktive = $LangTransl;
if($TranslCode == 'PatternLength')$PatternLength = $LangTransl;
endforeach;
?>
<body class="hold-transition skin-blue sidebar-mini">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?php echo $h2_title; ?>
<small>setting</small>
</h1><br>
<?php /*?><ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Tables</a></li>
<li class="active">Data tables</li>
</ol><?php */?>
</section>
<!-- Main content -->
<div class="box">
<!-- /.box-header -->
<div class="box-body">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th width="10%"><?php echo $PatternCode ?> </th>
<th width="37%"><?php echo $PatternName ?> </th>
<th width="15%"><?php echo $YearAktive ?> </th>
<th width="12%"><?php echo $MonthAktive ?> </th>
<th width="11%"><?php echo $DateAktive ?> </th>
<th width="15%"><?php echo $PatternLength ?> </th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
$j = 0;
if($recordcount >0)
{
foreach($viewdocpattern as $row) :
$Pattern_Code = $row->Pattern_Code;
$secUpd = site_url('c_setting/c_docpattern/update/?id='.$this->url_encryption_helper->encode_url($Pattern_Code));
if ($j==1) {
echo "<tr class=zebra1>";
$j++;
} else {
echo "<tr class=zebra2>";
$j--;
}
?>
<td><?php echo anchor($secUpd,$Pattern_Code);?></td>
<td> <?php print $row->Pattern_Name ?> </td>
<td> <?php print $row->Pattern_YearAktive; ?> </td>
<td> <?php print $row->Pattern_MonthAktive; ?> </td>
<td> <?php print $row->Pattern_DateAktive; ?> </td>
<td> <?php print $row->Pattern_Length; ?> </td>
</tr>
<?php
endforeach;
}
?>
<tfoot>
<tr>
<td colspan="6" style="text-align:left">
<?php
//echo anchor($secAddURL,'<input type="button" name="btnSubmit" id="btnSubmit" class="btn btn-primary" value="Add Pattern" />');
echo anchor("$secAddURL",'<button class="btn btn-primary"><i class="cus-add-16x16"></i> '.$Add.'</button> ');
?>
</td>
</tr>
</tfoot>
</table>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</body>
</html>
<!-- jQuery 2.2.3 -->
<script language="javascript" src="<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/jQuery/jquery-2.2.3.min.js'; ?>"></script>
<script language="javascript" src="<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/bootstrap/js/bootstrap.min.js'; ?>"></script>
<script language="javascript" src="<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/datatables/jquery.dataTables.min.js'; ?>"></script>
<script language="javascript" src="<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/datatables/dataTables.bootstrap.min.js'; ?>"></script>
<script language="javascript" src="<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/slimScroll/jquery.slimscroll.min.js'; ?>"></script>
<script language="javascript" src="<?php echo base_url() . 'assets/AdminLTE-2.0.5/plugins/fastclick/fastclick.js'; ?>"></script>
<script language="javascript" src="<?php echo base_url() . 'assets/AdminLTE/dist/js/demo.js'; ?>"></script>
<script>
$(function ()
{
$("#example1").DataTable();
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false
});
});
</script>
<?php
$this->load->view('template/js_data');
?>
<!--tambahkan custom js disini-->
<?php
$this->load->view('template/foot');
?> |