Jump to content

how to get a menu on the right??


mrbean

Recommended Posts

how can i make a menu on the right

2 menu sides

just like this

pjzlbina.twenty.versio.nl/nameless.bmp

<?php /* ------------------------- */

function laadtijd()  
{  
list($usec, $sec) = explode(" ",microtime());  
return ((float)$usec + (float)$sec);  
}  
$start_tijd = laadtijd(); 

if($data->ban == 1)
{
   echo "<tr><td class=subtitle>Verbannen</tr></td>";
   echo "<tr><td class=maintxt>
<center>Ahaaa...jammer dat het zo moest eindigen.
je hebt te vaak iets fouts gedaan daarom ben je nu verbannen 
van Grandcriminals verder wens Grandcriminals.nl jouw een fijne dag toe 
namens het Grandcriminals.NL team.<br>
</center></tr></td>";
   exit;
}


  if(isset($_SESSION['login'],$_COOKIE['validate'])) {
    setcookie("login",$_COOKIE['login'],time()+24*60*60,"/",".maffiacity.nl");
    setcookie("validate",$_COOKIE['validate'],time()+24*60*60,"/",".maffiacity.nl");
  }

$cookie_user = isset($_COOKIE["cookie_user"]) ? $_COOKIE["cookie_user"] : "";
$cookie_paswoord = isset($_COOKIE["paswoord"]) ? $_COOKIE["paswoord"] : "";
$checked = isset($_COOKIE["check"]) ? "CHECKED" : "";

  include("_include-config.php");

if(!empty($_SESSION['login'])) {
$gebruiker = "<a href='profile.php?x=".$_COOKIE['login']."'>".$_COOKIE['login']."</a>";
$gebruiker_balk = $_SESSION['login'];
} else {
$gebruiker = "Gast";
$gebruiker_balk = "Gast";
}

if(isSet($_SESSION['login'])) {
  $inboxnew = mysql_num_rows(mysql_query("SELECT id FROM `[messages]` WHERE `read`=0 AND `inbox`=1 AND `to`='$data->login'"));
  $inbox = "U heeft ".$inboxnew." nieuwe berichten.";
}
else 
{ 
  $inbox = "";
}
## parse
## parsetime
$einde = microtime();    
$split = explode(" ", $einde);    
$eind_precies = $split[0];    
$eind_seconden = date("U");    
$eind_tijd = $eind_precies + $eind_seconden;    
$verschil = $eind_tijd - $begin_tijd; 
$tijd = round($verschil,$pars_decimalen); 
$parses = "$pars_voorvoegsel $tijd $pars_achtervoegsel";


/* ------------------------- */ ?>
<html>


<head>

<script language="JavaScript"> 

function blockError(){return true;}

window.onerror = blockError;

</script>
<script language="JavaScript">
<!--
maanden = new Array(12);
maanden[0] = 'Januari';
maanden[1] = 'Februari';
maanden[2] = 'Maart';
maanden[3] = 'April';
maanden[4] = 'Mei';
maanden[5] = 'Juni';
maanden[6] = 'Juli';
maanden[7] = 'Augustus';
maanden[8] = 'September';
maanden[9] = 'Oktober';
maanden[10] = 'November';
maanden[11] = 'December';

dagen = new Array(7);
dagen[0] = 'Zondag';
dagen[1] = 'Maandag';
dagen[2] = 'Dinsdag';
dagen[3] = 'Woensdag';
dagen[4] = 'Donderdag';
dagen[5] = 'Vrijdag';
dagen[6] = 'Zaterdag';

function maakDatum(datum)
{
var dag = dagen[datum.getDay()];
var maand = maanden[datum.getMonth()];
var jaar = datum.getYear();
var datumstring = dag + ' ' + datum.getDate() + ' ' + maand + ' ' + jaar;
return datumstring;
}
//-->
</script>

<script type="text/javascript">
window.defaultStatus='Welkom <?=$gebruiker_balk; ?>, op Grandcriminals <?=$inbox; ?>';
</script>
<style type="text/css" >

body {
background-image: url(1241099397.jpg);
background-repeat: no-repeat;
background-attachment: fixed
}
</style>
<title>Grandcriminals.nl</title>
<LINK REL="SHORTCUT ICON" href="favicon.ico"> 
<link rel="stylesheet" type="text/css" href="css-v1.css">
<base target="mainFrame" />

<script language="javascript">
function showMenu(id) {
  if(document.getElementById(id).style.visibility == "hidden") {
    document.getElementById(id).style.position		= "static";
    document.getElementById(id).style.visibility	= "visible";
  }
  else {
    document.getElementById(id).style.visibility	= "hidden";
    document.getElementById(id).style.position		= "absolute";
    document.getElementById(id).style.left		= -100;
    document.getElementById(id).style.top		= -100;
  }

  document.getElementById('mainTable').height		= '100%';
}
</script>
<script type="text/javascript"> 

var currenttime = '<? echo date("F d, Y H:i:s"); ?>' 
var serverdate=new Date(currenttime) 

function padlength(what){ 
var output=(what.toString().length==1)? "0"+what : what 
return output 
} 

function displaytime(){ 
serverdate.setSeconds(serverdate.getSeconds()+1) 
var
timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds()) 
document.getElementById("servertime").innerHTML=timestring 
} 

window.onload=function(){ 
setInterval("displaytime()", 1000) 
} 

</script>
</head>

<body onLoad="start()">
  <table align="center" width="820" height="80%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #000000; border-top: 0px solid #333333">
    <tr>
      <td width="14" background="images/left_background.gif"> </td>
      <td valign="top" bgcolor="#00FFFF">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="2" valign="top">
<img border="0" src="headerz.JPG" width="800" height="149" /></td>
          </tr>
          <tr valign="middle">
            <td height="25" colspan="2" background="images/bg_mid_mid.gif"><div align="center">
            <font color=white>Welkom, <strong><font color=red><? echo $gebruiker; ?></font></strong>, op Grandcriminals # 
            <script language="JavaScript">
<!--
document.write(maakDatum(new Date()));
//-->
                  </script></font></div></td>
          </tr>
          <tr>

<script type="text/javascript"> 

var currenttime = '<? echo date("F d, Y H:i:s"); ?>' 
var serverdate=new Date(currenttime) 

function padlength(what){ 
var output=(what.toString().length==1)? "0"+what : what 
return output 
} 

function displaytime(){ 
serverdate.setSeconds(serverdate.getSeconds()+1) 
var
timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds()) 
document.getElementById("servertime").innerHTML=timestring 
} 

window.onload=function(){ 
setInterval("displaytime()", 1000) 
} 

</script>
            <td align="center" background=background_blue_jeff.jpg style="padding: 5pt">
		<div align="left">
		<?php /* ------------------------- */
  $dbresxa = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");
  $onliner = mysql_num_rows($dbresxa);
  $dbres				= mysql_query("SELECT id FROM `[users]`");
  $members = mysql_num_rows($dbres);
$member = mysql_fetch_object($dbres);
    $select = mysql_query("SELECT login FROM `[users]` ORDER BY signup DESC LIMIT 0,1");
    
  $object = mysql_fetch_object($select);
  print <<<ENDHTML
  <table background=background_blue_jeff.jpg width=150>
<tr><td align="center" class="mainTxt"><b>Leden:</b> $members</td></tr>
<tr><td align="center" class="mainTxt"><b>Leden online:</b> $onliner</td></tr>
<tr><td align="center" class="mainTxt"><b>Nieuwste: <a href="profile.php?x=$object->login"><font color="Red"><b>$object->login</b></font></a></tr>
<tr><td align="center" class="mainTxt"><p><span id="servertime"></span></p></td></tr>
</form>


          

  </table>
  <br/>
ENDHTML;

  if($data) {
  
$dbresa = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300");

$online = mysql_num_rows($dbresa);
$dbresx = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `showonline`=0");

$anonymous = mysql_num_rows($dbresx);
$dbresd = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `level`=1000");

$admins = mysql_num_rows($dbresd);
$dbresf = mysql_query("SELECT `id` FROM `[users]` WHERE UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`online`) < 300 AND `level`=500");

$mods = mysql_num_rows($dbresf);  
  
    print <<<ENDHTML
      <table class="menu" width=150 cellpadding=0 cellspacing=0>
        <tr><td><table width=100% cellpadding=0 cellspacing=0>
	<tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('main')">#</a> </td>
		<td class="menuTitle"><b>Algemeen</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="main" style="position: absolute; left: -100; top: -100; visibility: hidden;">
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="home.php" class="menu">Home</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="help.php" class="menu">Help/FAQ</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="contact.php" class="menu">Contact</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="poll/index.php" class="menu">Poll</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="login.php?x=logout" class="menu">Logout</a></td></tr>
</table></td></tr>
      </table><br>

      <table class="menu" width=150 cellpadding=0 cellspacing=0>
        <tr><td><table width=100% cellpadding=0 cellspacing=0>
	<tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('control')">#</a> </td>
		<td class="menuTitle"><b>Gebruiker</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="control">
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="hq.php" class="menu">Hoofdkwartier</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="status.php" class="menu">Status</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="veiling.php" class="menu">Veiling</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="message.php?p=inbox" class="menu">Berichten</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="list.php" class="menu">Leden lijst</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="list.php?s=online" class="menu">Leden Online</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="trein.php" class="menu">Trein Station</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="log.php" class="menu">Logs</a></td></tr>
    <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="shop.php" class="menu">Shop</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="bank.php" class="menu">Bank</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="casino.php" class="menu">Casino</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="poll/index.php" class="menu">Poll</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="debak.php" class="menu">Gevangenis</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="energie.php" class="menu">Energie</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="stats.php" class="menu">Statistieken</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="ster.php" class="menu">Naam opties</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="belservice.php" class="menu">Belservice</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="creditshop.php" class="menu">Credits uitgeven</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="bewerken.php" class="menu">Bewerk profiel</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="loterij.php" class="menu">Bell loterij</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="playermess.php?m=1.php" class="menu">Forum</a></td></tr>

</table></td></tr>
      </table><br>

      <table class="menu" width=150 cellpadding=0 cellspacing=0>
        <tr><td><table width=100% cellpadding=0 cellspacing=0>
	<tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('11')">#</a> </td>
		<td class="menuTitle"><b>Extra</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="11">
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="missie.php" class="menu"><font color="Red"><b>Missie!</b></font></a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="ticket.php" class="menu">TicketSysteem</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="lottery.php" class="menu">Loterij</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="drugs.php" class="menu">Drugs smokkel</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="autoopties.php" class="menu">Auto. Opties</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="creditmarkt.php" class="menu">Credits Markt</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="djoint.php" class="menu">Joint`s</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="misdaad.php" class="menu">Misdaad</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="tankstation.php" class="menu">Tankstation</a></td></tr>

	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="coffeeshop.php" class="menu">Coffeshop</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="sj.php" class="menu">Single Job</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="beurs.php" class="menu">Aandelenbeurs</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="getallenspel.php" class="menu">GetallenSpel</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="landgoed.php" class="menu">Jouw Landgoed</a></td></tr>

	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="hand.php" class="menu">Handje drukken</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="huwelijk.php" class="menu">Huwelijk</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="beroof.php" class="menu">Beroof</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="orginizedcrime.php" class="menu">Georg. Misdaad</a></td></tr>
</table></td></tr>
      </table><br>

      <table class="menu" width=150 cellpadding=0 cellspacing=0>
        <tr><td><table width=100% cellpadding=0 cellspacing=0>
	<tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('clan')">#</a> </td>
		<td class="menuTitle"><b>Clan</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="clan" style="position: absolute; left: -100; top: -100; visibility: hidden;">
       <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="clanlist.php" class="menu">Clan list</a></td></tr>
ENDHTML;
    

if($data->clanlevel == 0) {
      print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clan.php?p=join\" class=\"menu\">Aanmelden</a></td></tr>\n";
      if($data->clanlevel == 0)
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clan.php?p=new\" class=\"menu\">Nieuwe clan</a></td></tr>\n";
    }
    else {
      print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clan.php?x={$data->clan}\" class=\"menu\">Clan profiel</a></td></tr>\n";
      print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clan-donate.php?p=donate\" class=\"menu\">Clan Doneren</a></td></tr>\n";
      print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"list.php?s=clanonline\" class=\"menu\">Clan leden online</a></td></tr>\n";
      if($data->clanlevel >= 8 || $data->clanlevel == 6) {
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanbank.php\" class=\"menu\">Bank</a></td></tr>\n";
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanshop.php\" class=\"menu\">Bouwterrein</a></td></tr>\n";
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanshop-land.php\" class=\"menu\">Koop Land</a></td></tr>\n";
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanlog.php\" class=\"menu\">Clan logs</a></td></tr>\n";
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanban.php\" class=\"menu\">Clan Ban</a></td></tr>\n";    

      }
      if($data->clanlevel >= 8 || $data->clanlevel == 2)
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanhq.php?p=recruits\" class=\"menu\">Aanmeldingen</a></td></tr>\n";
      if($data->clanlevel >=  {
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanhq.php?p=members\" class=\"menu\">Members</a></td></tr>\n";
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanmsg.php?p=msg\" class=\"menu\">Clan SMS</a></td></tr>\n";
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"bescherming.php?p=bes\" class=\"menu\">Bescherming</a></td></tr>\n";
        print "        <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clanhq.php?p=info\" class=\"menu\">Clan info</a></td></tr>\n";
      }
      if($data->clanlevel > 0) {
        if($data->clanlevel < 9)
          print "  <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clan.php?p=quit\" class=\"menu\">Stap uit je clan</a></td></tr>\n";
        else
          print "  <tr><td class=\"menuLink\"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href=\"clan.php?p=delete\" class=\"menu\">Delete de clan</a></td></tr>\n";
      }
    }
    print <<<ENDHTML
</table></td></tr>
      </table>
ENDHTML;

    if($data->level == 200) {
      print <<<ENDHTML
      <br>

      <table class="menu" width=150 cellpadding=0 cellspacing=0>
        <tr><td><table width=100% cellpadding=0 cellspacing=0>
	<tr><td width=5 class="menuTitle"> <a style="color: #FFFFFF;" onClick="showMenu('admin')">#</a> </td>
		<td class="menuTitle"><b>Admin</b></td></tr>
</table>
<table width=100% cellpadding=0 cellspacing=0 ID="admin" style="position: absolute; left: -100; top: -100; visibility: hidden;">
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="admin.php?p=search" class="menu">Zoek</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="admin.php?p=massmsg" class="menu">Mass Message</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="admin.php?p=adminmsg" class="menu">Admin Message</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="admin.php?p=donate" class="menu">Doneer</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="admin-ipban.php" class="menu">Ipban</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="forumban" class="menu">Forum</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="poll/admin.php" class="menu">poll</a></td></tr>
	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="spelerstats.php" class="menu">Spelerstats</a></td></tr>
</table></td></tr>
      </table>
ENDHTML;
    }
    else
      print "	</td>\n";
  }
  else {
    print <<<ENDHTML
      <table class="menu" width=150 cellpadding=0 cellspacing=0 align=center>
        <tr><td class="menuTitle" align="center"><b>Algemeen</b></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="home.php" class="menu">Home</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="team.php" class="menu">Team Grandcriminals</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="contact.php" class="menu">Contact</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="help.php" class="menu">Help</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="signup.php" class="menu">Aanmelden</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="login.php" class="menu">Inloggen</a></td></tr>
<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="http://www.eurobellen.nl/bel/?pid=76068&returnurl=http://grandcriminals.zymichost.com/bedankt.php" class="menu">help grandcriminals en doneer</a></td></tr>
<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="downloadcriminals.php" class="menu">download criminals script</a></td></tr>

           
</table>
      <br>
            <table class="menu" width=150 cellpadding=0 cellspacing=0 align=center>
        <tr><td class="menuTitle" align="center"><b>Inloggen</b></td></tr>
        <tr><td class="menuLink">	
        <form method="post" action="login.php" method="post"><table align="center" width="100%">
  <tr><td align=center><b>Gebruikersnaam:</b></td></tr><tr>		<td align=center><input type="text" name="login" value="$cookie_user" maxlength=16 style="text-align: center;"></td></tr>
  <tr><td align=center><b>Wachtwoord:</b></td></tr><tr>	<td align=center><input type="password" name="pass" value="$cookie_paswoord" maxlength=16 style="text-align: center;"></td></tr>
        <td align=left> <input name="frm_auto" type="checkbox" value="1" <?= $checked ?>  Onthouden  <b></font></b></td></tr>      
  <tr><td> </td></tr> <td align="center"><input type="submit" name="submit" style="width: 100;" value="Inloggen"></td></tr>
</table></form></td></tr>
  	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="signup.php" class="menu">Speel mee!</a></td></tr>
<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="login.php?x=lostpass" class="menu">Wachtwoord?</a></td></tr>
       

	</tr></table>
<br><br>
ENDHTML;
  }

/* ------------------------- */ ?>
<td valign="top" height="100%" align="center">
		   <iframe src="<?php echo ($data) ? "updates.php" : "home.php" ?>" name="mainFrame" width=640 frameborder=0 height=100%></iframe>
		   <br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			 <p> </p>
			<p>
		   <br>
		</td>
          </tr>

</div>
		</td>
<?
  if($data) {
    print <<<ENDHTML
// here i can type the right menu code but what's the code??
ENDHTML;
  }
?>
          <tr valign="middle" bgcolor="#000000" />
            <td colspan="2" background="images/bottom.gif" style="border-top: 1px solid #000000; padding: 2pt; color: white;"><div align=left></div><div align="center" /> Copyright
                2009-2010 Grandcriminals.nl<br>
            Alle Rechten Voorbehouden</script>
</div></td>
          </tr>
        </table></td>
      <td width="14" background="images/right_background.gif" /> </td>
    </tr>
  </table>

</body>

Link to comment
Share on other sites

i want it also on the home page i think this is the easer whay to begin

php script:

<html>


<head>

<script language="JavaScript"> 

function blockError(){return true;}

window.onerror = blockError;

</script>
<script language="JavaScript"> 
<!--
maanden = new Array(12);
maanden[0] = 'Januari';
maanden[1] = 'Februari';
maanden[2] = 'Maart';
maanden[3] = 'April';
maanden[4] = 'Mei';
maanden[5] = 'Juni';
maanden[6] = 'Juli';
maanden[7] = 'Augustus';
maanden[8] = 'September';
maanden[9] = 'Oktober';
maanden[10] = 'November';
maanden[11] = 'December';

dagen = new Array(7);
dagen[0] = 'Zondag';
dagen[1] = 'Maandag';
dagen[2] = 'Dinsdag';
dagen[3] = 'Woensdag';
dagen[4] = 'Donderdag';
dagen[5] = 'Vrijdag';
dagen[6] = 'Zaterdag';

function maakDatum(datum)
{
var dag = dagen[datum.getDay()];
var maand = maanden[datum.getMonth()];
var jaar = datum.getYear();
var datumstring = dag + ' ' + datum.getDate() + ' ' + maand + ' ' + jaar;
return datumstring;
}
//-->
</script>

<script type="text/javascript"> 
window.defaultStatus='Welkom Gast, op Grandcriminals ';
</script>
<style type="text/css" > 

body {
background-image: url(1241099397.jpg);
background-repeat: no-repeat;
background-attachment: fixed
}
</style>
<title>Grandcriminals.nl</title>
<LINK REL="SHORTCUT ICON" href="favicon.ico"> 
<link rel="stylesheet" type="text/css" href="css-v1.css">
<base target="mainFrame" />

<script language="javascript"> 
function showMenu(id) {
  if(document.getElementById(id).style.visibility == "hidden") {
    document.getElementById(id).style.position		= "static";
    document.getElementById(id).style.visibility	= "visible";
  }
  else {
    document.getElementById(id).style.visibility	= "hidden";
    document.getElementById(id).style.position		= "absolute";
    document.getElementById(id).style.left		= -100;
    document.getElementById(id).style.top		= -100;
  }

  document.getElementById('mainTable').height		= '100%';
}
</script>
<script type="text/javascript"> 

var currenttime = 'May 13, 2010 01:03:07' 
var serverdate=new Date(currenttime) 

function padlength(what){ 
var output=(what.toString().length==1)? "0"+what : what 
return output 
} 

function displaytime(){ 
serverdate.setSeconds(serverdate.getSeconds()+1) 
var
timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds()) 
document.getElementById("servertime").innerHTML=timestring 
} 

window.onload=function(){ 
setInterval("displaytime()", 1000) 
} 

</script>
</head>

<body onLoad="start()">
  <table align="center" width="820" height="80%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #000000; border-top: 0px solid #333333">
    <tr>
      <td width="14" background="images/left_background.gif"> </td>
      <td valign="top" bgcolor="#00FFFF">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td colspan="2" valign="top">
<img border="0" src="headerz.JPG" width="800" height="149" /></td>
          </tr>
          <tr valign="middle">
            <td height="25" colspan="2" background="images/bg_mid_mid.gif"><div align="center">
            <font color=white>Welkom, <strong><font color=red>Gast</font></strong>, op Grandcriminals # 
            <script language="JavaScript">
<!--
document.write(maakDatum(new Date()));
//-->
                  </script></font></div></td>
          </tr>
          <tr>

<script type="text/javascript"> 

var currenttime = 'May 13, 2010 01:03:07' 
var serverdate=new Date(currenttime) 

function padlength(what){ 
var output=(what.toString().length==1)? "0"+what : what 
return output 
} 

function displaytime(){ 
serverdate.setSeconds(serverdate.getSeconds()+1) 
var
timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds()) 
document.getElementById("servertime").innerHTML=timestring 
} 

window.onload=function(){ 
setInterval("displaytime()", 1000) 
} 

</script>
            <td align="center" background=background_blue_jeff.jpg style="padding: 5pt">
		<div align="left">
		  <table background=background_blue_jeff.jpg width=150>
<tr><td align="center" class="mainTxt"><b>Leden:</b> 3</td></tr>
<tr><td align="center" class="mainTxt"><b>Leden online:</b> 0</td></tr>
<tr><td align="center" class="mainTxt"><b>Nieuwste: <a href="profile.php?x=DON"><font color="Red"><b>DON</b></font></a></tr>
<tr><td align="center" class="mainTxt"><p><span id="servertime"></span></p></td></tr>
</form>


          

  </table>
  <br/>      <table class="menu" width=150 cellpadding=0 cellspacing=0 align=center>
        <tr><td class="menuTitle" align="center"><b>Algemeen</b></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="home.php" class="menu">Home</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="team.php" class="menu">Team Grandcriminals</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="contact.php" class="menu">Contact</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="help.php" class="menu">Help</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="signup.php" class="menu">Aanmelden</a></td></tr>
        <tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="login.php" class="menu">Inloggen</a></td></tr>
<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="http://www.eurobellen.nl/bel/?pid=76068&returnurl=http://grandcriminals.zymichost.com/bedankt.php" class="menu">help grandcriminals en doneer</a></td></tr>
<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="downloadcriminals.php" class="menu">download criminals script</a></td></tr>

           
</table>
      <br>
            <table class="menu" width=150 cellpadding=0 cellspacing=0 align=center>
        <tr><td class="menuTitle" align="center"><b>Inloggen</b></td></tr>
        <tr><td class="menuLink">	
        <form method="post" action="login.php" method="post"><table align="center" width="100%">
  <tr><td align=center><b>Gebruikersnaam:</b></td></tr><tr>		<td align=center><input type="text" name="login" value="" maxlength=16 style="text-align: center;"></td></tr>
  <tr><td align=center><b>Wachtwoord:</b></td></tr><tr>	<td align=center><input type="password" name="pass" value="" maxlength=16 style="text-align: center;"></td></tr>
        <td align=left> <input name="frm_auto" type="checkbox" value="1" <?=  ?>  Onthouden  <b></font></b></td></tr>      
  <tr><td> </td></tr> <td align="center"><input type="submit" name="submit" style="width: 100;" value="Inloggen"></td></tr>
</table></form></td></tr>
  	<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="signup.php" class="menu">Speel mee!</a></td></tr>
<tr><td class="menuLink"> <img src='images/item.gif' align='absmiddle' border='0' alt='' style='border: 1px solid black;'> <a href="login.php?x=lostpass" class="menu">Wachtwoord?</a></td></tr>
       

	</tr></table>
<br><br> <td valign="top" height="100%" align="center">
		   <iframe src="home.php" name="mainFrame" width=640 frameborder=0 height=100%></iframe>
		   <br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			 <p> </p>
			<p>
		   <br>
		</td>
          </tr>

</div>
		</td>
          <tr valign="middle" bgcolor="#000000" />
            <td colspan="2" background="images/bottom.gif" style="border-top: 1px solid #000000; padding: 2pt; color: white;"><div align=left></div><div align="center" /> Copyright
                2009-2010 Grandcriminals.nl<br>
            Alle Rechten Voorbehouden</script>
</div></td>
          </tr>
        </table></td>
      <td width="14" background="images/right_background.gif" /> </td>
    </tr>
  </table>

</body>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.