Viewing file:      v_searchStudentHis.php (4.12 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")."studenthis/std_searchHis", array("name" => "myform", "id" => "myform"));?>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td height="25" class="indent"><font size="2"><b>รหัสนักศึกษา</b>                             <input type="text" name="stdCode" id="stdCode" value="<?php echo set_value('stdCode');?>" maxlength="10" class="required-int" /></td>                             <td height="25" class="indent"><font size="2"><b>ชื่อนักศึกษา</b>                             <input type="text" name="stdName" id="stdName" value="<?php echo set_value('stdName');?>" maxlength="30" /></td>                             <td height="25" class="indent"><font size="2"><b>ชื่อสกุลนักศึกษา</b>                             <input type="text" name="stdSurname" id="stdSurname" value="<?php echo set_value('stdSurname');?>" maxlength="30" class="required-int" /></td>                         </tr> <?php                         if(isset($str_fault)) { ?>                         <tr bgcolor="<?php echo $tr_color_even;?>">                             <td height="25" colspan="3" align="center"><font color="<?php echo $this->config->item('rg_font_color_err');?>"><?php echo $str_fault;?></font></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"><font size="2" color="<?php echo $font_color_table;?>">รายชื่อนักศึกษา</font></th>                         </tr>                         <tr>                             <th class="stdCodeCol"><font size="2" color="<?php echo $font_color_table;?>">รหัสนักศึกษา</font></th>                             <th><font size="2" color="<?php echo $font_color_table;?>">ชื่อ-นามสกุล</font></th>                             <th><font size="2" color="<?php echo $font_color_table;?>">หลักสูตร</font></th>                             <th class="groupCol"><font size="2" color="<?php echo $font_color_table;?>">ชั้นปี</font></th>                             <th><font size="2" color="<?php echo $font_color_table;?>">สถานะนักศึกษา</font></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"><font size="2"><?php echo $row->stdCode;?></font></td>                             <td class="indent"><font size="2">                             <span class="hand" onClick="sendPost('hidform',                             {'stdId':<?php echo $row->stdId;?>},                             '<?php echo site_url($this->config->item('rg_folder').'studenthis/std_editStdMBHis');?>')" /><?php echo $row->prefixName.$row->stdName.' '.$row->stdSurname;?></span>                             </font></td>                             <td class="indent"><font size="2"><?php echo $row->curName;?></font></td>                             <td align="center"><font size="2"><?php echo $row->syCode;?></font></td>                             <td align="center"><font size="2"><?php echo $row->sstName;?></font></td>                         </tr> <?php                         $i++;                     }                 } else { ?>                         <tr>                             <td colspan="5" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td>                         </tr> <?php                 } ?>                     </table></td>                 </tr>                 <tr>                     <td colspan="5" align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>                 </tr>             </table></div>         <br><font color="<?php echo $font_color_err;?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อนักศึกษาเพื่อดูข้อมูลประวัตินักศึกษา<br></font><br></td>     </tr> </table>
  |