Ticket #1827: edit.php.diff
File edit.php.diff, 931 bytes (added by , 18 years ago) |
---|
-
edit.php
81 81 </fieldset> 82 82 </form> 83 83 84 <?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"); 85 if ( count($arc_result) ) { ?> 86 84 87 <form name="viewarc" action="" method="get" style="float: left; width: 20em; margin-bottom: 1em;"> 85 88 <fieldset> 86 89 <legend><?php _e('Browse Month…') ?></legend> 87 90 <select name='m'> 88 91 <?php 89 $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");90 92 foreach ($arc_result as $arc_row) { 91 93 $arc_year = $arc_row->yyear; 92 94 $arc_month = $arc_row->mmonth; … … 106 108 </fieldset> 107 109 </form> 108 110 111 <?php } ?> 112 109 113 <br style="clear:both;" /> 110 114 111 115 <?php