<?php
require_once('../config/config.php');
require_once(CLASS_DIR.'dbClass.php');
$obj = new DBClass();
$cupage = 'page';

$sql = "SELECT * FROM ".TBL_MEMBERPAGE." WHERE id = '".$_GET['id']."'";
$rs = $obj->executeQry($sql,$link);
$row = $obj->fetchrow();

require_once(INCLUDES_DIR.ADMHEADER); 
?>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="29" align="center" class="submenu">Manage Members Page</td>
    
  </tr>
</table>
<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="17"></td>
  </tr>
  <tr>
    <td><table width="910" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td class="pagehead"><table width="900" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="315" height="35">View Page</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="top" bgcolor="#FFFFFF" class="innermain"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="bdr4"><table width="800" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td bgcolor="#990066" class="form_head">Page name</td>
                </tr>
              <tr>
                <td valign="top" class="form_bg"><table width="500" border="0" cellpadding="0" cellspacing="0" class="form_txt1">
                  <tr>
                    <td align="left" >Page Name</td>
			<td align="center" width="5">:</td>
                    <td><? echo $row['page_name'];?></td>
                    </tr>
                  <tr>
                    <td align="left">Page Heading</td>
			<td align="center" width="5">:</td>
                    <td><? echo $row['page_head'];?></td>
                    </tr>
					<?php if(isset($row['page_image']) && $row['page_image']!='') { ?>
                    <tr>
                    <td  align="left" width="30">
                    current image
                    </td><td align="center" width="5">:</td>
                    <td>
                    <img src="../download/page_images/<?php echo $row['page_image']?>" height="50" width="200" border="1" />
                    </td>
                    </tr>
                    <?php } ?>
                  </table></td>
              </tr>
              <tr>
                <td bgcolor="#990066" class="form_head">Page Content</td>
              </tr>
              <tr>
                <td valign="top" class="form_bg"><table width="500" border="0" cellpadding="0" cellspacing="0" class="form_txt1">
                  <tr>
                    <td align="center"><?php echo html_entity_decode(stripslashes($row['page_content']));?></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td bgcolor="#990066" class="form_head">&nbsp;</td>
              </tr>
              </table></td>
          </tr>
          </table></td>
      </tr>
      </table></td>
  </tr>
  <tr>
    <td height="40">&nbsp;</td>
  </tr>
</table>

<?php require_once(INCLUDES_DIR.ADMFOOTER); ?>