Viewing file:      v_levelEduTable.php (2.58 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<script language="JavaScript">
 function ReturnValue(leduId,leduName)
 {
     window.opener.document.myform.elements["leveleduId"].value = leduId;
     window.opener.document.myform.elements["leveleduName"].value = leduName;
     window.close();
 }
 </script>
 <table width="100%"><?php echo form_open($this->config->item("ea_folder")."popup/lvEdu_popup_search");?><br/>
     <tr> 
         <td align="center">
         <font size="2"><b>ชื่อระดับการศึกษา:</b></font>
         <input type="text" name="levelName" id="levelName" size="14" value="<?php echo set_value('levelName');?>" />
         <input type="submit" name="search" value="ค้นหา" />
         </td>
         
     </tr>
 </table>
 <table width="100%">
     <tr>
         <td height="22" colspan="4"></td>
     </tr>
  <?php
 if(isset($rs_lv) && $rs_lv->num_rows() > $this->config->item("ea_max_row")) {
 ?>
     <tr>
         <td height="30" colspan="3"><div class="boxBlock leftBox"><font size="2"><b>
         แสดง <?php echo $this->config->item("ea_max_row");?> รายการจาก <?php echo isset($rs_lv) ?    $rs_lv->num_rows() : '';?> รายการ</b></font>
         </div></td>
     </tr>
 <?php
         }
 ?>
     <tr bgcolor="<?php echo $this->config->item("rg_table_color");?>"> 
         <td width="10%" align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ลำดับที่</b></font></td>
         <td  align="center"><font size="2" color="<?php echo $font_color_table;?>"><b>ชื่อระดับการศึกษา</b></font></td>
     </tr>
 <?php
 $i = 0;
 if($rs_lv->num_rows()) {
     foreach($rs_lv->result() as $row) {
     if($i >= $this->config->item("ea_max_row"))
             break;
         echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
 ?>
         <td align="center" onClick="ReturnValue(<?php echo $row->leduId;?>,'<?php echo $row->leduName;?>')" onMouseOver="this.style.cursor='pointer'"><font size="2"><?php echo $i+1;?></font></td>
         <td onClick="ReturnValue(<?php echo $row->leduId;?>,'<?php echo $row->leduName;?>')" onMouseOver="this.style.cursor='pointer'"><font size="2">  <?php echo $row->leduName;?></font></td>
     </tr>
 <?php
             $i++;
         }
     } else {
 ?>
     <tr>
         <td colspan="4" align="center"><font size="2" color="<?php echo $font_color_err;?>">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</font></td>
     </tr>
 <?php
     }
 ?>
     <tr bgcolor="silver">
         <td colspan="4" align="right"><font size="2">รวม <?php echo $rs_lv->num_rows();?> รายการ</font></td>
     </tr>
     <?php echo form_close();?>
 </table>
  |