ArchangelS
Registered
Можели да преместите това меню по доло в ляво , а и да ми кажете каде ми е грешката защото като го местя менюто се мести целия сайт. +1 за помоща.
<?php ob_start(); //Output Buffering Allowed ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<style type="text/css">
body, table, form {
font-family: Tahoma;
font-size: 11px;
color: #333333;
background-color: #F9F9F9;
}
div.body {
color:#333333;
background-color: #F8F8F8;
border: 1px solid #CCCCCC;
text-align: center;
padding: 2px;
}
div.sitetitle {
font-weight: bold;
background-color: #CCCCCC;
padding: 2px;
}
div.banner {
margin: 3px;
padding: 3px;
border: 1px solid silver;
}
div.menu {
letter-spacing: 1px;
background-color: #CCCCCC;
padding: 2px;
}
div.content {
color: #000000;
background-color: #F9F9F9;
text-align: left;
padding: 2px;
}
div.leftcontent {
background-color: #CCCCCC;
border-right-width: 1px;
border-right-style: dotted;
border-right-color: silver;
float: left;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: silver;
padding: 2px;
margin-right: 3px;
}
div.footer {
font-size: 10px;
color: #CCCCCC;
background-color: #333333;
padding: 2px;
}
a {
color: #0066CC;
font-weight: bold;
font-size: 10px;
text-decoration: none;
}
a:hover {
font-size: 10px;
font-weight: bold;
color: #0066CC;
text-decoration: underline;
}
input, textarea, select, radio {
font-family:Tahoma;
font-size:12px;
border: 1px solid #DDDDDD;
background-color: #F2F2F2;
}
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.markermenu{
width: 170px; /*width of menu*/
}
.markermenu ul{
list-style-type: none;
margin: 5px 0;
padding: 0;
border: 1px solid #9A9A9A;
}
.markermenu ul li a{
background: white url(media/arrow-list.gif) no-repeat 2px center;
font: bold 13px "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
color: #00014e;
display: block;
width: auto;
padding: 3px 0;
padding-left: 20px;
text-decoration: none;
border-bottom: 1px solid #B5B5B5;
}
* html .markermenu ul li a{ /*IE only. Actual menu width minus left padding of LINK (20px) */
width: 150px;
}
.markermenu ul li a:visited, .markermenu ul li a:active{
color: #00014e;
}
.markermenu ul li a:hover{
color: black;
background-color: #ffffcb;
background-image:url(media/arrow-list-red.gif); /*onMouseover image change. Remove if none*/
}
/* Holly Hack for IE \*/
* html .markermenu ul li { height: 1%; }
* html .markermenu ul li a { height: 1%; }
/* End */
</style>
<title>Your Site Title</title>
</head>
<body>
<div class="markermenu">
<ul>
<li><a href="http://www.dynamicdrive.com/" >Dynamic Drive</a></li>
<li><a href="http://www.dynamicdrive.com/style/" >CSS Library</a></li>
<li><a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a></li>
<li><a href="http://www.javascriptkit.com/domref/">DOM Reference</a></li>
<li><a href="http://www.cssdrive.com">CSS Drive</a></li>
<li><a href="http://www.codingforums.com/" style="border-bottom-width: 0">Coding Forums</a></li>
</ul>
</div>
<div class="body">
<div class="sitetitle">PHP 4 ALL MEMBERS SYSTEM</div>
<div class="banner"><img src="images/Banner.gif" width="500" height="100" /></div>
<div class="menu"><a href="?go=main">Home</a> | <a href="?go=members&get=register">Register</a> | <a href="?go=members&get=login">Login</a> | <a href="?go=members&get=logout">Logout</a> | <a href="?go=members">View Members</a> | <a href="?go=members&get=cp">User CP</a></div>
<div class="content">
<?php
ob_start();// Output Buffering Start, this will allow cookies and stuff
include("config.php");// Includes the configuration file
include("functions.php");
clean();
// PHP Navigation -----------------------
$go = $_GET['go'];// Gets the ?go
$fd = $_GET['fd'];// Gets the ?fd
if(empty($go))// If go is empty
{
$go = 'main.php';// Includes the default page
}
// Cleaning the gets --------------------
$go = str_replace('http://','',$go);
$go = str_replace('www.','',$go);
$go = str_replace('.php','',$go);
$fd = str_replace('http://','',$fd);
$fd = str_replace('www.','',$fd);
$fd = str_replace('.php','',$fd);
// End of Cleaning the gets ---------------
if(isset($fd) && isset($go) && file_exists($fd."/".$go.".php")){
include ($fd."/".$go.".php");
}else if(isset($go) && file_exists($go.".php")){
include ($go.".php");
}else{
echo "Sorry, that page does not exist.";
}
// End of PHP Navigation -----------------
ob_end_flush();// Output Buffering End Flush
?>
</a><br />
<br />
</div>
<div class="footer">Copyrighted 2006 yoursite[dot]com - Powered by <a href="http://php4all.org" target="_blank">PHP4ALL</a> User System </div>
</div>
</body>
</html>