Changeset 15437 for trunk/www/dch/dates.php
- Timestamp:
- 04/25/13 13:19:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/dch/dates.php
r15405 r15437 24 24 $plusoneyear=date("Y-m-d", strtotime($date." +1 year")); 25 25 $minusoneyear=date("Y-m-d", strtotime($date." -1 year")); 26 $today=date("Y-m-d",mktime( 0,0,0,date("m"), date("d"), date("Y")));26 $today=date("Y-m-d",mktime(-12,0,0,date("m"), date("d"), date("Y"))); 27 27 28 28 printf("<input name='date' type='text' size='10' maxlength='10' value='%s'>\n", $date); 29 29 echo "<input type='submit' value='Show'>\n"; 30 printf("<input type='button' value='To day' onClick='change(\"%s\");submit()'>\n", $today);30 printf("<input type='button' value='Tonight' onClick='change(\"%s\");submit()'>\n", $today); 31 31 printf("<input type='button' value='+1Day' onClick='change(\"%s\");submit()'>\n", $plusoneday); 32 32 printf("<input type='button' value='-1Day' onClick='change(\"%s\");submit()'>\n", $minusoneday);
Note:
See TracChangeset
for help on using the changeset viewer.