/home/banprang/.trash/files/coremain.2/module/news_tender_out/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
60
<?php
// Status Package Module
$status_module=select_query("status_module","cms_status_module","id","5");
if(
$status_module[0]!=1)    {    
    
fieldset_no_module();
}
include(
'coremain/connec_out.php');
if(
$p_id_tender!="")                    {         $id_tender=trim($p_id_tender);            }
if(
$p_id_tumbon!="")                {         $id_tumbon=trim($p_id_tumbon);        }

$navig['news_tender']="รายละเอียดข่าวจัดซื้อจัดจ้าง (ภายนอกหน่วยงาน)";
navigator($navig);
echo
"<br>";
bar_header("รายละเอียดข่าวจัดซื้อจัดจ้าง (ภายนอกหน่วยงาน)"); // Bar_Header
fieldset_top("ข่าวจัดซื้อจัดจ้าง");
if(
$p_id_tender!="")    {         $id_tender=trim($p_id_tender);        }
if(
$p_id_tumbon!="")    {         $id_tumbon=trim($p_id_tumbon);        }
// นับจำนวนผู้เข้าชมข่าวเพิ่มขึ้นทีละ 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'>";
$sql="SELECT * FROM cms_news_tender WHERE id='$id_tender' and id_tumbon='$id_tumbon' 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='$data[file]' target=blank><u>ไฟล์ประกอบ</u></a></p>";
        echo
"</td>";
    echo
"</tr>";
            }

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