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

version 1.211, 2001/06/29 08:35:26 version 1.245, 2001/07/26 10:47:03
Line 1 Line 1
 @auto[]  
 $form_id[19]  
 $branch_id[]  
   
 @main[]  @main[]
 $SQL.connect-string[mysql://intranet:pwd@moko/intranet/cp1251_koi8]  ^connect[odbc://dsn=voz7^;uid=voz^;pwd=pwd]{
 ^connect[$SQL.connect-string]{  #    ^void::sql{insert into хрен (a) values (1)}
 ^content[]          $пресса[^table::sql{select * from press where header='$form:h'}]
           ^пресса.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[]
   =^n.match[sdf][]{123}=
   <hr>
   
 @heading[]  =$3=
 ^if(def $form_id){Изменение}{Добавление} документа  <hr>
   
 @help[]  
 article_help.html  
   
 @content[]  $строка[123]
 $branches[^table:sql{select id, name from kb_branches}]  ^строка.match[(.);g]{($match.1)}
 ^if(def $form_id){  <hr>
         $article[^table:sql{select id, name, txt, keywords, kb_branches_id from kb_documents where id='$form_id'}]  $a{
         $branch_id[$:article.kb_branches_id]          $b[1]
 }{  
         $branch_id[$branch_id]  
 }  }
   ^$b=$b<br>
 <form method=post action=article_save.html>  ^$a!$a<br>
         <p />Рубрика:<br>  ^$b=$b<br>
         <select name="kb_branches_id" style="width:100%">  <hr>
                 $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.211  
changed lines
  Added in v.1.245


E-mail: