Location: PHPKode > projects > noticeboard > noticeboard/index_admin.html
<?

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: 			hide@address.com
________________________________________________________________________

*/
	
$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) 


?>
Return current item: noticeboard