Viewing file:      v_editStudentMBInfo3.php (6.88 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_insertStdMBInfo3", 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> <?php                 echo form_dropdown('sacTmId', $rs_tm, set_value('sacTmId',$tmId)); ?>                 </td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">ปีการศึกษา (พ.ศ.)</td>                 <td><input type="text" name="sacAcY" id="sacAcY" value="<?php echo set_value('sacAcY',$acY);?>" size="5" maxlength="4" class="required-int" />                 <span class="error">*<?php echo form_error('sacAcY');?></span></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">ชั้นปี</td>                 <td> <?php                 echo form_dropdown('sacSyId', $rs_sy, set_value('sacSyId')); ?>                 <span class="error"><?php echo form_error('sacSyId');?></span></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">ชื่อกิจกรรม/โครงการ</td>                 <td><input type="text" name="sacName" id="sacName" value="<?php echo set_value('sacName');?>" size="70" maxlength="70" />                 <span class="error"><?php echo form_error('sacName');?></span></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">การเข้าร่วมในกิจกรรม</td>                 <td><input type="text" name="sacPosition" id="sacPosition" value="<?php echo set_value('sacPosition');?>" size="70" maxlength="70" />                 <span class="error"><?php echo form_error('sacPosition');?></span></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">วันที่เข้าร่วม</td>                 <td><script>DateInput('sacFrDate', true, 'DD/MM/YYYY', '<?php echo (set_value("sacFrDate")=="") ? getNowDateFw2() : set_value("sacFrDate");?>');</script>                 <?php echo form_error('sacFrDate');?></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td class="coltd_szone">วันที่สิ้นสุด</td>                 <td><script>DateInput('sacToDate', true, 'DD/MM/YYYY', '<?php echo (set_value("sacToDate")=="") ? getNowDateFw2() : set_value("sacToDate");?>');</script>                 <?php echo form_error('sacToDate');?></td>             </tr>             <tr bgcolor="<?php echo setValue('cfgBgClSwapTr',$row_cfg);?>">                 <td 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="7">แสดงประวัติการทำกิจกรรม</th>             </tr>             <tr>                 <th class="domAmtCol">ภาค/ปีการศึกษา</th>                 <th class="editCol">ชั้นปี</th>                 <th>ชื่อกิจกรรม/โครงการ</th>                 <th class="hourCol">การเข้าร่วมในกิจกรรม</th>                 <th class="hourCol">วันที่เข้าร่วม</th>                 <th class="hourCol">วันที่สิ้นสุด</th> <?php                  if(isset($act) && $act=='N') { ?>                 <th class="deleteCol">ลบ</th> <?php                 } ?>             </tr> <?php     $i = 0;     if(isset($rs_sac) && $rs_sac->num_rows()) {         foreach($rs_sac->result() as $row) {             echo "<tr onmouseover=\"bgColor='".setValue('cfgBgClSwapTr',$row_cfg)."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; ?>                 <td align="center"><?php echo $row->tmCode.'/'.$row->sacAcY;?></td>                 <td align="center"><?php echo $row->syCode;?></td>                 <td class="indent"><?php echo $row->sacName;?></td>                 <td class="indent"><?php echo $row->sacPosition;?></td>                 <td align="center"><?php echo abbreDate2($row->sacFrDate);?></td>                 <td align="center"><?php echo abbreDate2($row->sacToDate);?></td> <?php              if(isset($act) && $act=='N') { ?>                 <td align="center"> <?php                 if((setValue('stdSstId',$row_std)==1 || setValue('stdSstId',$row_std)==2) && (!isset($prs))) { ?>                 <span onClick="confirmDel2({sacStdId:<?php echo $row->sacStdId;?>, sacSeq:<?php echo $row->sacSeq;?>, tab:<?php echo $tab;?>, stdId:<?php echo $stdId;?>}, 'm_form1','<?php echo site_url($this->config->item('rg_folder').'studentinfo/std_deleteStdMBInfo2');?>')" /><img src="<?php echo base_url().$this->config->item('rg_delete');?>" align="absmiddle" border="0" width="16" height="19" class="hand"/></span></td> <?php                 } else { ?>                 <img src="<?php echo base_url().$this->config->item("rg_deleted");?>" align="absmiddle" border="0" width="16" height="19" /> <?php                 }             }             $i++;         }     } else { ?>             <tr>                 <td colspan="7" align="center"><font size="2" color="<?php echo setValue('cfgFnClErrSpec',$row_cfg);?>">** ไม่ปรากฎรายการประวัติด้านการศึกษาในฐานข้อมูล **</font></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>
  |