Jump to content
MakeWebGames

Mainmenu Style


mxyi

Recommended Posts

hey Guys i made this little picture that will be what my new template.. i know how to do most if it exept thing..templateaw.png if you look at the main menu at the top thingy would the best way to do it would be with tables? like all the games links in one table then one for staff online n admin panel and one for the user options, i know how to add the style to the tables but im not good at the tables so could anyone help me? this is my mainmenu.php,

<?php
global $db,$c,$ir, $set;
$city = mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." "));
$hc=$set['hospital_count'];
$jc=$set['jail_count'];
$ec=$ir['new_events'];
$mc=$ir['new_mail'];
if($ir['hospital'])
{
 print "[url='bank.php']-Bank[/url]

 [url='hospital.php']-Hospital ($hc)[/url]

 [url='inventory.php']-Inventory[/url]
";
}
elseif($ir['jail'])
{
 print "[url='jail.php']-Jail ($jc)[/url]
";
}
else
{
 print "[url='index.php']-Home[/url]

 [url='newspaper.php']-Newspaper[/url]

 [url='inventory.php']-Inventory[/url]
";
}
if($ec > 0) { print "[url='events.php']-Events (<font color=red>$ec</font>)[/url]
"; }
else { print "[url='events.php']-Events (0)[/url]
"; }
if($mc > 0) { print "[url='mailbox.php']-Mailbox (<font color=red>$mc</font>)[/url]
"; }
else { print "[url='mailbox.php']-Mailbox (0)[/url]
"; }
if($ir['jail'] and !$ir['hospital'])
{
 print "[url='gym.php']-Jail Gym[/url]

 [url='shoutarea']-Shout Box[/url]

 [url='bank.php']-Bank[/url]

 [url='hospital.php']-Hospital ($hc)[/url]
";
}
else if (!$ir['hospital'])
{
 print "
 [url='explore.php']-<font color=white>$city->cityname</font>[/url]

 [url='gym.php']-Local Gym[/url]

 [url='shoutarea.php']-Shout Box[/url]

 [url='polling.php']-Polling[/url]

 [url='bank.php']-Bank[/url]

 [url='criminal.php']-Crimes[/url]

 [url='job.php']-Your Job[/url]

 [url='education.php']-Local School[/url]

 [url='hospital.php']-Hospital ($hc)[/url]

 [url='usersonline.php']-Users Online[/url]

 [url='jail.php']-Jail ($jc)[/url]
";
}
else
{
 print "[url='jail.php']-Jail ($jc)[/url]
";
}
print "[url='forums.php']-AW Forums[/url]
";
if($ir['new_announcements'])
{
print "[url='ann.php']-[b]Announcements (<font color=red>{$ir['new_announcements']}</font>)[/url]
";
}
else
{
print "[url='ann.php']-Announcements (0)[/url]
";
}
print "
[url='search.php']-Search[/url]
";
if(!$ir['jail'] && $ir['gang'])
{
 print "[url='yourgang.php']-Your Gang[/url]
";
}
if($ir['user_level'] > 1)
{
print "<hr />
[url='staff.php']-Admin Panel[/url]
\n";
}

print "<hr />[b]-Staff Online:[/b]
";
$q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC");
while($r=$db->fetch_row($q))
{
$la=time()-$r['laston'];
$unit="secs";
if($la >= 60)
{
$la=(int) ($la/60);
$unit="mins";
}
if($la >= 60)
{
$la=(int) ($la/60);
$unit="hours";
if($la >= 24)
{
$la=(int) ($la/24);
$unit="days";
}
}
print "-[url='viewuser.php?u={$r[']<font color={$r['username_color']}>{$r['username']}</font>[/url] ($la $unit)
";
}
if($ir['donatordays'])
{
print "<hr />
[b]-Donators Package[/b]

-[url='preferences.php?action=colorchange']Change Username Color[/url]

-[url='friendslist.php']Friends List[/url]

-[url='blacklist.php']Ignore List[/url]";
}
print "<hr />
-[url='preferences.php']Settings[/url]

-[url='preport.php']Report Player[/url]

-[url='helptutorial.php']Getting Started[/url]

-[url='gamerules.php']Game Rules[/url]

-[url='viewuser.php?u={$ir[']My Profile[/url]

-[url='logout.php']Logout[/url]


Time is now

";
echo date ('F j, Y')."
".date('g:i:s a');
?>
Link to comment
Share on other sites

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.   Paste as plain text instead

  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...