Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.11 and 1.211

version 1.11, 2001/03/18 13:22:08 version 1.211, 2001/06/29 08:35:26
Line 1 Line 1
   @auto[]
   $form_id[19]
   $branch_id[]
   
 @main[]  @main[]
 ^untaint[as-is]{^process[$request:query]}  $SQL.connect-string[mysql://intranet:pwd@moko/intranet/cp1251_koi8]
 ^$request:query=$request:query<BR>  ^connect[$SQL.connect-string]{
 ^$request:uri=$request:uri<BR>  ^content[]
 $response:Zcontent-type[test]  }
 $m&n[<z>]  
 ^m&n[]  @heading[]
 $response:a[av]  ^if(def $form_id){Изменение}{Добавление} документа
 ^$response:a=$response:a  
   @help[]
   article_help.html
   
   @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]
   }
   
   <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){&#149^;}{&nbsp^;}$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>

Removed from v.1.11  
changed lines
  Added in v.1.211


E-mail: