--- parser3/src/www/htdocs/Attic/index.html 2001/03/22 16:38:26 1.35
+++ parser3/src/www/htdocs/Attic/index.html 2001/06/29 08:35:26 1.211
@@ -1,24 +1,51 @@
+@auto[]
+$form_id[19]
+$branch_id[]
+
@main[]
-^$root_test=$root_test !
-^$site_test=$site_test !
-^${cookie:вот}=${cookie:вот}?
-^$request:query=$request:query
-^$request:uri=$request:uri
+$SQL.connect-string[mysql://intranet:pwd@moko/intranet/cp1251_koi8]
+^connect[$SQL.connect-string]{
+^content[]
+}
-
+@heading[]
+^if(def $form_id){Изменение}{Добавление} документа
-@default[test;def]
-^if(^test.length[]){$test}{$def}
+@help[]
+article_help.html
-@exception[origin;source;comment;type;code]
-
-
-ERROR:
-^if(def $source){$origin '$source'}
-${comment}.
-^if(def $type){type=$type}
-^if(def $code){code=$code}
+@content[]
+$branches[^table:sql{select id, name from kb_branches}]
+^if(def $form_id){
+ $article[^table:sql{select id, name, txt, keywords, kb_branches_id from kb_documents where id='$form_id'}]
+ $branch_id[$:article.kb_branches_id]
+}{
+ $branch_id[$branch_id]
+}
+
+