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

version 1.73, 2001/03/29 09:31:46 version 1.211, 2001/06/29 08:35:26
Line 1 Line 1
 @auto[]  @auto[]
 !!$html-typo[^table:set{user    html    comment  $form_id[19]
 <<      &laquo^;        длинные user вперёд  $branch_id[]
 >>      &raquo^;  
 \n\n    <p>     !эти есть в таблице по умолчанию  
 \n      <br>    !но т.к. заменяем, надо повторить.  
 <       &lt^;   !можно этим воспользоваться,  
 >       &gt^;   !и что-то сделать ДО обычных замен  
 "       &quot^; !например из << и >>  
 &       &amp^;  !сделать ёлочки-кавычки.  
 _       &nbsp^;  
 ^#AB    &laquo^;        windows коды ёлочек  
 ^#BB    &raquo^;        windows коды ёлочек  
 (c)     &copy^;  
 ^#A9    &copy^; windows (c)  
 }]  
   
 @dump[t]  
 #^t.menu{$n<BR>}  
 <HR>  
 @func[n]  
 $n  
 @twop[a;b]  
 ($a,$b)  
 @main[]  @main[]
 ^twop[a;]  $SQL.connect-string[mysql://intranet:pwd@moko/intranet/cp1251_koi8]
 ^$request:browser.type=$request:browser.type<BR>  ^connect[$SQL.connect-string]{
 ^$request:browser.version=$request:browser.version<BR>  ^content[]
   
 $tf[^file:load[test.zip;abc.zip]]  
 ^$tf.name=$tf.name<BR>  
 ^$tf.size=$tf.size<BR>  
 ^$tf.mime-type=$tf.mime-type<BR>  
 ^$tf.text:<BR>  
 $tf.text<HR>  
 <HR>  
 ^file:find[test.cfg]<BR>  
 ^file:find[tes.cfg]{not found}<BR>  
 <HR>  
   
 $t[^table:set{n  
 3  
 01.3  
 1.2  
 2  
 }]  
 #$t{^locate[n;2z]^found{$n}{not found}}<BR>  
 #$t{^locate[n;3]^found{found:$n}{not found}}<BR>  
 ^$t:<BR>  
 ^dump[$t]  
 #^t.sort($n)  
 ^^t.sort(^$n):<BR>  
 ^dump[$t]  
 #^t.sort{^:func($n)}  
 ^^t.sort{^^:func(^$n)}:<BR>  
 ^dump[$t]  
 #^t.sort{$n}  
 ^^t.sort{^$n}:<BR>  
 ^dump[$t]  
 #^t.sort{$n}[desc]  
 ^^t.sort{^$n}[desc]:<BR>  
 ^dump[$t]  
 <HR>  
   
 ^if(-f index.html){y}{n}<BR>  
 ^taint[html-typo;не знаю  
 я ничего  
   
 <<слово длинное>>  
   
 (c) by Я  
 ]<HR>  
 $t[^table:load[/test.cfg]]  
 ^process[@b[]  
 f  
 ]  
 ^b[]<BR>  
   
 ^$t.a=$t.a<BR>  
 ^t.offset[2]  
 #$r[^t.record[]]  
 #^$r.a=$r.a<BR>  
   
 ^$request:uri=$request:uri<BR>  
 ^$env:PATH_INFO=$env:PATH_INFO<BR>  
 ^$env:REMOTE_ADDR=$env:REMOTE_ADDR<BR>  
   
 ^rem{  
 $response:body[]  
 $response:location[http://parser3/123]  
 }  }
   
   @heading[]
   ^if(def $form_id){Изменение}{Добавление} документа
   
 <HR>  @help[]
 ^^auto_test[]:<BR>  article_help.html
 <ol>  
 ^auto_test[]  
 </ol>  
 <HR>  
   
 ^${cookie:вот}=${cookie:вот}?<BR>  @content[]
 ^$request:query=$request:query<BR>  $branches[^table:sql{select id, name from kb_branches}]
 ^$request:uri=$request:uri<BR>  ^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>  <form method=post action=article_save.html>
 <table border=1 width=250><tr><td>$form:name</td></tr></table>          <p />Рубрика:<br>
 <textarea name=name rows=5 cols=40>^untaint[html]{^default[$form:name;не знаю]}</textarea><BR>          <select name="kb_branches_id" style="width:100%">
 <input type=submit>                  $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>  </form>
   
 @default[test;def]  
 $result[^if(^test.length[]){$test}{$def}]  
   
 @exception[origin;source;comment;type;code]  
 <body bgcolor=black>  
 <font color=white>  
 ERROR:  
 ^if(def $source){$origin '$source'}  
 ${comment}.  
 ^if(def $type){type=$type}  
 ^if(def $code){code=$code}  
   
 @auto_test[]  
 ^BASE.auto_test[]  
 <li>${request:uri}!  
   

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


E-mail: