|
|
| version 1.27, 2001/03/20 07:34:34 | version 1.248, 2001/07/30 12:29:11 |
|---|---|
| Line 1 | Line 1 |
| $t[^table:load[test.cfg]] | @main[] |
| ^t.save[test2.cfg] | #$cookie:reg0[8reg0] |
| <form method=post enctype=multipart/form-data> | #$cookie:reg1[8reg1] |
| <input name=photo type=file> | $cookie:reg0 |
| <input type=submit> | $cookie:reg1 |
| </form> | |
| <hr> | <hr> |
| ^if($form:photo){ | ^connect[odbc://dsn=voz7^;uid=voz^;pwd=pwd]{ |
| <pre> | # ^void::sql{insert into хрен (a) values (1)} |
| ^$form:photo.name='$form:photo.name' | $id(^int:sql{select 5}) |
| ^$form:photo.size='$form:photo.size' | $id |
| ^$form:photo.text='$form:photo.text' | |
| ^form:photo.save[paf.txt] | $пресса[^table::sql{select * from press where header='$form:h'}] |
| </pre> | ^пресса.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[z] | |
| =^n.match[sdf][]{123}= | |
| <hr> | |
| =$3= | |
| <hr> | |
| $строка[123] | |
| ^строка.match[(.);g]{($match.1)} | |
| <hr> | |
| $a{ | |
| $b[1] | |
| } | } |
| ^$b=$b<br> | |
| ^$a!$a<br> | |
| ^$b=$b<br> | |
| <hr> |