Viewing file: v_showCurHaveStd_popup.php (2.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html> <head> <title>ตารางหลักสูตรและปีที่รับเข้า</title> <!---------------------------------------Begin JavaScript----------------------------------------> <script language="JavaScript"> function ReturnValue(curId,curName,stdAdY,stdTmIdAdmit,syId) { window.opener.document.myform.elements['curId'].value = curId; window.opener.document.myform.elements['curName'].value = curName; window.opener.document.myform.elements['adY'].value = stdAdY; window.opener.document.myform.elements['stdTmIdAdmit'].value = stdTmIdAdmit; //window.opener.document.myform.elements['syId'].value = syId; window.close(); } </script> </head> <body bgcolor="#FFFFFF"> <table class="headCol"> <tr> <th class="seqCol">ลำดับที่</th> <th>หลักสูตร</th> </tr> <?php $i = 0; if($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"><font class="hand" size="2" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->curId;?>","<?php echo $row->curName;?>","<?php echo $row->stdAdY;?>","<?php echo $row->stdTmIdAdmit;?>","<?php //echo $oSm->studentYear;?>")'><?php echo $i+1;?></font></td> <td class="indent"><font class="hand" size="2" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->curId;?>","<?php echo $row->curName;?>","<?php echo $row->stdAdY;?>","<?php echo $row->stdTmIdAdmit;?>","<?php //echo $oSm->studentYear;?>")'><?php echo explodeSquare($row->curName).' (ปีการศึกษา '.$row->stdAdY.')';?></font></td> </tr> <?php $i++; } } else { ?> <tr> <td colspan="2" align="center" bgcolor="#FFFFFF"><span class="error">** ไม่ปรากฏรายการดังกล่าวในฐานข้อมูล **</span></td> </tr> <?php } ?> </table> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td align="right"><font size="2">รวม <?php echo $i;?> รายการ</font></td> </tr> </body> </html>
|