Viewing file:      v_addResultExamOcc.php (3.96 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<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")."graduate4/processResultExamOcc", array("name" => "myform", "id" => "myform"));?>
             <table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
                 <tr>
                     <td align="center"><span class="h error">บันทึก</span></td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr>
                     <td colspan="2">
                         <table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
                         <tr><td colspan="2"><table class="szone">
                                 <tr bgcolor="<?php echo $tr_color_even;?>">
                                     <td class="coltd_szone">หลักสูตร</td>
                                     <td><?php echo $qu_cur->row()->curName;?>
                                     <input type="hidden" name="curId" id="curId" value="<?php echo $qu_cur->row()->curId;?>"></td>
                                 </tr>
                                 <tr bgcolor="<?php echo $tr_color_even;?>">
                                     <td class="coltd_szone">ปีที่จบการศึกษา</td>
                                     <td><?php echo $graduateY;?><input type="hidden" name="graduateY" id="graduateY"value="<?php echo $graduateY;?>" /></td>
                                 </tr>
                             </table></td>
                         </tr>
                         <tr>
                             <td><br /></td>
                         </tr>
                         <tr>
                             <td>
                             <table class="headCol">
                                 <tr>
                                     <th>ลำดับที่</th>
                                     <th>รหัสนักศึกษา</th>
                                     <th>ชื่อนักศึกษา</th>
                                     <th>ผลการสอบ</th>
                                 </tr>
 <?php
                     $i = 0;
                     if(isset($rs_std) && $rs_std->num_rows()) {
                         foreach($rs_std->result() as $row) {
                         echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                                     <td align="center" height="22"><?php echo $i+1;?><input type="hidden" name="stdId<?php echo $i;?>" id="stdId<?php echo $i;?>" value="<?php echo $row->stdId;?>"></td>
                                     <td align="center"><?php echo $row->stdCode;?></td>
                                     <td class="indent"><?php echo $row->prefixName.$row->stdName.' '.$row->stdSurname;?></td>
                                     <td align="center">
                                     <input type="radio" id="sdtOccExamResult<?php echo $i;?>" name="sdtOccExamResult<?php echo $i;?>" value="P" <?php if(setValue('sdtOccExamResult',$row)=='P') echo 'checked';?> /> P:ผ่าน 
                                     <input type="radio" id="sdtOccExamResult<?php echo $i;?>" name="sdtOccExamResult<?php echo $i;?>" value="N" <?php if(setValue('sdtOccExamResult',$row)=='F') echo 'checked';?> /> F:ไม่ผ่าน</td>
                                 </tr>
 <?php
                             $i++;
                         }
                     } else {
 ?>
                                     <tr>
                                         <td colspan="4" align="center" height="22"><span class="error">** ไม่ปรากฏรายการข้อมูลนักศึกษาในหลักสูตรหรือท่านอาจจะดำเนินการในส่วนนี้แล้ว<br>กรุณากลับไปเมนูข้อมูลนักศึกษาเพื่อแก้ไขผลการสอบวิชาชีพรายนักศึกษา
                                         <?php echo anchor($this->config->item("rg_folder")."studentinfo/std_showInfo",'คลิกที่นี่');?> **</span></td>
                                     </tr>
 <?php                            
                     }
 ?>
                                 </table></td>
                             </tr></table></td>
                 </tr>
                 <tr>
                     <td align="right" colspan="2">รวม <?php echo $i;?> รายการ</td>
                 </tr>
                 <tr><td colspan="2"> </td></tr>
                 <tr>                
                     <td align="center" colspan="2">
                     <input type="submit" name="edit" value="บันทึก" <?php if($i==0){ echo 'disabled';}?>>
                     <input type="reset" name="clear" value="เคลียร์ข้อมูล"<?php if($i==0){ echo 'disabled';}?>>
                     <input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>"></td>
                 </tr>
             </table><?php echo form_error();?></div>
         </td>
     </tr>
 </table>
  |