<?php 
include("includes/db_config.php");


if($_GET['p']=="home")
{
header('location:http://www.stmarksflats.com');
exit;
}
/*elseif($_GET['p']==29)
{
header('location:gallery.php?p=29');
exit;
}
elseif($_GET['p']==30)
{
header('location:location.php?p=30');
exit;
}
*/else
{
 $sql="select * from cmspages where page_name='".$_GET['p']."'";
$result=mysql_query($sql);
$row2=mysql_fetch_array($result);
}
?>

<!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" />
<?php
if($_GET['p']=="description")
{
?>
<title>Description| Most sought after student flats at St. Marks Flats</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks Flats is providing amazing services of housing location for students of Leeds university."  /> 
<meta name="keywords" http-equiv="Content-Type" content=""/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" />

<?php
}
?>
<?php
if($_GET['p']=="gallery")
{
?>
<title> Image Gallery| Beautiful Student housing locations at St. Marks Flats</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks Flats is providing amazing image gallery of housing location for students of Leeds university."  /> 
<meta name="keywords" http-equiv="Content-Type" content="Image Gallery, Image Galleries, Photo Gallery, Apartment Image Gallery"/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" />
<?php
}
?>
<?php
if($_GET['p']=="about")
{
?>
<title> About Us| Beautiful Student housing locations at St. Marks Flats</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks Flats is providing amazing services of housing location for students of Leeds university."  /> 
<meta name="keywords" http-equiv="Content-Type" content=""/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" />
<?php
}
?>
<?php
if($_GET['p']=="location")
{
?>
<title>Location Map| St Marks Flats, 27 St Marks Road Leeds at St. Marks Flats</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks Flats is providing location map of apartments for students of Leeds university."  /> 
<meta name="keywords" http-equiv="Content-Type" content="Image Gallery, Image Galleries, Photo Gallery, Apartment Image Gallery"/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" />
<?php
}
?>
<?php if($_GET['p']=="room-descriptions")
{
?>
<title>Room Description| We are all about comfort at St. Marks Flats</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks rooms are perfect for students, double bedrooms available, soft beech interiors, storage space and an area for study, great for serious study or just to wind down after a night out."  /> 
<meta name="keywords" http-equiv="Content-Type" content="Room Description, ST Mark Room Description, ST Mark Room, Room Description of ST mark, Room of ST Mark "/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" /> 

<?php
}
?>
<?php if($_GET['p']=="enquire")
{
?>
<title>Enquire| Your new student accommodation at St. Marks Flats</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks rooms are perfect for students, double bedrooms available, soft beech interiors, storage space and an area for study, great for serious study or just to wind down after a night out."  /> 
<meta name="keywords" http-equiv="Content-Type" content=" Enquire, Enquire of ST Mark, ST Mark Enquire"/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" />
<?php
}
?>
<?php if($_GET['p']=="links")
{
?>
<title>Useful Link | We are all about comfort at St. Marks Flats</title> 
<meta name="description" http-equiv="Content-Type" content="St. Marks rooms are perfect for students, double bedrooms available, soft beech interiors, storage space and an area for study, great for serious study or just to wind down after a night out."  /> 
<meta name="keywords" http-equiv="Content-Type" content="ST Mark Links, Links of ST Mark, Link of ST Mark, ST Mark Link"/> 
<meta name="robots" content="All"/> 
<meta name="google-site-verification" content="lSUCEXcq_zpqMCB95pLuXOE_mjhPUq9O7nT5MrnsUaQ" />
<meta name="language" content="en-us" /> 
<meta name="resource-type" content="document" /> 
<meta name="copyright" content="www.stmarksflats.com" /> 
<meta name="author" content="enquiries@stmarksflats.com" /> 
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.classify.org/safesurf/" L gen true for "http://www.stmarksflats.com" r (SS~~000 1))' /> 
<meta name="distribution" content="Global"/> 
<meta name="coverage" content="Worldwide"/> 
<meta name="country" content="United Kingdom" /> 
<meta name="location" content="Global" /> 
<?php
}
?>
<!--banner -->

<link type='text/css' href='css/contact.css' rel='stylesheet' media='screen' />
	<link rel="stylesheet" type="text/css" href="banner/slider.css">
    <!-- Javascript -->
    <script type="text/javascript" src="banner/jquery_002.js"></script>
    <script type="text/javascript" src="banner/jquery.js"></script>
    <script type="text/javascript" src="banner/config.js"></script>
<!--banner end-->	


<link href="css/styler.css" rel="stylesheet" type="text/css" />
<link href="css/styler.css" rel="stylesheet" type="text/css" />




<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	
	<link rel="stylesheet" href="lightbox-mac-style-demo_files/screen.css" type="text/css" media="screen">
		
		<!-- Start VisualLightBox.com HEAD section -->
		<link rel="stylesheet" href="lightbox-mac-style-demo_files/vlightbox.css" type="text/css">
		<style type="text/css">#vlightbox a#vlb{display:none}</style>
		<link rel="stylesheet" href="lightbox-mac-style-demo_files/visuallightbox.css" type="text/css" media="screen">
		<script src="lightbox-mac-style-demo_files/jquery-1.js" type="text/javascript"></script>



<style type="text/css" media="screen">


/* End CSS Drop Down Menu */

</style>
<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAJCdJ8HX8Vsg_9mlybu9uVRRje7TpRbVRgowzVwOD4Exnrz5xixR7alHLxV4IjbeE5Yl7CBE2gVfL5A" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
	 if (GBrowserIsCompatible()) {
       var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(53.811425, -1.55292), 18);

// Select a map type which supports aerial imagery
// Enable the additional map types within
// the map type collection
map.enableRotation();
var center = new GLatLng(53.811425, -1.55292);
map.setCenter(center, 18);

var marker = new GMarker(center, {draggable: true});

GEvent.addListener(marker, "dragstart", function() {
  map.closeInfoWindow();
  });

GEvent.addListener(marker, "dragend", function() {
  marker.openInfoWindowHtml("St Marks Flats, 27 St Marks Road Leeds LS2 9AF");
  });
  
    //  * G_NORMAL_MAP displays the normal, default 2D tiles of Google Maps
  //  * G_SATELLITE_MAP displays photographic tiles
  ///  * G_HYBRID_MAP displays a mix of photographic tiles and a tile layer for prominent features (roads, city names)

  
map.setMapType(G_NORMAL_MAP);
map.setUIToDefault();
map.addOverlay(marker);
 }
      var myPano = new GStreetviewPanorama(document.getElementById("pano"));
      fenwayPark = new GLatLng(53.811325,-1.55292);
      myPOV = {yaw:250.64659986187695,pitch:-5};
      myPano.setLocationAndPOV(fenwayPark, myPOV);
      GEvent.addListener(myPano, "error", handleNoFlash);
    }
    function handleNoFlash(errorCode) {
      if (errorCode == 603) {
        alert("Error: Flash doesn't appear to be supported by your browser");
        return;
      }
 	}  
    </script>
</head>

<body onload="initialize()" onunload="GUnload()"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td align="center"><table width="700" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" valign="top" bgcolor="#f1f1f1"><?php include("includes/header.php");?>
		  <!--hhhhh-->
		  <?php if($_GET['p']=="gallery"){ ?>
		  <table width="800" border="0" cellspacing="2" cellpadding="0">
            <tr>
              <td align="center" valign="top"><br />
                <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                  <td align="left" class="hed" height="50" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<h1><?php echo $row2['page_heading'];?></h1></td>
                </tr>
                <tr>
                  <td class="txt" align="center">	  
				  <div id="content-machh" align="center" style="margin-left:50px;">
	
	<!-- Start VisualLightBox.com BODY section -->
	<div id="vlightbox">
	<?php  $sql_gallery='SELECT * FROM `tbl_gallery` WHERE STATUS =1';

$rst=mysql_query($sql_gallery);

while($gall_row=mysql_fetch_array($rst))
{?>
	
	<a class="vlightbox" href="uploads/gallery/<?php echo $gall_row['img_name'];?>" title="<?php echo $gall_row['discription'];?>">
	<img src="uploads/gallery/<?php echo $gall_row['thum_name'];?>" alt=" " align="middle">
	<span></span>	</a>
	
	<?php }?>
	
	
	
	</div>
<script type="text/javascript">
	var $VisualLightBoxParams$ = {autoPlay:true,borderSize:39,enableSlideshow:true,startZoom:true};
</script>
		<script src="lightbox-mac-style-demo_files/visuallightbox.js" type="text/javascript"></script>
		<script type="text/javascript"> $.noConflict();</script>
	<!-- End VisualLightBox.com BODY section -->
	</div>
				  
				  <?php //echo $row2['txtbody'];?></td>
                </tr>
          </table>
                
               
                </td>
              <td align="right" valign="top"><?php //include("includes/rightcolum.php");?></td>
            </tr>
        </table>
		  <?php }elseif($_GET['p']=="location"){ ?>
		  <table width="800" border="0" cellspacing="2" cellpadding="0">
            <tr>
              <td align="center" valign="top"><br />
                <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                  <td align="left" class="hed" height="50" style="margin-left:20px;"><h1>Location Map</h1><h2>St Marks Flats, 27 St Marks Road Leeds LS2 9AF</h2></td>
                </tr>
                <tr>
                  <td class="txt" align="center">	  
				
				  <div name="pano" id="pano" style="width: 720px; height: 400px"></div><br />
				   <div id="map_canvas" style="width: 720px; height: 400px"></div>
				  <?php //echo $row2['txtbody'];?></td>
                </tr>
          </table>
                
               
                </td>
              <td align="right" valign="top"><?php //include("includes/rightcolum.php");?></td>
            </tr>
        </table>
		  <?php }else{ ?>
		  <!--hhhhh-->
          <table width="800" border="0" cellspacing="2" cellpadding="0">
            <tr>
              <td align="center" valign="top"><br />
                <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                  <td align="left" class="hed"><h1><?php echo $row2['page_heading'];?></h1></td>
                </tr>
                <tr>
                  <td class="txt" align="center">	  
				  <?php echo stripslashes($row2['txtbody']);?></td>
                </tr>
          </table>
                
               
                </td>
              <td align="right" valign="top"><?php include("includes/rightcolum.php");?></td>
            </tr>
        </table>
		<?php } ?>
          <br />
           <br />
          <?php include('includes/footer.php');?></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
