|
|
| version 1.243, 2001/07/25 12:53:52 | version 1.305, 2001/09/10 15:51:41 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| ^connect[odbc://dsn=voz7^;uid=voz^;pwd=pwd]{ | ^testdom2[] |
| $пресса[^table:sql{select * from press where header='$form:h'}] | #^testdom1[] |
| ^пресса.menu{ | #^testdom0[] |
| $пресса.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= | @testdom2[] |
| <hr> | $dom[^dom::load[test.xml]] |
| #^dom.save[$.encoding[windows-1251];write.xml] | |
| #^dom.save[;write.xml] | |
| ^dom.save[$.encoding[windows-1251];write.xml] | |
| $строка[123] | @testdom1[] |
| ^строка.match[(.);g]{($match.1)} | $dom[^dom::load[test.xml]] |
| <hr> | $dom[^dom.xslt[test.xsl;$.param1(48)]] |
| $a{ | $response:body[^dom.file[windows-1251]] |
| $b[1] | |
| } | @testdom0[] |
| ^$b=$b<br> | $dom[^dom::load[test.xml]] |
| ^$a!$a<br> | ^dom.save[windows-1251;write.xml] |
| ^$b=$b<br> | ^dom.string[windows-1251] |
| <hr> | $файл[^dom.file[windows-1251]] |
| ^файл.save[binary;writefile.xml] | |
| $response:body[$файл] | |
| OK | |