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