Viewing file:      v_beforeEditSendGrade.php (7.59 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php $row_std = (isset($qu_std) && $qu_std!=NULL) ? $qu_std->row() : NULL; ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">     <tr>         <td>             <div align="center">             <?php echo form_open($this->config->item("rg_folder")."grade/processEditSendGrade", array("name" => "myform", "id" => "myform"));?>             <table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">                 <tr>                     <td align="center"><font class="h error">แก้เกรดนักศึกษาแยกตามรายวิชา</font></td>                 </tr>                 <tr>                     <td><br /></td>                 </tr>                 <tr>                     <td><table width="100%" align="center" cellpadding="0" cellspacing="1" border="0"> <?php                     if($row_std==NULL) { ?>                     <tr>                         <td colspan="2" align="center"><font color="<?php echo $font_color_err;?>" size="2">** กรุณาตรวจสอบข้อมูลนักศึกษา <a href="<?php echo site_url($this->config->item('rg_folder')."grade/searchSendGrd");?>">คลิกที่นี่</a> **</font></td>                     </tr> <?php                     } else { ?>                                         <tr>                         <td colspan="2"><table class="szone">                             <tr bgcolor="<?php echo $tr_color_even;?>">                                 <td class="coltd_szone">รหัสนักศึกษา</td>                                 <td width="700"><font size="2"><?php echo setValue('stdCode',$row_std);?></font>                                 <input type="hidden" name="stdCode" id="stdCode" value="<?php echo setValue('stdCode',$row_std);?>" />                                 <input type="hidden" name="stdId" id="stdId" value="<?php echo setValue('stdId',$row_std);?>" /></td>                                 <td rowspan="5" align="center" valign="center">                                 <img src="<?php echo base_url().$this->config->item('rg_pictureStd').$row_std->sdtPicturePath;?>" align="absmiddle" border="1" width="100" height="115" /></td>                             </tr>                             <tr bgcolor="<?php echo $tr_color_even;?>">                                 <td class="coltd_szone">ชื่อ-นามสกุลนักศึกษา</td>                                 <td><font size="2"><?php echo setValue('pfName',$row_std).setValue('stdName',$row_std).' '.setValue('stdSurname',$row_std);?></font></td>                             </tr>                             <tr bgcolor="<?php echo $tr_color_even;?>">                                 <td class="coltd_szone">หลักสูตร</td>                                 <td><font size="2"><?php echo setValue('curName',$row_std);?></font></td>                             </tr>                             <tr bgcolor="<?php echo $tr_color_even;?>">                                 <td class="coltd_szone">ระดับการศึกษา</td>                                 <td><font size="2"><?php echo setValue('levelName',$row_std);?></font></td>                             </tr>                             <tr bgcolor="<?php echo $tr_color_even;?>">                                 <td class="coltd_szone">ชั้นปีที่</td>                                 <td><font size="2"><?php echo setValue('syCode',$row_std);?></font>                                 <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>" />                                 <input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId;?>" /></td>                             </tr>                         </table></td>                     </tr>                     <tr>                         <td colspan="2"><br /></td>                     </tr>                     <tr>                         <td colspan="2"><span class="h">รายวิชาที่ลงทะเบียนเรียนใน ปีการศึกษา <?php echo $acY;?> ภาคการศึกษา <?php echo $tmId;?></span><br></td>                     </tr>                     <tr>                         <td colspan="2"><table class="headCol">                             <tr>                                 <th class="seqCol">ที่</th>                                 <th>รหัสวิชา / ชื่อวิชา</th>                                 <th class="editCol">กลุ่ม</th>                                 <th class="seqCol">หน่วยกิต</th>                                 <th class="hourCol">เกรด (เลขที่คำสั่ง)</th>                                 <th class="stdCodeCol">ผู้ปรับปรุงล่าสุด</th>                                 <th class="editCol">แก้ไข</td>                             </tr> <?php                     $i = 0;                     if(isset($rs_rd) && $rs_rd->num_rows()) {                         foreach($rs_rd->result() as $row_rd) {                             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_rd->crsCode.' '.explodeSquare($row_rd->crsName);?></font></td>                                 <td align="center"><font size="2"><?php echo $row_rd->coSection;?></font></td>                                 <td align="center"><font size="2"><?php echo $row_rd->crsUnit;?></font></td>                                 <td align="center"> <?php                                 if(isset($flgShow) && $flgShow==$row_rd->coId) {
                                      echo form_dropdown('rdGrade', $rs_grd, set_value('rdGrade',setValue('rdGrade',$row_rd))); ?>                                 (<input type="text" name="docNo" id="docNo" value="<?php echo setValue('docNo',$row_rd->rdDocNo);?>" size="5" maxlength="10" />)                                 <font color="<?php echo $font_color_err;?>" size="2">*</font>                                 <br /><?php echo form_error('grdId') ? form_error('grdId') : form_error('docNo');?> <?php                                 } else { ?>                                 <font size="2"><?php echo $row_rd->rdGrade;?><?php if($row_rd->rdDocNo!='') { echo ' ('.$row_rd->rdDocNo.')';};?></font> <?php                                 } ?>                                 </td>                                 <td class="indent"><?php echo $row_rd->rdUpdateUserId;?></td>                                 <td align="center"> <?php                                 if(isset($flgShow) && $flgShow==$row_rd->coId) { ?>                                 <!-- <input type="submit" name="edit" id="edit" value="แก้ไข" onClick="return checkDocNo();" /> -->                                 <input type="submit" name="edit_bnt" id="edit_bnt" value="แก้ไข" />                                 <input type="hidden" name="coId" id="coId" value="<?php echo $row_rd->coId;?>" /> <?php                                 } else { ?>                                 <img src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0" class="hand" onClick="sendPost(                                 'hidform',                                 {'coId':<?php echo $row_rd->coId;?>,                                  'stdId':<?php echo setValue('stdId',$row_std);?>,                                  'stdCode':<?php echo setValue('stdCode',$row_std);?>,                                  'acY':<?php echo $acY;?>,                                  'tmId':<?php echo $tmId;?>,                                  'edit':<?php echo 1;?>},                                  '<?php echo site_url($this->config->item('rg_folder').'grade/editSendGrade');?>')" /> <?php                                 } ?>                                 </td>                             </tr> <?php                             $i++;                         }                     } else { ?>                             <tr>                                 <td height="22" colspan="6" align="center"><font color="<?php echo $font_color_err;?>" size="2">** ไม่ปรากฎรายการลงทะเบียนเรียนใน ปีการศึกษา <?php echo $acY;?> ภาคการศึกษา <?php echo $tmId;?> **</font></td>                             </tr> <?php                     } ?>                         </table></td>                     </tr>                     <tr> <?php                         if(isset($flgShow)) { ?>                         <td><input type="button" name="cancel" value="ยกเลิก" onClick="sendPost(                         'hidform',                         {'stdCode':<?php echo setValue('stdCode',$row_std);?>,                          'acY':<?php echo $acY;?>,                          'tmId':<?php echo $tmId;?>},                          '<?php echo site_url($this->config->item('rg_folder').'grade/editSendGrade');?>')" /></td> <?php                         } ?>                         <td align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>                     </tr> <?php                                     } ?>                 </table></td>             </tr>         </table><?php echo form_close();?></div></td>     </tr>     <tr>         <td><table class="mark">             <tr>                 <td class="coltd_mark"><span class="error"><b>หมายเหตุ : </b></span></td>                 <td><span class="error">คลิกที่ <img src="<?php echo base_url().$this->config->item("rg_edit");?>" align="absmiddle" border="0"> เพื่อแก้เกรดนักศึกษา</span></td>             </tr>             <tr>                 <td class="coltd_mark"></td>                 <td><span class="error">* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td>             </tr>         </table></td>     </tr> </table>
  |