Annotation of parser3/src/www/htdocs/index.html, revision 1.369
1.364 parser 1: @main[]
1.368 parser 2: ^image[]
1.369 ! parser 3: #^mail2[]
1.367 parser 4: #^cookie[]
1.365 parser 5: #^response[]
1.364 parser 6: #^regexp2[]
7: #^ttablerem[]
8: #^pcre[]
9: #^regexp[]<hr>
10: #^mail[]
11: #^exec[]
12: #^fori[]
13: #^tconnect[]
1.365 parser 14: #^xslt[]
1.366 parser 15: #^xml[]
1.364 parser 16: #^header[]
17: OK
1.368 parser 18:
19: @image[]
20: $pict[^image::create(400;200)]
21: ^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0x000000)
22: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-5;0x000000)
23: $response:body[^pict.gif[]]
24:
25:
1.366 parser 26:
1.369 ! parser 27: @mail2[]
1.367 parser 28: ^mail:send[
1.369 ! parser 29: $.content-type[$.value[text/plain] $.charset[windows-1251]]
! 30: $.from[Александр Петросян <paf@design.ru>]
1.367 parser 31: $.to[Александр Петросян <paf@design.ru>]
1.369 ! parser 32: $.subject[проверка]
! 33: $.body[проверка]
1.367 parser 34: ]
35:
1.366 parser 36: @cookie[]
1.367 parser 37: $env:HTTP_COOKIE<br>
38:
39: #$cookie:переменная[test тест ТЕСТ2]
40: =$cookie:переменная=<br>
41: #$cookie:переменная2[test тест ТЕСТ3]
42: =$cookie:переменная2=<br>
1.365 parser 43:
44: @response[]
45: #^if($form:reload){
46: $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
47: #}
1.364 parser 48:
49: @xslt[]
50: ^xdata[]
51: ^show-xdoc2[^xdoc.transform[global.xsl]]
52:
53: @regexp2[]
54: $s[ select]
55: $s[^s.match[^^\s*][]{!}]
56: $s
57:
58: @header[]
59: $response:refresh[
60: $.value[0]
61: $.url[http://design.ru?a=^taint[123]]
62: ]
63:
64: @ttablerem[]
65: $table[^table::load[a.cfg]]
66: ^table.menu{$table.a}
67:
68: @tconnect[]
69: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
70: $tables[^table::sql{show tables}]
71: #$cols[^tables.columns[]]
72: #$cols.column
73: ^tables.menu{
74: $tables.[Tables_in_test]<br>
75: }
76: }
77:
78: @pcre[]
79: $s[1 2]
80: ^s.match[\s;ig]{!}
81: #^s.match[\d;ig]{!}
82:
83:
84: @regexp[]
85: $s[abcАБВ]
86: ^if(^s.match[б][i]){y}{n}
87:
88: @mail[]
89: #$ORIGINS(1)
90: ^mail:send[
91: $.from[paf@design.ru]
92: $.to[paf@design.ru]
93: $.body[1
94:
95: 2
96:
97:
98: 3]
99: ]
100:
101: @exec[]
102: $a[^file::exec[fc.exe;a;b]]
103: $a.status|$a.stderr<hr>
104:
105: @fori[][i]
106: ^for[i](1;3){... =$i= ...}
107:
108: @xdata[]
109: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
110: $xdoc[^xdoc::load[input.xml]]
111:
112: @xml[]
113: ^xdata[]
114:
115: ^show-xdoc2[$xdoc]<hr>
116: #^show-xnode1[$xdoc]<hr>
117: $people[^xdoc.select[*/man]]
118: #^show1[]
119: ^show-xnodes1[$people]<hr>
120: #^people.0.owner.hren[]
121:
122: ^show-xnode1[^xdoc.select-single[*/man[2]/name];0;1]<hr>
123:
124: by id:
125: ^show-xnode1[^xdoc.getElementById[1];0;1]
126: <hr>
127:
128: @show1[array]
129: ^for[i](0;^array._count[]-1){
130: $x[$array.$i]
131: $x.firstChild.nodeValue:
132: $pattributes[$x.parentNode.attributes]
133: ^if(^pattributes._count[]){
134: $pattributes.id.name=$pattributes.id.nodeValue
135: }
136: <br>
137: }
138:
139: @show-xnodes1[array][i]
140: ^for[i](0;^array._count[]-1){
141: ^show-xnode1[$array.$i;0;1]
142: }
143:
144: @show-xnode1[x;level;single][l]
145: ^if(def $x){
146: ^for[l](0;$level-1){ ^; ^; ^; ^;}
147: ^if($x.nodeType == $xnode:ELEMENT_NODE){
148: <^;$x.nodeName
149: $pairs[$x.attributes]
150: ^if(def $pairs){
151: $names[^pairs._keys[]]
152: ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
153: }
154: >^;
155: }{
156: [$x.nodeType]
157: }
158:
159: ^if(def $x.nodeValue){$x.nodeValue}<br>
160: ^show-xnode1[$x.firstChild]($level+1)
161: ^if(!$single){
162: ^show-xnode1[$x.nextSibling]($level)
163: }
164:
165: ^if($x.nodeType == $xnode:ELEMENT_NODE){
166: ^for[l](0;$level-1){ ^; ^; ^; ^;}<^;/$x.nodeName>^;<br>
167: }
168: }
169:
170: @show-xdoc2[xdoc]
171: ^xdoc.save[save.xml;
172: # $.encoding[windows-1251]
173: $.method[xml]
174: ]
175: $file[^xdoc.file[
176: # $.encoding[windows-1251]
177: $.method[html]
178: ]]
179: ^file.save[text;save_file.html]
180: <pre>^taint[^xdoc.string[]]</pre>
181: # $.encoding[windows-1251]
182: # $.method[xml]
183: #]]
E-mail: