|
From: <vb...@us...> - 2003-08-20 17:04:45
|
Update of /cvsroot/webnotes/webnotes
In directory sc8-pr-cvs1:/tmp/cvs-serv16866
Modified Files:
admin_manage_notes.php
Log Message:
Include the total number of notes / visits in the manage notes page.
Index: admin_manage_notes.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/admin_manage_notes.php,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- admin_manage_notes.php 20 Aug 2003 08:46:35 -0000 1.21
+++ admin_manage_notes.php 20 Aug 2003 11:26:16 -0000 1.22
@@ -59,11 +59,15 @@
EOT;
$count = 0;
+ $t_total_visits = 0;
+ $t_total_notes = 0;
$pages = page_get_array ( page_where_url_exists(), 'last_updated DESC' );
foreach( $pages as $page ) {
extract( $page, EXTR_PREFIX_ALL, 'v' );
$t_number = page_notes_count( $v_id );
+ $t_total_notes += $t_number;
$t_visits = page_visits_count( $v_id );
+ $t_total_visits += $t_visits;
$t_last_updated = date( config_get( 'date_format' ), $v_last_updated );
$color = util_alternate_colors( $count++ );
@@ -72,7 +76,7 @@
echo <<<EOT
</table>
- <p>There are $count page(s) that are indexed.</p>\n
+ <p>There are $count page(s) that are indexed, with $t_total_notes note(s) and $t_total_visits visit(s).</p>\n
EOT;
print_footer( __FILE__ );
|