Viewing file: v_plandetail_t2.php (5.08 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php //echo link_tag('css/nav_esa.css');?>
<!-- <link rel="stylesheet" href="<?=base_url();?>/js/textboxlist_proto/textboxlist.css" type="text/css" media="screen" title="Test Stylesheet" charset="utf-8" />
<script src="<?=base_url();?>/js/textboxlist_proto/protoculous-effects-shrinkvars.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=base_url();?>/js/textboxlist_proto/textboxlist.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=base_url();?>/js/textboxlist_proto/textboxlistauto.js" type="text/javascript" charset="utf-8"></script> -->
<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
<script type="text/javascript">
/*
document.observe('dom:loaded', function() {
// init
tlist1 = new FacebookList('wk11_co', 'wk11_auto');
var get_user_list_url = "<?=site_url("esa/search/get_ps_list1")?>";
// fetch and feed
new Ajax.Request(get_user_list_url, {
onSuccess: function(transport) {
transport.responseText.evalJSON(true).each(function(t){tlist1.autoFeed(t)});
}
});
});
Element.addMethods({
onBoxDispose: function(item,obj) { obj.autoFeed(item.retrieveData('text')); },
onInputFocus: function(el,obj) { obj.autoShow(); },
onInputBlur: function(el,obj) {
obj.lastinput = el;
obj.blurhide = obj.autoHide.bind(obj).delay(0.1);
},
filter:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){if(D.call(E,this[B],B,this)){C.push(this[B]);}}return C;}
});
*/
$(document).ready(function(){
//get_option();
$('#atb_type1').click(function() {
$('#atb1').show('slow');
$('#atb1').show('slow');
$('#atb2').hide('slow');
});
$('#atb_type2').click(function() {
$('#atb1').show('slow');
$('#atb2').show('slow');
$('#atb1').hide('slow');
});
});
</script>
<?php $mpj = $qu_mpj->row(); ?>
<table border='0' width="60%">
<tr><td>
<?php // งบประมาณในโครงการ
echo form_open($this->config->item('sa_folder').'project/add_edit_budget', array("name" => "myform", "id" => "myform"));?>
<table class='szone2' width="40%" border="0" align="left">
<?php
if ($qu_sb->num_rows > 0) {
$index=1;
$p = 1;
$p_index=0;
foreach ($qu_sb->result() as $row) {
if($row->p_sb_id != $p_index){
$p_index = $row->p_sb_id ;
?>
<tr class="szone">
<td align="left" > <?php if($row->p_sb_pid!=0){echo nbs(2); }else{ echo ''; } ?> <font size="2"><?php echo '<b>'.$row->p_sb_name.'<b>';?></b></font></td>
<td width="60%">
<input type="hidden" name="sb_pid<?php echo $index;?>" id="sb_pid<?php echo $index;?>" value="<?php echo $row->p_sb_id?>" size="10" />
<input type="text" name="sb_pidc<?php echo $index;?>" id="sb_pidc<?php echo $index;?>" value="<?php echo $row->p_cost?>" size="10" style="text-align:right"/> <b>บาท</b></td>
</tr>
<?
if($row->sb_id !=NULL){
$index++;
?>
<tr class="szone">
<td align="left"> <?php if($row->sb_pid!=0){echo nbs(2); }else{ echo ''; } ?> <font size="2"><?php echo $row->sb_name;?></b></font></td>
<td>
<input type="hidden" name="sb_pid<?php echo $index;?>" id="sb_pid<?php echo $index;?>" value="<?php echo $row->sb_id?>" size="10" />
<input type="text" name="sb_pidc<?php echo $index;?>" id="sb_pidc<?php echo $index;?>" value="<?php echo $row->pb_cost?>" size="10" style="text-align:right"/> <b>บาท</b></td>
</tr>
<?
}
}else{
?>
<tr class="szone">
<td align="left"> <?php if($row->sb_pid!=0){echo nbs(2); }else{ echo ''; } ?> <font size="2"><?php echo $row->sb_name;?></b></font></td>
<td>
<input type="hidden" name="sb_pid<?php echo $index;?>" id="sb_pid<?php echo $index;?>" value="<?php echo $row->sb_id?>" size="10" />
<input type="text" name="sb_pidc<?php echo $index;?>" id="sb_pidc<?php echo $index;?>" value="<?php echo $row->pb_cost?>" size="10" style="text-align:right"/> <b>บาท</b></td>
</tr>
<?php
}
$index++;
}
?>
<input type="hidden" name="sb_pid" value="<?php echo $index?>" />
<input type="hidden" name="mpj_id" value="<?php echo (isset($mpj_id))?$mpj_id:''; ?>" />
<input type="hidden" name="acp_id" value="<?php echo (isset($acp_id))?$acp_id:''; ?>" />
<tr class="szone2">
<td colspan="3" height="22" align="center" bgcolor="#D1DCF3"><input type="submit" name="add" value="บันทึก" /><?php echo form_error('sb_name'); ?></td>
</tr>
<?
} else {
?>
<tr class="notfound">
<td colspan="3" height="22" align="center" bgcolor="#D1DCF3">ไม่พบแหล่งเงินงบประมาณ</td>
</tr>
<?php
}
?>
<tr >
<td colspan="2" height="22"></td>
</tr>
</table>
<?php echo form_close();?>
</td></tr>
</table>
|