Make WordPress Core


Ignore:
Timestamp:
04/28/2004 08:57:11 AM (22 years ago)
Author:
saxmatt
Message:

Bug fixes and version bump.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r1141 r1204  
    1 <?php
     1un<?php
    22require_once('../wp-includes/wp-l10n.php');
    33
     
    3636?>
    3737<div class="wrap">
     38<?php
     39if( 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>
    3870<form name="searchform" action="" method="get">
    3971  <fieldset>
     
    4173  <input type="text" name="s" value="<?php echo $s; ?>" size="17" />
    4274  <input type="submit" name="submit" value="<?php _e('Search') ?>"  />
    43   </fieldset>
    44 </form>
     75  </fieldset>
     76</form>
     77
     78<br clear="both" />
     79
    4580<table width="100%" cellpadding="3" cellspacing="3">
    4681  <tr>
Note: See TracChangeset for help on using the changeset viewer.