Viewing file: v_educationTable.php (2.82 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript">
function ReturnValue(educationId,educationName)
{
window.opener.document.myform.elements["hedEduId"].value = educationId;
window.opener.document.myform.elements["educationName"].value = educationName;
window.close();
}
</script>
<table width="100%">
<tr>
<td><?php echo form_open($this->config->item("ea_folder")."popup/edu_popup_search");?><table class="szone">
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td class="coltd_szone">สถาบันการศึกษา</td>
<td><input type="text" name="educationName" id="educationName" value="<?php echo set_value('educationName');?>" size="30" maxlength="100" />
<span class="error"><?php echo form_error('educationName');?></span></td>
</tr>
<tr bgcolor="<?php echo $this->config->item('tr_c_even');?>">
<td colspan="2" align="center">
<input type="submit" name="search" id="search" value="ค้นหา" />
<input type="reset" name="clear" id="clear" value="เคลียร์ข้อมูล" /></td>
</tr>
</table><?php echo form_error();?></td>
</tr>
</table>
<table width="100%">
<?php
if(isset($rs_edu) && $rs_edu->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_edu) ? $rs_edu->num_rows() : '';?> รายการ</b></font>
</div></td>
</tr>
<?php
}
?>
<tr>
<td><table class="headCol">
<tr bgcolor="<?php echo $this->config->item('table_c_even');?>">
<th class="seqCol">ลำดับที่</th>
<th>สถานบันการศึกษา</th>
</tr>
<?php
$i = 0;
if(isset($rs_edu) && $rs_edu->num_rows()) {
foreach($rs_edu->result() as $row_edu) {
if($i >= $this->config->item("ea_max_row"))
break;
echo "<tr onmouseover=\"bgColor='".$this->config->item('tr_c_even')."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td align="center" onClick="ReturnValue('<?php echo $row_edu->educationId;?>', '<?php echo $row_edu->educationName;?>')"><span class="hand"><?php echo $i+1;?></span></td>
<td class="indent" onClick="ReturnValue('<?php echo $row_edu->educationId;?>', '<?php echo $row_edu->educationName;?>')"><span class="hand"><?php echo $row_edu->educationName;?></span></td>
</tr>
<?php
$i++;
}
} else {
?>
<tr>
<td colspan="2" align="center"><span class="error">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</span></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td>
</tr>
</table>
|