|
|
| version 1.35, 2001/03/22 16:38:26 | version 1.243, 2001/07/25 12:53:52 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| ^$root_test=$root_test !<BR> | ^connect[odbc://dsn=voz7^;uid=voz^;pwd=pwd]{ |
| ^$site_test=$site_test !<BR> | $пресса[^table:sql{select * from press where header='$form:h'}] |
| ^${cookie:вот}=${cookie:вот}?<BR> | ^пресса.menu{ |
| ^$request:query=$request:query<BR> | $пресса.id, $пресса.date_row, $пресса.header, $пресса.short_text^rem{, $пресса.full_text}, $пресса.mode |
| ^$request:uri=$request:uri<BR> | }[<br>] |
| } | |
| <hr> | |
| #$response:status[404] | |
| #$response:location[/inh.html] | |
| #<hr> | |
| $таблица[^table:set{a b | |
| 1 2 | |
| 11 22 | |
| }] | |
| ^$таблица.fields.a=$таблица.fields.a<br> | |
| ^$таблица.a=$таблица.a<br> | |
| <hr> | |
| $n[] | |
| =^n.match[sdf][]{123}= | |
| <hr> | |
| <form method=post> | =$3= |
| (^$form:name=$form:name)<BR> | <hr> |
| <input name=name value="^default[$form:name;не знаю]"> | |
| <input type=submit> | |
| </form> | |
| @default[test;def] | $строка[123] |
| ^if(^test.length[]){$test}{$def} | ^строка.match[(.);g]{($match.1)} |
| <hr> | |
| @exception[origin;source;comment;type;code] | $a{ |
| <body bgcolor=black> | $b[1] |
| <font color=white> | } |
| ERROR: | ^$b=$b<br> |
| ^if(def $source){$origin '$source'} | ^$a!$a<br> |
| ${comment}. | ^$b=$b<br> |
| ^if(def $type){type=$type} | <hr> |
| ^if(def $code){code=$code} |