Changeset 1204 for trunk/wp-admin/edit.php
- Timestamp:
- 04/28/2004 08:57:11 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r1141 r1204 1 <?php1 un<?php 2 2 require_once('../wp-includes/wp-l10n.php'); 3 3 … … 36 36 ?> 37 37 <div class="wrap"> 38 <?php 39 if( isset( $_GET['m'] ) ) 40 { 41 print "<h3>Showing Posts From ".$month[substr( $_GET['m'], 4, 2 )]." ".substr( $_GET['m'], 0, 4 )."</h3>"; 42 } 43 ?> 44 45 <form name="viewarc" action="" method="get" style="float: left; width: 20em;"> 46 <fieldset> 47 <legend><?php _e('Show Posts From Month of ...') ?></legend> 48 49 <?php 50 echo "<select name=\"m\" style=\"width:120px;\">"; 51 $arc_result=$wpdb->get_results("SELECT DISTINCT YEAR(post_date), MONTH(post_date) FROM $tableposts ORDER BY post_date DESC",ARRAY_A); 52 foreach ($arc_result as $arc_row) { 53 $arc_year = $arc_row["YEAR(post_date)"]; 54 $arc_month = $arc_row["MONTH(post_date)"]; 55 56 if( $arc_year.zeroise($arc_month,2) == $_GET['m'] ) 57 $default = "selected"; 58 else 59 $default = null; 60 61 echo "<option ".$default." value=\"".$arc_year.zeroise($arc_month,2)."\">"; 62 echo $month[zeroise($arc_month,2)]." $arc_year"; 63 echo "</option>\n"; 64 } 65 echo "</select>"; 66 ?> 67 <input type="submit" name="submit" value="<?php _e('Show Month') ?>" /> 68 </fieldset> 69 </form> 38 70 <form name="searchform" action="" method="get"> 39 71 <fieldset> … … 41 73 <input type="text" name="s" value="<?php echo $s; ?>" size="17" /> 42 74 <input type="submit" name="submit" value="<?php _e('Search') ?>" /> 43 </fieldset> 44 </form> 75 </fieldset> 76 </form> 77 78 <br clear="both" /> 79 45 80 <table width="100%" cellpadding="3" cellspacing="3"> 46 81 <tr>
Note: See TracChangeset
for help on using the changeset viewer.