Diff for /parser3/src/www/htdocs/Attic/index.html between versions 1.221 and 1.233

version 1.221, 2001/07/07 17:59:02 version 1.233, 2001/07/23 13:59:52
Line 1 Line 1
   @USE
   dtformat.p
   input_date.p
   
   @href[href zzz;title xxxx;ставить]
   ^if($ставить){y;n}
   
   
   @call[name][method]
   $method[$$name]
   ^if(def $method){^method[]}
   
   @test1[]
   test1 result
   
   @odbc_test[]
   ^connect[odbc://dsn=voz7^;uid=voz^;pwd=pwd]{
           $пресса[^table:sql{select * from press}]
           $пресса{^menu{
                   $id, $date_row, $header, $short_text^rem{, $full_text}, $mode
           }[<br>]}
   }
   <hr>
   
 @main[]  @main[]
   ^odbc_test[]
   $a_1[a_1 value]
   $a_1<hr>
   
   ^eval(2*11)
   ^call[test1]
   <hr>
   $input_date:input_date_auto_test
   <hr>
   #$string:z[1]
   #<hr>
   $path[/news/tululu/]
   $pieces[^path.lsplit[/]]
   $pieces{^count[]: ^menu{{$piece}}[,].}
   <hr>
   ^href[href;title](1<2)
   
   <hr>
   $stat[^file:stat[test.zip]]
   $stat{
   ^$size=$size<br>
   adate=^long_date_format[$adate]<br>
   mdate=^long_date_format[$mdate]<br>
   cdate=^long_date_format[$cdate]<br>
   }
   <hr>
   $дата[^input_date:parse[9.7.2001]]
   ^long_date_format[$дата]
   <hr>
   $дата[^parse_date[9.7.2001]]
   ^long_date_format[$дата]
   <hr>
 $сегодня[^date:now[]]  $сегодня[^date:now[]]
 $недельный_календарь[^table:calendar[rus]($сегодня.year;$сегодня.month;$сегодня.day)]  $недельный_календарь[^table:calendar[rus]($сегодня.year;$сегодня.month;$сегодня.day)]
 <TT>  <TT>
Line 247  $th[^t2.hash[key;a]] Line 303  $th[^t2.hash[key;a]]
   
 $filelist[^table:dir[.]]  $filelist[^table:dir[.]]
 <hr>  <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  $t2[^table:set{dir      title
 /here   Here  /here   Here
 }]  }]
Line 313  ${comment}. Line 355  ${comment}.
 ^connect[$connect-string]{  ^connect[$connect-string]{
         $shit[^taint[our's]]          $shit[^taint[our's]]
 #       $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]  #       $paf[^table:sql{insert into paf (name, age) values ('$shit', ^random:generate(10000))}]
         ^void:sql{update paf set age=age+1}  #       ^void:sql{update paf set age=age+1}
         $paf[^table:sql{select * from paf order by id desc}(5)]          $paf[^table:sql{select * from paf order by id desc}(5)]
         $paf{          $paf{
         ^if(^empty[]){query result is empty}{          ^if(^empty[]){query result is empty}{
Line 322  ${comment}. Line 364  ${comment}.
                 ^menu{<tr><td>$id</td><td>$name</td><td>$age</td></tr>}                  ^menu{<tr><td>$id</td><td>$name</td><td>$age</td></tr>}
         </table>          </table>
         }}          }}
         ^^string:sql{select name from paf where id=1}=^string:sql{select name from paf where id=1}<br>          ^^string:sql{select name from paf where id=1}=^string:sql{select name from paf where id=1}{n/a}<br>
         ^^int:sql{select age from paf where id=1}=^int:sql{select age from paf where id=1}<br>          ^^int:sql{select age from paf where id=1}=^int:sql{select age from paf where id=1}(111)<br>
         ^^double:sql{select age from paf where id=1}=^double:sql{select age from paf where id=1}<br>          ^^double:sql{select age from paf where id=1}=^double:sql{select age from paf where id=1}(222)<br>
   
         $paf[^hash:sql{select id,age from paf}]          $paf[^hash:sql{select id,age from paf}]
         ^$paf.2.age=$paf.2.age<br>          ^$paf.2.age=$paf.2.age<br>

Removed from v.1.221  
changed lines
  Added in v.1.233


E-mail: