Jump to content
MakeWebGames

Legaci

Members
  • Posts

    82
  • Joined

  • Last visited

Everything posted by Legaci

  1. sreenshots added
  2. it should be an echo missing or not closed under if(ir$....... again sorry if wrong but thats is what i would look for
  3. come check it out at bravelandcity.com if you wish to se it it more detail
  4. cheers spent a long time on it :D
  5. ive built this new main menu took alot of work does a few things... 1. each link is in a table and can be coloured easy 2. mouse hover over link turns link red 3. when recieving a mail, event or announcement the whole link turns red 4. index captions added account Profile, Areas ect 5. each staff member online has there own table in the menu bar 6.preview in full working order on bravelandcity.com Screenshots: http://prntscr.com/xm3mm http://prntscr.com/xm3sa Replace with existing mainmenuphp <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='hospital.php'' style='cursor:pointer' bgcolor='#000000'></tr><td style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'> <a href='hospital.php'>Hospital ($hc)</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='inventory.php'' style='cursor:pointer' bgcolor='#000000'></tr><td style='background-color: rgb(180, 253, 182); background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'> <a href='inventory.php'>Inventory</a></td></tr></table>"; } elseif($ir['jail']) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='jail.php'' style='cursor:pointer' bgcolor='#000000'></tr><td style='background-color: rgb(180, 253, 182); background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='jail.php'>Jail ($jc)</a></td></tr></table>"; } else { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr style='cursor:pointer' bgcolor='#000000'></tr><td style='background-color: #333333; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><font color='white'><b>Account Profile</b></font></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='index.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6'class='hover a';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='index.php'>Home</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'class='mover a'> <tr onclick='document.location='inventory.php'' style='cursor:pointer' bgcolor='#000000'></tr><td style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'> <a href='inventory.php'>Inventory</a></td></tr></table>"; } if($ec > 0) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='events.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: red; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='events.php' style='font-weight: 800;'>Events<b> ($ec)</b></a></td></tr></table>"; } else { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='events.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='events.php'>Events (0)</a></td></tr></table>"; } if($mc > 0) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='mailbox.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: red; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='mailbox.php' style='font-weight: 800;'>Mailbox <b>($mc)</b></a></td></tr></table>"; } else { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='mailbox.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='mailbox.php'>Mailbox (0)</a></td></tr></table>"; } if($ir['new_announcements']) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='announcements.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: red; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='ann.php' style='font-weight: 800;'><a href='announcements.php'>Announcements<b> ({$ir['new_announcements']})</b></a></td></tr></table>"; } else { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='announcements.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='announcements.php'>Announcements (0)</a></td></tr></table>"; } if($ir['jail'] and !$ir['hospital']) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='gym.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='gym.php'>Jail Gym</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='hospital.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='hospital.php'>Hospital ($hc)</a></td></tr></table>"; } else if (!$ir['hospital']) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick= style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #333333; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><font color='white'><b>Areas</b></font></td></tr> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='explore.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='explore.php'>City</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='gym.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='gym.php'>Gym</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='criminal.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='criminal.php'>Crimes</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='job.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'> <a href='job.php'>Your Job</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='education.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='education.php'>Local School</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='hospital.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc); background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='hospital.php'>Hospital ($hc)</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='jail.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='jail.php'>Jail ($jc)</a></td></tr></table>"; } else { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='jail.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='jail.php'>Jail ($jc)</a></td></tr></table>"; } print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='forums.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='forums.php'>Forums</a></td></tr></table>"; print " <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='newspaper.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='newspaper.php'>Newspaper</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='search.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='search.php'>Search</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='usersonline.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='usersonline.php'>Users Online</a></td></tr></table>"; if(!$ir['jail'] && $ir['gang']) { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='yourgang.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='yourgang.php'>Your Faction</a></td></tr></table>"; } if($ir['user_level'] > 1) { print "<hr /><table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #333333; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><font color='white'><b>Staff Area:</b></font></td></tr> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='staff.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='staff.php'>Staff Panel</a></td></tr></table>\n"; } { print "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #333333; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><font color='white'><b>Staff Online:</b></font></td></tr>"; $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 "<table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='viewuser.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)</td></tr></table>"; } } if($ir['donatordays']) { print "<hr /> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #333333; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><font color='white'><b>Donators only:</b></font></td></tr> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='friendlist.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='friendslist.php'>Friends List</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='blacklist.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='blacklist.php'>Black List</a></td></tr></table>"; } print "<hr /><table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #333333; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><font color='white'><b>Player Settings:</b></font></td></tr> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='preferences.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='preferences.php'>Preferences</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='preport.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='preport.php'>Player Report</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='helptutorial.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='helptutorial.php'>Help Tutorial</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='gamerules.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='gamerules.php'>Game Rules</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='viewuser.php?u={$ir['userid']}'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='viewuser.php?u={$ir['userid']}'>My Profile</a></td></tr></table> <table cellspacing=1 width='200px' border='1px' border color='white' background color='grey'> <tr onclick='document.location='logout.php'' style='cursor:pointer' bgcolor='#000000'></tr><td class='mover' style='background-color: #cccccc; background-position: 50% 0%; background-repeat: no-repeat repeat;' onmouseover='style.backgroundColor='#B4FDB6';' onmouseout='style.backgroundColor='#ECEAEA ';' height='18px'><a href='logout.php'>Logout</a></td></tr></table><br /> Time is now<br />"; echo date ('F j, Y')."<br />".date('g:i:s a'); ?> add this to game.css .mover a:hover { font-weight:bold; color: red; } no bugs if so let me know and ill fix it
×
×
  • Create New...