/home/banprang/domains/plai.go.th/public_html/coremain/module/news_tender/news_tender_full.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
// Status Package Module
$status_module=select_query("status_module","cms_status_module","id","3");
if(
$status_module[0]!=1)    {    
    
fieldset_no_module();
}
$navig['news_tender']="รายละเอียดข่าวจัดซื้อจัดจ้าง (ภายในหน่วยงาน)";
navigator($navig);
echo
"<br>";
bar_header("รายละเอียดข่าวจัดซื้อจัดจ้าง (ภายในหน่วยงาน)"); // Bar_Header
fieldset_top("ข่าวจัดซื้อจัดจ้าง");

if(
$p_id_tender!="")    {         $id_tender=trim($p_id_tender);        }

// นับจำนวนผู้เข้าชมข่าวเพิ่มขึ้นทีละ 1 
    
$max=select_max_query("state","cms_news_tender","id","$id_tender");
    
update_query("cms_news_tender","state","$max[0]","id","$id_tender");

// แสดงเนื้อหาข่าว
echo"<table width='100%' border='0' cellspacing='1'  align='center' cellpadding='0'>";
if(
$_SESSION[admin_web]=="admin" or (id_top_permission("news_tender"))){
    
$sql="SELECT * FROM cms_news_tender where id='$id_tender'";
}else{
    
$sql="SELECT * FROM cms_news_tender where id='$id_tender' and status=1";
}
    
$re=mysql_query($sql);
    
$co=mysql_num_rows($re);
        if(
$co==0){
            echo 
"<center><br><br><b>*** ไม่พบข้อมูล</b><br><br></center>";
            exit;
        }
    
$data=mysql_fetch_array($re);
{            
            
// เนื้อหาข่าว
            
if($data[topic]!="")            {    news_other("หัวข้อข่าว",$data[topic]);                        }
            if(
$data[depart]!="")        {    news_other("หน่วยงาน",$data[depart]);                    }
            if(
$data[prices]!="")        {    news_other("ราคากลาง",number_format($data[prices],2));                    }
            if(
$data[buy]!="")            {    news_other("ซื้อเอกสาร",$data[buy]);                        }
            if(
$data[song]!="")            {    news_other("ยื่นซอง",$data[song]);                            }
            if(
$data[contact]!="")    {    news_other("ติดต่อสอบถาม",$data[contact]);            }
            if(
$data[fulltexts]!="")    {    news_other("รายละเอียดข่าว",$data[fulltexts]);        }        

            
// ไฟล์ประกอบข่าว
                
            
if($data[file]!=""){        
    echo
"  <tr>";
        echo
"<td width='100%' colspan=2><br>";                                    
            echo 
"<p align='center'><a href='$_SESSION[web_name]/mainfile/$data[file]' target=blank><u>ไฟล์ประกอบ</u></a></p>";
        echo
"</td>";
    echo
"</tr>";
            }

            
// รายละเอียดอื่น ๆ
            
box_other($data[who], $data[date_post]);
            
}
echo
"</table>";
fieldset_down();
?>