|
|
| version 1.24, 2001/05/23 11:56:07 | version 1.35.4.1, 2001/09/12 10:07:37 |
|---|---|
| Line 1 | Line 1 |
| @auto[] | @auto[] |
| $user-html[^table:set{user html comment | ^use[common/lib.p] |
| << «^; длинные user вперёд | ^use[common/layout.p] |
| >> »^; | ^use[common/implode.p] |
| \n\n <p> !эти есть в таблице по умолчанию | ^use[date/dtf.p] |
| \n <br> !но т.к. заменяем, надо повторить. | ^use[hosting.p] |
| < <^; !можно этим воспользоваться, | ^detectBrowser[] |
| > >^; !и что-то сделать ДО обычных замен | #end |
| " "^; !например из << и >> | |
| & &^; !сделать ёлочки-кавычки. | |
| _  ^; | |
| ^#AB «^; windows коды ёлочек | |
| ^#BB »^; windows коды ёлочек | |
| (c) ©^; | |
| ^#A9 ©^; windows (c) | |
| }] | |
| #$if(!($SQL is hash)){$SQL[$z[z]]} | |
| $SQL[ | |
| $drivers[^table:set{protocol driver client | |
| mysql Y:\parser3\src\sql\mysql\Debug\parser3mysql.dll Y:\parser3\src\sql\mysql\mySQL32\lib\opt\libmySQL.dll | |
| }] | |
| ] | |
| $SQL.connect-string[mysql://test:test@localhost/test/cp1251_koi8] | |
| $SQL.connect-string[mysql://test:test@[/a/b]/test/cp1251_koi8] | |
| #for ^file:load[name;user-name;mime-type << autodetection] | |
| $MIME-TYPES[^table:set{ext mime-type | |
| zip application/zip | |
| doc application/msword | |
| xls application/vnd.ms-excel | |
| pdf application/pdf | |
| ppt application/powerpoint | |
| rtf application/rtf | |
| gif image/gif | |
| jpg image/jpeg | |
| png image/png | |
| tif image/tiff | |
| html text/html | |
| htm text/html | |
| txt text/plain | |
| mts application/metastream | |
| mid audio/midi | |
| midi audio/midi | |
| mp3 audio/mpeg | |
| ram audio/x-pn-realaudio | |
| rpm audio/x-pn-realaudio-plugin | |
| ra audio/x-realaudio | |
| wav audio/x-wav | |
| au audio/basic | |
| mpg video/mpeg | |
| avi video/x-msvideo | |
| mov video/quicktime | |
| swf application/x-shockwave-flash | |
| }] | |
| @auto_test[] | |
| ^BASE.auto_test[] | |
| <li>DR | |
| @ifhref[flag;address;content;params] | |
| ^if($flag){<a href="$address"^if(def $params){ $params}>$content</a>}{$content} | |
| @img[filename;params] | |
| ^if(-f $filename){$thisImage[^image::measure[$filename]]^thisImage.html[$params]} | |
| @nafigator[] | |
| <table cellpadding="0" cellspacing="0" border="0" background=""> | |
| <tr> | |
| ^branches.menu{ | |
| <td>^ifhref(!in "/$branches.folder/" || ^splitURI.count[] != 1)[/$branches.folder/][<img src="/i/i-${branches.folder}^if(in "/$branches.folder/"){-a}.gif" width="25" height="25" alt="$branches.name" border="0" name="$branches.folder" />][^if(!in "/$branches.folder/"){onMouseOver="iconOver('$branches.folder',1)" onMouseOut="iconOver('$branches.folder',0)"}]</td> | |
| <td width="12" nowrap><spacer type="block" width="12" height="1"></td> | |
| } | |
| <td>^ifhref(^splitURI.count[] != 1)[/$branch/][^img[^if(^splitURI.count[]){/$branch/i/}{/i/home/}p.gif][$.name[p]]]</td> | |
| </tr> | |
| </table> | |
| @subnafigator[] | |
| ^if(def $subbranches){^subbranches.menu{$thisImage[^image::measure[/$branch/i/b-${subbranches.folder}^if(in "/$branch/$subbranches.folder/"){-a}.gif]]^ifhref(!in "/$branch/$subbranches.folder/" || ^splitURI.count[] != 2)[/$branch/$subbranches.folder/][^thisImage.html[$.name[b-$subbranches.folder]]][onMouseOver="rollOver('b-$subbranches.folder', 1, '^if(in "/$branch/$subbranches.folder/"){-a}')" onMouseOut="rollOver('b-$subbranches.folder', 0, '^if(in "/$branch/$subbranches.folder/"){-a}')"]}} | |
| @header[] | |
| <br /> | |
| @insertia[] | |
| <br /> | |
| @content[] | |
| <br /> | |
| @btm[] | |
| <br /> | |
| @localmenu[] | |
| $localSpacer(0) | |
| $foundOne(0) | |
| ^subbranches.menu{ | |
| ^if(in "/$branch/$subbranches.folder/"){$foundOne(1)} | |
| ^if(!$foundOne){ | |
| $localimage[^image::measure[/$branch/i/b-${subbranches.folder}.gif]] | |
| ^localSpacer.inc($localimage.width) | |
| } | |
| } | |
| ^splitURI.offset(1) | |
| $result[^if($localSpacer){<img src="/i/d-t.gif" width="$localSpacer" height="23" border="0" />}^local.menu{$thisImage[^image::measure[/$branch/i/b2-${local.folder}^if(in "/$branch/$splitURI.piece/$local.folder/"){-a}.gif]]^ifhref(!in "/$branch/$splitURI.piece/$local.folder/")[/$branch/$splitURI.piece/$local.folder/][^thisImage.html[$.name[b2-$local.folder]]][onMouseOver="rollOver('b2-$local.folder', 1, '')" onMouseOut="rollOver('b2-$local.folder', 0, '')"]}] | |
| @contentTable[] | |
| <table cellpadding="0" cellspacing="0" border="0" width="648" background=""> | |
| <tr valign="top"> | |
| <td width="198"^if(-f "/$branch/i/dec-btm-left.gif"){}{ rowspan="2"}> | |
| <table cellpadding="0" cellspacing="0" border="0" width="198" background=""><tr><td align="right">^img[/$branch/i/photo-left-btm.jpg]</td></tr></table> | |
| ^insertia[] | |
| </td> | |
| <td width="25" rowspan="2"><spacer type="block" width="25" height="1"></td> | |
| <td width="348" rowspan="2">^if(def $local){^localmenu[]<br>}{^if(-f "/$branch/i/b-btm-line.gif"){^img[/$branch/i/b-btm-line.gif]}{^img[/i/b-btm-line.gif]}}<spacer type="block" width="348" height="1"><br> | |
| ^content[] | |
| </td> | |
| <td width="30" rowspan="2" valign="bottom" nowrap>^if(-f "/$branch/i/dec-btm-right.gif"){^img[/$branch/i/dec-btm-right.gif]}{<spacer type="block" width="30" height="1">}</td> | |
| <td width="47"^if(-f "/$branch/i/dec-btm-right2.gif"){}{ rowspan="2"} background="/i/bg-body-right.gif">^img[/i/dec-top-right.gif]</td> | |
| </tr> | |
| ^btm[] | |
| </table> | |
| @main[] | |
| $branches[^table::load[/branches.cfg]] | |
| $shortURI[^request:uri.mid(1;^request:uri.length[]-1)] | |
| $splitURI[^shortURI.lsplit[/]] | |
| ^if(-f ^file:find[section.cfg]){ | |
| $subbranches[^table::load[^file:find[section.cfg]]] | |
| $branch[^request:uri.mid(1;^request:uri.length[]-1)] | |
| $branch[^branch.mid(0;^branch.pos[/])] | |
| ^if(-f ^file:find[local.cfg]){ | |
| $local[^table::load[^file:find[local.cfg]]] | |
| } | |
| } | |
| <!-- Copyright (c) Art. Lebedev Studio | http://www.design.ru/ --> | |
| <html><head><base target="_top"> | |
| <title> | |
| Lord of the Dance | |
| ^if(def $branch){ | |
| ^if(^branches.locate[folder][$branch]){| $branches.name} | |
| ^if(^splitURI.count[] > 1){ | |
| ^if(^subbranches.locate[folder][^splitURI.offset(1)$splitURI.piece^splitURI.offset(-1)]){| $subbranches.name} | |
| ^if(^splitURI.count[] > 2){ | |
| ^if(def $local){^if(^local.locate[folder][^splitURI.offset(2)$splitURI.piece^splitURI.offset(-2)]){| $local.name}} | |
| } | |
| } | |
| } | |
| </title><link rel="stylesheet" type="text/css" href="/lotd.css"> | |
| # ^if(def $prepare){^prepare[]} | |
| <script language="javascript"> | |
| <!-- | |
| if (document.images) { | |
| arIcnSrc = new Array (^branches.menu{"/i/i-${branches.folder}-a","/$branches.folder/i/p.gif"}[,]) | |
| arIcnLst = new Array ()^; | |
| for (i in arIcnSrc) { | |
| arIcnLst[i] = new Image ()^; | |
| arIcnLst[i].src = arIcnSrc[i] + ".gif"^; | |
| } | |
| arImgSrc = new Array (^if(def $subbranches){^subbranches.menu{"b-$subbranches.folder"}[,]^if(def $local){,^local.menu{"b2-$local.folder"}[,]}})^; | |
| arImgLst = new Array ()^; | |
| for (i in arImgSrc) { | |
| arImgLst[i] = new Image ()^; | |
| arImgLst[i].src = "/$branch/i/" + arImgSrc[i] + "-s.gif"^; | |
| } | |
| } | |
| function iconOver(imName, over){ | |
| if (document.images) { | |
| document.images[imName].src = "/i/i-" + imName + (over ? "-a" : "") + ".gif"^; | |
| ^if(def $branch){document.images["p"].src = "/" + (over ? imName : "$branch") + "/i/p.gif"^;} | |
| } | |
| } | |
| function rollOver(imName, over, stSuffix){ | |
| if (document.images) document.images[imName].src = "/$branch/i/" + imName + (over ? "-s" : stSuffix) + ".gif"^; | |
| } | |
| //--> | |
| </script> | |
| </head> | |
| <body bgcolor="#000000" text="#000000" link="#000000" alink="#9C0000" vlink="#333333" marginheight="7" marginwidth="0" topmargin="7" leftmargin="0" rightmargin="0"> | |
| <table cellpadding="0" cellspacing="0" border="0" width="648"> | |
| <tr> | |
| <td width="198"><img src="/i/d-t.gif" width="198" height="1" alt="" border="0"></td> | |
| <td width="101"><img src="/i/d-t.gif" width="101" height="1" alt="" border="0"></td> | |
| <td width="349"><img src="/i/d-t.gif" width="349" height="1" alt="" border="0"></td> | |
| </tr> | |
| <tr> | |
| <td width="299" height="42" colspan="2" rowspan="2" align="right" nowrap><a href="/">^img[/i/logo.gif]</a><img src="/i/logo-line.gif" width="33" height="42" alt="" border="0"><br> | |
| ^img[/$branch/i/photo-left-top.jpg]^img[/$branch/i/photo-right-top.jpg]</td> | |
| </td> | |
| <td height="25" nowrap><spacer type="block" width="1" height="25"></td> | |
| </tr> | |
| <tr> | |
| <td width="349" height="25" background="/$branch/i/bg-icons.jpg"> | |
| ^nafigator[] | |
| </td> | |
| </tr> | |
| <tr valign="top"> | |
| <td width="198" align="right">^img[/$branch/i/photo-left.jpg]</td> | |
| <td width="450" colspan="2" background="/$branch/i/photo-right.jpg"> | |
| ^header[] | |
| </td> | |
| </tr> | |
| </table> | |
| <table cellpadding="0" cellspacing="0" border="0" background="/$branch/i/bg-body.gif"><tr><td> | |
| ^contentTable[] | |
| </td></tr></table> | |
| <table cellpadding="0" cellspacing="0" border="0" width="571"> | |
| <tr> | |
| <td width="223"></td> | |
| <td width="348"><div class="footer">© 2001 <nobr>Альфа-Банк</nobr> | |
| <nobr>E-mail:</nobr> <a href="mailto:mail@alfabank.ru" class="grey">mail@alfabank.ru</a></div></td> | |
| </tr> | |
| </table> | |
| </body> | |
| </html> | |