<?php
session_start();
 if(!($_SESSION['log'])){
	  header("Location:index.php");
	  }
	  include("../fckeditor.php");
	
	include('includes/php/dbconnection.php');
	 $loginQuery = "SELECT * FROM member_certification WHERE id='1'";
	 $loginResult = mysql_query($loginQuery)or die(mysql_error());
	 $row=mysql_fetch_array($loginResult);
	 
	 if($_REQUEST['edit'] == "true")
	{
		$msg = "Page Has Been Edited Successfully";
	}
	else
	{
		$msg = "";
	}
	 ?>
	
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>...:: GSA - Admin ::...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function validatePassword(id)
{
		document.form1.action = "edit_membership.php";
		document.form1.submit();
}
</script>

<link href="includes/php/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #999999}
.style3 {color: #2788BF; }
-->
</style>
</head>
<body topmargin="0" bottommargin="0">
<table width="80%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="10" colspan="2"><?php include('includes/php/top.php'); ?></td>
  </tr>
  <tr> 
     <td width="25%" valign="top"  bgcolor="#F2F2F4" style="padding-left:5px"><?php include("includes/php/left.php");?></td>
    <td width="75%"  valign="top" class="border-right">
<form name="form1" method="post" action="" enctype="multipart/form-data">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <tr>
      <td  colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" class="heading-nml">Membership And Certification</td>
    </tr>
	<tr>
      <td colspan="2" align="center" class="err-mesage"><?php echo $msg; ?></td>
    </tr>
	<tr>
      <td colspan="2">&nbsp;</td>
    </tr>
	<tr>
      <td height="25" align="right"  class="lbl-text" valign="top">Contents : &nbsp;</td>
      <td align="left">
	  <?php
		$oFCKeditor = new FCKeditor('contents');
		$oFCKeditor->BasePath = "../" ;
		//$oFCKeditor->ToolbarSet = "Basic" ;
		$oFCKeditor->Skin ="office2003";
		$oFCKeditor ->Height = '350';
		$oFCKeditor->Value = stripslashes($row['contents']);
		$oFCKeditor->Create() ;
		?>
	  </td>
    </tr>
	<tr>
      <td width="14%" height="25" align="right" class="lbl-text">&nbsp;</td>
      <td width="83%" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td height="5" colspan="2"></td>
    </tr>
    <tr>
      <td colspan="2" align="center">
          <input name="changepass" type="button" class="button" id="changepass"  onClick="javascript:validatePassword();" value="Save">
        &nbsp;&nbsp;
        <input name="reset"  type="button" class="button" value="Cancel" onClick="window.location.href='pages.php';">
        &nbsp;&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
  </table>
</form>
    </td>
  </tr>
  <tr> 
    <td height="10" colspan="2"><?php include('includes/php/bottom.php'); ?></td>
  </tr>
</table>
</body>
</html>
