Viewing file: v_add_club_pos.php (3.5 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$_image_reply = array(
'src' => 'images/reply.gif',
'width' => '15',
'height' => '15',
'border' => '0',
'title' => 'แก้ไขข้อมูล'
);
$_image_del = array(
'src' => 'images/action_delete.gif',
'width' => '15',
'height' => '15',
'border' => '0',
'title' => 'ลบข้อมูล'
);
?>
<?php echo form_open('esa/base_data/add_club_pos');?>
<table class='tb_1' width="40%" border="0">
<tr >
<th align="center" colspan="2">ข้อมูลตำแหน่งในชมรม</th>
</tr>
<tr class='light'>
<td width="35%" align="right">ลำดับ <font color='red'>*</font>: </td>
<td width="65%" >
<input type="hidden" name="pos_id" id="pos_id" value="<?php echo getval('pos_id', $pos);?>" size="20" />
<input type="hidden" name="pos_type" id="pos_type" value="2" size="20" />
<input type="text" name="pos_seq" id="pos_seq" value="<?php echo getval('pos_seq', $pos);?>" size="20" />
<?php echo form_error('pos_seq'); ?>
</td>
</tr>
<tr class='light'>
<td width="35%" align="right">ชื่อตำแหน่ง <font color='red'>*</font>: </td>
<td width="65%" >
<input type="text" name="pos_name" id="pos_name" value="<?php echo getval('pos_name', $pos);?>" size="20" />
<?php echo form_error('pos_name'); ?>
</td>
</tr>
<tr class='light1'>
<td align="right" >สถานะ <font color='red'>*</font>: </td>
<td>
<input type="radio" name="pos_status" id="pos_status" value="<?php echo getval('pos_status', $pos);?>" size="20" /> ใช้
<input type="radio" name="pos_status" id="pos_status" value="<?php echo getval('pos_status', $pos);?>" size="20" /> ไม่ใช้
<?php echo form_error('pos_status'); ?>
</td>
</tr>
<tr >
<td colspan="2" height=22><?php echo form_error('error_name'); ?></td>
</tr>
<tr >
<td colspan="2" align="center">
<input type="submit" name="add" value="บันทึก" /></td>
</tr>
<tr >
<td colspan="2" height=22></td>
</tr>
</table><?php echo form_close();?>
<table class='tb_1' width="70%" border="0">
<tr>
<td colspan="5" height="22"></td>
</tr>
<tr>
<th align="center">ลำดับที่</th>
<th align="center">ชื่อตำแหน่ง</th>
<th align="center">สถานะ</th>
<th align="center">แก้ไข</th>
<th align="center">ลบ</th>
</tr>
<?php
if ($rs_pos->num_rows > 0) {
foreach ($rs_pos->result() as $row) {
?>
<tr>
<td align="center"><font size="2"><b><?php echo getval('pos_seq', $row);?></b></font></td>
<td align="center"><font size="2"><b><?php echo getval('pos_name', $row);?></b></font></td>
<td align="center"><font size="2"><b><?php echo getval('pos_status', $row);?><b></font></td>
<td align="center"><font size="2"><b><?php anchor('esa/base_data/club_pos/FALSE/'.getval('pos_id', $row),img($_image_reply))?></b></font></td>
<td align="center"><font size="2"><b><?php anchor('esa/base_data/del_pos/'.getval('pos_type', $row).'/'.getval('pos_id', $row),img($_image_del))?></b></font></td>
</tr>
<?php
}
} else {
?>
<tr>
<td colspan="5" height="22" align="center" bgcolor="#D1DCF3">ไม่พบชื่อตำแหน่ง</td>
</tr>
<?php
}
?>
</table>
|