From: <vb...@us...> - 2002-09-22 02:47:19
|
Update of /cvsroot/webnotes/webnotes/themes/phpnet In directory usw-pr-cvs1:/tmp/cvs-serv28006/themes/phpnet Modified Files: theme_api.php Log Message: - Fixed the border in the submit form - Removed the menu from the preview page. - Added a spacer in the preview page. - Fixed the alignment in the login / submit forms. - Removed the last updated from the preview. - Fixed the formatting of the note submit timestamp - Added the last updated timestamp for the page to the database. - Implemented the code to update/view the page last updated timestamp. Index: theme_api.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/themes/phpnet/theme_api.php,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- theme_api.php 21 Sep 2002 02:44:33 -0000 1.22 +++ theme_api.php 22 Sep 2002 02:47:16 -0000 1.23 @@ -36,7 +36,7 @@ } global $g_note_add_page, $s_add_note_link, $s_manage, $s_admin, $g_web_directory, -$g_theme; + $g_theme; $t_notes = $p_page_data['notes']; $t_page = $p_page_data['page']; @@ -132,7 +132,8 @@ } if ( isset( $t_note_info['date'] ) ) { - $t_date = $t_note_info['date']; + # 06-Feb-2002 02:28 + $t_date = date('d-M-Y G:i', $t_note_info['date']); } else { $t_date = ''; } @@ -205,17 +206,22 @@ EOT; } - echo <<<EOT - <tr bgcolor="#d0d0d0" valign="top"><td colspan="2"> - <table border="0" width="100%" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4"> - $t_navigation_row - <tr><td align="right" colspan="2"><small>Last updated: Tue, 17 Sep 2002</small></td></tr> - </table> -</td></tr> - </table> - </div> + if ( false === $p_page_data['preview'] ) { + # Tue, 17 Sep 2002 + $t_last_updated = date('D, d M Y - G:i:s', $p_page_data['last_updated']); + echo <<<EOT + <tr bgcolor="#d0d0d0" valign="top"><td colspan="2"> + <table border="0" width="100%" bgcolor="#e0e0e0" cellpadding="0" cellspacing="4"> + $t_navigation_row + <tr><td align="right" colspan="2"><small>Last updated: $t_last_updated</small></td></tr> + </table> + </td></tr> EOT; - if ( access_is_logged_in() ) { + } + + echo '</table></div>'; + + if ( ( false === $p_page_data['preview'] ) && ( access_is_logged_in() ) ) { echo '<div class="pwn">'; print_admin_menu(); echo '</div>'; |