Viewing file: v_stdCurAndStdAdYTable.php (1.86 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="JavaScript">
function ReturnValue(curId,curName,adY,tmIdAdmit,syId)
{
window.opener.document.myform.elements["curId"].value = curId;
window.opener.document.myform.elements["curName"].value = curName;
window.opener.document.myform.elements["adY"].value = adY;
window.opener.document.myform.elements["tmIdAdmit"].value = tmIdAdmit;
window.opener.document.myform.elements["syId"].value = syId;
window.close();
}
</script>
</head>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><table class="headCol">
<tr>
<th class="seqCol">ลำดับที่</th>
<th>หลักสูตร</th>
</tr>
<?php
$i = 0;
if(isset($rs_stdCur) && $rs_stdCur->num_rows()) {
foreach($rs_stdCur->result() as $row) {
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td align="center"><span class="hand" onClick='ReturnValue("<?php echo $row->curId;?>","<?php echo $row->curName;?>","<?php echo $row->stdAdY;?>","<?php echo $row->stdTmIdAdmit;?>","<?php echo $row->stdSyId;?>")'><?php echo $i+1;?></span></td>
<td class="indent"><span class="hand" onClick='ReturnValue("<?php echo $row->curId;?>","<?php echo explodeSquare($row->curName);?>","<?php echo $row->stdAdY;?>","<?php echo $row->stdTmIdAdmit;?>","<?php echo $row->stdSyId;?>")'><?php echo $row->curName.' (ปีการศึกษา '.$row->stdAdY.')';?></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>
</html>
|