Viewing file: v_addCurriculumFeeTp.php (6.61 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; $row_cft = (isset($qu_cft) && $qu_cft!=NULL) ? $qu_cft->row() : NULL; ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <div align="center"><br ?> <?php echo form_open($this->config->item("rg_folder")."fee/cft_insert_update", array("name" => "myform", "id" => "myform"));?> <table width="100%"> <tr> <td colspan="5" align="center"><table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>หลักสูตร</b></font></td> <td><font size="2"><?php echo setValue('curName',$row_cur);?></font> <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"><font size="2" ><b>ปีการศึกษา</b></font></td> <td><input type="text" name="acY" id="acY" value="<?php echo $acY;?>" class="input2"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>ภาคการศึกษา</b></font></td> <td><font size="2"><?php echo setValue('tmCode',$row_tm);?></font> <input type="hidden" name="tmId" id="tmId" value="<?php echo setValue('tmId',$row_tm);?>" class="input1"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2"><b>ปีการศึกษาที่เข้า</b></font></td> <td><font size="2"><?php echo ($adY!=NULL && $adY!=0) ? $adY : '-';?></font> <input type="hidden" name="adY" id="adY" value="<?php echo $adY!=NULL ? $adY : 0;?>" class="input1"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2" ><b>ชั้นปี</b></font></td> <td><?php echo $row_sy!=NULL ? setValue('syCode',$row_sy) : '-';?></font> <input type="hidden" name="syId" id="syId" value="<?php echo $row_sy!=NULL ? setValue('syId',$row_sy) : 0;?>" class="input1"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2" ><b>รายการค่าใช้จ่าย</b></font></td> <td> <?php if($row_cft==NULL) { echo form_dropdown('cftFeeId',$rs_fee,setValue('cftFeeId',$row_cft,$flg)); ?> <span class="error">*<?php echo form_error('cftFeeId');?></span> <?php } else { echo setValue('feeName',$row_cft); ?> <input type="hidden" name="cftFeeId" id="cftFeeId" value="<?php echo setValue('cftFeeId',$row_cft);?>" /> <?php } ?> </td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone"><font size="2" ><b>จำนวนเงิน (บาท)</b></font></td> <td><input type="text" name="cftAmt" id="cftAmt" size="6" maxlength="5" class="required-int" value="<?php echo setValue('cftAmt',$row_cft,$flg);?>"> <span class="error">*<?php echo form_error('cftAmt');?></span></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td colspan="2" align="center"> <input type="submit" name="add" value="บันทึก" /> <input type="reset" name="clear" value="เคลียร์ข้อมูล" /> <input type="hidden" name="flg_update" id="flg_update" value="<?php echo ($row_cft!=NULL) ? 1 : '';?>"></td> </tr></table></td> </tr> <tr> <td><br /></td> </tr> <tr> <td><table class="headCol"> <tr> <th class="seqCol" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ลำดับที่</b></font></td> <th align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>รายการค่าใช้จ่าย</b></font></td> <th class="amtCol" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>จำนวนเงิน</b></font></td> <th class="editCol" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>แก้ไข</b></font></td> <th class="deleteCol" align="center"><font color="<?php echo $font_color_table;?>" size="2"><b>ลบ</b></font></td> </tr> <?php $i = 0; if(isset($rs_cft) && $rs_cft->num_rows()) { foreach($rs_cft->result() as $row_cft) { 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"><font size="2"><?php echo $row_cft->feeName;?></font></td> <td align="right"><font size="2"><?php echo $row_cft->cftAmt;?></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', {'curId':<?php echo setValue('curId',$row_cur);?>, 'adY':<?php echo $adY!=NULL ? $adY : 0;?>, 'acY':<?php echo $acY;?>, 'syId':<?php echo $row_sy!=NULL ? setValue('syId',$row_sy) : 0;?>, 'tmId':<?php echo setValue('tmId',$row_tm);?>, 'feeId':<?php echo $row_cft->cftFeeId;?>}, '<?php echo site_url($this->config->item('rg_folder').'fee/cft_input');?>')" /></td> <td align="center"> <img class="hand" src="<?php echo base_url().$this->config->item("rg_delete");?>" align="absmiddle" border="0" onClick="confirmDel2( {'curId':<?php echo setValue('curId',$row_cur);?>, 'adY':<?php echo $adY!=NULL ? $adY : 0;?>, 'acY':<?php echo $acY;?>, 'syId':<?php echo $row_sy!=NULL ? setValue('syId',$row_sy) : 0;?>, 'tmId':<?php echo setValue('tmId',$row_tm);?>, 'feeId':<?php echo $row_cft->cftFeeId;?>}, 'hidform', '<?php echo site_url($this->config->item('rg_folder').'fee/cft_delete');?>')" /></td> </tr> <?php $i++; } } else { ?> <tr> <td colspan="5" 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><?php echo form_close();?></div> <span class="error"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td> </tr> </table>
|