Update of /cvsroot/webnotes/webnotes
In directory usw-pr-cvs1:/tmp/cvs-serv12820
Added Files:
note_preview_page.php
Log Message:
Preview note support
--- NEW FILE: note_preview_page.php ---
<?php
require_once( 'core' . DIRECTORY_SEPARATOR . 'api.php' );
print_html_top();
print_head_top();
print_title( $g_window_title );
print_css( $g_css_inc_file );
print_head_bottom();
print_body_top();
print_header( $g_page_title );
?>
<p>
<div align="center">
<a href="<? echo $HTTP_REFERER?>"><? echo $s_back_link ?></a>
</div>
<?
$t_note['id'] = '0';
$t_note['email']= $f_email;
$t_note['date'] = date ($g_date_format);
$t_note['note'] = $f_note;
theme_notes_echo( $p_page_name, $p_url, $t_note );
echo <<<EOT
<form method="post" action="note_add.php">
<input type="hidden" name="f_came_from" value="$f_came_from" />
<input type="hidden" name="f_page_id" value="$f_page_id" />
<input type="hidden" name="f_url" value="$f_url" />
<input type="hidden" name="f_email" value="$f_email" />
<input type="hidden" name="f_note" value="$f_note" />
<table width="100%">
<tr bgcolor="$g_white_color">
<td colspan="2" align="center" width="80%"><input type="submit" value="Submit" />
</td>
</tr>
</table>
</form>
EOT;
print_footer( __FILE__ );
print_body_bottom();
print_html_bottom();
?>
|