Viewing file:      v_addFee.php (11.06 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php $row_fee = (isset($qu_fee) && $qu_fee!=NULL) ? $qu_fee->row() : NULL; ?> <table width="100%" align="center">     <tr>         <td>             <div align="center">             <table width="100%">                 <tr>                     <td colspan="2" align="center" class="h error">ข้อมูลค่าใช้จ่าย</td>                 </tr>                 <tr>                     <td align="right"> <?php                     echo anchor_popup($this->config->item("rg_folder")."bdpbri/fee_print", "<img src=\"".base_url().$this->config->item("rg_print")."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />"); ?>                     </td>                 </tr>                 <tr>                     <td><?php echo form_open($this->config->item("rg_folder")."bdpbri/fee_insert_update", array("name" => "myform", "id" => "myform"));?>                     <table class="szone">                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">ลำดับที่</font></td>                             <td><input type="text" name="feeSeq" id="feeSeq" value="<?php echo set_value('feeSeq',setValue('feeSeq',$row_fee));?>" size="3" maxlength="3" />                             <font size="2" color="<?php echo $font_color_err;?>">*</font>                             <br /><?php echo form_error('feeSeq');?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">รายการค่าใช้จ่าย</font></td>                             <td><input type="text" name="feeName" id="feeName" value="<?php echo set_value('feeName',setValue('feeName',$row_fee));?>" size="30" />                             <font size="2" color="<?php echo $font_color_err;?>">*</font>                             <br /><?php echo form_error('feeName');?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">ประเภทค่าใช้จ่าย</font></td>                             <td><font size="2">                             <input type="radio" name="feeType" id="feeType" value="A" <?php echo (setValue('feeType',$row_fee)!='D') ? "checked" : '';?> /> Fix ตามกระทรวงฯ/สบช. กำหนด<br />                             <input type="radio" name="feeType" id="feeType" value="D" <?php echo (setValue('feeType',$row_fee)=='D') ? "checked" : '';?>/> กำหนดเอง</td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">ประเภทการจ่าย</font></td>                             <td> <?php                             echo form_dropdown('feePytId', $rs_pyt, set_value('feePytId',setValue('feePytId', $row_fee))); ?>                                                     <font size="2" color="<?php echo $font_color_err;?>">*</font>                             <br /><?php echo form_error('feePytId');?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">ประเภทการคำนวณ</font></td>                             <td><font size="2">                             <input type="radio" name="feeCalType" id="feeCalType" value="Y" <?php echo (setValue('feeCalType',$row_fee)!='N') ? 'checked' : '';?> /> ใช้คำนวณ                             <input type="radio" name="feeCalType" id="feeCalType" value="N" <?php echo (setValue('feeCalType',$row_fee)=='N') ? 'checked' : ''?> /> ไม่ใช้คำนวณ</font></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">ประเภทการเบิก</font></td>                             <td><font size="2"><input type="radio" name="feeCanRefund" id="feeCanRefund" value="Y" <?php echo (setValue('feeCanRefund',$row_fee)!='N') ? 'checked' : '';?> /> เบิกได้ตามสิทธิ์                             <input type="radio" name="feeCanRefund" id="feeCanRefund" value="N" <?php echo (setValue('feeCanRefund',$row_fee)=='N') ? 'checked' : '';?> /> เบิกไม่ได้</font></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">การออกเอกสาร</font></td>                             <td><font size="2"><input type="radio" name="feeOutBudget" id="feeOutBudget" value="N" <?php echo (setValue('feeOutBudget',$row_fee)!='Y') ? 'checked' : '';?> /> ใบเสร็จรับเงิน (เงินในงบประมาณ)<br />                             <input type="radio" name="feeOutBudget" id="feeOutBudget" value="Y" <?php echo (setValue('feeOutBudget',$row_fee)=='Y') ? 'checked' : '';?> /> ใบสำคัญรับเงิน (เงินนอกงบประมาณ)                             </font></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">หมวดค่าใช้จ่าย</font></td>                             <td> <?php                             echo form_dropdown('feeFgId', $rs_fg, set_value('feeFgId',setValue('feeFgId', $row_fee))); ?>                             <font size="2" color="<?php echo $font_color_err;?>">*</font>                             <br /><?php echo form_error('feeFgId');?></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">ลักษณะการจ่าย</font></td>                             <td><font size="2"><input type="radio" name="feeOnTop" id="feeOnTop" value="N" <?php echo (setValue('feeOnTop',$row_fee)!="Y") ? 'checked' : '';?> /> จ่ายทุกคน<br />                             <input type="radio" name="feeOnTop" id="feeOnTop" value="Y" <?php echo (setValue('feeOnTop',$row_fee)=="Y") ? 'checked' : '';?> /> จ่ายเฉพาะโควต้าพิเศษ (On Top)</font></td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td class="coltd_szone2"><font size="2">ระดับการศึกษาที่ต้องจ่าย</font></td>                             <td> <?php                             echo form_dropdown('feeElvId', $rs_elv, setValue('feeElvId', $row_fee)); ?>                             </td>                         </tr>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td colspan="2" align="center">                             <input type="submit" name="add" id="add" value="บันทึก" />                             <input type="reset" name="clear" value="เคลียร์ข้อมูล" />                             <input type="hidden" name="feeId" id="feeId" value="<?php echo setValue('feeId',$row_fee);?>" /></td>                         </tr>                     </table><?php echo form_close();?></td>                 </tr>                 <?php echo form_open($this->config->item("rg_folder")."bdpbri/fee_search");?>                 <tr>                      <td align="right">                     <font size="2"><b>รายการค่าใช้จ่าย</b></font>                     <input type="text" name="feeNameSearch" id="feeNameSearch" value="<?php echo set_value('feeNameSearch');?>" />                     <input type="submit" name="search" value="ค้นหา" />                     <br /><?php echo form_error('feeNameSearch');?>                     </td>                 </tr><?php echo form_close();?> <?php                 if(isset($rs_fee) && $rs_fee->num_rows() > $this->config->item("rg_max_row")) { ?>                     <tr>                         <td colspan="3"><font size="2"><b>                         แสดง <?php echo $this->config->item("rg_max_row");?> รายการจาก <?php echo $rs_fee->num_rows();?> รายการ</font></b></td>                     <tr> <?php                 } ?>                <tr>                     <td><table width="100%" align="center" class="headCol">                         <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">                             <th class="seqCol"><font size="2" color="<?php echo $font_color_table;?>">ลำดับที่</font></th>                             <th><font color="<?php echo $font_color_table;?>" size="2"><b>รายการค่าใช้จ่าย</b></font></th>                             <th class="domAmtCol"><font color="<?php echo $font_color_table;?>" size="2"><b>ประเภทค่าใช้จ่าย</b></font></th>                             <th class="domAmtCol"><font color="<?php echo $font_color_table;?>" size="2"><b>ประเภทการเบิก</b></font></th>                             <th class="domAmtCol"><font color="<?php echo $font_color_table;?>" size="2"><b>การออกเอกสาร</b></font></th>                             <th class="editCol"><font color="<?php echo $font_color_table;?>" size="2">แก้ไข</font></td>                             <th class="deleteCol"><font color="<?php echo $font_color_table;?>" size="2">ลบ</font></td>                         </tr> <?php             $i = 0;             if(isset($rs_fee) && $rs_fee->num_rows()) {                 foreach($rs_fee->result() as $row) {                     if($i >= $this->config->item("rg_max_row"))                         break;                     echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?>                             <td align="center"><font size="2"><?php echo $i+1;?></font></td>                             <td class="indent"><span class="hand" onClick="sendPost('f_detail',                             {'feeId':<?php echo $row->feeId;?>},                              '<?php echo site_url($this->config->item('rg_folder').'bdpbri/fee_detail');?>',{'width':450,'height':500})" /><?php echo $row->feeName;?></span></td>                             <td align="center"><font size="2"><?php echo $row->feeType;?></font></td>                             <td align="center"><font size="2"><?php echo $row->feeCanRefund;?></font></td>                             <td align="center"><font size="2"><?php echo $row->feeOutBudget;?></font></td>                             <td align="center">                             <img class="hand" src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0"                              onClick="sendPost('hidform',                             {'feeId':<?php echo $row->feeId;?>},                              '<?php echo site_url($this->config->item('rg_folder').'bdpbri/fee_input');?>')" /></td>                             <td align="center"><span onClick="confirmDel2({feeId:<?php echo $row->feeId;?>}, 'm_form1','<?php echo site_url($this->config->item('rg_folder').'bdpbri/fee_delete');?>')" /><img src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span></td>                         </tr> <?php                     $i++;                 }             } else { ?>                         <tr>                             <td colspan="7" height="22" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>                         </tr> <?php             } ?>                     </table></td>                 </tr>                 <tr>                     <td align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>                 </tr>             </table></div>         <br></td>     </tr>     <tr>         <td><table width="100%">             <tr>                 <td width="8%"><font size="2" color="<?php echo $font_color_err;?>"><b>หมายเหตุ : </b></font></td>                 <td><font size="2" color="<?php echo $font_color_err;?>">* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</font></td>             </tr>             <tr>                 <td></td>                 <td><font size="2" color="<?php echo $font_color_err;?>">ใช้เมาส์คลิกที่รายการค่าใช้จ่ายเพื่อดูรายละเอียดค่าใช้จ่าย</font></td>             </tr>             <tr>                 <td></td>                 <td><font size="2" color="<?php echo $font_color_err;?>">A = Fix ตามกระทรวงฯ/สบช. กำหนด, D = กำหนดเอง</font></td>             </tr>             <tr>                 <td></td>                 <td><font size="2" color="<?php echo $font_color_err;?>">Y = เบิกได้ตามสิทธิ์, N = เบิกไม่ได้</font></td>             </tr>             <tr>                 <td></td>                 <td><font size="2" color="<?php echo $font_color_err;?>">N = ใบเสร็จรับเงิน (เงินในงบประมาณ), Y = ใบสำคัญรับเงิน (เงินนอกงบประมาณ)</font></td>             </tr>         </table></td>     </tr> </table>
  |