Viewing file: v_showRegisCurriculum.php (4.2 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<div align="center">
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td align="center" colspan="2"><span class="h error">ลงทะเบียนเรียนรายกลุ่ม/ชั้นปี</span></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="1" align="center">
<tr bgcolor="<?php echo $this->config->item('rg_head_tb_headCol');?>">
<td width="40%" align="center" height="22"><span class="fontT"><b>ชั้นปี</b></span></td>
<td width="60%" align="center">
<table width="100%">
<tr>
<?php
foreach($rs_sy->result() as $row_sy) {
?>
<td align="center"><font size="2" color="<?php echo $font_color_table;?>"><b><?php echo $row_sy->syCode;?></b></font></td>
<?php
}
?>
</tr>
</table></td>
</tr>
<tr bgcolor="<?php echo $this->config->item("rg_head_tb_headCol");?>">
<td align="center" height="22"><span class="fontT"><b>ภาคการศึกษา</span></td>
<td align="center"><table width="100%">
<tr>
<?php
for ($i = 1; $i <= $rs_sy->num_rows(); $i++) {
foreach ($rs_tm->result() as $row_tm) {
?>
<td width='5%' align="center"><font size="2" color="<?php echo $font_color_table;?>"><b><?php echo $row_tm->tmCode;?></b></font></td>
<?php
}
}
?>
</tr>
</table></td>
</tr>
<?php
if (count($rs)) {
foreach ($rs as $key => $val) {
if ($rs[$key]['level'] == 0) {
?>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td height="22"><font size="2"><?php echo $rs[$key]['name'];?></font></td>
<td colspan="<?php echo $rs_sy->num_rows();?>" align="center"></td>
</tr>
<?php
} else if ($rs[$key]['level'] == 1) {
?>
<tr>
<td>
<img src="<?php echo base_url().$this->config->item("rg_ico3");?>" align="absmiddle" border="0" /><font size="2">ปีการศึกษา <?php echo $rs[$key]['name'];?></font></td>
<td align="center">
<table width="100%">
<tr>
<?php
for ($i = 0; $i < count($rs[$key]['link']); $i++) {
if ($rs[$key]['link'][$i] == 1) {
$link = "<img src=\"".base_url().$this->config->item('rg_edit_yell')."\" width=\"23\" height=\"19\" align=\"absmiddle\" border=\"0\" onClick=\"sendPost('hidform', ".$rs[$key]['url'][$i].", '".site_url($this->config->item("rg_folder").'regis/addRegisCur')."')\" class=\"hand\" />";
} else if ($rs[$key]['link'][$i] == 2) {
$link = "<img src=\"".base_url().$this->config->item('rg_edit')."\" width=\"23\" height=\"19\" align=\"absmiddle\" border=\"0\" onClick=\"sendPost('hidform', ".$rs[$key]['url'][$i].", '".site_url($this->config->item("rg_folder").'checkregis/showRegisFee')."')\" class=\"hand\" />";
} else {
$link = '-';
}
?>
<td width="5%" align="center"><?php echo $link;?></td>
<?php
}
?>
</tr>
</table>
</tr>
<?php
} // end if level
} // end foreach
} // end if count
?>
</table></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table></div><br></td>
</tr>
<tr align="center">
<td colspan="2"><?php echo $this->session->flashdata('success_msg');?></td>
</tr>
<tr>
<td><table class="mark">
<tr>
<td class="coltd_mark"><span class="error"><b>หมายเหตุ :</b></span></td>
<td><img src="<?php echo base_url().$this->config->item('rg_edit_yell');?>" width="23" height="19" align="absmiddle" border="0" /><span class="error"> หมายถึง ยังไม่ลงทะเบียน</span></td>
</tr>
<tr>
<td height="22"></td>
<td><img src="<?php echo base_url().$this->config->item('rg_edit');?>" width="23" height="19" align="absmiddle" border="0" />
<span class="error"> หมายถึง ลงทะเบียนแล้ว</span></td>
</tr>
</table></td>
</tr>
</table>
|