/home/banprang/domains/plai.go.th/public_html/coremain/module/popup/popup.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
<?php
session_start
();
import_request_variables('pG''p_');
if(
$p_webname!="")                {         $webname=trim($p_webname);            }
if(
$_SESSION[folder_name]==""$_SESSION[folder_name]=$webname;

include(
"../../../$_SESSION[web_name]/connect.php");

echo
"<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
// แสดงข้อมูล
$sql="select topic,fulltexts,pic1 from cms_popup";
$result=mysql_query($sql);
$data mysql_fetch_array($result);

?>
<title><?echo $data[topic];?></title>
<head>
<link href="../../ccs/style.css" rel="stylesheet" type="text/css"></head>
</head>

<table width='100%' border='0' cellspacing='1' align='center' cellpadding='0'>
<tr> 
<td  valign="top"> <div align='center'>
<?php

echo"<table width='98%' border='0' cellpadding='0' cellspacing='0'>";
        echo 
"<tr>";
            echo
"<td width='3'></td>";
            echo
"<td><center>$data[topic]<br>";
            
$check_type=substr($data[pic1],-4);
            if(
$data[pic1]!="" and $check_type==".swf") {
            list(
$width$height$type$attr) = getimagesize("../../../$_SESSION[folder_name]/mainfile/$data[pic1]");
                         echo
"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='$width' height='$height'>";
                         echo
"   <param name='movie' value='../../../$_SESSION[folder_name]/mainfile/$data[pic1]'>";
                         echo
"  <param name='quality' value='high'>";
                            echo
"<embed src='../../../$_SESSION[folder_name]/mainfile/$data[pic1]' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='$width' height='$height'>";
                            echo
"</embed>";
                         echo
"</object>";
            }
            if(
$data[pic1]!="" and ($check_type==".gif" or $check_type==".GIF" or $check_type==".JPG" or $check_type==".jpg")) {
                        echo
"<img src='../../../$_SESSION[folder_name]/mainfile/$data[pic1]'>";
            }
            

            echo
"<br>$data[fulltexts]</center></td>";
             echo
"<td></td>";
        echo
"</tr>";
echo
"</table>";
echo
"</td>  </tr>  </table>";

?>