Viewing file:      v_showOutSst.php (4.57 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
 $row_cur = (isset($qu_cur) && $qu_cur!=NULL) ? $qu_cur->row() : NULL;
 $row_sy = (isset($qu_sy) && $qu_sy!=NULL) ? $qu_sy->row() : NULL;
 $row_tm = (isset($qu_tm) && $qu_tm!=NULL) ? $qu_tm->row() : NULL;
 ?>
 <table width="100%">
     <tr>
         <td>
             <div align="center">
             <?php echo form_open($this->config->item("rg_folder")."payment/processOutSst", array("name" => "myform", "id" => "myform"));?>
             <table width="100%">
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">หลักสูตร</td>
                     <td><?php echo setValue('curName',$row_cur);?>
                     <input type="hidden" name="curId" id="curId" value="<?php echo setValue('curId',$row_cur);?>"></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">ปีการศึกษาที่รับเข้า</td>
                     <td><?php echo $adY;?>
                     <input type="hidden" name="adY" id="adY" value="<?php echo $adY?>"></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">ชั้นปีที่</td>
                     <td><?php echo setValue('syCode',$row_sy);?>
                     <input type="hidden" name="syId" id="syId" value="<?php echo setValue('syId',$row_sy);?>">
                     <input type="hidden" name="syCode" id="syCode" value="<?php echo setValue('syCode',$row_sy);?>" /></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">ปีการศึกษา</td>
                     <td><?php echo $acY;?>
                     <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>"></td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">ภาคการศึกษา</td>
                     <td><?php echo setValue('tmCode',$row_tm);?>
                     <input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm)?>"></td>
                 </tr>
                 <tr>
                     <td colspan="2"><br /></td>
                 </tr>
 <?php
                 if(isset($flg_success)) {
 ?>
                 <tr>
                     <td colspan="2" align="center"><span class="h" style="color:'<?php echo $this->config->item('rg_font_color_true');?>'"><b><?php echo $flg_success;?></b></td>
                 </tr>
 <?php
                 }
 ?>
                 <tr>
                     <td colspan="2"><table class='headCol'>
                         <tr>
                             <th>รหัสนักศึกษา</th>
                             <th>ชื่อ-นามสกุลนักศึกษา</th>
                             <th>ค้างชำระ</th>
                             <th>สถานะ</th>
                         </tr>
 <?php
             $i = 0;
             if(isset($arr) && count($arr)) {
                 foreach($arr as $key => $val) {
                     echo "<tr valign='top' onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                             <td align="center"><?php echo $arr[$key]['std']->stdCode;?>
                             <input type="hidden" name="stdId<?php echo $i;?>" value="<?php echo $arr[$key]['std']->stdId;?>"></td>
                             <td>
                             <span class="hand" onClick="sendPost(
                             'hidform',
                             {'stdId':<?php echo $arr[$key]['std']->stdId;?>,
                              'acY':<?php echo $acY;?>,
                              'syId':<?php echo setValue('syId',$row_sy);?>,
                              'tmId':<?php echo setValue('tmId',$row_tm);?>},
                              '<?php echo site_url($this->config->item('rg_folder').'popup/showDetailRegisFee');?>',
                              {})" /><font size="2" ><?php echo $arr[$key]['std']->prefixName.$arr[$key]['std']->stdName.' '.$arr[$key]['std']->stdSurname;?></span></td>
                             <td align="right"><?php echo number_format($arr[$key]['sumRfBalance'],2);?></td>
                             <td>
 <?php
                             if($arr[$key]['std']->stdSstId==1) {
 ?>
                             <input type="checkbox" name="chk<?php echo $i;?>" id="chk<?php echo $i;?>" value="Y" />
 <?php
                              }
 ?>
                             <label for="chk<?php echo $i;?>" />พ้นสภาพ</label></td>
                         </tr>
 <?php
                     $i++;
                 }
             } else {
 ?>
                         <tr>
                             <td colspan="4" height="22" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                         </tr>
 <?php
             }
 ?>
                     </table></td>
                 </tr>
 <? if($i>0){?>
                 <tr>
                     <td colspan="2" align="center"><br>
                     <input type="submit" name="edit" value="บันทึก">
                     <input type="reset" name="clear" value="เคลียร์ข้อมูล">
                     <input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>"></td>
                 </tr>
 <? }?>
             </table><?php echo form_error();?></div>
         <br><span class='error'><b>หมายเหตุ : </b>ใช้เมาส์คลิกที่ชื่อนักศึกษาเพื่อดูรายละเอียดของค่าใช้จ่าย</span></td>
     </tr>
 </table>
  |