Location: PHPKode > scripts > alarisMenu > alarismenu/alarisAdmin/admin_main.php
<? 
/*
 * Main file that generates the site content.
 */
?>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
   <tr>
   	<td colspan="5">&nbsp;</td>
   </tr>
   <tr>
   	<td colspan="5" align="left"><strong>&nbsp;
   	<? 
   	if(!isset($view)){
   	  $header = "alarisMenu administration for user: <font color=\"darkred\">".$fname." ".$lname."</font>";  
   	}
   	if($view == "menu"){
   	  $header = "Menu";
   	}
   	if($view == "users"){
   	  $header = "Users";
   	} 
   	echo $header; 
   	?>
   	</strong></td>
   </tr>
   <tr>
   	<td colspan="5" height="1" bgcolor="#999966"></td>
   </tr>	
   <tr>	
   	<td width="150"  valign="top">
   	    <table border="0" width="149" cellpadding="0" cellspacing="0">
   	        <tr><td>&nbsp;</td></tr>
   	        <tr>
   	        <?
   	   	  if($view=="menu"){
   	   	    echo "<td align=\"left\">"
   	   	         ."&nbsp;&nbsp;<a class=\"menu\" href=\"alarisAdmin.php?view=$view&action=new_main\">Add main menu</a><br>"
   	   	         ."&nbsp;&nbsp;<a class=\"menu\" href=\"alarisAdmin.php?view=$view&action=new_sub\">Add sub menu</a><br>"
   	   	         ."&nbsp;&nbsp;<a class=\"menu\" href=\"alarisAdmin.php?view=$view&action=edit\">&nbsp;</a><br>"
   	   	         ."</td>";	    
   	   	  }
   	   	  if($view=="users"){
   	   	    echo "<td align=\"left\">"
   	   	         ."&nbsp;&nbsp;<a class=\"menu\" href=\"alarisAdmin.php?view=$view&action=new_users\">Add new user</a><br>"
   	   	         ."&nbsp;&nbsp;<a class=\"menu\" href=\"alarisAdmin.php?view=$view&action=edit\">&nbsp;</a><br>"
   	   	         ."</td>";	    
   	   	  }
   	   	?>
   	   	</tr> 	   	
   	    </table>		     	
   	</td>
   	<td width="1" bgcolor="#999966"></td>
	<td width="5">&nbsp;</td>
	<td><br>
	<?
	if(isset($view)){
   	  if($view=="menu")
   	    	include("menu.php");
   	  elseif($view=="users")
	  	include("users.php");
	 }
	if(!isset($view)){ ?>
	
	<table border="0" width="100%">
	   <tr>
	   	<td align=center><b>Choose what you want to edit by selecting in the menu above.</b></td> 
	   </tr>
	</table>  	
	<? }
	?>
	</td>
	<td width="5">&nbsp;</td>
   </tr>
   <tr>
   	<td width="150" height="40" valign="bottom" align="left">
   	&nbsp;&nbsp;<a class="menu" href="logout.php"><font color="darkred">Logout</font></a>
   	</td>
   	<td width="1" bgcolor="#999966"></td>
	<td width="5">&nbsp;</td>
	<td>&nbsp;</td>
	<td width="5">&nbsp;</td>
   </tr>	
</table>
Return current item: alarisMenu