<?
include('_inc/func.php'); 
include('_inc/js.php');

//arhives source start
$someArray = $editions;
$otherArray = array_flip($someArray);
if (isset($otherArray[$_GET['edition']])) {
$dir="../assets/".$_GET['edition']."/";
$dh  = opendir($dir);
while (false !== ($filename = readdir($dh))) {
if($filename != "." && $filename != ".." && is_dir($dir)){
    $files[] = $filename;
}
}
function date_file_sort($a, $b) 
{ 
    $a = strtotime($a); 
    $b = strtotime($b); 
    return strcmp($b, $a); 
} 
usort($files, 'date_file_sort'); 
}
else
{
redirect('index.php'); 
}
//arhives source end



//get map information start
$checkfile = '../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/assets/'.$_GET['id'].'.txt';
if(file_exists($checkfile)) {
	
	$mapfile=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/assets/'.$_GET['id'].'.txt');//we include it
$fhandle = fopen($mapfile,'r');
$mapinfo = fread($fhandle,filesize($mapfile));
fclose($fhandle);
}
//get map information end


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="<? echo $meta; ?>">
<title><? echo $newspaper;   echo $_GET['edition']; ?></title>
<meta name="generator" content="<?php echo $meta; ?>">
<title><?php echo $newspaper;   echo ucfirst($_GET['edition']); ?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
	background-image: url(images/bg.jpg);
}
</style>
<script type="text/javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>
<map name="FPMap0">
   
   <? if(file_exists($checkfile)){echo $mapinfo;}  ?>
    
</map> 


</head>

<body>
<table width="1018" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="mainleft">&nbsp;</td>
    <td valign="top"><div align="center">
      <table width="996" height="182" border="0" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF">
        <tr>         
          <td><img src="images/logos/<?php echo $_GET['edition']; ?>.png" width="1000" /></td>
        </tr>
      </table>
    </div></td>
    <td class="mainright">&nbsp;</td>
  </tr>
  <tr>
    <td width="17" class="mainleft">&nbsp;</td>
    <td width="1013" valign="top"><table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td align="center" valign="top"><table width="100%" height="40" border="0" cellpadding="4" cellspacing="4">
            <tr>
              <td width="12%" valign="middle"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                  <tr>
                    <td valign="bottom"><a href="index.php"><img src="images/13.png" width="91" height="28" /></a></td>
                    </tr>
              </table></td>
              <td width="21%" valign="middle"><?php echo"<font color='#000000' font size='2' face='Tahoma'>".date("l, F jS, Y"); ?></td>
              <td width="25%" valign="middle"><span class="headings">Select Edition: </span>
            
              <select  name="select3" onchange="MM_jumpMenu('parent',this,0)">
                      <option>Select Edition</option>
                      <option value="redirect.php?edition=rawalpindi">Rawalpindi</option>
                      <option value="redirect.php?edition=lahore">Lahore</option>
                      <option value="redirect.php?edition=peshawar">Peshawar</option>
					 
                  </select>
                
                
                </td>
              <td width="24%" valign="middle">
                <div align="right">
                  <span class="headings">Archives: </span>
<select  name="select" onchange="MM_jumpMenu('parent',this,0)">
  
  <?php 
					
					
for($x = 0; $x < count($files); $x++) 
{ 


if(file_exists("../assets/".$_GET['edition']."/{$files[$x]}/1.jpg"))
//if(file_exists("../assets/".$_GET['edition']."/{$files[$x]}/1.JPG"))

{


?>
  
  
  <?php
		
echo  "<option value='page.php?id=1&edition=".$_GET['edition']."&dt={$files[$x]} '";if ($_GET['dt']==$files[$x])echo "selected='selected'   "; echo ">".$files[$x]. "</option>"  ?>
  <?php
  
 	  
}
}


?>
</select>
                </div></td>
              <td width="18%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><div align="right" class="headings"><strong>Pages</strong>: </div></td>
                  <td><select  name="select2" onchange="MM_jumpMenu('parent',this,0)">
                    <option>Select Page</option>
                   <option value="page.php?id=1&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-1</option>
                    <option value="page.php?id=2&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-2</option>
                    <option value="page.php?id=3&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-3</option>
                    <option value="page.php?id=4&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-4</option>
                    <option value="page.php?id=5&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-5</option>
                    <option value="page.php?id=6&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-6</option>
                    <option value="page.php?id=7&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-7</option>
                    <option value="page.php?id=8&edition=<?php echo $_GET['edition']?>&dt=<?php echo $_GET['dt']?>">Page-8</option>
                  </select></td>
                </tr>
              </table></td>
              </tr>
          </table></td>
      </tr>
    </table></td>
    <td width="18" class="mainright">&nbsp;</td>
  </tr>
  <tr>
    <td><img src="images/img/main_r3_c1.png" width="17" height="19" /></td>
    <td class="mainbottom">&nbsp;</td>
    <td><img src="images/img/main_r3_c3.png" width="18" height="19" /></td>
  </tr>
</table>
<table width="1019" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center">
      <table width="1010" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="17" valign="bottom"><img src="images/img/main_r1_c1.png" width="17" height="16" /></td>
          <td width="1003" valign="bottom" class="maintop">&nbsp;</td>
          <td width="28" valign="bottom"><img src="images/img/main_r1_c3.png" width="18" height="16" /></td>
        </tr>
        <tr>
          <td class="mainleft">&nbsp;</td>
          <td valign="top"><table width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
              <tr>               
                <td align="center" valign="top"><p align="center"><?php echo epaper(); ?></p>
                  <table width="100%" border="0" cellspacing="3" cellpadding="5">
                    <tr>
                      <td><div align="center">
                        <? 
                $pageno = "4";
				$image = "17.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td valign="top"><div align="center">
                        <? 
                $pageno = "3";
				$image = "16.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td><div align="center">
                        <? 
                $pageno = "2";
				$image = "15.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td><div align="center">
                        <? 
                $pageno = "1";
				$image = "14.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="3">
                    <tr>
                      <td><div align="center">
                        <? 
                $pageno = "8";
				$image = "24.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td valign="top"><div align="center">
                        <? 
                $pageno = "7";
				$image = "23.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td valign="top"><div align="center">
                        <? 
                $pageno = "6";
				$image = "22.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td valign="top"><div align="center">
                        <? 
                $pageno = "5";
				$image = "21.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="3">
                    <tr>
                      <td><div align="center">
                        <? 
                $pageno = "12";
				$image = "29.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
                      
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td valign="top"><div align="center">
                        <? 
                $pageno = "11";
				$image = "28.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td valign="top"><div align="center">
                        <? 
                $pageno = "10";
				$image = "27.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                      <td valign="top"><div align="center">
                        <? 
                $pageno = "9";
				$image = "26.png";
								
				$filename1= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
				$filename2= ('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');


//if file found in small extension start
if (file_exists($filename1)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.jpg');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  else
		   
//if file found in small extension end



//if file found in caps extension start
if (file_exists($filename2)) {
	
	      echo "          
                <div align=\"center\">
                  <table width=\"100%\" border=\"0\" cellspacing=\"3\" cellpadding=\"3\">
                    <tr>
                      <td><div align=\"center\"><img src=\"images/";echo $image; echo"\""; echo"\" /></div></td>
                      </tr>
                    </table>
                  <table width=\"100\" border=\"0\" cellpadding=\"4\" cellspacing=\"4\" class=\"ebaorder\">
                    <tr>
                      <td><div align=\"center\"><a href=\"page.php?id="; echo $pageno; echo "&edition="; echo $_GET['edition'] ; echo"&dt="; echo $_GET['dt']; 
					  echo "\">";
                       
						$file=('../assets/'.$_GET['edition'].'/'.$_GET['dt'].'/thumbs/'.$pageno.'.JPG');
						echo "<img src=$file border=0 align='center'>";
						
                      echo "</a></div></td>
                    </tr>
                  </table>
                </div>
                
           ";  }  
		   
//if file found in caps extension end
		   
		   
		   ?>
                      </div></td>
                    </tr>
                  </table>
                  <p>&nbsp;</p></td>
              </tr>
          </table></td>
          <td class="mainright">&nbsp;</td>
        </tr>
        <tr>
          <td><img src="images/img/main_r3_c1.png" width="17" height="19" /></td>
          <td class="mainbottom">&nbsp;</td>
          <td><img src="images/img/main_r3_c3.png" width="18" height="19" /></td>
        </tr>
      </table>
    </div></td>
  </tr>
</table>
<br />
<br />
</body>
</html>