Exemplo n.º 1
0
 function list_ovt()
 {
     permission();
     $data['path_file'] = $this->filename;
     if ($this->input->post("start_att")) {
         $data['start_date'] = $this->input->post("start_att");
         if (!$this->input->post("end_att")) {
             $data['end_date'] = $data['start_date'];
         } else {
             $data['end_date'] = $this->input->post("end_att");
         }
         $data['period'] = GetMonth(substr($data['end_date'], 5, 2)) . " " . substr($data['end_date'], 0, 4);
     } else {
         $dt = "Dec 2015";
         //date("M Y");
         $period = GetPeriod($dt);
         $data['start_date'] = substr($period, 0, 10);
         $data['end_date'] = substr($period, 11, 10);
         $data['period'] = $dt;
     }
     $data['opt_divisi'] = GetOptDivision();
     $data['opt_regs'] = GetOptShiftReguler();
     $data['s_regs'] = $this->input->post("s_regs") ? $this->input->post("s_regs") : "shift";
     $data['s_div'] = $this->input->post("s_div");
     $data['s_sec'] = $this->input->post("s_sec");
     $this->load->view('overtime', $data);
 }
Exemplo n.º 2
0
<div class="col-md-2">
  <label>Reguler/Shift</label>
  <?php 
$opt_regs = GetOptShiftReguler();
echo form_dropdown("s_regs", $opt_regs, "", "class='span2_2'");
?>
</div>