<html dir="rtl">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>New Page 4</title>
</head>
<style type="text/css">
#Date
{
position:absolute;
top:200px;
right:50px;
visibility: visible;
}
#main {z-index:0;}
#adm{position:absolute; top:501px; right:436px;}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
</style>
<body> <font face="tahoma" size="-1">
<?php // تصاویر=0 , انیمیشن=1 , مطالب کوتاه=2
$table_name=array('تصاویر','انیمیشن','مطالب کوتاه');
$files=array('','',''); // files addres set $files array
// Connect DB
require('connect_to_mysql.php');
mysql_select_db('kanoon');
for ($i=0;$i<=2;$i++)
{
$query="select id from ids
where noe='$table_name[$i]'";
$result=mysql_query($query);
if ($result)
$row=mysql_fetch_row($result);
if (!$row)
echo 'not Exist in ids table';
else
$table_name[$i]=$row[0];
}
for ($i=0;$i<=2;$i++)
{
$query="select file_add from mpage
where view='1' && id='$table_name[$i]'";
$row=mysql_fetch_row(mysql_query($query));
if ($row)
$files[$i]=$row[0];
else
{
$query="select file_add from mpage
where id='$table_name[$i]'";
$result=mysql_query($query);
$row=mysql_fetch_row($result);
$num=mysql_num_rows($result);
if (!$row)
{
echo 'related case not exist.';
}
else
$files[$i]=$row[0];
// $files[$i]=$row[$num];
}
}?>
<div id="main">
<table width="630" height="490" border="0">
<tr>
<th width="315"height="245" scope="col"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="259" height="184" >
<param name="quality" value="high"><param name="SRC" value="Clock.swf">
</object><font size="-1"><?php require('showdate.php');?></font></th>
<th width="315" height="245" scope="col"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="233" height="173" align="middle">
<?php echo"<param name='movie' value='$files[1]'>";?>
<param name="quality" value="high">
<?php echo"<embed src='$files[1]' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='259' height='184'></embed>";?>
<br>
</object></th>
</tr>
<tr>
<td width="315"height="245" ><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="259" height="184" align="middle"></object>
<?php echo"<param name='movie' value='$files[2]'>";?>
<param name="quality" value="high"></ <?php echo"<embed src='$files[2]' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='259' height='184'>";?></embed>
</object></td>
<td width="315"height="245" ><?php echo"<img src='$files[0]' width='259' height='184'>";?></td>
</tr>
</table> </div>
</body>
</html>