Viewing file: v_addCtc.php (3.29 KB) -rwxr-xr-x 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;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<div align="center"><br>
<?php echo form_open($this->config->item("rg_folder")."officer/ctc_insert");?>
<table width="100%" align="center" cellpadding="0" cellspacing="1" border="0">
<tr>
<td align="center"><span class="h" style="color:<?php echo $font_color_err;?>">เพิ่ม/แก้ไขอาจารย์ประจำชั้น</span></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone"><span><b>หลักสูตร</b></span></td>
<td><span><?php echo getval('curName', $row_cur);?>
<input type="hidden" id="curId" name="curId" value="<?php echo getval('curId', $row_cur);?>"></span></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone"><span><b>ชั้นปีที่</b></span></td>
<td><span><?php echo getval('syCode', $row_sy);?>
<input type="hidden" id="syId" name="syId" value="<?php echo getval('syId', $row_sy);?>"></span></td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone"><span><b>ปีการศึกษา</b></span></td>
<td><span><?php echo $acY;?></span>
<input type="hidden" id="acY" name="acY" value="<?php echo $acY;?>"></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="headCol">
<tr>
<th class="editCol"><span>เลือก</span></th>
<th class="stdCodeCol"><span>รหัสอาจารย์</span></th>
<th><span>ชื่อ-สกุลอาจารย์</span></th>
</tr>
<?php
if ($rs) {
foreach ($rs as $key => $val) {
$row_prs = $rs[$key]['qu_prs']->row();
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td align="center"><input type="checkbox" id="prsId[]" name="prsId[]" value="<?php echo $row_prs->prsId;?>" <?php echo $rs[$key]['dsb'].' '.$rs[$key]['chk'];?> /></td>
<td align="center"><span><?php echo $row_prs->personCode;?></span></td>
<td class="indent"><span><?php echo $row_prs->name;?></span></td>
</tr>
<?php
}
} else {
?>
<tr>
<td align="center" colspan="3"><span style="color:<?php echo $font_color_err;?>">** ไม่ปรากฏรายชื่ออาจารย์ในฐานข้อมูล **</span></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td colspan="2" align="center"><br />
<input type="submit" name="submit" value="บันทึก" />
<input type="reset" name="clear" value="เคลียร์ข้อมูล" /></td>
</tr>
</table><?php echo form_close();?></div>
<span style="color:<?php echo $font_color_err;?>"><b>หมายเหตุ : </b>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</span></td>
</tr>
</table>
|