Hacked By AnonymousFox
<?
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
?>
<html><!-- InstanceBegin template="/Templates/WebEngine-Adminpanel-Popup.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title> <?=$System_Variable_Title?>
</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<link href="../css/mystyle1.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr valign="top">
<td align="center" valign="top" bgcolor="#FFFFFF"><!-- InstanceBeginEditable name="Programmable Region" -->
<table width="100%" height="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td height="22" align="center" valign="top" class="table_footer"> <table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><input name="btClose" type="button" class="button_80" id="btClose" value="Close" onClick="window.close(); "></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="middle"> <br>
<?
//# Assign Database Table ###################################
include("config.php");
if($id>0) {
$sql="SELECT * FROM ".$myModule_Table." WHERE ".$myModule_Table."_ID=$id";
} else {
$sql="SELECT * FROM ".$myModule_Table." WHERE ".$myModule_Table."_Status='Enable' AND ".$myModule_Table."_ModuleKey='$SystemModuleKey' ORDER BY RAND() LIMIT 1";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
$RecordCount=MYSQL_NUMROWS($Query);
if($RecordCount>0) {
$Row=MYSQL_FETCH_ARRAY($Query);
if($Row[$myModule_Table."_PictureFileType"]=="swf") {
?>
<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="<?=$Row[$myModule_Table."_Width"]?>" height="<?=$Row[$myModule_Table."_Height"]?>">
<param name="movie" value="../../cgi-bin/<?=$SystemModuleKey?>/thumbnail/<?=$Row[$myModule_Table."_PictureFile"]?>">
<param name="quality" value="high">
<embed src="../../cgi-bin/<?=$SystemModuleKey?>/thumbnail/<?=$Row[$myModule_Table."_PictureFile"]?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="<?=$Row[$myModule_Table."_Width"]?>" height="<?=$Row[$myModule_Table."_Height"]?>"></embed></object>
<?
} else if(strlen($Row[$myModule_Table."_PictureFileType"])>0) {
?>
<img src="../../cgi-bin/<?=$SystemModuleKey?>/thumbnail/<?=$Row[$myModule_Table."_PictureFile"]?>" width="<?=$Row[$myModule_Table."_Width"]?>" height="<?=$Row[$myModule_Table."_Height"]?>" border="0">
<?
} else {
echo "<table width=\"".$myGraphic_Width."\" height=\"".$myGraphic_Height."\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"".$Row[$myModule_Table."_HTMLBG"]."\"><tr><td>";
$filename = $myModule_Path_HTMLFiles."/".$Row[$myModule_Table."_HTMLFileName"];
if(is_file($filename)) {
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
echo $contents;
} else {
echo " ";
}
echo "</td></tr></table>";
}
}
//########################################################
?>
</td>
</tr>
<tr>
<td height="22" align="center" valign="top" class="table_footer">
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td width="30"><input name="btClose" type="button" class="button_80" id="btClose" value="Close" onClick="window.close(); "></td>
</tr>
</table></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
<?
include("../lib/disconnect.php");
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox