Home arrow PHP arrow Page 3 - Project Management: Administration

The Index Page - PHP

If you've followed along as we've built the core and authentication sections of a project management application, you can guess what this article is all about. It will walk you through the scripts you need to employ to add an administration section to the application. It will enable administrators to complete tasks that you may not want to allow all of your application's users to do.

TABLE OF CONTENTS:
  1. Project Management: Administration
  2. The Admin Login Script
  3. The Index Page
  4. The Other Scripts
By: David Web
Rating: starstarstarstarstar / 1
August 25, 2008

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

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%">&nbsp;</td>

<td width="22%">&nbsp;</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" -->&nbsp;

<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> -&gt;<a href="list_users.php">User Management </a></td>

</tr>

<tr>

<td>-&gt;<a href="list_projects.php">Project Management </a></td>

</tr>

<tr>

<td>&nbsp;</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 &copy; 2007 PM</div></td>

</tr>

</table>

</body>

<!-- InstanceEnd --></html>


and the result of this code looks like this:





 
 
>>> More PHP Articles          >>> More By David Web
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap

Dev Shed Tutorial Topics: