Viewing file:      v_editStudentMBInfo6.php (5.3 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php $row_cfg = (isset($qu_cfg) && $qu_cfg->num_rows()) ? $qu_cfg->row() : NULL; $row_std = (isset($qu_std) && $qu_std->num_rows()) ? $qu_std->row() : NULL; ?> <table width="100%" border="0"> <?php     if(isset($act) && $act=='N') { ?>     <tr>         <td colspan="2"><table class="szone">         <?php echo form_open($this->config->item("rg_folder")."studentinfo/std_insertStdMBInfo6", array("name" => "myform", "id" => "myform"));?>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td colspan="2" height="25" align="center"><span class="h error">ข้อมูลการรับรางวัล</span></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">รางวัล</td>                 <td><input type="text" name="srwRewardName" id="srwRewardName" value="<?php echo set_value('srwRewardName');?>" size="50" maxlength="150" />                 <span class="error"><?php echo form_error('srwRewardName');?></span></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">รายละเอียด</td>                 <td><textarea name="srwDescription" id="srwDescription" /><?php echo set_value('srwDescription');?></textarea>                 <span class="error"><?php echo form_error('srwDescription');?></span></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">วันที่รับรางวัล</td>                 <td><script>DateInput('srwReceiveDate', true, 'DD/MM/YYYY', '<?php echo (set_value("srwReceiveDate")=="") ? getNowDateFw2() : set_value("srwReceiveDate");?>');</script>                 <?php echo form_error('srwReceiveDate');?></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone" colspan="2" align="center">                 <input type="submit" name="add" id="add" value="บันทึก" <?php echo ((setValue('stdSstId',$row_std)==1 || setValue('stdSstId',$row_std)==2) && (!isset($prs))) ? '' : 'disabled';?> />                 <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" <?php echo ((setValue('stdSstId',$row_std)==1 || setValue('stdSstId',$row_std)==2) && (!isset($prs))) ? '' : 'disabled';?> />                 <input type="hidden" name="tab" id="tab" value="<?php echo $tab;?>" />                 <input type="hidden" name="stdId" id="stdId" value="<?php echo $stdId;?>" />                 <input type="hidden" name="stdAdY" id="stdAdY" value="<?php echo setValue('stdAdY',$row_std);?>" />                 </td>             </tr>         <?php echo form_close();?></table></td>     </tr>     <tr>         <td colspan="2"><br /></td>     </tr> <?php     } ?>     <tr>         <td colspan="2"><table class="headCol">             <tr>                 <th colspan="5">แสดงข้อมูลการรับรางวัล</th>             </tr>             <tr>                 <th class="seqCol">ลำดับที่</font></th>                 <th class="domCol">วันที่รับรางวัล</font></th>                 <th>รางวัล</font></th>                 <th>รายละเอียด</font></th> <?php              if(isset($act) && $act=='N') { ?>                 <th class="deleteCol">ลบ</th> <?php             } ?>             </tr> <?php     $i=0;     if(isset($rs_srw) && $rs_srw->num_rows()) {         foreach($rs_srw->result() as $row) {             echo "<tr onmouseover=\"bgColor='".setValue('cfgBgClSwapTr',$row_cfg)."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?>                 <td align="center"><?php echo $i+1;?></td>                 <td align="center"><?php echo abbreDate2($row->srwReceiveDate);?></td>                 <td class="indent"><?php echo $row->srwRewardName;?></td>                 <td class="indent"><?php echo $row->srwDescription;?></td> <?php              if(isset($act) && $act=='N') { ?>                 <td align="center"> <?php                 if((setValue('stdSstId',$row_std)=='1' || setValue('stdSstId',$row_std)=='') && (!isset($prs))) { ?>                 <span onClick="confirmDel2({srwStdId:<?php echo $row->srwStdId;?>, srwSeq:<?php echo $row->srwSeq;?>, tab:<?php echo $tab;?>, stdId:<?php echo $stdId;?>}, 'm_form1','<?php echo site_url($this->config->item('rg_folder').'studentinfo/std_deleteStdMBInfo6');?>')" /><img src="<?php echo base_url().$this->config->item('rg_delete');?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span> <?php                 } else { ?>                 <img src="<?php echo base_url().$this->config->item("rg_deleted");?>" align="absmiddle" border="0" width="16" height="19" /> <?php                 }             } ?>                 </td>             </tr> <?php             $i++;         }     } else { ?>             <tr>                 <td colspan="5" align="center"><span class="error">** ไม่ปรากฎรายการประวัติด้านการศึกษาในฐานข้อมูล **</span></td>             </tr> <?php     } ?>         </table></td>     </tr>     <tr>         <td colspan="2" align="right">รวม <?php echo $i;?> รายการ</td>     </tr>     <tr>         <td><table class="mark">             <tr>                 <td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>                 <td><span class="error">* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td>             </tr>             <tr>                 <td class="coltd_mark"></td>                 <td><span class="error">นักศึกษาเฉพาะสถานะกำลังศึกษาอยู่ หรือรักษาสภาพเท่านั้นที่สามารถบันทึก/ลบข้อมูลได้</span></td>             </tr>         </table></td>     </tr> </table>
  |