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: 23 years ago
Size: 2,196 bytes
 

Contents

Class file image Download
<? include ('template.inc'); include ('variable.inc'); /* ------------------------------------------------------------------------ * Nanou Morgan Web http://www.vmedia.com.au * NoticeBoard version 1.1 Personal Web http://www.nanou.com.au * January 2001 Email: nanou@nanou.com.au ________________________________________________________________________ */ $title= "Community Noticeboard Administration"; if(!isset($submit)){ $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> <ol> <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> <ul> "; $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) ?>