Home arrow PHP arrow Page 3 - Building a User Management Application

Templates - PHP

Any application that is security critical will have some kind of method to track and maintain user activity. In this article we will begin to build a user management system that will give us control over who has access to which part of our application. This is the second part of a nine-part series.

TABLE OF CONTENTS:
  1. Building a User Management Application
  2. The database
  3. Templates
  4. Style Sheet
By: David Web
Rating: starstarstarstarstar / 12
November 24, 2008

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

The template, as mentioned earlier, gives the entire application a unified look and feel. Below is the code for it:


<!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">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!-- TemplateBeginEditable name="doctitle" -->

<title>Untitled Document</title>

<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="head" -->

<!-- TemplateEndEditable -->

<link href="../user.css" rel="stylesheet" type="text/css" />

</head>


<body>

<table width="100%" border="0">

<tr>

<td colspan="2">&nbsp;</td>

</tr>

<tr>

<td colspan="2" valign="top" class="header">User Management </td>

</tr>

<tr>

<td width="65%" valign="top"><!-- TemplateBeginEditable name="Main" -->Main<!-- TemplateEndEditable --></td>

<td width="35%" valign="top"><!-- TemplateBeginEditable name="Nav" -->Nav<!-- TemplateEndEditable --></td>

</tr>

<tr>

<td colspan="2" class="copy">&copy;2008</td>

</tr>

</table>

</body>

</html>


The template provides two editable regions. One is called "main;" it provides the main area in which the scripts are executed.

<td width="65%" valign="top"><!-- TemplateBeginEditable name="Main" -->Main<!-- TemplateEndEditable --></td>


The other is called "nav;" it provides a space for the navigation code:


<td width="35%" valign="top"><!-- TemplateBeginEditable name="Nav" -->Nav<!-- TemplateEndEditable --></td>


The rest of the template is not editable. This provides a good way of separating the HTML from the PHP code.



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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- 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...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: