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