Changeset 15437 for trunk/www/dch


Ignore:
Timestamp:
04/25/13 13:19:54 (12 years ago)
Author:
Daniela Dorner
Message:
added button Tonight
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/dch/dates.php

    r15405 r15437  
    2424    $plusoneyear=date("Y-m-d", strtotime($date." +1 year"));
    2525    $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")));
    2727
    2828    printf("<input name='date' type='text' size='10' maxlength='10' value='%s'>\n", $date);
    2929    echo "<input type='submit' value='Show'>\n";
    30     printf("<input type='button' value='Today' onClick='change(\"%s\");submit()'>\n", $today);
     30    printf("<input type='button' value='Tonight' onClick='change(\"%s\");submit()'>\n", $today);
    3131    printf("<input type='button' value='+1Day' onClick='change(\"%s\");submit()'>\n", $plusoneday);
    3232    printf("<input type='button' value='-1Day' onClick='change(\"%s\");submit()'>\n", $minusoneday);
Note: See TracChangeset for help on using the changeset viewer.