--- parser3/src/www/htdocs/Attic/auto.p 2001/04/20 14:18:56 1.15 +++ parser3/src/www/htdocs/Attic/auto.p 2001/10/30 14:20:54 1.47 @@ -1,98 +1,392 @@ +@USE +common/lib.p +common/layout.p +common/implode.p +date/dtf.p +product.p +mysql.p + + @auto[] -$LIMITS[ - $post_max_size(10*0x400*0x400) -] -$DEFAULTS[ - $content-type0[text/html] - $content-type[ - $value[text/html] - $charset[windows-1251] - ] -] -$user-html[^table:set{user html comment -<< «^; user ->> »^; -\n\n

! ⠡ 㬮砭 -\n
! .. 塞, . -< <^; ! ⨬ ᯮ짮, -> >^; ! - ᤥ -" "^; !ਬ << >> -& &^; !ᤥ 窨-窨. -_  ^; -^#AB «^; windows 祪 -^#BB »^; windows 祪 -(c) ©^; -^#A9 ©^; windows (c) -}] -#for ^match{}[i] -$CTYPE[ - $white-space[ - ^#09^#0A^#0B^#0C^#0D^#20^#A0] - $digit[ - 0123456789] - $hex-digit[ - 0123456789ABCDEFabcdef] - $letter[ - ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz^#80^#81^#83 - ^#8A^#8C^#8D^#8E^#8F^#90^#9A^#9C^#9D^#9E^#9F^#A1^#A2^#A3^#A5^#A8 - ^#AA^#AF^#B2^#B3^#B4^#B8^#BA^#BC^#BD^#BE^#BF - ] - $word[ - 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz - ^#80^#81^#83^#8A^#8C^#8D^#8E^#8F^#90^#9A^#9C^#9D^#9E^#9F^#A1^#A2 - ^#A3^#A5^#A8^#AA^#AF^#B2^#B3^#B4^#B8^#BA^#BC^#BD^#BE^#BF - ] - - $lowercase[ - AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz^#80^#90^#81^#83 - ^#8A^#9A^#8C^#9C^#8D^#9D^#8E^#9E^#8F^#9F^#A1^#A2^#A3^#BC^#A5^#B4 - ^#A8^#B8^#AA^#BA^#AF^#BF^#B2^#B3^#BD^#BE - ] -] - - -$SQL[ - $connect-string[mysql://test:test@localhost/test/cp1251_koi8] - $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 -}] -] -$MAIL[ - $SMTP[mail.office.design.ru] -# $prog1[/usr/sbin/sendmail -t] -# $prog2[/usr/lib/sendmail -t] -] -#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 +^if(in "/admin/"){ + ^use[admin.p] +} +$MAIN:pSQL[^mysql::init[$SQL.connect-string]] +^detectBrowser[] +#end + + +@exception[origin;source;comment;type;code;stack][i;j] + + +^if(def $source){$origin '$source'} +${comment}. +^if(def $type){type=$type} +^if(def $code){code=$code} +^if($stack){ +


+ stack backtrace:
+ ^stack.menu{ + $stack.origin: $stack.name
+ } +} +#end + + + +################################################################################################# +@spacerLine[height;color] +^spacer_layout[;$height;$color;7] +#end @spacerLine[] + + + +################################################################################################# +@pageHeader[] + + ^href[^if($request:uri ne '/'){/}{}][AB.LV Aizkraukles Bank Latvia] + + ^href[^if($lang ne _en){./?lang=en};In English;class="langNav"]  ^;| ^; ^href[^if($lang ne _lv){./?lang=lv};Latviski;class="langNav"]  ^;| ^; ^href[^if(def $lang){./};По-русски;class="langNav"] + ^spacer_layout[20] + + + ^fullspacer_layout[20;17] +
+ ^spacer_layout[20] +
+ ^fullspacer_layout[20] +
+ ^fullspacer_layout[20] + +#^spacerLine[1;#D9D9D9] +#end @pageHeader[] + + + +################################################################################################# +@pageFooter[] +^spacerLine[20] +^spacerLine[1;#666666] +^spacerLine[5] + + ^spacer_layout[20] + ^if(!def $request){ + +

+ ^byLang[ + EN:
Сделано в ^;Студии Артемия ^;Лебедева
+ Информация о ^;сайте
+ ; + LV:
Сделано в ^;Студии Артемия ^;Лебедева
+ Информация о ^;сайте
+ ; +
Сделано в ^;Студии Артемия ^;Лебедева
+ Информация о ^;сайте
+ ]

+ + }{ +
+ } + +
+ ^byLang[ + EN: Центральный офис:
+ Ул. Элизабетес, 23, Рига, LV-1010
+ телефон: (371) 777-52-22, факс: (371) 777-52-00

+ Клиентская линия: телефон (371) 777-55-55
+ ; + LV: Центральный офис:
+ Ул. Элизабетес, 23, Рига, LV-1010
+ телефон: (371) 777-52-22, факс: (371) 777-52-00

+ Клиентская линия: телефон (371) 777-55-55
+ ; + Центральный офис:
+ Ул. Элизабетес, 23, Рига, LV-1010
+ телефон: (371) 777-52-22, факс: (371) 777-52-00

+ Клиентская линия: телефон (371) 777-55-55 + ] +


+ +^spacerLine[1;#D9D9D9] +#end @pageFooter[] + + + +################################################################################################# +@topMenu[items;current;root][f;prevActive] +$prevActive(0) + + + + ^if($items){ + + + ^items.menu{ + ^if(^items.line[] != 1){ + + } + ^if($items.path eq $root){ + $f[${MAIN:objectFilesDir}${items.path}/menu-on${lang}.gif] + + $prevActive(1) + }{ + $f[${MAIN:objectFilesDir}${items.path}/menu-off${lang}.gif] + + $prevActive(0) + } + } + + +
^href[^if($current ne $root){/^trim[${items.path};/]/};^if(-f $f){^image[$f;border="0"]}{ $items.path }]^if(-f $f){^image[$f;border="0"]}{$items.path}
+ }{
} + + +^MAIN:spacerLine[20] +#end @topMenu[] + + + +################################################################################################# +@homeMenu[items;current][f;w] +^MAIN:spacerLine[19] + + + + ^if($items){ + + + ^items.menu{ + ^if(^items.line[] != 1){ + + } + $f[${MAIN:objectFilesDir}${items.path}/menu-off${lang}.gif] + + } + +
^if(-f $f){^image[$f;border="0"]}{$items.path}
+ }{
} + + + +^MAIN:spacerLine[20] +#end @topMenu[] + + + +################################################################################################# +@body[content] + + $content + +#end @body[] + + + +################################################################################################# +@leftMenu[items;current][subMenuL1;subMenuL2] +^if($items){ + ^items.menu{ + + } +} +#end @leftMenu[] + + + +################################################################################################# +@byLang[en;lv;ru] +^switch[$lang]{ + ^case[_lv]{$result[$lv]} + ^case[_en]{$result[$en]} + ^case[DEFAULT]{$result[$ru]} +} +#end @byLang[] + + +################################################################################################# +@siteMapBlock[] +^MAIN:spacerLine[40] + +
+ + + +
+
+
+ + + + + + ^spacer_layout[1;30] + + + ^fullspacer_layout[20;1] + + + + + + + ^spacer_layout[;1;;3] + +
Site map / search
Site map / search
+ + +#end @siteMapBlock[] + + + +################################################################################################# +@drawMapTree[parent_id][i;exist;hashData] +^level.inc(1) +^if($tree.$parent_id){ + $hashData[$tree.$parent_id] + ^hashData.sort($hashData.sort_order)[asc] + ^if($parent_id){} +} +^level.dec(1) +#end @drawMapTree[] + + + +################################################################################################# +@siteMap[] +$objects[^table::sql{ + SELECT + object_id AS id, + parent_id, + name, + name_en, + name_lv, + is_show_on_sitemap, + path, + object_type_id, + is_published, + sort_order + FROM + object + WHERE + is_published = '1' + ORDER BY + object.sort_order }] -@auto_test[] -^BASE.auto_test[] -
  • DR +$allObjects[^objects.hash[id]] + +$tree[^hash::create[]] +^objects.menu{ + ^if(!$tree.[$objects.parent_id]){$tree.[$objects.parent_id][^table::set{id sort_order}]} + ^tree.[$objects.parent_id].append{$objects.id $objects.sort_order} +} +$level(0) +$elementNum(0) +^drawMapTree[0] +#end @siteMap[] + + + +################################################################################################# +@html[header;content] + + + + + + AB.LV^if(def $header){ | ^taint[as-is][$header] } + + +^body{ + + ^pageHeader[] + $content + ^if(!$noSiteMap){^siteMapBlock[]} + ^pageFooter[] +
    +} + +#end @html[] + + + +################################################################################################# +@error404[] +$response:location[/_error__404.html] +#end + + + +################################################################################################# +@main[] +^pSQL.server{ + + + ^if(def $prepare){^prepare[]} + + ^body{ + ^content[] + } + +} +# @main[]