Home Geschichten Kunst Computer Tindertraum

[current]

aus der Reihe: Traumwind 'stupid but entertaining PihÄhtschPih tricks'™
(Thursday 22nd August 2002)


<?php
function nextfivedays() {
  $days = 0; $i = 0;
  $fivedays = array();
  $daysallowed =
  array('Mon' => 'Montag',
    'Tue' => 'Dienstag',
    'Wed' => 'Mittwoch',
    'Thu' => 'Donnerstag',
    'Fri' => 'Freitag');
  while ($days < 5) {
    $newday =
    mktime (0,0,0,date("m"), date("d")+$i, date("Y"));
    if ($daysallowed[date("D", $newday)]) {
      $fivedays[date("d.m.Y",$newday)] =
      $daysallowed[date("D", $newday)]
      ." den ".date("d.m.Y",$newday);
      $days++;
    }
    $i++;
  }
  return $fivedays;
}
?>
<select name="theDay">
<?php
$days = nextfivedays();
while (list($day, $daystring) = each($days)) {
  echo "<option value=\"$day\"";
  if ($theDay==$day) {
    echo " selected";
  }
  echo ">$daystring\n";
}
?>
</select>

[ by Martin>] [permalink] [similar entries]

similar entries (vs):

similar entries (cg):

relevant words



Martin Spernau
© 1994-2003

traumwind icon Big things to come (TM) 30th Dez 2002

Overtly resist change
Oblique Strategies, Ed.3 Brian Eno and Peter Schmidt



amazon.de Wunschliste





 

usefull links:
Google Graph browser
Traumwind 6-Colormatch
UAV News

powered by SBELT