"; $t_link_end = ''; } else { $t_link_start = $t_link_end = ''; } # # HEADER # $t_about_page = config_get( 'about_page' ); echo << EOT; # # NOTES # if ( 0 === count( $t_notes ) ) { echo << EOT; } else { for ( $i = 0; $i < count( $t_notes ); $i++ ) { $t_moderation = ''; $t_note_info = $t_notes[$i]; if ( false === $p_page_data['preview'] ) { if ( access_check_action( ACTION_NOTES_MODERATE ) ) { $t_url = $p_page_data['url']; $t_moderation = ''; if ( $t_note_info['visible'] != NOTE_VISIBLE_ACCEPTED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'accept', $t_url, access_check_action( ACTION_NOTES_MODERATE_ACCEPT ) ) . ' '; } if ( $t_note_info['visible'] != NOTE_VISIBLE_PENDING ) { $t_moderation .= link_note_action( $t_note_info['id'], 'queue', $t_url, access_check_action( ACTION_NOTES_MODERATE_QUEUE ) ) . ' '; } if ( $t_note_info['visible'] != NOTE_VISIBLE_DECLINED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'decline', $t_url, access_check_action( ACTION_NOTES_MODERATE_DECLINE ) ) . ' '; } if ( $t_note_info['visible'] != NOTE_VISIBLE_ARCHIVED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'archive', $t_url, access_check_action( ACTION_NOTES_MODERATE_ARCHIVE ) ) . ' '; } $t_moderation .= link_note_action( $t_note_info['id'], 'edit', $t_url, access_check_action( ACTION_NOTES_EDIT ) ); if ( $t_note_info['visible'] != NOTE_VISIBLE_DELETED ) { $t_moderation .= link_note_action( $t_note_info['id'], 'delete', $t_url, access_check_action( ACTION_NOTES_MODERATE_DELETE ) ); } } } if ( isset( $t_note_info['id'] ) && ( $t_note_info['id'] != 0 ) ) { $t_id = (integer)$t_note_info['id']; $t_visibility = ''; if ( NOTE_VISIBLE_ACCEPTED != $t_note_info['visible'] ) { $t_visibility = '(' . note_get_visibility_str( $t_note_info['visible'] ) . ') - '; } $t_id_view = "$t_visibility#$t_id
$t_moderation
"; $t_id_bookmark = ""; } else { $t_id_view = ' '; $t_id_bookmark = ''; } if ( isset( $t_note_info['email'] ) ) { $t_email = $t_note_info['email']; } else { $t_email = ''; } if ( isset( $t_note_info['date'] ) ) { # 06-Feb-2002 02:28 $t_date = date('d-M-Y G:i', $t_note_info['date']); } else { $t_date = ''; } if ( isset( $t_note_info['note'] ) ) { $t_note = nl2br('' . $t_note_info['note'] . ''); } else { $t_note = ' '; } echo << EOT; } } # # FOOTER # if ( empty( $p_page_data['prev_page'] ) ) { $t_prev_text = ''; } else { $t_prev_text = "\""" . link_create( $p_page_data['prev_url'], $p_page_data['prev_page'], true, '', '' ); } if ( empty( $p_page_data['next_page' ] ) ) { $t_next_text = ''; } else { $t_next_text = link_create( $p_page_data['next_url'], $p_page_data['next_page'], true, '', '' ) . "\"""; } if ( empty( $t_prev_text ) && empty( $t_next_text ) ) { $t_navigation_row = ''; } else { $t_navigation_row = ""; } if ( false === $p_page_data['preview'] ) { $t_link_start = ""; $t_link_end = ''; } else { $t_link_start = $t_link_end = ''; } if ( 0 !== count( $t_notes ) ) { echo << EOT; } 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; } echo '
User Contributed Notes
$t_page
$t_link_startAdd Notes$t_link_end About Notes
There are no user contributed notes for this page.
$t_id_bookmark
$t_email
$t_date
$t_id_view
$t_note
$t_prev_text$t_next_text
$t_link_startAdd Notes$t_link_end About Notes
$t_navigation_row
Last updated: $t_last_updated
'; if ( ( false === $p_page_data['preview'] ) && ( access_is_logged_in() ) ) { echo '
'; print_admin_menu(); echo '
'; } } ### -------------------- ?>