--- parser3/www/htdocs/Attic/index.html 2002/04/22 09:20:30 1.48
+++ parser3/www/htdocs/Attic/index.html 2002/06/10 13:50:03 1.63
@@ -1,7 +1,8 @@
-@USE
-t.p
+#@USE
+#t.p
-@autoz[]
+@autoZ[]
+#$form:here
$request:charset[windows-1251]
$response:charset[windows-1251]
$response:content-type[$.value[text/html]$.charset[$response:charset]]
@@ -11,8 +12,13 @@ $response:content-type[$.value[text/html
#$result[123]
@main[]
+#^connect[mysql://mdm:4b833ljq@db-mysql/mdm]{
+# ^int:sql{select news_id from news where news_id=-1}[$.default{2}]
+# ^string:sql{select news_id from news where news_id=-1}[$.default{2}]
+#}
+#^eval(2)
#^tcrashlocaljunctionsv2[]
-^tcrashlocaljunctions[]
+#^tcrashlocaljunctions[]
#^tjunctions[]
#^replacetest[]
#^matchoptionpp[]
@@ -138,8 +144,201 @@ $response:content-type[$.value[text/html
#^xslt[]
#^xml[]
#^header[]
+#^tablehasht[]
+#^datecreatestring[]
+#^mssqltypes1[]
+#^badthrows[]
+#^xmlspace[]
+#^counter[main.counter]
+#^xpath2[]
+#^callindirect[]
+#^junctionprob[]
+#^datecreatestring2[]
+#^tstoredproc[]
+#^tstoredproc2[]
+#^forkeys[]
+#^pngsize[]
+#^checkList[]
+#^datetest[]
+^tserge[]
+
+@tserge[]
+$a[ 2 ]
+^tsergesub($a)
+
+@tsergesub[i]
+=$i=
+
+@datetest[]
+ $f[^file::stat[some.zip]]
+Размер в байтах: $f.size
+Год создания: $f.cdate.year
+$now[^date::now[]]
+$DAYS_CONSIDERED_NEW(3)
+Статус: ^if($f.mdate >= $now-$DAYS_CONSIDERED_NEW){новый;старый}
+
+
+@checkList[]
+...^oneOf[a;a,b,c]...
+#...^oneOf[a;ax,b,c]...
+...^oneWord[word]...
+#...^oneWord[wo rd]...
+
+
+@oneOf[s;list][t] выдаёт строку, если строка она есть в списке(разделенном запятыми)
+$t[^list.lsplit[,]]
+^if(!^t.locate[piece;$s]){^throw[user;$s;unknown]}
+$result[$s]
+
+@oneWord[s]
+^if(^s.match[\W]){^throw[user.data;$s;not word]}{$s}
+
+@pngsize[]
+$i[^image::measure[test.png]]
+^i.html[]
+
+
+@forkeys[]
+$text[^form:fields.foreach[key;val]{$key=$val
+}]
+^text.save[ttt.txt]
+=$text=
+
+
+@tstoredproc2[]
+^connect[odbc://DSN=nestle^;UID=nestle^;PWD=mbm32]{
+ ^void:sql{exec pafvoid}
+}
+
+@tstoredproc[]
+^connect[odbc://DSN=nestle^;UID=nestle^;PWD=mbm32]{
+ $t[^table::sql{exec pafproc}]
+# $t[^table::sql{{call pafproc}}]
+ $c[^t.columns[]]
+ ^c.menu{$c.column}[
]
+}
+
+@datecreatestring2[]
+