<?php
include("sessionStart.php");
include("database.php");
//include('adminsessionCheck.php');
if(isset($_POST['submit']))
{
	$res=mysql_query("update home_content set home_content='".addslashes($_POST['home_content'])."' where id='2'");
	if($res)
	{
?>
	<script type="text/javascript">
	alert("Home page content saved successfully.")
	</script>
<?php 
	}
}
$req=mysql_fetch_array(mysql_query("select * from home_content where id='2'"));
												
?>

<!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" />
<title>Smart Survey - Tree Census Solution</title>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38261280-1']);
  _gaq.push(['_setDomainName', 'smartsurvey.in']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> 
<script type="text/javascript">
      bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
</script>
</head>

<body  id="home" class="body">
<div id="wrap" >
  
  
  <div id="top">
    <?php include("header.php"); ?>
    <!--<div id="ban"><table width="1004" align="left"  >
  <tr>
    <td width="234"  align="left"  valign="top" ><img src="images/logoss.jpg" border="0" /></td>
    <td  valign="top" style="padding-top:5px;" width="758"  align="right" ><table align="left" width="707">
  <tr>
    <td width="386" align="left"><div ><a href="#" id="bantext1">REQUEST A DEMO</a></div></td>
    <td width="167" align="left"><div ><a href="#" id="bantext2">DOWNLOADS</a></div></td>
    <td width="138" align="left"><div ><a href="#" id="bantext2">DOWNLOADS</a></div></td>
  </tr>
  <tr>
    <td colspan="3" align="center" class="banquot">Be Smart and Survey Smartly </td>
  </tr>
</table></td>
    
    
  </tr>
</table>
    </div>-->
    
    </div>
    </div>
   
   <div id="contholder">
   
    <?php include("adminmenu.php"); ?>
    <!--<div id="nav">
     <ul>
     <li><a href="index.php" id="home_on">HOME</a></li>
        <li><a href="products.php" id="products_on">PRODUCTS</a></li>
		<li><a href="features.php" id="features_on">FEATURES</a></li>
        <li><a href="advantages.php" id="advantages_on">ADVANTAGES</a></li>
        <li><a href="howitworks.php" id="howitworks_on">HOW IT WORKS</a></li>
        <li><a href="help.php" id="help_on">HELP</a></li>
        <li><a href="contactus.php" id="contactus_on">CONTACT US</a></li>
    
    </ul>
    
    </div>-->
    <div id="editorholder">
    
    <form name="" accept-charset="utf-8" method="post" action=""><table height="380" width="800">
  <tr>
    <td><textarea cols="122" rows="16" name="home_content">
                	<?php
						echo stripslashes($req['home_content']);
					?>
					
                </textarea></td>
  </tr>
  <tr>
    <td align="center" style="padding-left:80px;"> <input type="submit" name="submit" value="Submit"></td>
  </tr>
</table>

</form></div>
    

    	
   </div> 
<?php include("footer.php"); ?>
<!--<div id="footer">Copyright © 2012.Smart Survey All Rights Reserved.Website Designed & Developed by Kalpak Solutions</div>-->



</body>
</html>