Viewing file: v_addPersonPermission.php (3.73 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<table width="100%">
<tr>
<td>
<div align="center">
<table width="100%" border="0"><?php echo form_open($this->config->item("rg_folder")."bdcollege/pp_insert_update");?>
<tr>
<td align="center"><span class="h error">กำหนดผู้จัดตารางสอน</span></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="szone">
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">หลักสูตร</td>
<td>
<?php
$js1 = "id=\"curId\" onChange=\"sendPost('hidform', {'curId':this.value,'tm':".$tmId.",'acY':".$acY."}, '".site_url($this->config->item('rg_folder').'bdcollege/pp_input')."')\"";
echo form_dropdown('curId', $rs_cur, set_value('curId',$curId), $js1);
?>
</td>
</tr>
<tr bgcolor="<?php echo $tr_color_even;?>">
<td class="coltd_szone">ภาค/ปีการศึกษา</td>
<td>
<?php
$js2 = "id=\"tmId\" onChange=\"sendPost('hidform', {'tm':this.value,'curId':'".$curId."','acY':".$acY."}, '".site_url($this->config->item('rg_folder').'bdcollege/pp_input')."')\"";
echo form_dropdown('tmId', $rs_tm, set_value('tmId',$tmId), $js2);
?>
/
<?php
$js3 = "id=\"acY\" onChange=\"sendPost('hidform', {'acY':this.value,'curId':'".$curId."','tm':".$tmId."}, '".site_url($this->config->item('rg_folder').'bdcollege/pp_input')."')\"";
echo form_dropdown('acY', $rs_co, set_value('coAcY',$acY), $js3);
?>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table class="headCol">
<tr>
<th class="seqCol">ลำดับที่</th>
<th class="stdCodeCol">รหัสบุคลากร</th>
<th>ชื่อ-นามสกุลบุคลากร</th>
<th class="hourCol">ระบบจัดตารางสอน</th>
<th class="hourCol">ระบบภาระงานสอน</th>
</tr>
<?php
$i = 0;
if(isset($arr) && count($arr)) {
foreach($arr as $key => $val) {
echo "<tr onmouseover=\"bgColor='".$tr_color_even."'\" onmouseout=\"bgColor='".$this->config->item("rg_mouseout")."'\">";
?>
<td align="center"><?php echo $i+1;?></td>
<td align="center"><?php echo $arr[$key]['pp']->personCode;?>
<input type="hidden" name="prsId<?php echo $i;?>" id="prsId<?php echo $i;?>" value="<?php echo $arr[$key]['pp']->prsId;?>" /></td>
<td class="indent"><?php echo $arr[$key]['pp']->prefixName.$arr[$key]['pp']->fName.' '.$arr[$key]['pp']->lName;?></td>
<td align="center"><input type="checkbox" name="ppTT<?php echo $i;?>" id="ppTT<?php echo $i;?>" value="Y" <?php echo $arr[$key]['ppTT'];?> /></td>
<td align="center"><input type="checkbox" name="ppWL<?php echo $i;?>" id="ppWL<?php echo $i;?>" value="Y" <?php echo $arr[$key]['ppWL'];?> /></td>
<?php
$i++;
}
} else {
?>
<tr>
<td colspan="5" align="center"><span class="error">** ไม่ปรากฏรายการในฐานข้อมูล **</span></td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td colspan="2" align="right">รวม <?php echo $i;?> รายการ</font></td>
<tr>
<tr>
<td colspan="2" align="center">
<?php
$lnk = "<input type=\"submit\" name=\"add\" value=\"บันทึก\" />";
echo $oCRUD->CRUD($lnk, 'C');
?>
<input type="reset" name="clear" value="เคลียร์ข้อมูล" />
<input type="hidden" name="cnt" id="cnt" value="<?php echo $i;?>" />
</td>
</tr>
</table><?php echo form_close();?></div>
<br></td>
</tr>
</table>
|