Viewing file: v_add_initialbudget.php (2.2 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_ib = (isset($qu_ib) && $qu_ib!=NULL) ? $qu_ib->row() : NULL;
$ib_bgY = '';
$ib_id = '';
if($row_ib!=NULL) {
$ib_bgY = $row_ib->ib_bgY;
$ib_id = $row_ib->ib_id;
}
?>
<table width="100%">
<tr>
<td align="center"><h3>ปีงบประมาณ</h3></td>
</tr>
<tr>
<td><table id="table_input" class='szone2' width="60%">
<?php echo form_open('esa/base_data/ib_insert_update');?>
<tr>
<td width="20%"><b>ปีงบประมาณ</b></td>
<td><input type="text" name="ib_bgY" id="ib_bgY" value="<?php echo set_value('ib_bgY',$ib_bgY);?>" size="5" maxlength="4" class="required-int" /> <font color='red'>*</font>
<input type="submit" name="add" id="add" value="เพิ่ม" />
<input type="hidden" name="ib_id" id="ib_id" value="<?php echo ($row_ib==NULL) ? set_value('ib_id') : getval('ib_id',$row_ib);?>" />
<?php echo form_error('ib_bgY');?>
<?php echo isset($error_name)? $error_name : "" ?>
</td>
</tr>
<?php echo form_close();?></table></td>
</tr>
<tr>
<td><br /></td>
</tr>
<tr>
<td><table id="table_show" class='tb_1'>
<tr>
<th class="seqCol">ลำดับที่</th>
<th>ปีงบประมาณ</th>
<th class="editCol">แก้ไข</th>
<th class="deleteCol">ลบ</th>
</tr>
<?php
$i = 0;
if(isset($rs_ib) && $rs_ib->num_rows()) {
foreach($rs_ib->result() as $row_ib) {
?>
<tr>
<td align="center"><?php echo $i+1;?>
<td align="cneter"><?php echo $row_ib->ib_bgY;?></td></td>
<td align="center"><span class="hand" onClick="sendPost('myform', {'ib_id':<?php echo $row_ib->ib_id;?>}, 'ib_add')"><?php echo img($this->config->item('sa_image_reply'));?></span></td>
<td align="center"><span class="hand" onClick="if (confirm('ต้องการลบใช่หรือไม่')) { sendPost('hidform', {'ib_id':<?php echo $row_ib->ib_id;?>}, 'ib_delete'); }"><?php echo img($this->config->item('sa_image_del'));?></td>
</tr>
<?php
$i++;
}
} else {
?>
<tr class="notfound">
<td colspan="4" align="center"><?php echo $this->config->item('sa_not_found');?></td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table>
|