Viewing file:      v_beforeShowClassStudy.php (3.58 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
 ini_set('display_errors', 1);
 ?>
 <table width="100%">
     <tr>
         <td><!--<fieldset>!-->
             <div align="center"><br><form name="std" id="std" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"><table width="100%" class="szone">
                 <tr>
                     <td align="center" colspan="3"><span class="h error">ตารางเรียน/สอบ</span></td>
                 </tr>
                 <tr>
                     <td colspan="3"> </td>
                 </tr>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td class="coltd_szone">รหัสนักศึกษา 
                     <input type="text" name="stdCode" size="30" maxlength="10"></td>
                     <td class="coltd_szone">ชื่อ 
                     <input type="text" name="stdName" size="30"></td>
                     <td class="coltd_szone">นามสกุล 
                     <input type="text" name="stdSurname" size="30">
                     </td>
                 </tr>
 <?
     if(isset($str_fault)) {
 ?>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td colspan="3" align="center"><span class="error"><?php echo $str_fault;?></span></td>
                 </tr>
 <?}?>
                 <tr bgcolor="<?php echo $tr_color_even;?>">
                     <td colspan="3" align="center"><input type="submit" name="search" value="ค้นหา">
                     <input type="reset" name="clear" value="เคลียร์ข้อมูล"></td>
                 </tr>
                 <tr>
                     <td height="22" colspan="3"></td>
                 </tr>    
                 <tr>
                     <td colspan="3"><table width="50%" align="center" class="headCol">
                         <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>">
                             <th class="stdCodeCol">รหัสนักศึกษา</th>
                             <th class="teacherCol">ชื่อ-นามสกุล</th>
                         </tr>
 <?php
                         $flagFound = 0;
                         $i = 0;
                         if(isset($rs_std) && $rs_std!=NULL) {
                             foreach($rs_std->result() as$row_std){
                                     echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
                             <td align="center"><?php echo $row_std->stdCode;?></td>
                             <td class="indent"><a href="javascript:void(0)" onClick="sendPost('hidform',{'stdId':'<?echo $row_std->stdId;?>'},'<?echo ($this->session->userdata('UsPsCode'))? site_url($this->config->item("rg_folder").'timetable2/showTimeTableSt'):site_url($this->config->item("rg_folder").'general/showTimeTableSt');?>');"><?php echo $row_std->prefixName.$row_std->stdName.' '.$row_std->stdSurname;?></a></td>
                         </tr>
 <?php                                                
                                 $flagFound = 1;
                                 $i++;
                             }
                             
                             if($i == 0) {                    
 ?>
                         <tr>
                             <td colspan="2" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                         </tr>
 <?php
                             }
                         }
                         else {
 ?>
                         <tr>
                             <td colspan="2" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                         </tr>
 <?php
                         }
 ?>
                     </table></td>
                 </tr>
             </table></form></div>
         <!--</fieldset>!--></td>
     </tr>
     <tr><td align="right">รวม <?php echo $i;?> รายการ</td></tr>
     <tr><td><br><span class="error"><b>หมายเหตุ : </b>
 <?php
         if(!$flagFound)
             echo 'ระบุรหัส ชื่อ หรือนามสกุลนักศึกษา เพื่อดูข้อมูลตารางเรียนของนักศึกษา';
         else
             echo 'คลิกที่ชื่อ-นามสกุลนักศึกษา เพื่อดูข้อมูลตารางเรียนของนักศึกษา';
 ?>
         </span></td></tr>
 </table>
  |