Update of /cvsroot/webnotes/webnotes
In directory usw-pr-cvs1:/tmp/cvs-serv10100
Modified Files:
admin_manage_notes.php
Log Message:
- Added url field into page table.
- Added code to auto-set the url when the page is viewed.
- Some updates to the installation document (still needs a lot of work).
- Added some images to the phpnet theme (previous, next, spacer)
- Started working on the support for previous / next page.
- Started the implementation of the Manage Notes page.
- Removed the admin menu link to the admin_pending.php (will be removed soon).
- Removed theme_note_add_page.php (never used)
- Removed theme_note_preview_page.php (never used)
Index: admin_manage_notes.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/admin_manage_notes.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- admin_manage_notes.php 18 Sep 2002 12:33:31 -0000 1.14
+++ admin_manage_notes.php 19 Sep 2002 21:51:01 -0000 1.15
@@ -14,14 +14,6 @@
access_ensure_check_action( ACTION_NOTES_MODERATE );
- if ( ( isset( $f_action ) ) && ( $f_action== 'delete' ) ) {
- note_delete( $f_id );
- }
-
- if ( ( isset( $f_action ) ) && ( $f_action == 'update' ) ) {
- note_update( $f_id, $f_email, $f_note );
- }
-
print_html_top();
print_head_top();
print_title( $g_window_title );
@@ -30,30 +22,16 @@
print_body_top();
print_header( $g_page_title );
print_top_page( $g_top_page_inc );
+
print_admin_menu ();
-?>
-<div align="center">
-<a href="<?php echo $f_url ?>"><?php echo $s_back_link ?></a>
-<br />
-<table bgcolor="<?php echo $g_table_border_color ?>" width="75%" cellspacing="1" border="0">
-<tr bgcolor="<?php echo $g_header_color ?>">
- <td colspan="2">
- <strong><?php echo $s_manage_notes_title ?></strong>
- </td>
-</tr>
-<tr bgcolor="<?php echo $g_white_color ?>">
- <td width="10%">
- <?php echo $s_page ?>
- </td>
- <td width="90%">
- <?php echo $f_url ?>
- </td>
-</tr>
-<?php print_manage_notes( $f_page_id, $f_url ) ?>
-</table>
-</div>
-<?php
+ $pages = page_get_array ( page_where_url_exists() );
+
+ foreach( $pages as $page ) {
+ extract( $page, EXTR_PREFIX_ALL, 'v' );
+ echo "<a href=\"$v_url\" target=\"_blank\">$v_page</a> - $v_url<br />\n";
+ }
+
print_footer( __FILE__ );
print_bottom_page( $g_bottom_page_inc );
print_body_bottom();
|