Annotation of parser3/src/www/htdocs/index.html, revision 1.178
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:
! 8: ^rem{
! 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{
! 14: ^empty{query result is empty}{
! 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: }
! 21: }
! 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.162 paf 98: ^t[x]
99: <HR>
1.161 paf 100: ^if(in "/otherdeeper"){y;n}
101: <HR>
1.160 paf 102: ^$form:проверка_имя=$form:проверка_имя<BR>
103: <form method=post>
104: <input name=проверка_имя value=проверка_значение>
105: <input type=submit>
106: </form>
107: <HR>
108:
1.116 paf 109: ^^table:dir[/]:<BR>
110: $d[^table:dir[/]]
1.158 paf 111: $d{^menu{$name  ^; ^; ^; ^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}}
1.115 paf 112: <HR>
113:
1.158 paf 114: $files[^table:set{name}]
1.159 paf 115: $d{^menu{
116: ^if(-d "$name"){
117: ^:files.append{$name}
1.158 paf 118: }
1.159 paf 119: }}
120:
1.158 paf 121: $files{^menu{$name}[,]}
1.94 paf 122: <HR>
1.31 paf 123:
1.159 paf 124: @exception[origin;source;comment;type;code][i;j]
1.35 paf 125: <body bgcolor=black>
126: <font color=white>
1.31 paf 127: ERROR:
1.67 paf 128: ^if(def $source){$origin '$source'}
1.31 paf 129: ${comment}.
130: ^if(def $type){type=$type}
131: ^if(def $code){code=$code}
1.42 paf 132:
1.43 paf 133: @auto_test[]
134: ^BASE.auto_test[]
1.168 paf 135: <li>${request:uri}!
136:
137: @t[a]
138: -${a}-
139: @end
140:
E-mail: