<?php 
require_once('config/config.php');
require_once(CLASS_DIR.'dbClass.php');
require_once(INCLUDES_DIR.'header.php');

$obj = new DBClass();

$sql = "SELECT * FROM ".TBL_PAGES." WHERE page_name = '".$_GET['page']."' AND status = 0";
$rs = $obj->executeQry($sql,$link);
$row = $obj->fetchrow();

$pageName = $row['page_head'];
?>


<!--workarea start------------------------->
<div class="workarea">
	<div class="workareatop">
		<img src="images/workareatopcorner_03.PNG" alt="" />
	</div>
	<!--workareamid start--------------------->
	<div class="workareamid">
		<div id="floatleft" style="width:590px; float:left;">
			<div class="welcomediv">

                        <h2><?php echo $row['page_head'];?></h2>
						<?php 	echo html_entity_decode(stripslashes($row['page_content'])); ?>

<?php include('hitCounter.php'); ?>



						</div>
				</div>
				<?php require_once(INCLUDES_DIR.'left_bar.php');?>
                <!--floatright close-------------------->
                <div style="clear:both;"></div>
            </div>
            <!--workareamid close--------------------->
            <div class="workareabottom">
                <img src="images/workareabottomcorner_03.PNG" alt="" />
            </div>
        </div>
    <!--workarea close------------------------->
<?php require_once(INCLUDES_DIR.'footer.php');?>