Make WordPress Core

Changeset 1506


Ignore:
Timestamp:
08/01/2004 08:28:56 AM (22 years ago)
Author:
saxmatt
Message:

Tweaking of time form

File:
1 edited

Legend:

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

    r1489 r1506  
    378378        }
    379379
    380         echo '<p><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" '.$checked.'/> <label for="timestamp">' . __('Edit timestamp') . '</label> <a href="http://wordpress.org/docs/reference/post/#edit_timestamp" title="' . __('Help on changing the timestamp') . '">?</a><br />';
     380        echo '<fieldset><legend><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" '.$checked.'/> <label for="timestamp">' . __('Edit timestamp') . '</label></legend>';
    381381       
    382382        $time_adj = time() + (get_settings('gmt_offset') * 3600);
    … …  
    389389        $ss = ($edit) ? mysql2date('s', $post_date) : gmdate('s', $time_adj);
    390390
    391         echo '<input type="text" name="jj" value="'.$jj.'" size="2" maxlength="2" />'."\n";
    392391        echo "<select name=\"mm\">\n";
    393392        for ($i=1; $i < 13; $i=$i+1) {
    … …  
    401400                }
    402401                echo ">".$month["$ii"]."</option>\n";
    403         } ?>
     402        }
     403
     404?>
    404405</select>
     406<input type="text" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" />
    405407<input type="text" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" /> @
    406408<input type="text" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" /> :
    407 <input type="text" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" /> :
    408 <input type="text" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" /> </p>
     409<input type="text" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" />
     410<input type="hidden" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" /> <?php _e('Existing timestamp'); ?>: <?php echo "{$month[$mm]} $jj, $aa @ $hh:$mn"; ?></fieldset>
    409411        <?php
    410412}
Note: See TracChangeset for help on using the changeset viewer.