|
|
| version 1.165, 2001/05/07 14:00:58 | version 1.211, 2001/06/29 08:35:26 |
|---|---|
| Line 1 | Line 1 |
| @t[a] | @auto[] |
| -${a}- | $form_id[19] |
| @end | $branch_id[] |
| @main[] | @main[] |
| $splitURI[$request:uri.lsplit[/]] | $SQL.connect-string[mysql://intranet:pwd@moko/intranet/cp1251_koi8] |
| $splitURI.0!$splitURI.1 | ^connect[$SQL.connect-string]{ |
| <HR> | ^content[] |
| $t2[^table:set{dir title | |
| /here Here | |
| }] | |
| $t2{^menu{${dir}-$title}[,]} | |
| <HR> | |
| $dir[news] | |
| $list[^table:dir[$dir]] | |
| ^list.menu{ | |
| $subdir[$dir/$list.name] | |
| $sublist[^table:dir[$subdir]] | |
| ${list.name}/ $sublist{^menu{$name}[,]}<br> | |
| } | } |
| <HR> | |
| ^t[x] | |
| <HR> | |
| ^if(in "/otherdeeper"){y;n} | |
| <HR> | |
| ^$form:проверка_имя=$form:проверка_имя<BR> | |
| <form method=post> | |
| <input name=проверка_имя value=проверка_значение> | |
| <input type=submit> | |
| </form> | |
| <HR> | |
| ^^table:dir[/]:<BR> | |
| $d[^table:dir[/]] | |
| $d{^menu{$name  ^; ^; ^; ^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}} | |
| <HR> | |
| $files[^table:set{name}] | @heading[] |
| $d{^menu{ | ^if(def $form_id){Изменение}{Добавление} документа |
| ^if(-d "$name"){ | |
| ^:files.append{$name} | |
| } | |
| }} | |
| $files{^menu{$name}[,]} | @help[] |
| <HR> | article_help.html |
| @exception[origin;source;comment;type;code][i;j] | @content[] |
| <body bgcolor=black> | $branches[^table:sql{select id, name from kb_branches}] |
| <font color=white> | ^if(def $form_id){ |
| ERROR: | $article[^table:sql{select id, name, txt, keywords, kb_branches_id from kb_documents where id='$form_id'}] |
| ^if(def $source){$origin '$source'} | $branch_id[$:article.kb_branches_id] |
| ${comment}. | }{ |
| ^if(def $type){type=$type} | $branch_id[$branch_id] |
| ^if(def $code){code=$code} | } |
| @auto_test[] | |
| ^BASE.auto_test[] | |
| <li>${request:uri}! | |
| <form method=post action=article_save.html> | |
| <p />Рубрика:<br> | |
| <select name="kb_branches_id" style="width:100%"> | |
| $branches{ | |
| ^menu{ | |
| <option value="$id" ^if($id eq $:branch_id){selected}>^if($id eq $:branch_id){•^;}{ ^;}$name</option> | |
| } | |
| } | |
| </select> | |
| <p />Название:<br> | |
| <input type=text name=name style="width:100%" value="$:article.name"> | |
| <p />Текст:<br> | |
| <textarea name=text style="width:100%" cols=80 rows=30>^untaint[html]{$:article.txt}</textarea> | |
| <p />Ключевые слова:<br> | |
| <input type=text name=keywords style="width:100%" value="$:article.keywords"> | |
| <input type=hidden name=id value="$form_id"> | |
| <p /> | |
| <table cellspacing=0 cellpadding=0 border=0 width=100%> | |
| # <td>^submit[save]</td> | |
| # ^if(def $form_id){<td align=right>^submit[delete]</td>} | |
| </table> | |
| </form> |