Viewing file: v_mainPlandetail.php (2.39 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$url = site_url($this->config->item('sa_folder').'project/plandetail');
$mpj_id = '';
if($qu_dpj->num_rows() > 0){
$dpj = $qu_dpj->row();
$mpj_year = $dpj->dpj_bgY;
$mpj_id = $dpj->dpj_id;
}
?>
<table border="0" width="100%">
<tr>
<td><div id="header">
<ul id="primary">
<li id="tabA" align="center" class="hand" onClick="controlsubmenu('tab1','tabA'); sendPost('hidform', {'tab':1,'mpj_id':'<?php echo $mpj_id; ?>','mpj_year':'<?php echo $mpj_year; ?>'},'<?php echo $url;?>')"><?php echo ($tab==1) ? "<span>" : "<a href='#'>";?><font size="2"><b><?php
echo ($qu_dpj->num_rows() > 0)?($dpj->dpj_mpj_id==0)?'ข้อมูลโครงการ':'ข้อมูลกิจกรรม' :'ข้อมูลโครงการ';
?></b></font><?php echo ($tab==1) ? "</span>" : "</a>";?></li>
<?php
if($qu_dpj->num_rows()>0){
if($dpj->dpj_mpj_id==0){
?>
<li id="tabB" align="center" class="hand" onClick="controlsubmenu('tab2','tabB'); sendPost('hidform', {'tab':2,'mpj_id':'<?php echo $mpj_id; ?>','mpj_year':'<?php echo $mpj_year; ?>'},'<?php echo $url;?>')"><?php echo ($tab==2) ? "<span>" : "<a href='#'>";?><font size="2"><b>กิจกรรม</b></font><?php echo ($tab==2) ? "</span>" : "</a>";?></li>
<?php
}
?>
<li id="tabC" align="center" class="hand" onClick="controlsubmenu('tab3','tabC'); sendPost('hidform', {'tab':3,'mpj_id':'<?php echo $mpj_id; ?>','mpj_year':'<?php echo $mpj_year; ?>'},'<?php echo $url;?>')"><?php echo ($tab==3) ? "<span>" : "<a href='#'>";?><font size="2"><b><?php
echo ($dpj->dpj_mpj_id==0)?'แผนงบประมาณโครงการ':'แผนงบประมาณกิจกรรม';
?></b></font><?php echo ($tab==3) ? "</span>" : "</a>";?></li>
<li id="tabD" align="center" class="hand" onClick="controlsubmenu('tab4','tabD'); sendPost('hidform', {'tab':4,'mpj_id':'<?php echo $mpj_id; ?>','mpj_year':'<?php echo $mpj_year; ?>'},'<?php echo $url;?>')"><?php echo ($tab==4) ? "<span>" : "<a href='#'>";?><font size="2"><b>กลุ่มเป้าหมาย</b></font><?php echo ($tab==4) ? "</span>" : "</a>";?></li>
<?php
}
?>
</ul>
</div></td>
</tr>
<tr>
<td><?php echo $v;?></td>
</tr>
<div id="tab1"></div>
<div id="tab2"></div>
<div id="tab3"></div>
<div id="tab4"></div>
</table>
|