Viewing file: v_coAndRdTable.php (5.79 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<html> <head> <title>ตารางรายวิชาที่เปิดสอนแต่ยังไม่ลงทะเบียน</title> <script language="JavaScript"> function ReturnValue(coId,crsCode,crsName,crsUnit,coSection,timeTable,crsCreditTotal,crsCredit1,crsCredit2,crsCdId,coCdId2) { window.opener.document.myform.elements["rdCoId"].value = coId; window.opener.document.myform.elements["crsCode"].value = crsCode; window.opener.document.myform.elements["crsName"].value = crsName; window.opener.document.myform.elements["crsUnit"].value = crsUnit; window.opener.document.myform.elements["rdSection"].value = coSection; window.opener.document.myform.elements["timeTable"].value = timeTable; window.opener.document.myform.elements["rdCreditAttempt"].value = crsCreditTotal; window.opener.document.myform.elements["rdCredit1"].value = crsCredit1; window.opener.document.myform.elements["rdCredit2"].value = crsCredit2; window.opener.document.myform.elements["rdCdId1"].value = crsCdId; window.opener.document.myform.elements["rdCdId2"].value = coCdId2; window.close(); } </script> </head> <body bgcolor="#FFFFFF"> <?php echo form_open($this->config->item("rg_folder")."popup/coAndRd_popup", array("name" => "myform", "id" => "myform"));?> <table width="100%"> <tr> <td colspan="6"><font face="Microsoft Sans Serif" size="2"><b>รหัสรายวิชา</b></font> <input type="text" name="crsCode" size="11"> <input type="submit" name="search" value="ค้นหา"> <input type="hidden" name="stdId" id="stdId" value="<?php echo $stdId;?>"> <input type="hidden" name="curId" id="curId" value="<?php echo $curId;?>"> <input type="hidden" name="acY" id="acY" value="<?php echo $acY;?>"> <input type="hidden" name="syId" id="syId" value="<?php echo $syId;?>"> <input type="hidden" name="tmId" id="tmId" value="<?php echo $tmId;?>"></td> </tr> <tr> <table class="headCol"> <tr> <th class="seqCol">ลำดับที่</th> <th>รายวิชา</th> <th class="acYCol">หน่วยกิต</th> <th class="seqCol">กลุ่ม</th> <th>วัน/เวลา</th> <th class="seqCol">รับ/ลง</th> </tr> <?php $num_rows = count($rs); if ($num_rows) { foreach ($rs as $key => $val) { echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">"; $row = $rs[$key]->row(); ?> <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $key + 1;?></font></td> <td class="indent"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->crsCode.' '.$row->crsName;?></font></td> <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->crsUnit;?></font></td> <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->coSection;?></font></td> <td><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php //echo $timeTable;?></font></td> <td align="center"><font size="2" face="Microsoft Sans Serif" style="CURSOR: hand" onClick='ReturnValue("<?php echo $row->coId;?>","<?php echo $row->crsCode;?>","<?php echo $row->crsName;?>","<?php echo $row->crsUnit;?>","<?php echo $row->coSection;?>","<?php //echo $timeTable;?>","<?php echo $row->crsCreditTotal;?>","<?php echo $row->crsCredit1;?>","<?php echo $row->crsCredit2;?>","<?php echo $row->crsCdId;?>","<?php echo $row->coCdId2;?>")'><?php echo $row->coNumSeatOpen.'/'.$row->coNumSeatReg;?></font></td> </tr> <?php } } else { ?> <tr> <td colspan="6" 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 face="Microsoft Sans Serif" size="2">รวม <?php echo $num_rows;?> รายการ</font></td> </tr> </table><?php echo form_close();?> </body> </html>
|