The index page acts as the front page for the admin section. It offers navigation options to the user. It has the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/admin.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Untitled Document</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <link href="../Templates/main.css" rel="stylesheet" type="text/css" /> </head> <body> <table width="100%" border="0"> <tr> <td width="38%"> </td> <td width="22%"> </td> <td width="40%">Logged in:<!-- InstanceBeginEditable name="EditRegion4" --><? echo $_SESSION['name'];?> | <a href="../logout.php">Logout</a><!-- InstanceEndEditable --></td> </tr> You will note that this script does not check to see if the user has admin rights. This is because the admin login script does that job before sending the user to the index page. The rest of the code on the page looks like this: <tr> <td colspan="3" bgcolor="#6699CC"><span class="headertxt">Project Management Software -Administration </span></td> </tr> <tr> <td colspan="3"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="100%" border="0"> <tr> <td class="loginheader">Welcome to the Project Management Administration Section. </td> </tr> <tr> <td><div align="center"><strong>Please select from the following: </strong></div></td> </tr> <tr> <td> -><a href="list_users.php">User Management </a></td> </tr> <tr> <td>-><a href="list_projects.php">Project Management </a></td> </tr> <tr> <td> </td> </tr> </table> <!-- InstanceEndEditable --></td> </tr> <tr> <td colspan="3"><!-- InstanceBeginEditable name="EditRegion5" --><!-- InstanceEndEditable --></td> </tr> <tr> <td colspan="3" class="cright"><div align="right">copyright © 2007 PM</div></td> </tr> </table> </body> <!-- InstanceEnd --></html> and the result of this code looks like this:
blog comments powered by Disqus |
|
|
|
|
|
|
|