/home/banprang/.trash/files/coremain/module/news_tender_out/news_tender_old_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
61
<?
// 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');
$navig['news_tender_old']="ข่าวจัดซื้อจัดจ้าง (ภายนอกหน่วยงาน) ย้อนหลัง";
$navig['news_tender_old_full']="รายละเอียดข่าว";
navigator($navig);
echo
"<br>";
bar_header("รายละเอียดข่าว"); // Bar_Header
fieldset_top("ข่าวจัดซื้อจัดจ้าง");
if(
$p_id_news_tender!="")                        {         $id_news_tender=trim($p_id_news_tender);        }
if(
$p_id_tumbon!="")                                {         $id_tumbon=trim($p_id_tumbon);                            }

echo
"<table width='100%' border='0' cellspacing='1'  align='center' cellpadding='0'>";

$sqlnews="select * from cms_news_tender where id='$id_news_tender' and id_tumbon='$id_tumbon' and status=1";
$resultnews=mysql_query($sqlnews);
$co=mysql_num_rows($resultnews);
if(
$co==0){
    echo 
"<center><br><br><b>*** ไม่พบข้อมูล</b><br><br></center>";
    exit;
}
$datanews mysql_fetch_array($resultnews);
                 {            

// เนื้อหาข่าว
                    
echo"  <tr>";
                        echo
"<td width='100%'>";                                    
                                    echo 
"<img src='coremain/images/topic.gif'>&nbsp;&nbsp;<b>$datanews[topic]</b>&nbsp;&nbsp;";
                                        echo
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $datanews[fulltexts]<br>";
                        echo
"</td>";
                    echo
"</tr>";

    
// ไฟล์ประกอบ

if($datanews[file]!=""){
                    echo
"  <tr>";
                        echo
"<td width='100%'>";                                    
                                    echo 
"<p align='center'><a href='$datanews[file]' target=blank><u>ไฟล์ประกอบ</u></a></p>";
                        echo
"</td>";
                    echo
"</tr>";
}

                
// รายละเอียดอื่น ๆ
                    
echo"  <tr>";
                        echo
"<td width='100%'>";                                    
                                    echo 
"<p align='right'><br>ประกาศโดย : $datanews[who]<br>วันที่ประกาศ : $datanews[date_post]</p>";
                        echo
"</td>";
                    echo
"</tr>";


                }
echo
"</table>";
mysql_close($handle_out);
include(
"$_SESSION[web_name]/connect.php");
fieldset_down();
?>