Xtremer360 Posted November 24, 2009 Share Posted November 24, 2009 I'm having some confusion on where I should put the coding for my control panel. Here's the coding for the control panel. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Language" content="en-us"> <meta name="language" content="en-us"> <title>Backstage V1 Administration Console</title> <link rel="stylesheet" href="backstage2.css" type="text/css" media="screen"> </head> <body> <div id=container> <div class=header> <table cellpadding="0" cellspacing="0" border="0" width="95%"> <tr> <td width=110 align=center></td> <td></td> <td width=40 valign=bottom align=right> <a href="#" onclick="">Home</a> | <a href="#" onclick="">Logout</a> | <a target="_blank" href="http://kansasoutlawwrestling.com/phpBB3">Forums</a></td> </tr> </table> </div> <div id=container2> <div id=nav> <h1>Character</h1> <ul> <li>Biography<</li> <li>Allies</li> <li>Rivals</li> <li>Quotes</li> </ul> <h1>Submit</h1> <ul> <li>Roleplay</li> <li>News</li> <li>Match</li> <li>Seg</li> </ul> <h1>Handler</h1> <ul> <li>Directory</li> </ul> <h1>Booking</h1> <ul> <li>Champions</li> <li>Booker</li> <li>Compiler</li> <li>Archives</li> </ul> <h1>Fed Admin</h1> <ul> <li>Handlers</li> <li>Characters</li> <li>Applications</li> <li>Event Names</li> <li>Title Names</li> <li>Match Types</li> <li>Divisions</li> <li>Arenas</li> </ul> <h1>Site Admin</h1> <ul> <li>Templates</li> <li>Content</li> <li>Bio Configuration</li> <li>News Categories</li> <li>Menus</li> </ul> </div> <div id=content> </div> <div id="footer">Backstage 1 © 2009 </div> </div> </div> </body> </html> Here's my main file called backstage.php <?php ob_start("ob_gzhandler"); // cache system require "backstageconfig.php"; require "backstagefunctions.php"; if ((!empty($_POST)) && (isset($_POST['action']))) { $action=$_POST{'action'}; } else { $action="mainmenu"; } if ((isset($_POST['uname'])) && (isset($_POST['pword']))) { $uname=$_POST{'uname'}; $pword=md5($_POST{'pword'}); validate($fedid, $uname, $pword, 0, 0, $cookiedomain, $cookiepath, $admincssfile); $action="mainmenu"; } elseif ((!(isset($_COOKIE['uname']))) && (!(isset($_COOKIE['pword'])))) { require_once "backstage_libs/login.php"; login($admincssfile,$fed,$url); } else { $uname=$_COOKIE["uname"]; $pword=$_COOKIE["pword"]; validate($fedid, $uname, $pword, 0, 0, $cookiedomain, $cookiepath, $admincssfile); if (isset($_POST['newdefaultcharacterid'])) { $newdefaultcharacterid = (integer)$_POST["newdefaultcharacterid"]; $query = "UPDATE efed_handler SET default_char_id = '$newdefaultcharacterid' WHERE login = '$uname' and fed_id = '$fedid'"; mysql_db_query($dbname, $query) or Die (mysql_error()); } } $query = "SELECT h.id as userid, h.surname as surname, h.firstname as firstname, h.isadmin as isadmin, newscat.id as defaultcategoryid, bio.id as defaultcharacterid, bio.style_id as styleid, bio.username as defaultcharacterusername, bio.charactername as defaultcharactername, styles.name as style FROM efed_handler as h LEFT JOIN efed_bio as bio ON ( h.default_char_id = bio.id and bio.fed_id = '$fedid' ) LEFT JOIN efed_list_styles as styles ON ( bio.style_id = styles.id and bio.fed_id = '$fedid' ) LEFT JOIN efed_list_newscategory as newscat ON ( h.default_news_id = newscat.id and newscat.fed_id = '$fedid' ) WHERE h.login = '$uname' and h.password = '$pword' and h.fed_id = '$fedid'"; $result = mysql_query ($query); while ($row = mysql_fetch_assoc($result)) { $fieldarray=array('userid','surname','firstname','isadmin','defaultcharacterid','defaultcharacterusername','defaultcharactername','defaultcategoryid','styleid','username','style','charactername'); foreach ($fieldarray as $fieldlabel) { if (isset($row[$fieldlabel])) { $$fieldlabel=$row[$fieldlabel]; $$fieldlabel=cleanquerydata($$fieldlabel); } } } if ($action != "logout") { headercode($fedid,$admincssfile,$userid,$isadmin,$defaultcharacterid,$defaultcharacterusername,$defaultcharactername,$surname,$firstname,$action,$dirpath,$folder,$headshot,$bioheadheight,$bioheadwidth,$surname,$firstname,$forums); } else { headercode($fedid,$admincssfile,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); } // print "<center>\n"; switch ($action) { case "mainmenu": mainscreen(); print "</div>\n"; footercode(); break; case "login": require_once "backstage_libs/login.php"; login($admincssfile,$fed,$url); break; case "handler": if ($isadmin == "1") { require_once "backstage_libs/handler.php"; handler($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$ip); } break; case "character": require_once "backstage_libs/character.php"; character($fedid,$uname,$pword,$userid,$dirpath,$isadmin,$admincssfile,$dbname,$sortorderarray,$iframe,$defaultcharacterid,$styleid,$defaultcharacterusername,$heatmetersenabled,$heatmeters); break; case "newscategory": if ($isadmin == "1") { require_once "backstage_libs/newscategory.php"; newscategory($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$targetarray); } break; case "news": require_once "backstage_libs/news.php"; news($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$defaultcategoryid,$ip,$defaultcharacterid,$defaultcharactername); break; case "content": if ($isadmin == "1") { require_once "backstage_libs/content.php"; content($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "template": if ($isadmin == "1") { require_once "backstage_libs/template.php"; template($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "biolayout": if ($isadmin == "1") { require_once "backstage_libs/biolayout.php"; biolayout($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "quotes": require_once "backstage_libs/quotes.php"; quotes($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$defaultcharacterid,$defaultcharactername); break; case "alliesrivals": require_once "backstage_libs/alliesrivals.php"; alliesrivals($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$numalliesrivals,$defaultcharacterid,$defaultcharactername,$defaultcharacterusername); break; case "roleplay": require_once "backstage_libs/roleplay.php"; roleplay($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$defaultcharacterid,$defaultcharactername); break; case "champions": if ($isadmin == "1") { require_once "backstage_libs/champions.php"; champions($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "title": if ($isadmin == "1") { require_once "backstage_libs/title.php"; title($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "titlehistory": if ($isadmin == "1") { require_once "backstage_libs/titlehistory.php"; titlehistory($uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "division": if ($isadmin == "1") { require_once "backstage_libs/division.php"; division($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "eventname": if ($isadmin == "1") { require_once "backstage_libs/eventname.php"; eventname($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname); } break; case "eventbooker": if ($isadmin == "1") { require_once "backstage_libs/eventbooker.php"; eventbooker($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$headshot); } break; case "submitmatch": require_once "backstage_libs/submitmatch.php"; submitmatch($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$headshot); break; case "submitseg": require_once "backstage_libs/submitseg.php"; submitseg($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$headshot); break; case "resultscompilation": if ($isadmin == "1") { require_once "backstage_libs/resultscompilation.php"; resultscompilation($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$headshot); } break; case "resultsediting": if ($isadmin == "1") { require_once "backstage_libs/resultsediting.php"; resultsediting($uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$headshot,$url); } break; case "menustructures": if ($isadmin == "1") { require_once "backstage_libs/menustructures.php"; menustructures($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$headshot,$url); } break; case "arenas": if ($isadmin == "1") { require_once "backstage_libs/arenas.php"; arenas($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$url); } break; case "manageapplications": if ($isadmin == "1") { require_once "backstage_libs/manageapplications.php"; manageapplications($fedid,$uname,$pword,$userid,$isadmin,$admincssfile,$dbname,$dirpath,$url); } break; case "logout": SetCookie ("uname", ""); SetCookie ("pword", ""); require_once "backstage_libs/login.php"; login($admincssfile,$fed,$url); break; default: print "Default Screen<br />"; footercode(); break; } exit; ?> I'm thinking the best place to put it would be inside my login.php file. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Language" content="en-us"> <meta name="language" content="en-us"> <title>Backstage V1 Administration Console</title> <link rel="stylesheet" href="backstage2.css" type="text/css" media="screen"> </head> <body> <div id=login> <form method="POST" action="backstage.php"> <h1>KOW Backstage</h1> <p><label>Username:<br><input type="text" name="uname" id="log" tabindex="1"></label></p> <p><label>Password:<br><input type="password" name="pword" id="pwd" tabindex="2"></label></p> <p style="text-align: center;"><input type="submit" class="button" name="login" id="submit" value="Login »" tabindex="4"></p> </form> </div> </body> </html> Just not sure. And even if I did put it in the login.php file not sure with php how to apply it to after the user logs in and it checks to see if they are an admin or not then to display the control panel. Quote Link to comment Share on other sites More sharing options...
Xtremer360 Posted November 24, 2009 Author Share Posted November 24, 2009 I can't figure out how to edit posts with this new boards now. Anyway ignore the strip of coding for the control panel because I forgot that I had made a function for it. Here's the function: function headercode($fedid,$admincssfile,$userid,$isadmin,$defaultcharacterid,$defaultcharacterusername,$defaultcharactername,$surname,$firstname,$action,$dirpath,$folder,$headshot,$bioheadheight,$bioheadwidth,$surname,$firstname,$forums) { if (isset($_POST['option'])) { $option=$_POST['option']; } // print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n"; print "\"http://www.w3.org/TR/html4/loose.dtd\">\n"; print "<html>\n"; print "<head>\n"; print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n"; print "<meta http-equiv=\"Content-Style-Type\" content=\"text/css\">\n"; print "<meta http-equiv=\"Content-Language\" content=\"en-us\">\n"; print "<meta name=\"language\" content=\"en-us\">\n"; print "<title>Backstage V2 Administration Console</title>\n"; print "<link rel=\"stylesheet\" href=\"".$admincssfile."\" type=\"text/css\" media=\"screen\">\n"; $admincssfile = str_replace(".css", "_print.css", "$admincssfile"); print "<link rel=\"stylesheet\" href=\"".$admincssfile."\" type=\"text/css\" media=\"print\">\n"; print "<script src=\"/jscripts/scriptaculous/prototype.js\" type=\"text/javascript\"></script>\n"; print "<script src=\"/jscripts/scriptaculous/scriptaculous.js\" type=\"text/javascript\"></script>\n"; print "<script type=\"text/javascript\" src=\"./jscripts/ajax.js\"></script>\n"; print "</head>\n"; print "<body>\n"; print "<div id=container>\n"; print "<div class=header>"; print "<form method=POST name=changedefaultcharacter>\n"; print "<input type=hidden name=action value=mainmenu>\n"; print "<input type=hidden name=newdefaultcharacterid value=0>\n"; print "</form>\n"; print "<script type=\"text/javascript\" language=\"javascript\">\n"; print "function executeformchangedefaultcharacter(newdefaultcharacterid) {\n"; print "document.changedefaultcharacter.newdefaultcharacterid.value = newdefaultcharacterid;\n"; print "document.changedefaultcharacter.submit();\n"; print "}\n"; print "</script>\n"; if ((isset($userid)) && ($userid > "0")) { print "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"95%\">\n"; print "<tr>\n"; if ($defaultcharacterid > "0") { if (file_exists("$dirpath/backstage_rosterheadshot.php")) { print "<td width=".($bioheadwidth+10)." align=center><a target=_blank href=".$folder."/bio.php?username=".$defaultcharacterusername."><img src=\"/backstage_rosterheadshot.php?username=".$defaultcharacterusername."\" border=0 hspace=5 vspace=5 /></a></td>\n"; } elseif (file_exists("$dirpath$headshot/$defaultcharacterusername.jpg")) { print "<td width=".($bioheadwidth+10)." align=center><a target=_blank href=".$folder."/bio.php?username=".$defaultcharacterusername."><img src=".$headshot."/".$defaultcharacterusername.".jpg border=0 hspace=5 vspace=5 /></a></td>\n"; } elseif (file_exists("$dirpath$headshot/$defaultcharacterusername.gif")) { print "<td width=".($bioheadwidth+10)." align=center><a target=_blank href=".$folder."/bio.php?username=".$defaultcharacterusername."><img src=".$headshot."/".$defaultcharacterusername.".gif border=0 hspace=5 vspace=5 /></a></td>\n"; } else { print "<td width=".($bioheadwidth+10)." align=center><a target=_blank href=".$folder."/bio.php?username=".$defaultcharacterusername."><img src=".$headshot."/default.jpg border=0 hspace=5 vspace=5 /></a></td>\n"; } } else { print "<td width=".($bioheadwidth+10)." align=center><img src=".$headshot."/default.jpg border=0 hspace=5 vspace=5 /></td>\n"; } if ($isadmin == "1") { $query = "SELECT bio.id FROM efed_bio as bio WHERE bio.fed_id = '$fedid'"; $result = mysql_query ($query); $totalnumcharacters = mysql_num_rows($result); $query = "SELECT c.id FROM efed_handler_characters as c INNER JOIN efed_handler as h ON ( h.id = c.handler_id ) WHERE h.fed_id = '$fedid'"; } else { $query = "SELECT c.id FROM efed_handler_characters as c INNER JOIN efed_handler as h ON ( h.id = c.handler_id ) WHERE h.id = '$userid' and h.fed_id = '$fedid'"; } $result = mysql_query ($query); $numavailablecharacters = mysql_num_rows($result); if (($numavailablecharacters > "1") || (($isadmin == "1") && (isset($totalnumcharacters)) && ($totalnumcharacters > "0"))) { print "<td>"; print "<form method=POST name=changecharacter>\n"; print "<select name=newdefaultcharacterid class=dropdown onChange=\"executeformchangedefaultcharacter(document.changecharacter.newdefaultcharacterid.value);\">"; if ($defaultcharacterid > "0") { print "<option value=".$defaultcharacterid.">".$defaultcharactername; } else { print "<option value=0>- Select -"; } if ($isadmin == "1") { $query = "SELECT bio.id as getcharacterid, bio.charactername as getcharacter FROM efed_bio as bio WHERE bio.id <> '$defaultcharacterid' and bio.status_id = '1' and bio.fed_id = '$fedid' ORDER BY bio.charactername"; } else { $query = "SELECT bio.id as getcharacterid, bio.charactername as getcharacter FROM efed_bio as bio INNER JOIN efed_handler_characters as c ON ( bio.id = c.bio_id ) INNER JOIN efed_handler as h ON ( h.id = c.handler_id ) WHERE h.id = '$userid' and c.bio_id <> '$defaultcharacterid' and bio.status_id = '1' and bio.fed_id = '$fedid' and h.fed_id = '$fedid' ORDER BY bio.charactername"; } $result = mysql_query ($query); $numrows = mysql_num_rows ($result); if ($numrows > 0) { if ($isadmin == "1") { print "<option value=0>** Active Characters **"; } while ($row = mysql_fetch_assoc($result)) { $fieldarray=array('getcharacterid','getcharacter'); foreach ($fieldarray as $fieldlabel) { if (isset($row[$fieldlabel])) { $$fieldlabel=$row[$fieldlabel]; $$fieldlabel=cleanquerydata($$fieldlabel); } } print "<option value=".$getcharacterid.">".$getcharacter; } } if ($isadmin == "1") { $query = "SELECT bio.id as getcharacterid, bio.charactername as getcharacter FROM efed_bio as bio WHERE bio.id <> '$defaultcharacterid' and bio.status_id = '2' and bio.fed_id = '$fedid' ORDER BY bio.charactername"; } else { $query = "SELECT bio.id as getcharacterid, bio.charactername as getcharacter FROM efed_bio as bio INNER JOIN efed_handler_characters as c ON ( bio.id = c.bio_id ) INNER JOIN efed_handler as h ON ( h.id = c.handler_id ) WHERE h.id = '$userid' and c.bio_id <> '$defaultcharacterid' and bio.status_id = '2' and bio.fed_id = '$fedid' ORDER BY bio.charactername"; } $result = mysql_query ($query); $numrows = mysql_num_rows($result); if ($numrows > "0") { print "<option value=0>** Inactive Characters **"; while ($row = mysql_fetch_assoc($result)) { $fieldarray=array('getcharacterid','getcharacter'); foreach ($fieldarray as $fieldlabel) { if (isset($row[$fieldlabel])) { $$fieldlabel=$row[$fieldlabel]; $$fieldlabel=cleanquerydata($$fieldlabel); } } print "<option value=".$getcharacterid.">".$getcharacter; } } print "</select>\n"; print "</form>\n"; print "</td>\n"; } else { print "<td>".$defaultcharactername."</td>\n"; } print "<td width=40% valign=bottom align=right>\n"; print "<a href=\"#\" onClick=\"executeform('mainmenu','0');\">Home</a> | "; print "<a href=\"#\" onClick=\"executeform('logout','0');\">Logout</a> | "; print "<a target=\"_blank\" href=\"http://www.gcwonline.net/forums\">Forums</a> | "; print "<a target=\"_blank\" href=\"http://www.gcwonline.net/writing\">Writing Guide</a>"; print "</td>\n"; print "</tr>\n"; print "</table>\n"; print "</div>\n"; print "<div id=container2>\n"; print "<div id=nav>"; print "<form method=POST name=mainmenu>\n"; print "<input type=hidden name=action value=0>\n"; print "<input type=hidden name=option value=0>\n"; print "</form>\n"; print "<script type=\"text/javascript\" language=\"javascript\">\n"; print "function executeform(action,option) {\n"; print "document.mainmenu.action.value = action;\n"; print "document.mainmenu.option.value = option;\n"; print "document.mainmenu.submit();\n"; print "}\n"; print "</script>\n"; if ((isset($userid)) && ($userid > "0") && ($defaultcharacterid > "0")) { print "<h1>Character</h1>\n"; print "<ul>\n"; print "<li"; if (($action == "character") && ((isset($option)) && ($option == "2"))) { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('character','2');\">Bio</a></li>\n"; print "<li"; if (($action == "alliesrivals") && ((isset($option)) && ($option == "0"))) { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('alliesrivals','0');\">Allies</a></li>\n"; print "<li"; if (($action == "alliesrivals") && ((isset($option)) && ($option == "1"))) { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('alliesrivals','1');\">Rivals</a></li>\n"; print "<li"; if ($action == "quotes") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('quotes','0');\">Quotes</a></li>\n"; print "</ul>\n"; print "<h1>Submit</h1>\n"; print "<ul>\n"; print "<li"; if ($action == "roleplay") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('roleplay','0');\">Roleplay</a></li>\n"; print "<li"; if ($action == "news") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('news','0');\">News</a></li>\n"; print "<li"; if ($action == "submitmatch") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('submitmatch','0');\">Match</a></li>\n"; print "<li"; if ($action == "submitseg") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('submitseg','0');\">Seg</a></li>\n"; print "</ul>\n"; } if ((isset($isadmin)) && ($isadmin == "1")) { print "<h1>Booking</h1>\n"; print "<ul>\n"; print "<li"; if ($action == "champions") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('champions','0');\">Champions</a></li>\n"; print "<li"; if ($action == "eventbooker") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('eventbooker','0');\">Booker</a></li>\n"; print "<li"; if (($action == "resultscompilation") && ((isset($option)) && ($option == "0"))) { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('resultscompilation','0');\">Compiler</a></li>\n"; print "<li"; if (($action == "resultscompilation") && ((isset($option)) && ($option == "1"))) { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('resultscompilation','1');\">Archives</a></li>\n"; print "</ul>\n"; print "<h1>Fed Admin</h1>\n"; print "<ul>\n"; print "<li"; if ($action == "handler") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('handler','0');\">Handlers</a></li>\n"; print "<li"; if (($action == "character") && ((isset($option)) && ($option == "1"))) { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('character','1');\">Characters</a></li>\n"; print "<li"; if ($action == "manageapplications") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('manageapplications','0');\">Applications</a></li>\n"; print "<li"; if ($action == "eventname") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('eventname','0');\">Event Names</a></li>\n"; print "<li"; if ($action == "title") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('title','0');\">Title Names</a></li>\n"; print "<li"; if ($action == "division") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('division','0');\">Divisions</a></li>\n"; print "<li"; if ($action == "arenas") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('arenas','0');\">Arenas</a></li>\n"; print "</ul>\n"; print "<h1>Site Admin</h1>\n"; print "<ul>\n"; print "<li"; if ($action == "template") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('template','0');\">Templates</a></li>\n"; print "<li"; if ($action == "content") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('content','0');\">Content</a></li>\n"; print "<li"; if ($action == "biolayout") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('biolayout','0');\">Bio Configuration</a></li>\n"; print "<li"; if ($action == "newscategory") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('newscategory','0');\">News Categories</a></li>\n"; print "<li"; if ($action == "menustructures") { print " class=active"; } print "><a href=\"#\" onClick=\"executeform('menustructures','0');\">Menus</a></li>\n"; print "</ul>\n"; } print "</div>\n"; } print "<div id=content>\n"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.