|
|
| version 1.244, 2001/07/25 14:36:04 | version 1.303, 2001/09/10 13:13:55 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| ^connect[odbc://dsn=voz7^;uid=voz^;pwd=pwd]{ | #^testdom0[] |
| # ^void:sql{insert into хрен (a) values (1)} | ^testdom1[] |
| $пресса[^table:sql{select * from press where header='$form:h'}] | |
| ^пресса.menu{ | |
| $пресса.id, $пресса.date_row, $пресса.header, $пресса.short_text^rem{, $пресса.full_text}, $пресса.mode | |
| }[<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> | |
| =$3= | @testdom1[] |
| <hr> | $dom[^dom::load[test.xml]] |
| $dom[^dom.xslt[test.xsl]] | |
| $response:body[^dom.file[windows-1251]] | |
| $строка[123] | @testdom0[] |
| ^строка.match[(.);g]{($match.1)} | $dom[^dom::load[test.xml]] |
| <hr> | ^dom.save[windows-1251;write.xml] |
| $a{ | ^dom.string[windows-1251] |
| $b[1] | $файл[^dom.file[windows-1251]] |
| } | ^файл.save[binary;writefile.xml] |
| ^$b=$b<br> | $response:body[$файл] |
| ^$a!$a<br> | OK |
| ^$b=$b<br> | |
| <hr> | |