Viewing file:      v_searchStudentInfo.php (3.51 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<table width="100%" align="center">
     <tr>
         <td>
             <div align="center">
             <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
                 <tr>
                     <td><table class="szone">
                     <?php echo form_open($this->config->item("rg_folder")."studentinfo/std_searchInfo", array("name" => "myform", "id" => "myform"));?>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td height="25" class="indent"><b>รหัสนักศึกษา</b>
                             <input type="text" name="stdCode" id="stdCode" value="<?php echo set_value('stdCode');?>" maxlength="10" /></td>
                             <td height="25" class="indent"><b>ชื่อนักศึกษา</b>
                             <input type="text" name="stdName" id="stdName" value="<?php echo set_value('stdName');?>" maxlength="30" /></td>
                             <td height="25" class="indent"><b>ชื่อสกุลนักศึกษา</b>
                             <input type="text" name="stdSurname" id="stdSurname" value="<?php echo set_value('stdSurname');?>" maxlength="30" /></td>
                         </tr>
 <?php
                         if(isset($str_fault)) {
 ?>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td height="25" colspan="3" align="center"><span class="error"><?php echo $str_fault;?></span></td>
                         </tr>
 <?php
                         }
 ?>
                         <tr bgcolor="<?php echo $tr_color_even;?>">
                             <td colspan="3" align="center">
                             <input type="submit" name="search" id="search" value="ค้นหา" />
                             <input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" />
                             </td>
                         </tr>
                     <?php echo form_close();?></table></td>
                 </tr>
                 <tr>
                     <td><br /></td>
                 </tr>
                 <tr>
                     <td><table class="headCol">
                         <tr>
                             <th colspan="5">รายชื่อนักศึกษา</th>
                         </tr>
                         <tr>
                             <th class="stdCodeCol">รหัสนักศึกษา</th>
                             <th>ชื่อ-นามสกุล</th>
                             <th>หลักสูตร</th>
                             <th class="groupCol">ชั้นปี</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"><?php echo $row->stdCode;?></td>
                             <td class="indent">
                             <span class="hand" onClick="sendPost('hidform',
                             {'stdId':<?php echo $row->stdId;?>},
                             '<?php echo site_url($this->config->item('rg_folder').'studentinfo/std_editStdMBInfo');?>')" /><?php echo $row->prefixName.$row->stdName.' '.$row->stdSurname;?></span>
                             </td>
                             <td class="indent"><?php echo $row->curName;?></td>
                             <td align="center"><?php echo $row->syCode;?></td>
                             <td align="center"><?php echo $row->sstName;?></td>
                         </tr>
 <?php
                         $i++;
                     }
                 } else {
 ?>
                         <tr>
                             <td colspan="5" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
                         </tr>
 <?php
                 }
 ?>
                     </table></td>
                 </tr>
                 <tr>
                     <td colspan="5" align="right">รวม <?php echo $i;?> รายการ</td>
                 </tr>
             </table></div>
         <br><span class="error"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อนักศึกษาเพื่อดูข้อมูลประวัตินักศึกษา</span></td>
     </tr>
 </table>
  |