<th width="15%">Bank Penerima</th>
        <th width="15%">No. Rekening</th>
        <th width="20%">Judul Penelitian</th>
        <th width="10%">Pilih</th>
    </thead>
<tbody>
    <?php 
$no = 0;
$i = 1;
foreach ($this->pb as $val4) {
    $bank = $this->bank->get_bank_id($val4->get_bank());
    echo "<tr>";
    echo "<td>" . $i . "</td>";
    echo "<td>" . $val4->get_nama() . " / " . $val4->get_nip() . "</td>";
    echo "<td>" . Golongan::golongan_int_string($val4->get_gol()) . "</td>";
    echo "<td>" . StatusPB::status_int_string($val4->get_status()) . "</td>";
    echo "<td>" . $bank->get_nama() . "</td>";
    echo "<td>" . $val4->get_no_rek() . "</td>";
    echo "<td>" . $val4->get_skripsi() . "</td>";
    ?>
    <td><input type="checkbox" id="setuju[]" name="setuju[]" value="<?php 
    echo $val4->get_kd_pb();
    ?>
" 
        <?php 
    if ($val4->get_skripsi() != "" && $this->penerima_el->cek_skripsi_by_pb($val4->get_kd_pb()) == FALSE) {
        echo "checked";
    }
    if ($this->penerima_el->cek_skripsi_by_pb($val4->get_kd_pb()) == TRUE) {
        echo " disabled";
        if ($this->penerima_el->cek_skripsi_dibayar_by_pb($val4->get_kd_pb()) == TRUE) {
예제 #2
0
			
			<label class="isian">Jurusan :</label>
			<input type="text" id="jurusan" name="jurusan"disabled value="<?php 
echo $this->d_jur->get_nama();
?>
"/>
			
			<label class="isian">Tahun Masuk :</label>
			<input type="text" id="th_masuk" name="th_masuk" disabled value="<?php 
echo $this->d_st->get_th_masuk();
?>
"/>
			
			<label class="isian">Status Tugas Belajar (TB) :</label>
                        <input type="text" id="status_tb" name="status_tb" disabled value="<?php 
echo StatusPB::status_int_string($this->d_pb->get_status());
?>
"/>
			<!--row berikut hanya muncul jika status TB: lulus dan/atau tidak lulus -->
			
<!--			<label class="isian">Tanggal Akhir TB :</label>
			input type="file" id="skl" name="skl" /
			<ul class="inline">
				<li><input class="unggah" type="text" id="tgl_akhir_tb" disabled /></li>
				<li><input type="button" value="Lihat" id="fileSKL" class="lihat" onclick="view_file('<?php 
echo $this->d_pb->get_skl();
?>
','skl');"/>View file SKL
				</li>
			</ul>-->
			
    <th width="10%">Status</th>
    <th width="15%">Bank Penerima</th>
    <th width="15%">No. Rekening</th>
    <th width="10%">Pilih</th>
</thead>
<tbody>
    <?php 
$no = 0;
$i = 1;
foreach ($this->pb as $val4) {
    $bank = $this->bank->get_bank_id($val4->get_bank());
    echo "<tr>";
    echo "<td style=\"text-align: center\">" . $i . "</td>";
    echo "<td>" . $val4->get_nama() . " / " . $val4->get_nip() . "</td>";
    echo "<td>" . Golongan::golongan_int_string($val4->get_gol()) . "</td>";
    echo "<td style=\"text-align: center\">" . StatusPB::status_int_string($val4->get_status()) . "</td>";
    echo "<td>" . $bank->get_nama() . "</td>";
    echo "<td>" . $val4->get_no_rek() . "</td>";
    ?>
    <td style="text-align: center"><input type="checkbox" id="setuju[]" name="setuju[]" value="<?php 
    echo $val4->get_kd_pb();
    ?>
" 
        <?php 
    if ($val4->get_status() == 1) {
        //mengecek status yang bisa dibisa dibayarkan hanya 1=belum lulus
        if ($this->penerima_elemen->cek_buku_by_pb($val4->get_kd_pb(), $this->semester, $this->thn) == TRUE) {
            //mengecek apakah ob pernah dibauarkan pada semester dan tahun tertentu
            echo " disabled title='Sedang proses/selesai dibayar.'";
        } else {
            echo " checked";
    ?>
                <tr>
                    <td><?php 
    echo $i;
    ?>
</td>
                    <td><?php 
    echo $val->get_nip();
    ?>
</td>
                    <td><?php 
    echo $val->get_nama();
    ?>
</td>
                    <td><?php 
    echo StatusPB::status_int_string($val->get_status());
    ?>
</td>
                    <td><input type="checkbox" value="<?php 
    echo $val->get_kd_pb();
    ?>
" name="<?php 
    echo "penerima[]";
    ?>
" id="<?php 
    echo "penerima[]";
    ?>
" <?php 
    echo $disable;
    ?>
/></td>
 public function set_status_lulus()
 {
     $kd_pb = $_POST['id_pb'];
     $pb = new Penerima($this->registry);
     $pb->set_kd_pb($kd_pb);
     $pb = $pb->get_penerima_by_id($pb);
     $status = $pb->get_status();
     $blm_lulus = $status != 9;
     $tdk_lulus = $status == 9;
     $data = 1;
     if ($blm_lulus) {
         $pb->set_status(9);
         $data = array('str_status' => StatusPB::status_int_string(9), 'kd_status' => 9);
     } elseif ($tdk_lulus) {
         $status = $pb->cek_pb_konek_st_ct($pb, 'all', false, true);
         $data = array('str_status' => StatusPB::status_int_string($status), 'kd_status' => $status);
         $pb->set_status($status);
         /*
                     * sementara dulu
                     * untuk update status tb, sambil nunggu fungsi yg benar :(
                     *
                     $curr_month = (int) date('m');
                     $curr_year = (int) date('Y');
                     $name = $pb->get_nama();
                     $ct = new Cuti($this->registry);
                     $ct->get_cuti_by_pb_name($name, $this->kd_user);
                     $tmp_mul = explode(" ",$ct->get_prd_mulai());
                     $tmp_sel = explode(" ",$ct->get_prd_selesai());
                     $bul_mul = (int) $tmp_mul[0];
                     $thn_mul = (int) $tmp_mul[1];
                     $bul_sel = (int) $tmp_mul[0];
                     $thn_sel = (int) $tmp_sel[1];
                     $is_cuti = $bul_mul<=$curr_month && $thn_mul<=$curr_year && $bul_sel>=$curr_year && $thn_sel>=$curr_year;
                     if($is_cuti){
                         $pb->set_status(4);
                         $data = array('str_status'=>StatusPB::status_int_string(4),'kd_status'=>4);
                     }else{ */
         /*
             * st
             *
             $kd_st = $pb->get_st();
             $st = new SuratTugas($this->registry);
             $is_child = $st->is_child($kd_st);
             if($is_child){
                 $kd_parent = $st->get_st_lama();
                 if($kd_parent!=''){
                     $pb->set_status(3);
                     $data = array('str_status'=>StatusPB::status_int_string(3),'kd_status'=>3);
                 }else{
                     $pb->set_status(2);
                     $data = array('str_status'=>StatusPB::status_int_string(2),'kd_status'=>2);
                 } 
             }else{
                 $pb->set_status(1);
                 $data = array('str_status'=>StatusPB::status_int_string(1),'kd_status'=>1);
             }
         }
         */
         /*
          * end update status
          */
     }
     //        echo $status;
     $pb->update_penerima();
     echo json_encode($data);
 }