| Current Path : /var/www/html/mmishra/mm/ |
| Current File : /var/www/html/mmishra/mm/admin.php |
<?php
//include library functions
require("init.inc.php");
?>
<!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' xml:lang='en' lang='en'>
<head>
<title><?php echo $title; ?></title>
<meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1' />
<meta name='author' content='<?php echo $author; ?>' />
<meta name='keywords' content='<?php echo $keywords; ?>' />
<meta name='description' content='<?php echo strip_tags($description); ?>' />
<?php
echo ajax();
echo "<style type='text/css'>";
include "jquerycssmenu.css.inc";
echo "</style>";
?>
<link rel='stylesheet' type='text/css' href='css/style.css' media='screen' />
<link rel='stylesheet' type='text/css' href='css/calendar.css' media='screen' />
<link rel='SHORTCUT ICON' href='images/uprtou.ico'>
<!--[if lte IE 7]>
<style type='text/css'>
html .jquerycssmenu{height: 1%;} /*for IE7 and below*/
</style>
<![endif]-->
<script type='text/javascript' src='js/white/jquery.min.js'></script>
<script type='text/javascript' src='js/white/jquerycssmenu.js'></script>
<script language='javascript' src='js/calendar.js'></script>
<script language='javascript' src='js/mm.js'></script>
<script language='javascript' src='js/fontsizer.js'></script>
<?php
//include online editor api
include "classes/editor.php";
?>
</head>
<body id='b'>
<center>
<form name='form' action='admin.php?conf=<?php echo $conf;?>' method='post' enctype='multipart/form-data'>
<?php
if (file_exists("$banner"))
echo "<img src='$banner' height='150' width='80%' class='banner'>";
else
echo "<table width='80%' height='90' class='banner'>
<tr><th width='100'><img src='$logo' width='60' height='60'></th>
<th><h1>$title</h1><h3>$description</h3></th>
<th width='100'>" . date("l, jS F Y") ."</th></tr>
</table>";
//echo "<div id='myjquerymenu' class='jquerycssmenu'>". hmenus($webid, $user, 0, $role) ."</div>";
echo "<div id='ajax' class='ajaxpage'></div>
<table id='t2' class='watermark' width='80%' height='500' border='0'>
<tr valign='top'><td width='100%' class='content'>
<div class='datehit'>
<a href=\"javascript:decreaseFontSize();\"><img src='images/font-dec.gif' border='0'></a>
<a href=\"javascript:increaseFontSize();\"><img src='images/font-inc.gif' border='0'></a>
</div><p>";
//show content
if ($conf && $pagetitle) {
echo "$familytree <div align='right'>$sibling</div><br>";
if ($static == 1)
echo "<b>Page Title</b><br><input type='text' name='pagetitle' size='100' value='$pagetitle'>";
else
echo "<span class='heading'>$pagetitle</span>";
echo "<div class='datetime'>[ $hits times, dated $datecreation, updated $dateupdation, accessed $dateaccess ]</div>";
switch ($static) {
case 0:
if (file_exists($pagecontent)) include($pagecontent);
break;
case 1:
echo "<b>Page Content</b><br><textarea name='pagecontent' style='width: 100%'>$pagecontent</textarea>";
break;
default:
echo "<b>Page Link</b><br><input type='text' name='pagecontent' size='140' value='$pagecontent'>";
break;
}
if ($role == 'admin' && $userid == $user && $static > 0)
echo "<br><input type='submit' name='submit' value='UPDATE' style='width: 80px'>";
} else {
echo "<b>Oops!</b><br><dir>The page is under construction, Please visit later. Thanks.</dir>";
}
echo "</p></td></tr><tr><td class='footer'>";
//echo features($webid) . '<br>';
echo footer($webid);
echo "</td></tr></table>";
echo signin($webid, $user, $role) . '<br>';
?>
</form>
</center>
</body>
</html>