PHP Classes

File: index_admin.html

Recommend this page to a friend!
  Classes of nanou morgan  >  noticeboard  >  index_admin.html  >  Download  
File: index_admin.html
Role: ???
Content type: text/plain
Description: should be in a folder called admin
Class: noticeboard
Author: By
Last change:
Date: 19 years ago
Size: 2,196 bytes



Class file image Download

include  ('');
include  ('');

* Nanou Morgan                  Web            
* NoticeBoard version 1.1		Personal Web
* January 2001					Email:

$title= "Community Noticeboard Administration";

$content .= "<font face=\"Helvetica,Arial,Geneva\" size=\"2\"><b>You have two options:</b></font><br>
<font face=\"Helvetica,Arial,Geneva\" size=\"2\"><ul><li><a href=\"list_edit.html\">Alter the Category list</a></font></li>
<font face=\"Helvetica,Arial,Geneva\" size=\"2\"><li>Or deleting a posting</li></font>
<font face=\"Helvetica,Arial,Geneva\" size=\"2\"><li> <a href=\"del_newest.html\">Search this item by Recent postings</a></li></font>
<font face=\"Helvetica,Arial,Geneva\" size=\"2\"><li> <a href=\"del_search.html\">Search this item by keyword</a></li></font>
<font face=\"Helvetica,Arial,Geneva\" size=\"2\"><li> Search this item by categories</li></font>


$mylist = file ($cat_file);
for ($L=0; $L< count ($mylist);$L++){
$mylist[$L] = ereg_replace( "\r\n", "", $mylist[$L]);
$my_list[$L] = strtr($mylist[$L], " ", "_");
	$content .= "<a href=\"del_list.html?Category=$my_list[$L]\"><li>$mylist[$L]</li></a>\n";

$content .= "</ul></ol></ul>";

$t = new Template( $path);
                                  // create a template object named $t 

$t->set_file( "MyFileHandle", "$template");
                                  // set MyFileHandle = our template file 
$t->set_var(array( "TITLE" => $title,
					"FOOTER" => $bot,
				   "CONTENT" =>  $content));

                                  // set template variable 
$t->parse( "MyOutput", "MyFileHandle"); 
                                  // set template variable MyOutput = parsed file 
$t->p( "MyOutput");  // output the value of MyOutput (our parsed data)