Viewing file: v_showPreCourse.php (4.77 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $row_cur = isset($qu_cur) ? $qu_cur->row() : NULL; $row_sy = isset($qu_sy) ? $qu_sy->row() : NULL; $row_tm = isset($qu_tm) ? $qu_tm->row() : NULL; ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><br> <div align="center"><br> <?php echo form_open($this->config->item('rg_folder').'checkregis/rd_updateAllowPr', array('id' => 'myform', 'name' => 'myform'));?> <table class="szone"> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">หลักสูตร</td> <td width="80%"><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo getval('curName', $row_cur);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ปีการศึกษาที่รับเข้า</td> <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $adY;?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ชั้นปีที่</td> <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo getval('syCode', $row_sy);?></font></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ปีการศึกษา</td> <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo $acY;?></font> <input type="hidden" name="acY" value="<?php echo $acY;?>"></td> </tr> <tr bgcolor="<?php echo $tr_color_even;?>"> <td class="coltd_szone">ภาคการศึกษา</td> <td><font size="2" color="<?php //echo $GLOBALS['COLOR_FONT_4'];?>"><?php echo getval('tmCode', $row_tm);?></font> <input type="hidden" id="tmId" name="tmId" value="<?php echo getval('tmId', $row_tm);?>" /></td> </tr> <tr> <td colspan="2"><br /></td> </tr> <tr> <td colspan="2"><table class="headCol"> <tr bgcolor="<?php //echo $GLOBALS["COLOR_BG_TABLE_2"];?>"> <th class="stdCodeCol">รหัสนักศึกษา</td> <th>ชื่อ-นามสกุลนักศึกษา</td> <th>รายวิชาลงทะเบียน</td> <th>รายวิชาที่ต้องเรียนก่อน</td> </tr> <?php $num_rows = count($rs); if ($num_rows) { foreach ($rs as $key => $val) { $row_std = isset($rs[$key]['qu_std']) ? $rs[$key]['qu_std']->row() : NULL; $row_co = isset($rs[$key]['qu_co']) ? $rs[$key]['qu_co']->row() : NULL; $row_rf = isset($rs[$key]['rs_rf']) ? $rs[$key]['rs_rf']->row() : NULL;
if (($key % 2) == 0) echo "<tr>"; else //echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">"; ?> <td align="center"><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo getval('stdCode', $row_std);?></font> <input type="hidden" name="rdStdId[<?php echo $key;?>]" value="<?php echo getval('stdId', $row_std);?>" /></td> <td class="indent"><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo getval('prefixName', $row_std).getval('stdName', $row_std).' '.getval('stdSurname', $row_std);?></font></td> <td><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo getval('crsCode', $row_co);?></font> <input type="hidden" name="rdCoId[<?php echo $key;?>]" value="<?php echo getval('coId', $row_co);?>" /></td> <td><font size="2" color="<?php //echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo isset($rs[$key]['prNames']) ? $rs[$key]['prNames'] : '';?></font></td> <td align="center"> <?php if (getval('rfBalance', $row_rf) > 0) { ?> <input type="checkbox" name="rdAllowPr[<?php echo $key;?>]" value="Y" <?php echo (isset($rs[$key]['rdAllowPr']) && ($rs[$key]['rdAllowPr'] == 'Y')) ? 'checked' : '';?> /> <?php } ?> <input type="hidden" name="rdSeq[<?php echo $key;?>]" value="<?php echo isset($rs[$key]['rdSeq']) ? $rs[$key]['rdSeq'] : '';?>" /></td> </tr> <?php } } ?> </table></td> </tr> <?php if ($num_rows == 0) { ?> <tr> <td colspan="2" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td> </tr> <?php } ?> <tr> <td colspan="2" align="center"><br/><br/><input type="submit" name="edit" value="บันทึก" <?php echo ($num_rows) ? '' : 'disabled';?> /> <input type="reset" name="clear" value="เคลียร์ข้อมูล" /> <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = 'prc_check'" /> <input type="hidden" name="cnt" value="<?php echo $num_rows;?>" /></td> </tr> </table><?php echo form_close();?></div> <br></td> </tr> </table>
|