PHP Classes

File: index.html

Recommend this page to a friend!
  Classes of nanou morgan   noticeboard   index.html   Download  
File: index.html
Role: ???
Content type: text/plain
Description: entry page
Class: noticeboard
Author: By
Last change:
Date: 23 years ago
Size: 1,452 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"; $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=\"list.html?Category=$my_list[$L]\"><li>$mylist[$L]</li></a>\n"; } /* parse to template */ $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) ?>