Spaces:
Running
Running
Download application/views/v_setting/v_docpattern/docpattern.php from cappucaine/ERP: direct link, hf CLI and curl.
- Browser
- Download file 7.18 kB
-
https://huggingface.co/spaces/cappucaine/ERP/resolve/main/application/views/v_setting/v_docpattern/docpattern.php
- Command line
-
hf download hf://spaces/cappucaine/ERP/application/views/v_setting/v_docpattern/docpattern.php
-
curl -L -o docpattern.php https://huggingface.co/spaces/cappucaine/ERP/resolve/main/application/views/v_setting/v_docpattern/docpattern.php
7.18 kB
| $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> 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> | |
| $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> echo anchor($secUpd,$Pattern_Code);</td> | |
| <td> print $row->Pattern_Name </td> | |
| <td> print $row->Pattern_YearAktive; </td> | |
| <td> print $row->Pattern_MonthAktive; </td> | |
| <td> print $row->Pattern_DateAktive; </td> | |
| <td> print $row->Pattern_Length; </td> | |
| </tr> | |
| endforeach; | |
| } | |
| <tfoot> | |
| <tr> | |
| <td colspan="6" style="text-align:left"> | |
| //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> | |
| $this->load->view('template/js_data'); | |
| <!--tambahkan custom js disini--> | |
| $this->load->view('template/foot'); | |