Viewing file: v_rpt_project.php (3.19 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<script language="javascript">
function report_print() {
document.getElementById("type").value = "print";
document.getElementById("myform_search").action = "project";
document.getElementById("myform_search").submit();
document.getElementById("type").value = "";
}
</script>
<table width="100%" border="0">
<thead>
<tr>
<td align='center'><h3>รายงานโครงการ</h3></td>
</tr>
<tr>
<td>
<?php
$attributes = array('id' => 'myform_search', 'name' => 'myform_search');
echo form_open("esa/report/project", $attributes);
?>
<table class='szone2' width="100%" border="0">
<tr class='szone'>
<td width="20%" align="right">ปีงบประมาณ </td>
<td>
<?=form_dropdown('year', $qu_ib ,set_value('year', $dpj_bgY)); ?>
</td>
</tr>
<tr class='szone'>
<td align="right">เจ้าของโครงการ (หลัก) </td>
<td colspan="2"><?=form_dropdown('owner', $opt_sc, set_value('owner', $dpj_owner)); ?></td>
</tr>
<tr class='szone'>
<td height="30">คุณลักษณะโครงการ</td>
<td>
<?php echo form_dropdown('atb_type', $rs_type, $dpj_attribute);?>
</td>
</tr>
<tr class='szone2'>
<td height="30" colspan="4" align="center">
<input type="hidden" id="type" name="type" value=""/>
<input type="submit" id="btnSearch" name="btnSearch" value="ค้นหา" />
</td>
</tr>
</table>
<?php
echo form_close();
?>
</td>
</tr>
</table>
<br>
<div align='right'><?=img($this->config->item('sa_image_print'));?></div>
<br>
<table class='tb_1' width="100%" border="0">
<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_dpj->num_rows > 0) {
$index=1;
$p = 1;
$p_index=0;
foreach ($rs_dpj->result() as $row) {
if($row->dpj_id != $p_index){
$p_index = $row->dpj_id ;
$p = 1;
?>
<tr>
<td align="center"><?php
echo $index;
?></td>
<td align="center"><?php
echo $row->dpj_bgY;
?></td>
<td ><?php
echo $row->dpj_code;
?></td>
<td ><?php echo ($row->dpj_mpj_id==0)? '[ โครงการ ]' : '[ กิจกรรม ]' ;?>
<span class="hand" onClick="sendPost('myform1', {'dpj_id':'<?php echo $row->dpj_id; ?>'}, '<?php echo site_url()?>/<?php echo $this->config->item('sa_folder');?>project/detail_dpj',{})"><?php echo $row->dpj_sub_name;?></span>
</td>
<td align="center">
<?php if ($row->dpj_status==1) {
echo '<font color="#ff6600">รออนุมัติ<br>';
echo '('.fulldate2($row->dpj_date_offer).')</font>';
} elseif($row->dpj_status==2){
echo '<font color="#669900">อนุมัติ<br>';
echo '('.fulldate2($row->dpj_date_approve).')</font>';
} else {
echo '-';
}
?>
</td>
</tr>
<?php
}
$index++;
}
}else{
?>
<tr class='notfound'>
<td colspan="7" align="center"><?php echo $this->config->item('sa_not_found');?></td>
</tr>
<?php
}
?>
</table>
|