Calendar

' . $this_year . ' Calendar
' . "\n"; } } ?>

' . $page_header . '' . "\n"; $html = '

' . $page_name . '

'; if ( $has_wallpaper ) { $html .= '
Get the wallpaper: '; if ( $image_800 != '' ) { $html .= '800x600 '; } if ( $image_1024 != '' ) { $html .= '1024x768 '; } if ( $image_1280 != '' ) { $html .= '1280x1024 '; } $html .= '

'; } echo $html . "\n"; } $result = mysqli_query($dbh, "SELECT count(page_id) FROM calendar WHERE page_year = $requested_year"); if ( $result ) { $mysql_query = mysqli_fetch_row($result); $page_count = $mysql_query[0]; } // display subnavbar graphics, if applicable $nav_string='
'; if ( $requested_month > 1 ) { $parameter = sprintf( "%02d", ( $requested_month - 1 ) ); $nav_string .= ' Previous ' . "\n"; } if ( $requested_month > 1 && $requested_month < $page_count ) { $nav_string .= ' • '; } if ( $requested_month < $page_count ) { $parameter = sprintf( "%02d", ( $requested_month + 1 ) ); $nav_string .= ' Next ' . "\n"; } $nav_string .= '
'; echo $nav_string; } else { $ROW_COUNT = 3; $page_count = 0; $year_count = 0; if ( !$requested_year ) { $requested_year = date( "Y"); } // perform database query $result = mysqli_query($dbh, "SELECT page_year, page_month, page_name, page_thumb FROM calendar WHERE page_year = '$requested_year' ORDER BY page_month"); if ( $result ) { $page_header = $requested_year . ' Calendar'; echo '

' . $page_header . '

' . "\n"; echo ' ' . "\n"; while ( list( $page_year, $page_month, $page_name, $page_thumb ) = mysqli_fetch_row($result) ) { $img_attr = getimagesize( $page_thumb ); echo '' . "\n"; } } echo '
' . $page_name . '

 

' . "\n"; // show only if ( ++$rownum % $ROW_COUNT == 0 ) { echo '

' . "\n"; } } ?> ', ( '' . $page_header . ' - ' ), $content ); echo $content;