[wp-cvs] wordpress/wp-admin admin-functions.php,1.36,1.37
Matthew Mullenweg
saxmatt at users.sourceforge.net
Sun Aug 1 08:28:58 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13827/wp-admin
Modified Files:
admin-functions.php
Log Message:
Tweaking of time form
Index: admin-functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/admin-functions.php,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** admin-functions.php 27 Jul 2004 23:37:43 -0000 1.36
--- admin-functions.php 1 Aug 2004 08:28:56 -0000 1.37
***************
*** 378,382 ****
}
! 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 />';
$time_adj = time() + (get_settings('gmt_offset') * 3600);
--- 378,382 ----
}
! echo '<fieldset><legend><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" '.$checked.'/> <label for="timestamp">' . __('Edit timestamp') . '</label></legend>';
$time_adj = time() + (get_settings('gmt_offset') * 3600);
***************
*** 389,393 ****
$ss = ($edit) ? mysql2date('s', $post_date) : gmdate('s', $time_adj);
- echo '<input type="text" name="jj" value="'.$jj.'" size="2" maxlength="2" />'."\n";
echo "<select name=\"mm\">\n";
for ($i=1; $i < 13; $i=$i+1) {
--- 389,392 ----
***************
*** 401,410 ****
}
echo ">".$month["$ii"]."</option>\n";
! } ?>
</select>
<input type="text" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" /> @
<input type="text" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" /> :
! <input type="text" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" /> :
! <input type="text" name="ss" value="<?php echo $ss ?>" size="2" maxlength="2" /> </p>
<?php
}
--- 400,412 ----
}
echo ">".$month["$ii"]."</option>\n";
! }
!
! ?>
</select>
+ <input type="text" name="jj" value="<?php echo $jj; ?>" size="2" maxlength="2" />
<input type="text" name="aa" value="<?php echo $aa ?>" size="4" maxlength="5" /> @
<input type="text" name="hh" value="<?php echo $hh ?>" size="2" maxlength="2" /> :
! <input type="text" name="mn" value="<?php echo $mn ?>" size="2" maxlength="2" />
! <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>
<?php
}
More information about the cvs
mailing list