"; if (!isset($from)) { $from = 1; } if (!isset($to)) { $to = 30; } $value = strtr($value, array('-' => '')); $time = time() + 3600 * 24 * $from; $mth = ''; for ($i = $from ; $i <= $to ; $i++) { $p_stamp = date('Ymd', $time); $date = date('d / m / Y', $time); $select = ($p_stamp == $value) ? 'selected="selected"' : ''; $month = pl_entities(strftime('%B', $time), ENT_QUOTES); if ($mth != $month) { if ($i != $from) { $text .= ''; } $text .= ""; $mth = $month; } $time += 3600 * 24; $text .= ""; } return $text . ""; } /* vim:set expandtab fenc=utf-8: */ ?>