/home/banprang/domains/plai.go.th/public_html/coremain/module/move/move_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
<?php
$navig
['move']="ข้อมูลการโอนย้าย อปท.";
$navig['move_add']="รายละเอียดข้อมูล";
navigator($navig);
echo 
"<br>";
bar_header("ข้อมูลการโอนย้าย อปท."); // Bar_Header
fieldset_top("รายละเอียดข้อมูล");


if(
$p_id_news!="")                                    {         $id_news=trim($p_id_news);                }
include(
'coremain/connec_out.php');

echo
"<table width='100%' border='0' cellspacing='1'  align='center' cellpadding='0'>";
if(
$_SESSION[admin_web]=="admin"){
    
$sqlnews="select * from cms_move where id=$id_news";
}else{
    
$sqlnews="select * from cms_move where id=$id_news and status=1";
}
$resultnews=mysql_query($sqlnews);
$co=mysql_num_rows($resultnews);
if(
$co==0){
    echo 
"<br><br><b><center>*** ไม่พบข้อมูล</center></b><br><br>";
    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
"<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $datanews[fulltexts]<br><br><br>";
                        echo
"</td>";
                    echo
"</tr>";

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

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

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


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