Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.167 and 1.335

version 1.167, 2001/05/07 15:31:54 version 1.335, 2001/09/27 07:54:58
Line 1 Line 1
 @t[a]  
 -${a}-  
 @end  
   
 @main[]  @main[]
 $branches[^table:set{name       val  #^exec[]
 index.cgihtml   123  #^fori[]
   #^connect[mysql://hren]{^void:sql{nothing}}
   #$response:content-type[$.value[text/html] $.charset[utf-8]]
   ^xslt[]
   OK
   
   @exec[]
   $a[^file::exec[fc.exe;a;b]]
   $a.status|$a.stderr<hr>
   
   @fori[][i]
   ^for[i](1;3){... =$i= ...}
   
   @xslt[]
   $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
   <!DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd">
   
   <people>
           <man id="1">
                   <name>PAF</name>
           </man>
           <man id="2">
                   <name>ПИФ</name>
           </man>
   </people>
 }]  }]
 $splitURI[^request:uri.lsplit[/]]  
                                         ^branches.locate[name2;$splitURI.1]  
                                         $branches.name  
 <HR>  
 $splitURI[^request:uri.lsplit[/]]  
 $splitURI.0!$splitURI.1  
 <HR>  
   
 $t2[^table:set{dir      title  ^show-xdoc2[$xdoc]<hr>
 /here   Here  #^show-xnode1[$xdoc]<hr>
 }]  $people[^xdoc.select[*/man]]
 $t2{^menu{${dir}-$title}[,]}  #^show1[]
 <HR>  ^show-xnodes1[$people]<hr>
 $dir[news]  #^people.0.owner.hren[]
 $list[^table:dir[$dir]]  
 ^list.menu{  ^show-xnode1[^xdoc.select-single[*/man[2]/name];0;1]<hr>
     $subdir[$dir/$list.name]  
         $sublist[^table:dir[$subdir]]  by id:
         ${list.name}/ $sublist{^menu{$name}[,]}<br>  ^show-xnode1[^xdoc.getElementById[1];0;1]
   <hr>
   
   @show1[array]
   ^for[i](0;^array._count[]-1){
       $x[$array.$i]
           $x.firstChild.nodeValue: 
                   $pattributes[$x.parentNode.attributes]
                   ^if(^pattributes._count[]){
                           $pattributes.id.name=$pattributes.id.nodeValue
                   }
           <br>
 }  }
 <HR>          
 ^t[x]  @show-xnodes1[array][i]
 <HR>  ^for[i](0;^array._count[]-1){
 ^if(in "/otherdeeper"){y;n}          ^show-xnode1[$array.$i;0;1]
 <HR>  }
 ^$form:проверка_имя=$form:проверка_имя<BR>  
 <form method=post>  @show-xnode1[x;level;single][l]
 <input name=проверка_имя value=проверка_значение>  ^if(def $x){
 <input type=submit>      ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
 </form>      ^if($x.nodeType == $xnode:ELEMENT_NODE){
 <HR>          &lt^;$x.nodeName
               $pairs[$x.attributes]
 ^^table:dir[/]:<BR>              ^if(def $pairs){
 $d[^table:dir[/]]                  $names[^pairs._keys[]]
 $d{^menu{$name &nbsp^;&nbsp^;&nbsp^;&nbsp^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}}                  ^names.menu{$names.key=$pairs.[$names.key].nodeValue }
 <HR>              }
               &gt^;
 $files[^table:set{name}]      }{
 $d{^menu{          [$x.nodeType]
     ^if(-d "$name"){      }
         ^:files.append{$name}      
       ^if(def $x.nodeValue){$x.nodeValue}<br>
       ^show-xnode1[$x.firstChild]($level+1)
       ^if(!$single){
               ^show-xnode1[$x.nextSibling]($level)
     }      }
 }}  
   
 $files{^menu{$name}[,]}      ^if($x.nodeType == $xnode:ELEMENT_NODE){
 <HR>      ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
       }
   }
   
 @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}!  
   
   @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.167  
changed lines
  Added in v.1.335


E-mail: