Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.187 and 1.325

version 1.187, 2001/05/17 18:26:22 version 1.325, 2001/09/21 08:38:28
Line 1 Line 1
 @main[]  @main[]
 #^main[]  #$response:content-type[$.value[text/html] $.charset[windows-1251]]
 #^use[$form:file]  ^xslt[]
   OK
 $строка[вася ЗдЕсЬ]  
 ^^строка.upper[]=^строка.upper[]<br>  @xslt[]
 ^^строка.lower[]=^строка.lower[]<br>  $dom[^dom::set{<?xml version="1.0" encoding="windows-1251"?>
 <hr>  
   <people>
           <man id="1">
 $a[12]                  <name>PAF</name>
 ^a.int[]          </man>
 <hr>          <man id="2">
                   <name>ПИФ</name>
           </man>
   </people>
   }]
   
 $t[^table:set{key       value  ^show-dom2[$dom]<hr>
 1       v1  #^show-dnode1[$dom]<hr>
 2       v2}]  $people[^dom.select[*/man]]
 $h[^t.hash[key]]  #^show1[]
   ^show-dnodes1[$people]<hr>
   #^people.0.owner.hren[]
 #^rem{  
 ^for[i](1;2){  ^show-dnode1[^dom.select-single[*/man[2]/name];0;1]<hr>
 ^connect[$SQL.connect-string]{  
         $shit[^taint[our's]]  @show1[]
 #       $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]  ^for[i](0;^people._count[]-1){
         $paf[^table:sql{select * from paf order by id desc}(5)]      $node[$people.$i]
         $paf{          $node.first-child.value: 
         ^if(^empty[]){query result is empty}{                  $pattributes[$node.parent.attributes]
         <table border=1>                  ^if(^pattributes._count[]){
                 <tr><td>id</td><td>name</td><td>age</td></tr>                          $pattributes.id.name=$pattributes.id.value
                 ^menu{<tr><td>$id</td><td>$name</td><td>$age</td></tr>}                  }
         </table>          <br>
         }}  
 }  
 }  }
 #}  
   
 <HR>  
 $abc{}  
 $tn[^table:set[nameless]{a1     b1  
 a2      b2  
 }]  
 $x[^tn.locate[0;a2]]  
 ^$tn.1=$tn.1  
 <hr>  
 $t0[^table:set{key      a       b  
 1       a1  
 2       a2      b2  
 }]  
 ^if(^t0.locate[key;2] && "a" ne "b"){y;n}  
 <hr>  <hr>
 $currentFolder[/a/b]          
 $path[^currentFolder.lsplit[/]]  @show-dnodes1[array][i]
 ^path.flip[]  ^for[i](0;^array._count[]-1){
 $path{          ^show-dnode1[$array.$i;0;1]
 ^menu{$0}{,}  
 }  }
 <hr>  
 $t1[^table:set{key      value  
 1       v1  
 2       v2}]  
 $h1[^t1.hash[key]]  
 ^h1.default[$value[nothing]]  
 ^$h1.2.value=$h1.2.value<br>  
 ^$h1.2x.value=$h1.2x.value<br>  
 <hr>  
 $t2[^table:set{key      a       b  
 1       a1  
 2       a2      b2  
 }]  
 t2 ^if(^t2.empty[]){empty}{not empty}<br>  
 ^t2.offset(1)  
 $t2.b  
 $r[^t2.record[]]  
 <hr>  
 $th[^t2.hash[b]]  
 ^$th.b2.a=$th.b2.a<br>  
 <hr>  
 $th[^t2.hash[key;a]]  
 ^$th.2.a=$th.2.a<br>  
 <hr>  
 #^OP:eval(1<2)  
   
 $filelist[^table:dir[.]]  
 <hr>  
 $path[/news/tululu/]  
 #^path.flip[]  
 <hr>  
 $branches[^table:set{name       val  
 index.cgihtml   123  
 }]  
 $splitURI[^request:uri.lsplit[/]]  
 name ^if(^branches.locate[name;$splitURI.1]){found;not found}:  
 $branches.name  
 <HR>  
 $splitURI[^request:uri.lsplit[/]]  
 $splitURI.0!$splitURI.1  
 <HR>  
   
 $t2[^table:set{dir      title  @show-dnode1[dnode;level;single][l]
 /here   Here  ^if(def $dnode){
 }]      ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
 $t2{^menu{${dir}-$title}[,]}      ^if($dnode.type eq element){
 <HR>          &lt^;$dnode.name
 $dir[news]              $pairs[$dnode.attributes]
 $list[^table:dir[$dir]]              ^if(def $pairs){
 ^list.menu{                  $names[^pairs._keys[]]
     $subdir[$dir/$list.name]                  ^names.menu{$names.key=$pairs.[$names.key].value }
         $sublist[^table:dir[$subdir]]              }
         ${list.name}/ $sublist{^menu{$name}[,]}<br>              &gt^;
 }      }{
 <HR>          $dnode.name
 ^if(in "/otherdeeper"){y;n}      }
 <HR>      
 ^$form:проверка_имя=$form:проверка_имя<BR>      ^if(def $dnode.value){$dnode.value}<br>
 <form method=post action=index.html>      ^show-dnode1[$dnode.first-child]($level+1)
 <input name=проверка_имя value=проверка_значение>      ^if(!$single){
 <input type=submit>              ^show-dnode1[$dnode.next-sibling]($level)
 </form>  
 <HR>  
   
 ^^table:dir[/]:<BR>  
 $d[^table:dir[/]]  
 $d{^menu{$name &nbsp^;&nbsp^;&nbsp^;&nbsp^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}}  
 <HR>  
   
 $files[^table:set{name}]  
 $d{^menu{  
     ^if(-d "$name"){  
         ^:files.append{$name}  
     }      }
 }}  
   
 $files{^menu{$name}[,]}  
 <HR>  
   
 @exception[origin;source;comment;type;code][i;j]  
 <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}!  
 @end  
   
       ^if($dnode.type eq element){
       ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$dnode.name&gt^;<br>
       }
   }
   
 @a[]  @show-dom2[dom]
   ^dom.save[save.xml;
           $.encoding[windows-1251]
           $.method[xml]
   ]
   $file[^dom.file[
           $.encoding[windows-1251]
           $.method[html]
   ]]
   ^file.save[text;save_file.html]
   ^taint[^dom.string[
           $.encoding[windows-1251]
           $.method[html]
   ]]
   

Removed from v.1.187  
changed lines
  Added in v.1.325


E-mail: