diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-11 11:27:43 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-11-11 11:27:43 +0000 |
| commit | b92deb93cf1b425d3b0da113dce719ff3e7af839 (patch) | |
| tree | 4579958b1d0169cf8d86ad2e55286c7b5be90148 /wp-inst/wp-admin/edit.php | |
| parent | aa750edffae8aeb649b0b2f15900db988e588de7 (diff) | |
| download | wordpress-mu-b92deb93cf1b425d3b0da113dce719ff3e7af839.tar.gz wordpress-mu-b92deb93cf1b425d3b0da113dce719ff3e7af839.tar.xz wordpress-mu-b92deb93cf1b425d3b0da113dce719ff3e7af839.zip | |
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@430 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/edit.php')
| -rw-r--r-- | wp-inst/wp-admin/edit.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wp-inst/wp-admin/edit.php b/wp-inst/wp-admin/edit.php index 6c51f38..135e385 100644 --- a/wp-inst/wp-admin/edit.php +++ b/wp-inst/wp-admin/edit.php @@ -81,12 +81,14 @@ if ( is_month() ) { </fieldset> </form> +<?php $arc_result = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts ORDER BY post_date DESC"); +if ( count($arc_result) ) { ?> + <form name="viewarc" action="" method="get" style="float: left; width: 20em; margin-bottom: 1em;"> <fieldset> <legend><?php _e('Browse Month…') ?></legend> <select name='m'> <?php - $arc_result=$wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts ORDER BY post_date DESC"); foreach ($arc_result as $arc_row) { $arc_year = $arc_row->yyear; $arc_month = $arc_row->mmonth; @@ -106,6 +108,8 @@ if ( is_month() ) { </fieldset> </form> +<?php } ?> + <br style="clear:both;" /> <?php |
