Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
lifesource 29.09.2002 01:07
Он даже если ему тройной хрен ввести не падает...:))$now[^date::now[]] $year(^form:year.int($now.year)) $month(^form:month.int($now.month)) $day(^form:day.int($now.day)) $now[^date::create($year;$month;$day;$now.hour;$now.minute;$now.second)]} $prev_year($now.year) $next_year($now.year) $prev_month(^eval($now.month-1)) $next_month(^eval($now.month+1)) ^if($now.month==1){$prev_year(^eval($now.year-1)) $prev_month(12)} ^if($now.month==12){$next_year(^eval($now.year+1)) $next_month(1)} $days[^date:calendar[rus]($now.year;$now.month)] <center> <table bgcolor="#000000" cellspacing="1"> <tr> <td bgcolor="#FFFFFF" ><a href="/news/?year=$prev_year&month=$prev_month&day=1"> <<< </a></td> <td bgcolor="#FFFFFF" align="middle"><b><b>$calendar_locale.month_names.[$now.month]</b></td> <td bgcolor="#FFFFFF" ><a href="/news/?year=$next_year&month=$next_month&day=1"> >>> </a></td> </tr> <tr> ^for[week_day](0;6){ <td width="14%" align="middle" bgcolor="#A2D0F2"> <font color="$calendar_locale.day_colors.$week_day"> $calendar_locale.day_names.$week_day </font> </td> } </tr> ^days.menu{ <tr> ^for[week_day](0;6){ ^if($days.$week_day){ ^if($days.$week_day==$now.day){ <td align="middle" bgcolor="#FFFF00"> <font color="$calendar_locale.day_colors.$week_day"> <b><a href="/news/?year=$now.year&month=$now.month&day=$days.$week_day">$days.$week_day</a></b> </font> </td> }{ <td align="middle" bgcolor="#FFFFFF"> <font color="$calendar_locale.day_colors.$week_day"> <a href="/news/?year=$now.year&month=$now.month&day=$days.$week_day">$days.$week_day</a> </font> </td> } }{ <td bgcolor="#DFDFDF"> </td> } } </tr> } </table> </center>