--- parser3/src/www/htdocs/Attic/index.html 2001/07/11 16:32:13 1.224
+++ parser3/src/www/htdocs/Attic/index.html 2001/11/09 12:09:53 1.468
@@ -1,353 +1,589 @@
-@USE
-dtformat.p
-input_date.p
-
-@href[href zzz;title xxxx;ставить]
-^if($ставить){y;n}
-
@main[]
-$path[/news/tululu/]
-$pieces[^path.lsplit[/]]
-$pieces{^count[]: ^menu{{$piece}}[,].}
-
-^href[href;title](1<2)
-
-
-$stat[^file:stat[test.zip]]
-$stat{
-^$size=$size
-adate=^long_date_format[$adate]
-mdate=^long_date_format[$mdate]
-cdate=^long_date_format[$cdate]
-}
-
-$дата[^input_date:parse[9.7.2001]]
-^long_date_format[$дата]
-
-$дата[^parse_date[9.7.2001]]
-^long_date_format[$дата]
-
-$сегодня[^date:now[]]
-$недельный_календарь[^table:calendar[rus]($сегодня.year;$сегодня.month;$сегодня.day)]
-
-$недельный_календарь{^menu{
- $year $month $day $weekday
-}}
-
-
-$сегодня[^date:now[]]
-$месячный_календарь[^table:calendar[rus;$сегодня.year;$сегодня.month]]
-
-^месячный_календарь.menu{^for[i;0;6]{
- $day[$месячный_календарь.$i]
- ^if($day){$day}{ ^; ^;}
-}
}
-
-
-before $время[^date:now[]]^время.string[]
-year+^время.roll[year](1)^время.string[]
-month+^время.roll[month](1)^время.string[]
-year-^время.roll[year](-1)^время.string[]
-month-^время.roll[month](-1)^время.string[]
-day+^время.roll[day](1)^время.string[]
-day-^время.roll[day](-1)^время.string[]
-
-$русский_день_недели[
- $0[Воскресенье]
- $1[Понедельник]
- $2[Вторник]
- $3[Среда]
- $4[Четверг]
- $5[Пятница]
- $6[Суббота]
+#^xchildren[]
+#^thashforeach3[]
+#^thashforeach2[]
+#^thashforeach[]
+#^thashdelete[]
+#^connect[mysql://user:pass@cd.rinet.ru/db]{^void:sql{z} }
+#^tappend[]
+#^sappend[]
+#^eval(10\3)
+#^tform[]
+#^formattest[]
+#^filelist[]
+#^connect[mysql://user:pass@host]{ }
+#^безнадёжна_попытка_поправить_непоправимое[]
+#^tcache[]
+#^thashfileexp[]
+#^tcounter[]
+#^tablehash[]
+#j^hashfile[]
+#^formclass[]
+#^hren[]
+#^domedit[]
+#^domxslt[]
+#^lsplit2[]
+#^faceesize[]
+#^imageresize[]
+#^ifassignhash[]
+#^tintdefault[]
+#$response:status[404]
+#^ifpasshash[]
+#^movedir[]
+#^replace[]
+#^set[]
+#^hash[]
+#$t[^methresult[]] ->$t
+#^terror[]
+#^ssave[]
+#^calendar[]
+#^thash[]
+#^tdef[]
+#^ford[]
+#^tif[]
+#^image[]
+#^mail2[]
+#^cookie[]
+#^response[]
+#^regexp2[]
+#^ttablerem[]
+#^pcre[]
+#^regexp[]
+#^mail[]
+#^exec[]
+#^fori[]
+#^tconnect[]
+^xslt[]
+^xml[]
+#^header[]
+OK
+
+$constructor[
+
+
]
-$время[^date:set(0;1;1;3;30;4)]
-$время{
- ^string[]
- ${year}.${month}.${day} ${hour}:${minute}:${second}
-}
-
-$время[^date:set(1.5)]
-^время.string[]
-
-$сейчас[^date:now[]]
-^^сейчас.string[]=^сейчас.string[] $день_недели($сейчас.weekday) $русский_день_недели.$день_недели
-$floatdays($сейчас) ^floatdays.format{%.20f}
-^eval(^math:frac($floatdays)*24)
-^eval(^math:frac($floatdays*24)*60)
-^eval(^math:frac($floatdays*24*60)*60)
-
+$constr[^xdoc::set{
+^untaint[as-is]{$constructor}}]
-PI=^math:PI.format{%.40f}
-
-^math:random(10)
-
-^math:sqrt(16)
-
-$люди[
- $2федя[
- $рост[176]
- ]
- $1василий[
- $возраст[5]
- ]
+$children[$constr.documentElement.childNodes]
+^if($children){
+^for[i](1;^children._count[]){
+ $node[$children.$i]
+ $node.nodeName
+}
+}
+
+
+@thashforeach3[]
+$h[
+ $.a[1]
+ $.b[2]
]
-
-$имена[^люди.keys[]]
-$имена{
- ^sort{$key}
- ^menu{$key}[,].
+$c[^table::set{a
+^h.foreach[key;value]{$value
+}}]
+$c.a
+
+@thashforeach2[]
+$h[
+ $.a[1]
+ $.b[2]
+]
+$c[
+^h.foreach[key;value]{
+ $.$key[$value]
}
-
+]
+$c.b
-$таблица[^table:set{a b
-1 2
-}]
-$колонки[^таблица.columns[]]
-$колонки{
- ^menu{$column}[,].
+@thashforeach[]
+$h[
+ $.a[1]
+ $.b[2]
+]
+^h.foreach[key;value]{
+ $key=$value
}
-
+@thashdelete[]
+$h[$.a[1] $.b[2]]
+was:
+count=^h._count[]
+b='$h.b'
+
+^h.delete[b]
+
+now:
+count=^h._count[]
+b='$h.b'
+
+@sappend[]
+$test[123]
+^test.save[test]
+^test.save[append;test]
+
+@tappend[]
+$test[^table::set{a b
+a1 b1}]
+^test.save[test]
+$test[^table::set{a b
+a2 b2}]
+^test.save[append;test]
+
+
+@tform[]
+^if(def $form:new_file){y}{n}
+