Annotation of parser3/src/www/htdocs/index.html, revision 1.181
1.48 paf 1: @main[]
1.178 paf 2: $t[^table:set{key value
3: 1 v1
4: 2 v2}]
5: $h[^t.hash[key]]
6:
7:
1.180 paf 8: #^rem{
1.178 paf 9: ^connect[$SQL.connect-string]{
10: $shit[^taint[our's]]
11: # $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]
12: $paf[^table:sql{select * from paf order by id desc}(5)]
13: $paf{
1.180 paf 14: ^if(^empty[]){query result is empty}{
1.178 paf 15: <table border=1>
16: <tr><td>id</td><td>name</td><td>age</td></tr>
17: ^menu{<tr><td>$id</td><td>$name</td><td>$age</td></tr>}
18: </table>
19: }}
20: }
1.180 paf 21: #}
1.178 paf 22:
23: <HR>
24: $abc{}
25: $tn[^table:set[nameless]{a1 b1
26: a2 b2
27: }]
28: $x[^tn.locate[0;a2]]
29: ^$tn.1=$tn.1
30: <hr>
31: $t0[^table:set{key a b
32: 1 a1
33: 2 a2 b2
34: }]
35: ^if(^t0.locate[key;2] && "a" ne "b"){y;n}
36: <hr>
1.177 paf 37: $currentFolder[/a/b]
38: $path[^currentFolder.lsplit[/]]
39: ^path.flip[]
40: $path{
41: ^menu{$0}{,}
42: }
43: <hr>
1.175 paf 44: $t1[^table:set{key value
45: 1 v1
46: 2 v2}]
47: $h1[^t1.hash[key]]
48: ^h1.default[$value[nothing]]
1.176 paf 49: ^$h1.2.value=$h1.2.value<br>
50: ^$h1.2x.value=$h1.2x.value<br>
1.175 paf 51: <hr>
1.172 paf 52: $t2[^table:set{key a b
1.173 paf 53: 1 a1
1.172 paf 54: 2 a2 b2
55: }]
1.175 paf 56: t2 ^if(^t2.empty[]){empty}{not empty}<br>
1.173 paf 57: ^t2.offset(1)
58: $t2.b
59: $r[^t2.record[]]
60: <hr>
61: $th[^t2.hash[b]]
62: ^$th.b2.a=$th.b2.a<br>
63: <hr>
64: $th[^t2.hash[key;a]]
1.174 paf 65: ^$th.2.a=$th.2.a<br>
1.172 paf 66: <hr>
1.171 paf 67: #^OP:eval(1<2)
1.169 paf 68:
69: $filelist[^table:dir[.]]
1.168 paf 70: <hr>
71: $path[/news/tululu/]
1.169 paf 72: #^path.flip[]
1.168 paf 73: <hr>
1.167 paf 74: $branches[^table:set{name val
75: index.cgihtml 123
76: }]
77: $splitURI[^request:uri.lsplit[/]]
1.171 paf 78: name ^if(^branches.locate[name;$splitURI.1]){found;not found}:
79: $branches.name
1.167 paf 80: <HR>
1.166 paf 81: $splitURI[^request:uri.lsplit[/]]
1.164 paf 82: $splitURI.0!$splitURI.1
83: <HR>
84:
1.163 paf 85: $t2[^table:set{dir title
86: /here Here
87: }]
88: $t2{^menu{${dir}-$title}[,]}
89: <HR>
90: $dir[news]
91: $list[^table:dir[$dir]]
92: ^list.menu{
93: $subdir[$dir/$list.name]
94: $sublist[^table:dir[$subdir]]
95: ${list.name}/ $sublist{^menu{$name}[,]}<br>
96: }
97: <HR>
1.161 paf 98: ^if(in "/otherdeeper"){y;n}
99: <HR>
1.160 paf 100: ^$form:проверка_имя=$form:проверка_имя<BR>
1.181 ! paf 101: <form method=post action=index.html>
1.160 paf 102: <input name=проверка_имя value=проверка_значение>
103: <input type=submit>
104: </form>
105: <HR>
106:
1.116 paf 107: ^^table:dir[/]:<BR>
108: $d[^table:dir[/]]
1.158 paf 109: $d{^menu{$name  ^; ^; ^; ^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}}
1.115 paf 110: <HR>
111:
1.158 paf 112: $files[^table:set{name}]
1.159 paf 113: $d{^menu{
114: ^if(-d "$name"){
115: ^:files.append{$name}
1.158 paf 116: }
1.159 paf 117: }}
118:
1.158 paf 119: $files{^menu{$name}[,]}
1.94 paf 120: <HR>
1.31 paf 121:
1.159 paf 122: @exception[origin;source;comment;type;code][i;j]
1.35 paf 123: <body bgcolor=black>
124: <font color=white>
1.31 paf 125: ERROR:
1.67 paf 126: ^if(def $source){$origin '$source'}
1.31 paf 127: ${comment}.
128: ^if(def $type){type=$type}
129: ^if(def $code){code=$code}
1.42 paf 130:
1.43 paf 131: @auto_test[]
132: ^BASE.auto_test[]
1.168 paf 133: <li>${request:uri}!
1.179 paf 134: @end
1.168 paf 135:
136:
1.179 paf 137: @a[]
E-mail: