Exemple #1
0
 function list_shift($periode = NULL)
 {
     permission();
     $data['path_file'] = $this->filename;
     if ($this->input->post('period') || $periode) {
         $period = $periode ? urldecode($periode) : urldecode($this->input->post('period'));
     } else {
         $period = "Dec 2015";
         //date("M Y");
     }
     $data['period'] = $period;
     $data['opt_divisi'] = GetOptDivision();
     $data['opt_regs'] = GetOptShiftReguler();
     $data['opt_grade'] = GetOptGrade();
     $data['opt_pos'] = GetOptPositionLevel();
     $data['s_regs'] = $this->input->post("s_regs") ? $this->input->post("s_regs") : "0";
     $data['s_div'] = $this->input->post("s_div") ? $this->input->post("s_div") : "0";
     $data['s_sec'] = $this->input->post("s_sec") ? $this->input->post("s_sec") : "0";
     $data['s_pos'] = $this->input->post("s_pos") ? $this->input->post("s_pos") : "0";
     $data['s_grade'] = $this->input->post("s_grade") ? $this->input->post("s_grade") : "0";
     $this->load->view('shift', $data);
 }
Exemple #2
0
<div class="col-md-2">
  <label>Grade</label>
  <?php 
$opt_grade = GetOptGrade();
echo form_dropdown("s_grade", $opt_grade, "", "class='span2_2'");
?>
</div>