Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.185 and 1.331

version 1.185, 2001/05/17 15:57:35 version 1.331, 2001/09/26 11:24:07
Line 1 Line 1
 @main[]  @main[]
 #^main[]  #^connect[mysql://hren]{^void:sql{nothing}}
 #^use[$form:file]  #$response:content-type[$.value[text/html] $.charset[utf-8]]
   ^xslt[]
 $строка[васяЗдЕсЬ]  OK
 ^^строка.upper[]=^строка.upper[]<br>  
 ^^строка.lower[]=^строка.lower[]<br>  @xslt[]
 <hr>  $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
   
   <people>
 $a[12]          <man id="1"><![CDATA[ ment here]]>
 ^a.int[]                  <name>PAF</name>
 <hr>          </man>
           <man id="2">
                   <name>ПИФ</name>
           </man>
   </people>
   }]
   
 $t[^table:set{key       value  ^show-xdoc2[$xdoc]<hr>
 1       v1  #^show-xnode1[$xdoc]<hr>
 2       v2}]  $people[^xdoc.select[*/man]]
 $h[^t.hash[key]]  #^show1[]
   ^show-xnodes1[$people]<hr>
   #^people.0.owner.hren[]
 #^rem{  
 ^connect[$SQL.connect-string]{  ^show-xnode1[^xdoc.select-single[*/man[2]/name];0;1]<hr>
         $shit[^taint[our's]]  
 #       $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]  @show1[]
         $paf[^table:sql{select * from paf order by id desc}(5)]  ^for[i](0;^people._count[]-1){
         $paf{      $node[$people.$i]
         ^if(^empty[]){query result is empty}{          $node.first-child.value: 
         <table border=1>                  $pattributes[$node.parent.attributes]
                 <tr><td>id</td><td>name</td><td>age</td></tr>                  ^if(^pattributes._count[]){
                 ^menu{<tr><td>$id</td><td>$name</td><td>$age</td></tr>}                          $pattributes.id.name=$pattributes.id.value
         </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-xnodes1[array][i]
 ^path.flip[]  ^for[i](0;^array._count[]-1){
 $path{          ^show-xnode1[$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-xnode1[xnode;level;single][l]
 /here   Here  ^if(def $xnode){
 }]      ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
 $t2{^menu{${dir}-$title}[,]}      ^if($xnode.type eq element){
 <HR>          &lt^;$xnode.name
 $dir[news]              $pairs[$xnode.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>          [$xnode.type]
 ^if(in "/otherdeeper"){y;n}      }
 <HR>      
 ^$form:проверка_имя=$form:проверка_имя<BR>      ^if(def $xnode.value){$xnode.value}<br>
 <form method=post action=index.html>      ^show-xnode1[$xnode.first-child]($level+1)
 <input name=проверка_имя value=проверка_значение>      ^if(!$single){
 <input type=submit>              ^show-xnode1[$xnode.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($xnode.type eq element){
       ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$xnode.name&gt^;<br>
       }
   }
   
 @a[]  @show-xdoc2[xdoc]
   ^xdoc.save[save.xml;
   #       $.encoding[windows-1251]
           $.method[xml]
   ]
   $file[^xdoc.file[
   #       $.encoding[windows-1251]
           $.method[html]
   ]]
   ^file.save[text;save_file.html]
   ^taint[^xdoc.string[]]
   #       $.encoding[windows-1251]
   #       $.method[xml]
   #]]

Removed from v.1.185  
changed lines
  Added in v.1.331


E-mail: