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

version 1.211, 2001/06/29 08:35:26 version 1.300, 2001/09/10 09:49:45
Line 1 Line 1
 @auto[]  
 $form_id[19]  
 $branch_id[]  
   
 @main[]  @main[]
 $SQL.connect-string[mysql://intranet:pwd@moko/intranet/cp1251_koi8]  ^testdom0[]
 ^connect[$SQL.connect-string]{  
 ^content[]  
 }  
   
 @heading[]  
 ^if(def $form_id){Изменение}{Добавление} документа  
   
 @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>  @testdom0[]
         <p />Рубрика:<br>  $dom[^dom::load[test.xml]]
         <select name="kb_branches_id" style="width:100%">  ^dom.save[write.xml]
                 $branches{  ^dom.string[windows-1251]
                         ^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.211  
changed lines
  Added in v.1.300


E-mail: