Update of /cvsroot/webnotes/webnotes/themes/phpnet
In directory usw-pr-cvs1:/tmp/cvs-serv18706
Added Files:
theme_api.php
Log Message:
Remon's theme file
--- NEW FILE: theme_api.php ---
<?php
# phpWebNotes - a php based note addition system
# Copyright (C) 2000 Kenzaburo Ito - ke...@30...
# 2002 Webnotes Team - web...@so...
# This program is distributed under the terms and conditions of the GPL
# See the files README and LICENSE for details
# --------------------------------------------------------
# $Id: theme_api.php,v 1.1 2002/09/05 03:19:35 rmetira Exp $
# --------------------------------------------------------
# This function is called before printing any notes to the page.
function theme_notes_start( $p_page ) {
?>
<table border="0" cellpadding="4" cellspacing="0" width="100%">
<tr bgcolor="#d0d0d0" valign="top">
<td><small>User Contributed Notes</small><br /><b><?php echo $p_page; ?></b></td>
</tr>
<?
}
# This function is called for every note. The note information
# are all included in the associative array that is passed to the
# function. The theme should check that a field is defined in
# the array before using it.
function theme_notes_echo( $p_page, $p_note_info_array ) {
echo '<hr />';
#echo '<table border="0" cellpadding="2" cellspacing="0" width="100%">';
echo '<tr align="top" bgcolor="#e0e0e0">';
echo '<td><b>'.$p_note_info_array['email'].'</b><br />'.$p_note_info_array['submit_date'];
echo '</td></tr>';
echo '<tr bgcolor="#f0f0f0">';
echo '<td colspan="2">'.nl2br($p_note_info_array['note']);
echo '</td></tr>';
}
# This function is called after all notes are echo'ed.
function theme_notes_end( $p_page ) {
echo '</table>';
}
# This function is called if the current page has no notes associated
# with it. In this case theme_notes_start() and theme_notes_end()
# APIs are not called.
function theme_notes_none( $p_page ) {
echo "Notes_none";
}
?>
|