Index: branches/1.0.x/in-commerce/elements/content_boxes/my_favorites.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/elements/content_boxes/my_favorites.elm.tpl (revision 0) +++ branches/1.0.x/in-commerce/elements/content_boxes/my_favorites.elm.tpl (revision 13321) @@ -0,0 +1,21 @@ + + + + + + () + + + + + + +
+ + + + + + +
+ \ No newline at end of file Index: branches/1.0.x/inc/nlsmenueffect.js =================================================================== diff -u -N --- branches/1.0.x/inc/nlsmenueffect.js (revision 0) +++ branches/1.0.x/inc/nlsmenueffect.js (revision 13321) @@ -0,0 +1,241 @@ +/** +* nlsmenueffect.js v.2.0.1 +* Copyright 2005-2007, addobject.com. All Rights Reserved +* Author Jack Hermanto, www.addobject.com +*/ +var nlsEffectList={ + barn:"progid:DXImageTransform.Microsoft.Barn(Duration=0.3,motion=out,orientation=vertical);", + blinds:"progid:DXImageTransform.Microsoft.Blinds(Duration=0.3,Bands=8,direction=right);", + checkerboard:"progid:DXImageTransform.Microsoft.Checkerboard(Duration=0.3,Direction=right,SquaresX=20,SquaresY=20);", + fade:"progid:DXImageTransform.Microsoft.Fade(Duration=0.3,Overlap=1.00);", + inset:"progid:DXImageTransform.Microsoft.Inset(Duration=0.3);", + iris:"progid:DXImageTransform.Microsoft.Iris(Duration=0.3,irisstyle=CIRCLE,motion=in);", + pixelate:"progid:DXImageTransform.Microsoft.Pixelate(Duration=0.3,MaxSquare=10);", + radialwipe:"progid:DXImageTransform.Microsoft.RadialWipe(Duration=0.3,wipestyle=WEDGE)", + randombars:"progid:DXImageTransform.Microsoft.RandomBars(Duration=0.3,Orientation=horizontal);", + randomdissolve:"progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.3);", + slide:"progid:DXImageTransform.Microsoft.Slide(Duration=0.3,slidestyle=HIDE,Bands=5);", + spiral:"progid:DXImageTransform.Microsoft.Spiral(Duration=0.3,GridSizeX=64,GridSizeY=64);", + stretch:"progid:DXImageTransform.Microsoft.Stretch(Duration=0.3,stretchstyle=HIDE);", + strips:"progid:DXImageTransform.Microsoft.Strips(Duration=0.3,motion=rightdown);", + wheel:"progid:DXImageTransform.Microsoft.Wheel(Duration=0.3,spokes=10);", + gradienwipe:"progid:DXImageTransform.Microsoft.GradientWipe(Duration=0.3,GradientSize=0.75,wipestyle=0,motion=forward);", + zigzag:"progid:DXImageTransform.Microsoft.Zigzag(Duration=0.3,GridSizeX=8,GridSizeY=8);", + itemfade:"progid:DXImageTransform.Microsoft.Fade(Duration=0.2,Overlap=0.75);", + itemdissolve:"progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.3);", + aoslide:"Duration:2" +}; + +function NlsMenuEffect(mId, effName) { + this.mId=mId; + this.elm=null; + this.effName=effName; + this.isOut=false; + this.prop=new Object(); + this.onShow=function() {}; + this.onHide=function() {}; + + this.start=_defStart; + this.run=_defRun; + + if (effName=="aoslide") { + this.start=_slideStart; + this.run=_slideRun; + } + return this; +}; + +/*default effect*/ +var _fadeTm=null; +var _fadesEff=new Object(); + +function _defStart(isOut) { + var mn=NlsMenu.$GE(this.mId); + mn.childNodes[0].style.position=""; + nlsMenu[this.mId].rt.ready=true; + this.elm=NlsMenu.$GE("effwin_"+this.mId); + if (nls_isIE) { + this.elm.style.filter=nlsEffectList[this.effName]; + if (this.elm.filters.length>0) this.elm.filters[0].apply(); + } else { + this.elm=this.elm.parentNode; + this.isOut=(isOut==true); + if (!this.prop["init"]) { + this.elm.style.MozOpacity=(isOut?1:0); + this.elm.style.opacity=(isOut?1:0); + } + this.prop["init"]=true; + this.prop["dur"]=20; + this.prop["rng"]=100; + this.prop["spd"]=20; + } +}; + +function _defRun() { + if (nls_isIE) { + if (this.elm.filters.length>0) this.elm.filters[0].play(); + } else { + var me=this; + if (this.elm.style.MozOpacity) this.prop["opa"]="MozOpacity"; else this.prop["opa"]="opacity"; + var p=new Object(); + p.x1=this.elm.style[this.prop["opa"]]*this.prop["rng"]; + if (this.isOut) { p.x2=0; } else { p.x2=this.prop["rng"]-1; } + _fc_fade(p); + this.prop["pt"]=p; + this.prop["sd"]=0; + + _fadesEff[this.mId]=this; + if (!_fadeTm) _fadeTm=setInterval(function() {_fadeAnimate();}, this.prop["spd"]); + } +}; + +function _fadeAnimate() { + var b=true; + for (var it in _fadesEff) { + var eff=_fadesEff[it]; + var p=eff.prop["pt"]; + if (eff.prop["sd"]0) this.elm.filters[0].apply(); +}; + +NlsMenuItemEffect.prototype.start=function() { + if(!nls_isIE) return; + if (this.elm.filters.length>0) this.elm.filters[0].play(); +}; +/*end*/ + +/*NlsMenuBorder class*/ +function NlsMenuBorder(bTop, bBottom, bLeft, bRight) { + var border = ""; + var sTop="", sBottom="", sLeft="", sRight=""; + if (bTop) sTop=""; + if (bBottom) sBottom=""; + if (bLeft) { + sLeft=""; + if (bTop) sTop=""+sTop; + if (bBottom) sBottom=""+sBottom; + } + if (bRight) { + sRight=""; + if (bTop) sTop+=""; + if (bBottom) sBottom+=""; + } + if (sTop!="") sTop=""+sTop+""; + if (sBottom!="") sBottom=""+sBottom+""; + border=border+sTop+""+sLeft+""+sRight+""+sBottom; + border+="
  
@menu
"; + + this.applyBorder = function (smenu, stlprf) { + var b=border.replace(/@stlprf_/gi, stlprf); + return b.replace(/@menu/gi, smenu); + }; + + return this; +}; \ No newline at end of file Index: branches/1.0.x/elements/pagination.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/pagination.elm.tpl (revision 0) +++ branches/1.0.x/elements/pagination.elm.tpl (revision 13321) @@ -0,0 +1,52 @@ + +    + + + +   + + + + + + + + + + + + + + +

+
+ + + + + + + + + +
+ :  + + + + + : +
+ + + " value="" /> + +
+ Index: branches/1.0.x/elements/footer.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/footer.elm.tpl (revision 0) +++ branches/1.0.x/elements/footer.elm.tpl (revision 13321) @@ -0,0 +1,30 @@ + + + "> + | + + +
+ + + + + + +
+ +
+
+
+
+
+ +
+
+
+
+ \ No newline at end of file Index: branches/1.0.x/img/lbox/next.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/inc/styles.css =================================================================== diff -u -N --- branches/1.0.x/inc/styles.css (revision 0) +++ branches/1.0.x/inc/styles.css (revision 13321) @@ -0,0 +1,870 @@ +/* --- Golbal Usage Styles --- */ +html, body { + margin: 0px; + padding: 0px; + height: 100%; + border: none; + font: 9pt Arial; + color: #000000; +} + +.fullwidth { + width: 100%; +} + +table { + margin: 0px; + padding: 0px; + border-collapse: collapse; +} + +td { + font: 11px Arial, serif; + color: #000000; + margin: 0px; + padding: 0px; +} + +.hidden-element { + display: none; +} + +.horizontal-separator { + background: url(../img/horizontal_dashed_line.gif) top repeat-x; +} + +.vertical-separator { + background: url(../img/vertical_dashed_line.gif) top center repeat-y; +} + +img, img A { + border: 0px; +} + +form { + display: inline; +} + + +.menu-background { + background: url(../img/menu_background.gif) top repeat-x #1865AC; + width: 100%; +} + +.top-toolbar + { + vertical-align:bottom; + padding:0px 0px 15px 20px; + } + +.top-toolbar-padding + { + padding:7px 10px; + } + +.top-toolbar-table-padding TD + { + padding:3px 4px; + } + +.top-toolbar-text + { + font-size:11px; + font-family: Tahome, Arial, Helvetica, sans-serif; + color: #46484a; + font-weight:bold; + } + +.top-toolbar-text A + { + font-size:11px; + font-family: Tahome, Arial, Helvetica, sans-serif; + color: #46484a; + font-weight:bold; + text-decoration:underline; + } + +.top-toolbar-text A:hover + { + font-size:11px; + font-family: Tahome, Arial, Helvetica, sans-serif; + color: #000000; + font-weight:bold; + text-decoration:underline; + } + +.top-toolbar-shoppingcard-items + { + font-family: Tahome, Arial, Helvetica, sans-serif; + color: #e55c19; + font-size:12px; + } + +.searchbox-center + { + background:url(../img/searchbox_center.gif) top repeat-x; + vertical-align: middle; + padding:0px 5px; + } + + +.button-center + { + background:url(../img/button_center.gif) top repeat-x; + vertical-align:middle; + color:#3c3c3c; + font-size:11px; + font-weight:bold; + } + +.button-center A + { + color:#3c3c3c; + text-decoration:none; + } + +.searchbox-background + { + background:url(../img/searchbox_background.gif) bottom repeat-x; + } + +.searchbox-background-2 + { + background:url(../img/searchbox_background_2.gif) bottom repeat-x; + } + +.tab-center-select + { + background:url(../img/tab_center_select.gif) top repeat-x; + vertical-align:middle; + text-align:center; + } + +.tab-center-noselect + { + background:url(../img/tab_center_noselect.gif) top repeat-x; + vertical-align:middle; + text-align:center; + } + +.tab-center-select A, .tab-center-noselect A + { + color:#FFFFFF; + text-decoration:none; + font-family: Tahoma, Arial, Helvetica, sans-serif; + font-size:11px; + font-weight:bold; + } + + + + +/* --- Link Styles --- */ +a { + color: #FF9900; +} + +a:hover { + color: #006633; +} + +a.more-link { + font-size: 10px; +} + +a.item-action { + font-size: 9px; + color: #666666; +} + +a.item-action:hover { + color: #000000; +} + +.footer-links { + color: #6f6f6f; + font-size: 10px; + font-family: Tahoma, Arial, Helvetica, sans-serif; +} + +.footer-links A { + color: #6f6f6f; + text-decoration:underline; +} + +.footer-links A:hover { + color: #000000; + text-decoration:underline; +} + +/* --- Side Box Styles --- */ +.side-box-header { + background: url(../img/side_boxes_background.gif) bottom repeat-x #83AFD6; + height: 29px; + padding: 0px 8px 0px 20px; +} + +.side-box-title { + font-size: 12px; + color: #FFFFFF; +} + +.side-box-title A { + font-size: 12px; + color: #FFFFFF; + text-decoration: underline; +} + +.side-box-title A:hover { + font-size: 12px; + color: #FFDC0E; +} + +.side-box-content { + background: url(../img/side_boxes_content.gif) top repeat-x; + padding: 20px 20px; +} + +.light-box-content { + background:url(../img/light_box_background.gif) no-repeat top left #f3ead7; + padding: 20px 20px 10px 20px; + border:1px solid #bbbbbb; +} + +.login-block-style + { + font-size:10px; + font-family: Tahoma, Arial, Helvetica, sans-serif; + color:#46484a; + font-weight:bold; + } + +.login-block-style A + { + color:#3580e5; + text-decoration:underline; + } + +.login-block-style A:hover + { + color:#3580e5; + text-decoration:none; + } + +.home-baner-cell + { + vertical-align:top; + padding-right:3px; + background:url(../img/vertical_dashed_line.gif) right repeat-y; + width: 400px; + } + +.home-login-cell + { + padding: 5px 5px 5px 20px; + background:url(../img/vertical_dashed_line.gif) right repeat-y; + text-align:left; + } + +.light-box-title-orange + { + background:url(../img/box_title_background_orange.gif) top repeat-x #dda167; + color:#FFFFFF; + font-weight:bold; + font-size:11px; + font-family: Tahoma; + height:26px; + padding:0px 20px; + text-transform:uppercase; + border-left: 1px solid #d78f4a; + border-right: 1px solid #d78f4a; + } + +.light-box-title-orange A + { + color:#FFFFFF; + text-decoration:underline; + } + +.light-box-title-orange A:hover + { + color:#FFFFFF; + text-decoration: none; + } + +.light-box-title-green + { + background:url(../img/box_title_background_green.gif) top repeat-x #b6d4c4; + color:#FFFFFF; + font-weight:bold; + font-size:11px; + font-family: Tahoma; + height:26px; + padding:0px 20px; + text-transform:uppercase; + border-left: 1px solid #90bda3; + border-right: 1px solid #90bda3; + } + +.light-box-body + { + border:1px solid #bbbbbb; + padding:5px; + } + +/* --- Content Box Styles --- */ +.content-box-header { + background: #F0F5FA; + height: 29px; + padding: 0px 20px; +} + +.content-box-title { + font-size: 15px; + font-family: Arial; + color: #000000; +} + +.content-box-content { + background: #FFFFFF; + padding: 20px 20px 0px 20px; +} + +/* --- Form Control Styles --- */ +.input-text, .input-textarea { + border: 1px solid #818181; + font-family: Tahoma, Arial, Helvetica, sans-serif; + font-size: 12px; + color: #888888; + padding: 1px 5px; + width: 200px; +} + +.input-textarea { + overflow: auto; + height: 140px; + width: 300px; +} + +.input-select { + color: #333333; + font-size: 11px; +} + +.button { + background: url(../img/button_background.gif) bottom repeat-x #5b5b5c; + border: 1px solid #21272b; + color:#FFFFFF; + padding: 0px; + font-size: 11px; + font-weight:bold; + font-family:Tahoma, Arial, Helvetica, sans-serif; + padding: 0px 4px; +} + +.button-light { + background: url(../img/button_lifht_background.gif) bottom repeat-x #c37f61; + border: 1px solid #aa4d24; + color:#FFFFFF; + padding: 0px; + font-size: 11px; + font-weight:bold; + font-family:Tahoma, Arial, Helvetica, sans-serif; + padding: 0px 5px; +} + +.delete-button { + background: url(../img/delete_button_background.gif) bottom repeat-x #FF6D6D; + color: #FFFFFF; + border: 1px solid #CC0000; + padding: 0px; + font-size: 11px; + padding: 0px 5px; +} + +/* --- Form Field Styles --- */ +.field-name { + padding: 5px 15px; + + color: #2E5679; + font-weight: bold; + font-size: 11px; +} + +.field-required { + color: #FF0000; +} + +.field-hint { + color: #000000; + font-size: 10px; +} + +.field-error { + color: #CC0000; + font-size: 10px; +} + +.field-value { + padding: 6px 5px; +} + +.warning-message td { + padding: 5px; + background: #FFE5E6; + font-size: 16px; +} + +.item-categories td { + padding: 1px; +} +/* --- Login Sidebox Styles --- */ +.login-status, .login-status a { + font-size: 10px; + color: #FFFFFF; +} + +.login-status a:hover { + font-size: 10px; +} + +.remember-login { + color: #000000; + font-size: 9px; +} + +/* --- Navigation Bar Styles --- */ +.navigation-bar { + background: url(../img/side_boxes_background.gif) bottom repeat-x #d4863c; + padding: 3px 20px 6px 20px; + font-size: 10px; + color: #FFFFFF; +} + +.navigation-bar A { + color: #FFFFFF; +} + +.navigation-bar A:hover { + color: #FFE7AE; +} + +/* --- Top Right Menu Styles --- */ +.menu-top-active-icon, .menu-top-active-text { + background: url(../img/top_menu_select.gif); +} + +td.top-menu-padding { + height: 37px; + white-space: nowrap; +} + +.menu-top-noactive-icon, .menu-top-active-icon { + padding: 0px 5px 0px 13px; +} + +.menu-top-noactive-text, .menu-top-active-text { + padding: 0px 13px 0px 3px; +} + +a.top-menu-link, a.top-menu-link:hover { + font-size: 11px; + text-decoration: none; +} + +a.top-menu-link { + color: #FFFFFF; +} + +a.top-menu-link:hover { + color: #CCCCCC; +} + +/* --- Tab Styles --- */ +.inactive-tab, .active-tab { + padding:5px 10px; + border: 1px solid #94c0de; +} + +.inactive-tab { + background-color: #eff4fa; +} + +.active-tab { + background-color: #FFFFFF; + border-bottom-color: #FFFFFF; +} + +.tab-bottom-line { + background: url(../img/pixel_blue.gif) bottom repeat-x; +} + +.tab-left-padding { + padding-left: 40px; +} + +/* --- Category Listing & My Account Styles --- */ +.directory-icon { + width: 22px; + vertical-align: top; + padding: 5px; +} + +.directory-text { + padding: 5px 20px 5px 5px; + vertical-align: top; +} + +/* --- Item Listing Page & Item Details Page Styles --- */ +.item-listing { + background: #FFFFFF; +} + +.item-listing-featured { + background: url(../img/gradient_background_gr.gif) top repeat-x #FFFFFF; +} + +.item-listing-lead { + background: url(../img/gradient_background_red.gif) top repeat-x #FFFFFF; +} + +.item-padding { +padding: 10px 10px 10px 10px; +} + + + +.item-statistics { + font-size: 10px; + color: #666666; +} + +.listing-field-name { + font-weight: bold; +} + +.category-statistics { + font-size: 10px; +} + +.sub-section-header, .sub-section-header td { + background-color: #F4F4F4; + font-weight: bold; + padding: 5px 15px; + font-size: 12px; +} + +.listing-row td { + padding: 5px 8px; +} + +/* --- Pagination Bar Styles --- */ +.current-page { + background: #5B97CB; + color: #FFFFFF; + padding: 1px 2px; +} + +a.page-link { + color: #000000; + text-decoration: none; +} + +/* --- Calendar Styles --- */ +.calendar { + font-family: tahoma,verdana,sans-serif; + color: #000; + font-size: 11px; + border: 1px solid #83B2C5; + width: 225px; + position: relative; + z-index: 1; + display: none; + cursor: default; + +} + +.calendar table { + /*font-family: tahoma,verdana,sans-serif;*/ + color: #000; + font-size: 11px; + background-color: #fefefe; + width: auto; + cursor: default; + border-collapse: separate; + +} + +.calendar table td { + text-align: center; + padding: 2px; + text-align: center; +} + +.calendar tbody .disabled { + color: #999; +} + +.calendar tbody .emptyrow { + display: none; + +} + +.calendar tbody .today { + font-weight: bold; + background-color: #eeeeee; + border: 1px solid #aaaaaa !important; +} + +.calendar tbody .emptycell { + visibility: hidden; +} + +.calendar tbody .active { + background-color: red; +} + +.calendar thead .title { + font-weight: bold; +} + +.calendar thead .headrow { + +} + +.calendar thead .active { + background-color: #c4c0b8; + padding: 2px 0px 0px 2px; + +} + +.calendar thead .hilite { + background-color: #e4e0d8; +} + +.calendar tfoot .title { + font-weight: normal; +} + +.combo { position: absolute; display: none; width: 4em; top: 0px; left: 0px; cursor: default; border-top: 1px solid #fff; border-right: 1px solid #000; border-bottom: 1px solid #000; border-left: 1px solid #fff; background: #e4e0d8; font-size: smaller; padding: 1px;} +.combo .label { text-align: center; padding: 1px;} +.combo .active { background: #c4c0b8; padding: 0px; border-top: 1px solid #000; border-right: 1px solid #fff; border-bottom: 1px solid #fff; border-left: 1px solid #000;} +.combo .hilite { background: #048; color: #fea;} + +.dpContainer { + display: inline; +} + +.list-no-squares { + padding: 0px; + list-style-type: none; + margin: 0px; +} + + + +/* --- Item Raring Styles --- */ +.ratingblock, .ratingblock div { + display: -moz-inline-block; +} + +.voted { + color: #999; +} + +.thanks { + color: #36AA3D; +} + +.static { + color: #5D3126; +} + +.inline-rating { + display:-moz-inline-block; + display:-moz-inline-box; + display:inline-block; + vertical-align: middle; +} + +.star-rating, +.star-rating a:hover, +.star-rating a:active, +.star-rating a:focus, +.star-rating .current-rating{ + background: url('../img/starrating.gif') left -1000px repeat-x; +} +.star-rating { + position:relative; + width:125px; + height:25px; + overflow:hidden; + list-style:none; + margin:0; + padding:0; + background-position: left top; +} + +.star-rating li { + display: inline; +} + +.star-rating a, +.star-rating .current-rating { + position:absolute; + top:0; + left:0; + text-indent:-1000em; + height:25px; + line-height:25px; + outline:none; + overflow:hidden; + border: none; +} + +.star-rating a:hover, +.star-rating a:active, +.star-rating a:focus { + background-position: left bottom; +} +.star-rating a.r1-unit { width:20%;z-index:6; } +.star-rating a.r2-unit { width:40%;z-index:5; } +.star-rating a.r3-unit { width:60%;z-index:4; } +.star-rating a.r4-unit { width:80%; z-index:3; } +.star-rating a.r5-unit { width:100%; z-index:2; } +.star-rating .current-rating { z-index:1; background-position: left center; } + +.small-star { + width:50px; + height:10px; +} +.small-star, .small-star a:hover, .small-star a:active, +.small-star a:focus, .small-star .current-rating { + background-image: url('star_small.gif'); + line-height: 10px; + height: 10px; +} + + + +/* --- Unprocessed Styles --- */ +.text-title { + font-size: 11px; + font-weight: bold; + color: #e55c19; +} + +a.text-title { + font-size: 11px; + font-weight: bold; + color: #e55c19; + text-decoration:none; +} + +a.text-title:hover { + color: #e55c19; + text-decoration: underline; +} + +/* ----- Depricated Styles ----- */ +.error { + color: magenta; +} + +.static { + color: #00CC66; +} + +.image_boder { + border: 1px solid #CDCECD; +} + +.table-border { + border: 1px solid #EAEAEA; +} + +.information-background { + background-color: #F6F6FF; +} + +#slider ul, #slider li, + #slider2 ul, #slider2 li{ + margin:0; + padding:0; + list-style:none; + } + #slider2{margin-top:1em;} + #slider li, #slider2 li{ + /* + define width and height of list item (slide) + entire slider area will adjust according to the parameters provided here + */ + width:400px; + height:161px; + overflow:hidden; + } + #prevBtn, #nextBtn, + #slider1next, #slider1prev{ + display:block; + width:30px; + height:77px; + position:absolute; + left:-30px; + top:71px; + z-index:1000; + } + #nextBtn, #slider1next{ + left:696px; + } + #prevBtn a, #nextBtn a, + #slider1next a, #slider1prev a{ + display:block; + position:relative; + width:30px; + height:77px; + background:url(../images/btn_prev.gif) no-repeat 0 0; + } + #nextBtn a, #slider1next a{ + background:url(../images/btn_next.gif) no-repeat 0 0; + } + + /* numeric controls */ + + ol#controls{ + margin: -23px 0 0 0; + padding:0; + height:16px; + float:right; + } + ol#controls li{ + margin:0 5px 0 0; + padding:0; + float:left; + list-style:none; + height:20px; + line-height:20px; + } + ol#controls li a{ + text-align: center; + width: 20px; + float:left; + height:20px; + line-height:20px; + /* + border:1px solid #ccc; + background:#DAF3F8; + */ + color:#555; + padding:0; + text-decoration:none; + background: transparent url('../img/slider/banner_background_1.gif') no-repeat scroll left top; + font-size:11px; + font-weight:bold; + } + ol#controls li.current a{ + /* background:#5DC9E1; */ + color:#fff; + background: transparent url('../img/slider/banner_background_2.gif') no-repeat scroll left top; + } + ol#controls li a:focus, #prevBtn a:focus, #nextBtn a:focus{outline:none;} + \ No newline at end of file Index: branches/1.0.x/elements/categories.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/categories.elm.tpl (revision 0) +++ branches/1.0.x/elements/categories.elm.tpl (revision 13321) @@ -0,0 +1,51 @@ + + + + + + + + + +
+
+
+ + (: ) + + " class="text-title"> (: ) + + + <inp2:m_phrase name="/> + <inp2:m_phrase name="/> + +
+
+ + +
+ + +
+ + + + + + + + "> + + + + + " onclick="$ItemCategories.DeleteCategory();"/> + + + + + + + \ No newline at end of file Index: branches/1.0.x/elements/menu.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/menu.elm.tpl (revision 0) +++ branches/1.0.x/elements/menu.elm.tpl (revision 13321) @@ -0,0 +1,112 @@ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ "> + +
+
+
+
+
+
+ "> + +
+
+
+
+
+
+ "> + +
+
+
+
+ +
+ + + + + + + +
+
+
+ + + + + + +
+ +
"> + + + +
+ + + + + + +
+
+
+ + +
+
+ +
+ +
+
+
+ +
+
Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_thankyou.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_thankyou.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_thankyou.tpl (revision 13321) @@ -0,0 +1,42 @@ + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + \ No newline at end of file Index: branches/1.0.x/elements/title_bar.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/title_bar.elm.tpl (revision 0) +++ branches/1.0.x/elements/title_bar.elm.tpl (revision 13321) @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file Index: branches/1.0.x/elements/dynamic_forms.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/dynamic_forms.elm.tpl (revision 0) +++ branches/1.0.x/elements/dynamic_forms.elm.tpl (revision 13321) @@ -0,0 +1,58 @@ + + " /> + + + + + " id="verify_" value="" /> + + + + + + + + + + + + "> + " name="_cb_" class="" onclick="document.getElementById('').value = this.checked ? 1:0"> + + + + + + + + name="" id="_" value="">  + + + + + + + + + + *:   + + + +
+
+ +
+ + + + + + +

+ + +
+
\ No newline at end of file Index: branches/1.0.x/elements/forms.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/forms.elm.tpl (revision 0) +++ branches/1.0.x/elements/forms.elm.tpl (revision 13321) @@ -0,0 +1,386 @@ + + + + + + +
+ + + +
+
+
+
+ + +

+
+

+
+
+ + + + + + + + + 140px"> +   + + +
+ +

+ + +
+ + + + + +

+ + +
+
+ + + + + + > + *: + + +   + + + + + + "> + + + + + + + + + + "> + + + + " value="" /> + + + + + + + "> + + + +
+
+ " value="" tabindex="" maxlength="" style=""> + + + + +
+ + + "> + + + +
+
+ " id="" value="" tabindex="" style="" /> + + + + +
+ + + "> + + + +
+
+ " tabindex="" style=""> + + () + + [upload]" value="" /> + + + +
+ + + "> + + + +
+
+ + " target="_blank"> + + +
+ + + + + +
+ " name="" value="0" /> + " onchange="update_checkbox(this, document.getElementById(''));"> + + +
+
+ " tabindex="" style=""> + [upload]" value="" /> + + + +
+ + + " id="" value="" /> + + + + "> + + + +
+
+ " id="" value="" tabindex="" size="" style="" datepickerIcon="img/calendar_icon.gif"> () + + " id="" value="" /> + + + +
+ + + "> + + + +
+
+ " id="" value="" tabindex="" size="" style="">  + () + + " id="" value="" /> + + + +
+ + + "> + + + +
+
+ " id="" value="" tabindex="" size="" style="" datepickerIcon="core/admin_templates/img/calendar_icon.gif"> + () + +  " id="" value="" tabindex="" size="" style=""> () + + + +
+ + + "> + + + +
+
+ + + + +
+ + + + + + + + + + + "> + + + +
+
+ + + + +
+ + + " style="" name="" id="_" value="">  + + + + " style="" name="" id="_" value="">  + + + + "> + + + +
+
+ + + + + + + + +
+ + + + "> + + + +
+
+ " alt=""/>
+
+ " value="" tabindex="" style=""> + + + +
+ + + "> + + + +
+
+ " name="" value="" /> + " type="checkbox" id="_cb_" name="_cb_" style="" onchange="update_checkbox(this, document.getElementById(''));"> + + + + +
+ + + + + "> + + + + +
+
+ + + + " onclick="$ItemCategories.AddCategory('»&nbsp;', $delete_button, );"/>
+ + + + + + + + + + + +
+ : +
+
+ + + + + + + +
+ + + + + + > + *: + + +   + + + + + + "> + + + +
+
+ " name="" value="" /> + " type="checkbox" id="_cb_" name="_cb_" style="" onchange="update_checkbox(this, document.getElementById(''));"> + + + + +
+ Index: branches/1.0.x/img/lbox/nextlabel.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/img/lbox/more_images.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/designs/.smsignore =================================================================== diff -u -N --- branches/1.0.x/designs/.smsignore (revision 0) +++ branches/1.0.x/designs/.smsignore (revision 13321) @@ -0,0 +1 @@ +.*\.tpl \ No newline at end of file Index: branches/1.0.x/elements/preferences.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/preferences.elm.tpl (revision 0) +++ branches/1.0.x/elements/preferences.elm.tpl (revision 13321) @@ -0,0 +1,35 @@ + + + + + + " name="" value=""/> + " onchange="update_checkbox(this, document.getElementById(''));"/> + + + + + +

+ + +
+
+ + + + + + + + + + + + +

+ + +
+
+
\ No newline at end of file Index: branches/1.0.x/in-commerce/elements/content_boxes/search_results.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/elements/content_boxes/search_results.elm.tpl (revision 0) +++ branches/1.0.x/in-commerce/elements/content_boxes/search_results.elm.tpl (revision 13321) @@ -0,0 +1,26 @@ + + + + + () + + + + + + + +
+ +

+ + + + + + +
+ ">... +
+ +
\ No newline at end of file Index: branches/1.0.x/inc/nlsmenuext_xml.js =================================================================== diff -u -N --- branches/1.0.x/inc/nlsmenuext_xml.js (revision 0) +++ branches/1.0.x/inc/nlsmenuext_xml.js (revision 13321) @@ -0,0 +1,231 @@ +/** +* nlsmenuext_xml.js v.1.0 +* Copyright 2005-2007, addobject.com. All Rights Reserved +* Author Jack Hermanto, www.addobject.com +*/ +var $nls_ieXML=["MSXML2.DOMDocument.4.0", "MSXML2.DOMDocument.3.0", "MSXML2.DOMDocument", "Microsoft.XmlDom"]; + +function NlsMenuUtil() {} +var NLSMNUTIL=NlsMenuUtil.prototype; + +function $aonvl(v, c) { if(v)return v; else return c; }; +function $aonevl(v, c) { if(!v || v=="")return c; else return v; }; + +NlsMenuUtil.createFromXML=function(xml) { + var rt=xml.documentElement; + var mgr=new NlsMenuManager(rt.getAttribute("id")); + mgr.flowOverFormElement=$aonevl(rt.getAttribute("flowoverformelement"), false); + mgr.defaultEffect=$aonevl(rt.getAttribute("defaulteffect"), null); + mgr.icPath=$aonvl(rt.getAttribute("icpath"), ""); + mgr.memorizeSel=$aonevl(rt.getAttribute("memorizesel"), false); + + var dm=rt.getElementsByTagName("menubar")[0]; + NlsMenuUtil.createMenu(dm, mgr); + + var mns=rt.getElementsByTagName("menus")[0]; + if(mns){ + for (var i=0;i + + + + + + + + + + + + +
+ + +
+ ">... +
+
+ + + +
+ \ No newline at end of file Index: branches/1.0.x/designs/form.tpl =================================================================== diff -u -N --- branches/1.0.x/designs/form.tpl (revision 0) +++ branches/1.0.x/designs/form.tpl (revision 13321) @@ -0,0 +1,93 @@ + + + + + + + + + + + +
+
+ +
+
+ +
+
+
+ + + +
+
+ +
+
+ + + + + + +

+ *

+ + + + + + +

+ +

"> + + + + + + "/> + "/> + + " value=""/> + "/> + "/> + +
+
+

+ +
+
+
+ + + +
+ + \ No newline at end of file Index: branches/1.0.x/mailing_list/subscribe_ok.tpl =================================================================== diff -u -N --- branches/1.0.x/mailing_list/subscribe_ok.tpl (revision 0) +++ branches/1.0.x/mailing_list/subscribe_ok.tpl (revision 13321) @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + +

+ + " onClick="window.location.href=''" />  +
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/img/lbox/close.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/img/lbox/loading.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_agreement.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_agreement.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_agreement.tpl (revision 13321) @@ -0,0 +1,7 @@ + + +Affiliate Agreement gones here \ No newline at end of file Index: branches/1.0.x/designs/popup_design.des.tpl =================================================================== diff -u -N --- branches/1.0.x/designs/popup_design.des.tpl (revision 0) +++ branches/1.0.x/designs/popup_design.des.tpl (revision 13321) @@ -0,0 +1,27 @@ + + + + + + + + + + + + <inp2:m_GetConfig name="Site_Name"/> :: <inp2:m_RenderElement name="page_title" default_element="cms_page_title" no_editing="1"/> + + " /> + + + + +
+

+
+ +
+ +
+ + \ No newline at end of file Index: branches/1.0.x/inc/nlsmenu.js =================================================================== diff -u -N --- branches/1.0.x/inc/nlsmenu.js (revision 0) +++ branches/1.0.x/inc/nlsmenu.js (revision 13321) @@ -0,0 +1,854 @@ +/** +* nlsmenu.js v.2.0 +* Copyright 2005-2007, addobject.com. All Rights Reserved +* Author Jack Hermanto, www.addobject.com +*/ +var nlsMenu = new Object(); +var nlsMenuMgr = new Object(); +var nlsWinElmt = []; + +var ag0=window.navigator.userAgent; +var nls_isIE = (ag0.indexOf("MSIE") >=0); +var nls_isIE5 = (ag0.indexOf("MSIE 5.0") >=0); +var nls_isSafari = (ag0.indexOf("Safari") >=0); +var nls_isOpera = (ag0.indexOf("Opera") >=0); +if (nls_isOpera) {nls_isIE=false; nls_isIE5=false;}; + +function NlsMenuManager(mgr) { + this.mgrId = mgr; + this.menus = new Object(); + this.menubar = null; + this.timeout = 1000; + this.flowOverFormElement = false; + this.assocMenuMgr = []; + this.defaultEffect=null; + this.icPath=""; + this.memorizeSel=false; + this.rt=new Object(); + + this.tmId = null; + this.setTimeout=function(a, t) { this.tmId = window.setTimeout(a, t); }; + this.clearTimeout=function() { if (this.tmId!=null) { window.clearTimeout(this.tmId); this.tmId=null;}}; + + nlsMenuMgr[mgr] = this; + if(nls_isIE)window.attachEvent("onload", function(){nlsMenuMgr[mgr].init();}); + + return this; +}; + +var NlsMnMgr = NlsMenuManager.prototype; +NlsMnMgr.createMenu = function(mId) { + var m=new NlsMenu(mId) + m.mgr=this; m.mgrId=this.mgrId; m.icPath=this.icPath; + m.useEffect(this.defaultEffect); + if (this.design) { m.$menuItemClick = NlsMenu.$dsItemClick; } + this.menus[mId]=m; + return m; +}; + +NlsMnMgr.createMenubar = function (mbarId) { + if (this.menubar) alert("Menubar already exists!"); + var m=new NlsMenubar(mbarId); + m.mgr=this; m.mgrId=this.mgrId; m.icPath=this.icPath; + if (this.design) { m.$menuItemClick = NlsMenu.$dsItemClick; } + this.menubar=m; + return m; +}; + +NlsMnMgr.renderMenus = function (plc) { + if (plc && plc!="") { + var d=NlsMenu.$GE(plc); var s=""; + for (it in this.menus) { s+=this.menus[it].renderMenu(); } + d.innerHTML=s; + } else { + for (it in this.menus) { document.write(this.menus[it].renderMenu()); } + } +}; + +NlsMnMgr.renderMenubar = function (plc) { + if (this.menubar) { + if (plc && plc!="") { + NlsMenu.$GE(plc).innerHTML=this.menubar.renderMenubar(); + } else { + document.write(this.menubar.renderMenubar()); + } + } + if(this.memorizeSel) this.loadPath(); +}; + +NlsMnMgr.hideMenus = function () { + for (var it in this.menus) {if (this.menus[it].rt.active) this.menus[it].hideMenu();} + if (this.menubar) this.menubar.hideMenu(); +}; + +NlsMnMgr.addAssocMenuMgr = function(frm, mgrId) { + this.assocMenuMgr[this.assocMenuMgr.length] = [frm, mgrId]; +}; + +NlsMnMgr.getMenu= function(mId) { return this.menus[mId]; }; + +NlsMnMgr.init=function() { + if(this.menubar)this.menubar.init(); +} + +function listAllWinElmt() { + nlsWinElmt = []; + var arrWinEl = document.getElementsByTagName("SELECT"); + var elm; var tmp; var x; var y; + for(var i=0; i" + + "" + + ""); + }; + + this.toString=function() {return "NlsMenuSeparator";}; +}; + +function NlsCustomMenuItem(cst) { + this.intKey = ""; + this.cstMenu = (cst?cst:" "); + this.toString=function() {return "NlsCustomMenuItem";}; +}; + +function NlsMenu(mId) { + /*private*/ + this.lsItm=null; + this.mgrId = ""; + this.mgr=null; + this.winElmt=null; + this.container=null; + this.customBorder=null; + this.shadow=new NlsMenuShadow("none", "5px", mId); + this.count=0; + this.isMenubar=false; + this.effect=null; + this.srItems=[]; + + this.rt={ready:true,active:false}; + + /*public*/ + this.mId = mId; + this.items = new Object(); + this.stlprf=""; + this.subMenuIc=null; + this.target="_self"; + this.icPath=""; + this.itemSpc=""; + this.stretchItem=true; + + this.selection=false; + + this.showIcon=false; + this.showSubIcon=true; + + this.absWidth=""; + this.orient="V"; + + this.defItmEff=null; + this.defPos=[0,0]; + + this.maxItemCol=100; + this.zIndex = 100; + + this.wnd = window; + nlsMenu[mId] = this; + return this; +}; + +var NLSMENU=NlsMenu.prototype; + +NLSMENU.addItem = function(key, capt, url, ico, enb, xtra, subId, title) { + var intKey = this.mId+"_"+key; + var it = new NlsMenuItem(key, capt, url, ico, enb, xtra, subId, title); + it.intKey = intKey; + it.mId=this.mId; + this.items[intKey]=it; + this.srItems[this.srItems.length]=it; + if (this.defItmEff!=null && typeof(NlsMenuItemEffect) != "undefined") { it.useItemEffect(this.defItmEff); } + this.count++; + return it; +}; + +NLSMENU.addSeparator = function(separator) { + var intKey = "sep_"+this.count; + var it = (separator ? separator : new NlsMenuSeparator()); + it.stlprf = this.stlprf; + it.intKey = intKey; + this.items[intKey] = it; + this.srItems[this.srItems.length]=it; + this.count++; + return it; +}; + +NLSMENU.addSubmenu = function(key, subId, crsFrame, subFrame, subPos, subPosAdj, subDir) { + var intKey = this.mId+"_"+key; + var it = this.items[intKey]; + it.subMenuId=subId; + it.subFrame=(subFrame?subFrame:null); + it.crsFrame=(crsFrame?crsFrame:false); + it.subPos = (subPos?subPos:[null,null]); + it.subPosAdj = (subPosAdj?subPosAdj:[0,0]); + it.subDir = (subDir?subDir:["right","down"]); + return it; +}; + +NLSMENU.addCustomMenu = function (custom) { + var intKey = "cst_"+this.count; + var it = new NlsCustomMenuItem(custom); + it.intKey = intKey; + this.items[intKey] = it; + this.srItems[this.srItems.length]=it; + this.count++; + return it; +}; + +NLSMENU.getItemById = function (key) { + return this.items[this.mId+"_"+key]; +}; + +NLSMENU.setItemStyle = function (key, stlprf) { + var intKey = this.mId+"_"+key; + var mnItem = this.items[intKey]; + mnItem.stlprf=stlprf; +}; + +NLSMENU.setItemText = function (key, tx) { + var intKey = this.mId+"_"+key; + var mnItem = this.items[intKey]; + mnItem.capt=tx; + var oD=NlsMenu.$GE(intKey+"x2"); + if (oD) oD.innerHTML=tx; +} + +NLSMENU.enableItem = function (key, b) { + var it = this.items[this.mId+"_"+key] ; + it.enable=b; + setMnStyle(NlsMenu.$GE(it.intKey), (b?(it.selected?"S":"N"):"D"), NlsMenu.getPrf(it, this)); + setMnIcon(this, it, "N"); +}; + +NLSMENU.dropShadow = function (pos, offset) { + if (this.shadow) { this.shadow.pos=pos; this.shadow.offset=(offset?offset:"5px"); } else + { this.shadow=new NlsMenuShadow(pos, offset, this.mId); } +}; + +NLSMENU.applyBorder = function (bTop, bBottom, bLeft, bRight) { + if (!bTop && !bBottom && !bLeft && !bRight) { + this.customBorder=null; + } else { + this.customBorder=new NlsMenuBorder(bTop, bBottom, bLeft, bRight); + } +}; + +NLSMENU.useEffect = function (efN) { + if(efN!=null && efN!="") { + this.effect=new NlsMenuEffect(this.mId, efN); + } +}; + +NLSMENU.renderMenu = function() { + var scPath="", sbIc=null; + var allScs = (document.getElementsByTagName ? document.getElementsByTagName("SCRIPT"): document.scripts); + for (var i=0;i=0) { scPath=allScs[i].src.replace(/nlsmenu.js/gi, ""); } + } + if (!this.subMenuIc) { sbIc=[scPath+"img/submenu.gif", scPath+"img/submenuovr.gif"];} + else {sbIc=[this.icPath+this.subMenuIc[0]]; if(this.subMenuIc[1])sbIc[1]=this.icPath+this.subMenuIc[1];} + + var cs=""; + var tmpCnt=0, prf=this.stlprf, it=null, rt=null, menu=null; + for (var i=0; i":""); + smenu+=(""); + smenu+=(this.orient=="V"?"":""); + } else + if (it.toString()=="NlsCustomMenuItem") { + smenu+=(this.orient=="V"?"":""); + smenu+=(""); + smenu+=(this.orient=="V"?"":""); + } else { + prf=NlsMenu.getPrf(it, this); + if (this.orient=="V") { smenu+=""; } + if (this.orient=="H") { if (tmpCnt==0) smenu+=""; tmpCnt++; } + smenu+=""; + + if (this.showIcon) { + smenu+=""; + } + + smenu+=""; + if (this.showSubIcon && it.subMenuId!="") { smenu+=""; } + smenu+="
"+it.render()+"
"+it.cstMenu+"
"; + smenu+=cs+(this.stretchItem?"width='100%'":"")+" height='100%'>
"; + if(it.ico) { + if(it.ico[0]) smenu+=""; + if(it.ico[1]) smenu+=""; + if(it.ico[2]) smenu+=""; + } + smenu+=""+it.capt+""+ (it.subMenuId!=""? "" + (sbIc.length>1?"":"") :"") +"
"; + smenu+=""; + if (this.orient=="V") { smenu+=""; } + if (this.orient=="H" && tmpCnt==this.maxItemCol) { smenu+=""; tmpCnt=0; } + } + } + + if(this.orient=="H" && tmpCnt!=0 ) { + if(this.srItems.length>this.maxItemCol) + while(++tmpCnt<=this.maxItemCol) smenu+=" "; + smenu+=""; + } + smenu += ""; + smenu = cs+"class='"+this.stlprf+"nlsmenu' "+ sAbs + ">"+smenu+""; + + if (this.customBorder!=null) smenu = this.customBorder.applyBorder(smenu, this.stlprf); + smenu = this.shadow.dropShadow(smenu); + + smenu = "
" + smenu; + if (!this.isMenubar && nls_isIE && !nls_isIE5 && this.mgr.flowOverFormElement) { + smenu += ""; + } + smenu+="
"; + + if (arguments[0]=="content") return smenu; + + smenu = "
" + smenu + "
"; + + return smenu; +}; + +NLSMENU.init=function() { + var v=this.rt.vshade; if(!v) v=NlsMenu.$GE("vshade_"+this.mId); + var itm=this.rt.actmn; if(!itm) itm=NlsMenu.$GE("actmn_"+this.mId); + if(v){ + var o=itm.childNodes[0].offsetHeight-parseInt(this.shadow.offset); + if(o>=0) v.style.height=o+"px"; + } + this.rt.actmn=itm; + this.rt.vshade=v; +}; + +function NlsMenuShadow(pos, offset, mId) { + this.pos=pos; + this.offset=offset; + this.mId=mId; + + this.dropShadow = function (smenu) { + var mn = nlsMenu[this.mId]; + var cs=""; + var hshadow = "
"+cs+"width='100%' height='5px' class='"+mn.stlprf+"horzshadow'>
"; + var vshadow = ""+cs+"id='vshade_"+this.mId+"' width='5px' height='100%' class='"+mn.stlprf+"vertshadow'>"; + var menutd = ""+smenu+""; + var cornertd = ""; + var av=[vshadow.replace(/@@PAD/gi,"top"), vshadow.replace(/@@PAD/gi,"bottom")]; + var ah=[hshadow.replace(/@@PAD/gi,"left"), hshadow.replace(/@@PAD/gi,"right")]; + switch (this.pos) { + case "none": + shadow += ""+menutd+""; + break; + case "bottomright" : + shadow += ""+menutd+av[0]+"" + + ""+ah[0]+cornertd+""; + break; + case "bottomleft" : + shadow += ""+av[0]+menutd+"" + + ""+cornertd+ah[1]+""; + break; + case "topleft" : + shadow += ""+cornertd+ah[1]+"" + + ""+av[1]+menutd+""; + break; + case "topright" : + shadow += ""+ah[0]+cornertd+"" + + ""+menutd+av[1]+""; + break; + } + return shadow + ""; + }; +}; + +NLSMENU.showMenu = function(x1, y1, x2, y2, mnOrient, subDir, subAdj) { + this.mgr.clearTimeout(); + + if(this.menuOnShow(this.mId)==false)return; + + var ctx = NlsMenu.$GE(this.mId); + if (!ctx) { + //create menu if not rendered. + var dv=document.createElement("div"); + dv.innerHTML=this.renderMenu(); + document.body.insertBefore(dv, document.body.childNodes[0]); + ctx = NlsMenu.$GE(this.mId); + }; + ctx.style.visibility="hidden"; + ctx.style.display=""; + if(nls_isIE)this.init(); + + var w=window, d=document.body, de=document.documentElement; + var scrOffX = w.scrollX||d.scrollLeft||de.scrollLeft; + var scrOffY = w.scrollY||d.scrollTop||de.scrollTop; + var cW=w.innerWidth||d.clientWidth; + var cH=w.innerHeight||d.clientHeight; + var mW=ctx.childNodes[0].offsetWidth; + var mH=ctx.childNodes[0].offsetHeight; + var sDir=(subDir?[subDir[0], subDir[1]]:["right", "down"]); + var adjX=(subAdj?subAdj[0]:this.defPos[0]), adjY=(subAdj?subAdj[1]:this.defPos[1]); + + var dmfrm = NlsMenu.$GE(this.mId+"ifrm"); + if (dmfrm) { + var actMn = NlsMenu.$GE("actmn_"+this.mId).children[0]; + dmfrm.width = actMn.offsetWidth; + dmfrm.height = actMn.offsetHeight; + } + var mX=0,mY=0; + if (mnOrient=="V") { + if (sDir[0]=="right") { + if(x2+mW>cW){if(x1>=mW){mX=x1-mW+adjX+scrOffX;sDir[0]="left"}else{mX=cW-mW-1+scrOffX;}}else{mX=x2+scrOffX-adjX;} + } else { + if(x1-mW<0){if(x2+mWcH){if(y2>=mH){mY=y2-mH+scrOffY-adjY;sDir[1]="up"}else{mY=cH-mH-1+scrOffY;}}else{mY=y1+scrOffY+adjY;} + } else { + if(y1-mH<0){if(y1+mHcW){if(x2>=mW){mX=x2-mW+scrOffX-adjX;sDir[0]="left"}else{mX=cW-mW-1+scrOffX;}}else{mX=x1+scrOffX+adjX;} + } else { + if(x2-mW<0){if(x1+mWcH){if(y1>=mH){mY=y1-mH+scrOffY+adjY;sDir[1]="up"}else{mY=cH-mH-1+scrOffY;}}else{mY=y2+scrOffY-adjY;} + } else { + if(y1-mH<0){if(y2+mH=mX1 && oe.eX1<=mX2 && oe.eY1>=mY1 && oe.eY1<=mY2) || + (oe.eX1>=mX1 && oe.eX1<=mX2 && oe.eY2>=mY1 && oe.eY2<=mY2) || + (oe.eX2>=mX1 && oe.eX2<=mX2 && oe.eY1>=mY1 && oe.eY1<=mY2) || + (oe.eX2>=mX1 && oe.eX2<=mX2 && oe.eY2>=mY1 && oe.eY2<=mY2) || + (mX1>=oe.eX1 && mX1<=oe.eX2 && mY1>=oe.eY1 && mY1<=oe.eY2) || + (mX1>=oe.eX1 && mX1<=oe.eX2 && mY2>=oe.eY1 && mY2<=oe.eY2) || + (mX2>=oe.eX1 && mX2<=oe.eX2 && mY1>=oe.eY1 && mY1<=oe.eY2) || + (mX2>=oe.eX1 && mX2<=oe.eX2 && mY2>=oe.eY1 && mY2<=oe.eY2) || + (oe.eX1mX2 && oe.eY1>=mY1 && oe.eY1<=mY2) || + (oe.eX1mX2 && oe.eY2>=mY1 && oe.eY2<=mY2) + ) { + if (oe.e.style.visibility!="hidden") { + oe.e.style.visibility="hidden"; + if (mn.winElmt==null) mn.winElmt=[]; + mn.winElmt[mn.winElmt.length]=oe.e; + } + } + } +}; + +NLSMENU.showMenuAbs = function(x, y) { + var ctx = NlsMenu.$GE(this.mId); + ctx.style.top=y+"px"; ctx.style.left=x+"px"; + ctx.style.display=""; + this.rt.active=true; +}; + +NLSMENU.hideMenu = function() { + var ctx = NlsMenu.$GE(this.mId); + if (!ctx) return; + if (!this.isMenubar) { + this.rt.active=false; + if (this.effect) { + this.effect.start(true); + if ((nls_isIE && this.effect.effName!="aoslide") || nls_isOpera && this.effect.effName!="aoslide") {ctx.style.visibility="hidden";} else { this.effect.onHide=function() {ctx.style.visibility="hidden";}; }; + this.effect.run(); + } else { ctx.style.visibility="hidden"; } + + this.menuOnHide(this.mId); + } else { + this.isMenuOpened = false; + } + + if (this.lsItm!=null) { + var it=this.items[this.lsItm.id]; + if(it.state!=2 && !it.selected) { + setMnStyle(this.lsItm, (it.enable?"N":"D"), NlsMenu.getPrf(it, this)); + setMnIcon(this, it, "N"); + } + this.lsItm=null; + } + if (this.winElmt!=null && this.winElmt.length>0) { + for (i=0;i 0) { + for (var i=0;i1) { + var k=mnItm.intKey; + var c=NlsMenu.$GE("ic_"+k), o=NlsMenu.$GE("icovr_"+k), d=NlsMenu.$GE("icdis_"+k); + + c.style.display=(tf=="N"||(tf=="D" && !d)?"":"none"); + o.style.display=(tf=="O"?"":"none"); + if(d) d.style.display=(tf=="D"?"":"none"); + } + + if (mn.showSubIcon && mnItm.subMenuId!="") { + var ic=NlsMenu.$GE("subicovr_"+mnItm.intKey); + if(ic){ + ic.style.display=(tf=="O"?"":"none"); + ic=NlsMenu.$GE("subic_"+mnItm.intKey); + if(ic)ic.style.display=(tf=="N"||tf=="D"?"":"none"); + } + } +}; + +function setMnStyle(it, s, prefix) { + var suff=(s=="O"?"over":(s=="S"?"sel":"")); + it.className=prefix+"nlsitemcontainer"+suff; + var r = it.childNodes[0].rows[0], rc=null; + for (var i=0; i 0) { + for (var i=0; i 0) { + for (var i=0; i $max_categories) + { + // don't add more category - $max_categories limit + alert(this.Phrases[0]); + return ; + } + + // strip trailing HTML spaces & separator + var $separator_pos = $category_name.indexOf($separator); + if ($separator_pos != -1) { + $category_name = $category_name.substring($separator_pos + $separator.length); + } + + + var $row = this.CategoryTable.insertRow(-1); + $row.id = 'category_' + $category_id; + + var $cell = $row.insertCell(-1); + $cell.innerHTML = $category_name; + + $cell = $row.insertCell(-1); + $cell.innerHTML = $delete_button.replace(/#CATEGORY_ID#/g, $category_id); + + this.MoreCategories.push($category_id); + this.updateMoreCategoriesField(); +} + +ItemCategories.prototype.SearchCategory = function($category_id) { + var $i = 0; + while ($i < this.CategoryTable.rows.length) { + if (this.CategoryTable.rows[$i].id == 'category_' + $category_id) { + return $i; + } + $i++; + } + + return false; +} + +ItemCategories.prototype.DeleteCategory = function($category_id) { + var $row_index = this.SearchCategory($category_id); + + if ($row_index !== false) { + this.CategoryTable.deleteRow($row_index); + var $i = 0; + while ($i < this.MoreCategories.length) { + if (this.MoreCategories[$i] == $category_id) { + this.MoreCategories.splice($i, 1); + break; + } + $i++; + } + this.updateMoreCategoriesField(); + } +} + +ItemCategories.prototype.updateMoreCategoriesField = function() { + this.MoreCategoriesField.value = this.MoreCategories.length ? '|' + this.MoreCategories.join('|') + '|' : ''; +} + +function jq($selector) { + return $selector.replace(/(\[|\]|\.|:)/g, '\\$1'); +} + +function MultiLanguageSelector($language_info, $current_language) { + this._languageInfo = $language_info; + this._currentLanguage = $current_language; + this._controls = new Array (); + + var $me = this; + + $(document).ready( + function() { + $me.init(); + } + ); +} + +MultiLanguageSelector.prototype.init = function () { + var $i = 0; + var $me = this; + + while ($i < this._controls.length) { + // set current language + $( jq('#' + this._controls[$i]) ).data('PrevLanguage', this._currentLanguage); + + for (var $language_id in this._languageInfo) { + var $id = this.inputForLanguage(this._controls[$i], $language_id); + + $( jq('#' + $id + '_flag') ).each( + function() { + $(this) + .data('MainControl', $me._controls[$i]) + .data('ThisLanguage', $language_id) + .click( + function ($event) { + var $this_flag = $(this); + var $this_language = $this_flag.data('ThisLanguage'); + + var $main_control = $('#' + jq($this_flag.data('MainControl')) ); + + var $prev_language = $main_control.data('PrevLanguage'); + var $prev_flag = $( jq('#' + $me.inputForLanguage($main_control.attr('id'), $prev_language) + '_flag') ); + + var $language_info; + + if ($this_language != $prev_language) { + // hide prev language input + enable it's flag + var $prev_image = $prev_flag.children('img:first'); + if ($prev_image.length) { + // found image for given language + $language_info = $me._languageInfo[$prev_language]; + $prev_image.attr('src', $prev_image.attr('src').replace($language_info.off, $language_info.on)); + } + $( jq('#' + $prev_flag.attr('id').replace(/_flag$/, '_input') ) ).hide(); + + // show this language input + disable it's flag + var $this_image = $this_flag.children('img:first'); + if ($this_image.length) { + // found image for given language + $language_info = $me._languageInfo[$this_language]; + $this_image.attr('src', $this_image.attr('src').replace($language_info.on, $language_info.off)); + } + var $this_container = $( jq('#' + $this_flag.attr('id').replace(/_flag$/, '_input') ) ); + $this_container.show(); + + // focus on shown control + $('input:first, textarea:first', $this_container).focus(); + + // remember last used language + $main_control.data('PrevLanguage', $this_language); + } + + $event.preventDefault(); + } + ); + } + ); + } + + $i++; + } +} + +MultiLanguageSelector.prototype.inputForLanguage = function ($control_id, $language_id) { + return $control_id.replace('l' + this._currentLanguage + '_', 'l' + $language_id + '_'); +} + +MultiLanguageSelector.prototype.registerControl = function ($id) { + this._controls.push($id); +} + Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics_orders_list.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics_orders_list.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics_orders_list.tpl (revision 13321) @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics.tpl (revision 13321) @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file Index: branches/1.0.x/designs/default_design.des.tpl =================================================================== diff -u -N --- branches/1.0.x/designs/default_design.des.tpl (revision 0) +++ branches/1.0.x/designs/default_design.des.tpl (revision 13321) @@ -0,0 +1,84 @@ + + + + + + +" lang=""> + + + + + + <inp2:m_GetConfig name="Site_Name"/> :: <inp2:m_RenderElement name="page_title" default_element="cms_page_title" no_editing="1"/> + + + + + + + + + + +
+
+ + + + + + + + +
+ +
+ +
+ + + + + + + + + + + + + + + +
+ + + +
+ + + +
+
+
+
+ +
+
+ + + + + +
+ +
+ +
+
+ + + + \ No newline at end of file Index: branches/1.0.x/.smsignore =================================================================== diff -u -N --- branches/1.0.x/.smsignore (revision 0) +++ branches/1.0.x/.smsignore (revision 13321) @@ -0,0 +1 @@ +phrases_edit\.tpl \ No newline at end of file Index: branches/1.0.x/elements/side_boxes.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/side_boxes.elm.tpl (revision 0) +++ branches/1.0.x/elements/side_boxes.elm.tpl (revision 13321) @@ -0,0 +1,29 @@ + + + + + +
+ +
+
+ + + + +
+ +
+
+
+ + + + + + +
+ +
+
+
\ No newline at end of file Index: branches/1.0.x/_install/theme.xml =================================================================== diff -u -N --- branches/1.0.x/_install/theme.xml (revision 0) +++ branches/1.0.x/_install/theme.xml (revision 13321) @@ -0,0 +1,5 @@ + + designs/general + designs/form + thankyou + \ No newline at end of file Index: branches/1.0.x/inc/ajax.js =================================================================== diff -u -N --- branches/1.0.x/inc/ajax.js (revision 0) +++ branches/1.0.x/inc/ajax.js (revision 13321) @@ -0,0 +1,263 @@ +function preg_print_pre(obj, reg) +{ + if (!reg) reg = /.*/; + var p = '' + for (var prop in obj) { + if (prop.match(reg) ) { + p += prop + ': '+obj[prop] + '\n' + } + } + alert(p) +} + + +// Main AJAX classs +function Request() {} + +Request.timeout = 60000; //60 seconds +Request.method = 'GET'; +Request.headers = new Array(); +Request.params = null; + +Request.makeRequest = function(p_url, p_busyReq, p_progId, p_successCallBack, p_errorCallBack, p_pass, p_object) { + //p_url: the web service url + //p_busyReq: is a request for this object currently in progress? + //p_progId: element id where progress HTML should be shown + //p_successCallBack: callback function for successful response + //p_errorCallBack: callback function for erroneous response + //p_pass: string of params to pass to callback functions + //p_object: object of params to pass to callback functions + + if (p_busyReq) return; + var req = Request.getRequest(); + if (req != null) { + p_busyReq = true; + Request.showProgress(p_progId); + req.onreadystatechange = function() { + if (req.readyState == 4) { + p_busyReq = false; + window.clearTimeout(toId); + try { + if (req.status == 200) { + // preg_print_pre(req) + p_successCallBack(req, p_pass, p_object); + } else { + p_errorCallBack(req, p_pass, p_object); + } + Request.hideProgress(p_progId); + } + catch (e) { +// alert('AJAX error') + } + } + } + var $ajax_mark = (p_url.indexOf('?') ? '&' : '?') + 'ajax=yes'; + req.open(Request.method, p_url + $ajax_mark, true); + + if (Request.method == 'POST') { + Request.headers['Content-type'] = 'application/x-www-form-urlencoded'; + Request.headers['referer'] = p_url; + } + else { + Request.headers['If-Modified-Since'] = 'Sat, 1 Jan 2000 00:00:00 GMT'; + } + + Request.sendHeaders(req); + if (Request.method == 'POST') { + req.send(Request.params); + Request.method = 'GET'; // restore method back to GET + } + else { + req.send(null); + } + + var toId = window.setTimeout( function() {if (p_busyReq) req.abort();}, Request.timeout ); + } +} + +Request.processRedirect = function($request) { + var $match_redirect = new RegExp('^#redirect#(.*)').exec($request.responseText); + if ($match_redirect != null) { + // redirect to external template requested + window.location.href = $match_redirect[1]; + return true; + } + return false; +} +Request.sendHeaders = function($request) { + for (var $header_name in Request.headers) { + if (typeof Request.headers[$header_name] == 'function') { + continue; + } + $request.setRequestHeader($header_name, Request.headers[$header_name]); + } + Request.headers = new Array(); // reset header afterwards +} + +Request.getRequest = function() { + var xmlHttp; + try { xmlHttp = new ActiveXObject('MSXML2.XMLHTTP'); return xmlHttp; } catch (e) {} + try { xmlHttp = new ActiveXObject('Microsoft.XMLHTTP'); return xmlHttp; } catch (e) {} + try { xmlHttp = new XMLHttpRequest(); return xmlHttp; } catch(e) {} + return null; +} + +Request.showProgress = function(p_id) { + if (p_id != '') { + Request.setOpacity(20, p_id); + + if (!document.getElementById(p_id + '_progress')) { + document.body.appendChild(Request.getProgressObject(p_id)); + } + else { + var $progress_div = document.getElementById(p_id + '_progress'); + $progress_div.style.top = getRealTop(p_id) + 'px'; + $progress_div.style.height = document.getElementById(p_id).clientHeight; + $progress_div.style.display = 'block'; + } +// document.getElementById(p_id).innerHTML = Request.getProgressHtml(); + } +} + +Request.hideProgress = function(p_id) { + if (p_id != '') { + document.getElementById(p_id + '_progress').style.display = 'none'; + Request.setOpacity(100, p_id); + } +} + +Request.setOpacity = function (opacity, id) { + var elem = typeof(id)=='string' ? document.getElementById(id) : id; + var object = elem.style; + object.opacity = (opacity / 100); + object.MozOpacity = (opacity / 100); + object.KhtmlOpacity = (opacity / 100); + object.filter = "alpha(opacity=" + opacity + ")"; +} + +Request.getProgressHtml = function() { + return "

" + Request.progressText + "
" + Request.progressText + "

"; +} + +Request.getProgressObject = function($id) { + var $div = document.createElement('DIV'); + var $parent_div = document.getElementById($id); + + $div.id = $id + '_progress'; + + $div.style.width = $parent_div.clientWidth + 'px'; + $div.style.height = '150px'; // default height if div is empty (first ajax request for div) + $div.style.left = getRealLeft($parent_div) + 'px'; + $div.style.top = getRealTop($parent_div) + 'px'; + $div.style.position = 'absolute'; + + /*$div.style.border = '1px solid green'; + $div.style.backgroundColor = '#FF0000';*/ + + $div.innerHTML = '
'+Request.progressText+'
'+escape(Request.progressText)+'
'; + return $div; +} + +Request.getErrorHtml = function(p_req) { + //TODO: implement accepted way to handle request error + return '[status: ' + p_req.status + '; status_text: ' + p_req.statusText + '; responce_text: ' + p_req.responseText + ']'; +} + +Request.serializeForm = function(theform) { + if (typeof(theform) == 'string') { + theform = document.getElementById(theform); + } + + var els = theform.elements; + var len = els.length; + var queryString = ''; + + Request.addField = function(name, value) { + if (queryString.length > 0) queryString += '&'; + queryString += encodeURIComponent(name) + '=' + encodeURIComponent(value); + }; + + for (var i = 0; i= 0) { + Request.addField(el.name, el.options[el.selectedIndex].value); + } + break; + + case 'select-multiple': + for (var j = 0; j < el.options.length; j++) { + if (!el.options[j].selected) continue; + Request.addField(el.name, el.options[j].value); + } + break; + + case 'checkbox': + case 'radio': + if (!el.checked) continue; + Request.addField(el.name,el.value); + break; + } + } + return queryString; +}; + +function RatingManager ($url) { + this.Url = $url; + this.BusyRequest = false; +} + +RatingManager.prototype.makeVote = function ($vote, $prefix, $id, $size) { + var $url = this.Url.replace('#PREFIX#', $prefix).replace('#VOTE#', $vote).replace('#ID#', $id).replace('#SIZE#', $size); + + Request.makeRequest($url, this.BusyRequest, '', this.successCallback, this.errorCallback, [$vote, $prefix, $id], this); +} + +RatingManager.prototype.successCallback = function ($request, $params, $object) { + var response = $request.responseText; + + if (response.substring(0, 5) == '@err:') { + alert(response.substring(5)); + return ; + } + + document.getElementById('page_rating_' + $params[2]).innerHTML = response; +} + + +RatingManager.prototype.errorCallback = function($request, $params, $object) { + alert('AJAX Error; class: RatingManager; ' + Request.getErrorHtml($request)); +} + +function PollManager ($url) { + this.Url = $url; + this.BusyRequest = false; +} + +PollManager.prototype.makeVote = function ($prefix, $poll_id, $option_id) { + var $url = this.Url.replace('#PREFIX#', $prefix).replace('#POLL_ID#', $poll_id).replace('#OPTION_ID#', $option_id); + Request.makeRequest($url, this.BusyRequest, '', this.successCallback, this.errorCallback, [$poll_id, $option_id], this); +} + +PollManager.prototype.successCallback = function ($request, $params, $object) { + var response = $request.responseText; + if (response.substring(0, 5) == '@err:') { + alert(response.substring(5)); + return ; + } + document.getElementById('pollvote_' + $params[0]).innerHTML = response; +} + +PollManager.prototype.errorCallback = function($request, $params, $object) { + alert('AJAX Error; class: PollManager; ' + Request.getErrorHtml($request)); +} \ No newline at end of file Index: branches/1.0.x/inc/dmenu.css =================================================================== diff -u -N --- branches/1.0.x/inc/dmenu.css (revision 0) +++ branches/1.0.x/inc/dmenu.css (revision 13321) @@ -0,0 +1,132 @@ +/* Horizontal (menubar) menu */ + +.horz_nlsmenu { + background-color: inherit; + z-index:1; + width: auto; +} + +.horz_nlsitemcontainer { + height: 37px; + color: #ffffff; + padding: 0px 13px; +} +.horz_nlsiconcell {width:16px;} +.horz_nlssubmenucell{width:20px;} + +.horz_nlsitem { + font-size:8pt; + color: #ffffff; + padding:2px 5px 2px 5px; +} + +.horz_nlsitemcontainerover { + height: 37px; + background:url(../img/top_menu_select.gif); + padding: 0px 13px; +} +.horz_nlsiconcellover {width:16px;} +.horz_nlssubmenucellover {width:20px;} + +.horz_nlsitemover { + font-size:8pt; + color: #FFFFFF; + padding:2px 5px 2px 5px; +} + +.horz_nlsitemdisable { + font-family:verdana; + font-size:8pt; + color:#999999; + padding:2px 5px 2px 5px; +} + +.horz_nlsseparatorcontainer {padding-left:0px; width:1px;} + +.horz_nlsseparator { + height:5px; + width:1px; + background-image:url(img/vseparator.gif); + background-position:center center; + background-repeat:repeat-x; +} + +.horz_mtopleft {height:0px; width:0px;} +.horz_mtopright {height:0px; width:0px;} +.horz_mbottomleft {width:0px; height:0px;} +.horz_mbottomright {width:0px; height:0px;} +.horz_mtop {height:0px;} +.horz_mbottom {height:0px;} +.horz_mleft {width:0px;} +.horz_mright {width:0px;} + +.horz_horzshadow { -moz-opacity:0.4; background-repeat:no-repeat; background-image:url(img/hshadow.gif);filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);} +.horz_vertshadow { -moz-opacity:0.4; background-repeat:no-repeat; background-image:url(img/vshadow.gif);filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);} +.horz_cornshadow { -moz-opacity:0.4; background-repeat:no-repeat; background-image:url(img/cornershadow.gif);filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);} + + +/* Vertical (drop-down) menus */ + +.nlsmenu { + background-color: #105596; + z-index:1; + width: auto !important; + color: #ffffff; + padding: 2px 2px; + border: 1px solid #6291BB; +} + +.nlsitemcontainer { + height:25px; + padding:2px 10px 2px 10px; + border: 1px solid #6291BB; +} +.nlsiconcell {width:22px;} +.nlssubmenucell{width:20px;} +.nlsitem { + font-size:8pt; + color: #ffffff; + padding:0px 7px; +} + +.nlsitemcontainerover { + height:25px; + border: 1px solid #6291BB; + background:url(../img/top_menu_select.gif); + padding: 2px 10px 2px 10px; +} +.nlsiconcellover {width:22px;} +.nlssubmenucellover {width:20px;} +.nlsitemover { + font-size:8pt; + color:#ffffff; + padding:0px 7px; +} + +.nlsitemdisable { + font-size:8pt; + color:#999999; + padding:2px 5px 2px 5px; +} + +.nlsseparatorcontainer {padding-left:28px;} + +.nlsseparator { + height:5px; + background-image:url(img/separator.gif); + background-position:center center; + background-repeat:repeat-x; +} + +.mtopleft {height:0px; width:0px;} +.mtopright {height:0px; width:0px;} +.mbottomleft {width:0px; height:0px;} +.mbottomright {width:0px; height:0px;} +.mtop {height:0px;} +.mbottom {height:0px;} +.mleft {width:0px;} +.mright {width:0px;} + +.horzshadow { -moz-opacity:0.4;background-repeat:no-repeat; background-image:url(img/hshadow.gif);filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);} +.vertshadow { -moz-opacity:0.4;background-repeat:no-repeat; background-image:url(img/vshadow.gif);filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);} +.cornshadow { -moz-opacity:0.4;background-repeat:no-repeat; background-image:url(img/cornershadow.gif);filter:progid:DXImageTransform.Microsoft.Alpha( Opacity=40, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);} Index: branches/1.0.x/in-commerce/elements/content_boxes/home_page_items.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/elements/content_boxes/home_page_items.elm.tpl (revision 0) +++ branches/1.0.x/in-commerce/elements/content_boxes/home_page_items.elm.tpl (revision 13321) @@ -0,0 +1,73 @@ + + + + + +
+ +
+
    +
  • +
  • +
  • +
  • + +
+
+
+
+ + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ \ No newline at end of file Index: branches/1.0.x/mailing_list/unsubscribe_ok.tpl =================================================================== diff -u -N --- branches/1.0.x/mailing_list/unsubscribe_ok.tpl (revision 0) +++ branches/1.0.x/mailing_list/unsubscribe_ok.tpl (revision 13321) @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + +

+ + " onClick="window.location.href=''" />  +
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/recommend/recommend.tpl =================================================================== diff -u -N --- branches/1.0.x/recommend/recommend.tpl (revision 0) +++ branches/1.0.x/recommend/recommend.tpl (revision 13321) @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + +

+ + ');" value=""/> +
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payments.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payments.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payments.tpl (revision 13321) @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + () + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/img/lbox/prev.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/img/slider/banner_background_1.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/img/slider/banner_background_2.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/elements/search_results.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/search_results.elm.tpl (revision 0) +++ branches/1.0.x/elements/search_results.elm.tpl (revision 13321) @@ -0,0 +1,20 @@ + + :
+
+ "> + + + + +
%" bgcolor="">%" bgcolor="">
+
+ + + :
+
+ + + + +
">
+
\ No newline at end of file Index: branches/1.0.x/mailing_list/subscribe.tpl =================================================================== diff -u -N --- branches/1.0.x/mailing_list/subscribe.tpl (revision 0) +++ branches/1.0.x/mailing_list/subscribe.tpl (revision 13321) @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + +

+ +
+ " />  + " onclick="redirect('');" />  + + +
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/img/lbox/closelabel.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_materials.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_materials.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_materials.tpl (revision 13321) @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ : +

+ "> +
+ : +
+ + <a href=""> + + </a> + +
+ +
+
+
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/img/lbox/prevlabel.gif =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/in-commerce/elements/content_boxes/pick_products.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/elements/content_boxes/pick_products.elm.tpl (revision 0) +++ branches/1.0.x/in-commerce/elements/content_boxes/pick_products.elm.tpl (revision 13321) @@ -0,0 +1,22 @@ + + + + + + + + + + + + +
+ + +
+ ">... +
+
+ +
+ \ No newline at end of file Index: branches/1.0.x/elements/navigation_bar.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/navigation_bar.elm.tpl (revision 0) +++ branches/1.0.x/elements/navigation_bar.elm.tpl (revision 13321) @@ -0,0 +1,38 @@ + + + + "> + + + + + "> + + + + + + "> + + "> + + + + + + "> + + + + + + + + + + + +
\ No newline at end of file Index: branches/1.0.x/elements/content_boxes.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/content_boxes.elm.tpl (revision 0) +++ branches/1.0.x/elements/content_boxes.elm.tpl (revision 13321) @@ -0,0 +1,101 @@ + + + + + + + +
+ +
+
+ + + + +
+ +
+
+ +
+ + + + + +
+ + + "> + + + " class="top-menu-link"> + + +
+ + + +
+ + + "> + + + " class="top-menu-link"> + + +
+ +
+
+ + + + +
+ + + + "> + + "> + + + +
+ + + + + Review By: []
+ Review Text: +

+ + +
+ + + _rate.gif" width="10" height="11" alt=""/> + + + + + + + + + + + " title="" alt="" border="0" /> + + + + active-tabinactive-tab"> + "> + +   + + + \ No newline at end of file Index: branches/1.0.x/elements/html_head.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/html_head.elm.tpl (revision 0) +++ branches/1.0.x/elements/html_head.elm.tpl (revision 13321) @@ -0,0 +1,29 @@ + +" /> + +" /> +" /> + + + + + + + + + + + + + + + + + + + + + + Index: branches/1.0.x/mailing_list/unsubscribe.tpl =================================================================== diff -u -N --- branches/1.0.x/mailing_list/unsubscribe.tpl (revision 0) +++ branches/1.0.x/mailing_list/unsubscribe.tpl (revision 13321) @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + +

+ +
+ " />  + " onclick="redirect('');" />  + + +
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/in-commerce/module_info.xml =================================================================== diff -u -N --- branches/1.0.x/in-commerce/module_info.xml (revision 0) +++ branches/1.0.x/in-commerce/module_info.xml (revision 13321) @@ -0,0 +1,5 @@ + + + in-commerce/designs/section + in-commerce/products/product_details + \ No newline at end of file Index: branches/1.0.x/_install/english.lang =================================================================== diff -u -N --- branches/1.0.x/_install/english.lang (revision 0) +++ branches/1.0.x/_install/english.lang (revision 13321) @@ -0,0 +1,390 @@ + + m/d/Yg:i Am/d/Yg:i:s A.,utf-8http://docs.in-portal.org/eng/index.php2 + + QWRk + QWRkZWQ= + QWRkZWQgdG9kYXk= + QWRkcmVzcw== + QWRkcmVzcyBMaW5l + QWR2YW5jZWQgU2VhcmNo + QWxsIHJpZ2h0cyByZXNlcnZlZC4= + RW50aXJlIFdlYnNpdGU= + QW5k + VGhlcmUgaXMgYSBwcm9ibGVtIHdpdGggdGhlIGZvcm0sIHBsZWFzZSBjaGVjayB0aGUgZXJyb3IgbWVzc2FnZXMgYmVsb3cu + VGhlcmUgaXMgYSBwcm9ibGVtIHdpdGggdGhlIGZvcm0sIHBsZWFzZSBjaGVjayB0aGUgZXJyb3IgbWVzc2FnZXMgYmVsb3c= + QXNjZW5kaW5n + QmlydGggRGF0ZQ== + QWRkIENvbW1lbnQ= + QWRkIFRvIEZhdm9yaXRlcw== + QWRkIFRvIFdpc2ggTGlzdA== + QWR2YW5jZWQgc2VhcmNo + Q2FuY2Vs + Q2xlYXI= + Q2xvc2UgV2luZG93 + Q29udGFjdA== + Q3JlYXRl + RGVsZXRl + RGVsZXRlIEZpbGU= + RGVsZXRlIEltYWdl + RGV0YWlscw== + RWRpdA== + RmluZCBpdA== + TW9kaWZ5 + TW9yZSBJbWFnZXM= + TmV3IExpbms= + Tm8= + T0s= + UmVjb21tZW5k + UmVnaXN0ZXI= + UmVtb3ZlIEZyb20gRmF2b3JpdGVz + UmVzZXQ= + U2VsZWN0 + UmVjb3ZlciBQYXNzd29yZA== + U2V0 + U29ydA== + U3Vic2NyaWJl + VW5zdWJzY3JpYmU= + VXBkYXRl + VmlldyBZb3VyIFByb2ZpbGU= + WWVz + Ynk= + Q2FuY2Vs + U2VjdXJpdHkgY29kZQ== + U2VjdXJpdHkgY29kZSBlbnRlcmVkIGluY29ycmVjdGx5 + RW50ZXIgU2VjdXJpdHkgQ29kZQ== + TGFzdCB1cGRhdGVkIG9u + Q2l0eQ== + Y2xpY2sgaGVyZQ== + UGFzc3dvcmQgcmVzZXQgaGFzIGNvZGUgZXhwaXJlZA== + UGFzc3dvcmQgcmVzZXQgY29kZSBpcyBub3QgdmFsaWQ= + QWNjb3VudCBJbmZvcm1hdGlvbg== + Q3VycmVudCBWYWx1ZQ== + RGF0ZQ== + RGlzcGxheSB0byBQdWJsaWM= + RW1haWw= + TGFzdCBVcGRhdGU= + T25saW5l + TG9naW4= + TWVtYmVyIHNpbmNl + TWVzc2FnZQ== + TmFtZQ== + UHJpY2U= + Vmlld3M= + RW1haWxBZGRyZXNz + R28= + Tm8gUGVybWlzc2lvbnM= + UGFnZQ== + Q29tcGFueQ== + Q29udGFjdCBVcw== + Q29udGFjdCBJbmZvcm1hdGlvbg== + Q291bnRyeQ== + Q3JlYXRlIFBhc3N3b3Jk + Q3JlZGl0IENhcmRz + Q3VycmVudCBSYXRpbmc= + WW91ciBUaGVtZQ== + RGF0ZQ== + RGVsZXRl + RGVzY2VuZGluZw== + RGVzY3JpcHRpb24gQSB0byBa + RGVzY3JpcHRpb24gWiB0byBB + WW91ciBGYXZvcml0ZSBJdGVtcw== + RWRpdCB5b3VyIFByZWZlcmVuY2Vz + WW91ciBQcm9maWxlIEluZm9ybWF0aW9u + WW91ciBQcml2YXRlIE1lc3NhZ2Vz + RGV0YWlscw== + TW9kaWZ5 + RS1NYWls + QSB1c2VyIHdpdGggc3VjaCBlLW1haWwgYWxyZWFkeSBleGlzdHMu + TWFpbCBzZW5kaW5nIGZhaWxlZA== + RnJpZW5kJ3MgZS1tYWlsIGFkZHJlc3M= + WW91ciBlLW1haWwgYWRkcmVzcw== + RW50ZXIgeW91ciBFbWFpbCBBZGRyZXNzIGJlbG93IHRvIGhhdmUgeW91ciBhY2NvdW50IGluZm9ybWF0aW9uIHNlbnQgdG8gdGhlIGVtYWlsIGFkZHJlc3Mgb2YgeW91ciBhY2NvdW50Lg== + RW50ZXIgeW91ciBVc2VybmFtZSBvciBFbWFpbCBBZGRyZXNzIGJlbG93IHRvIGhhdmUgeW91ciBhY2NvdW50IGluZm9ybWF0aW9uIHNlbnQgdG8gdGhlIGVtYWlsIGFkZHJlc3Mgb2YgeW91ciBhY2NvdW50Lg== + WW91IGhhdmUgYWxyZWFkeSBjb21tZW50ZWQgdGhpcyBpdGVtIQ== + U29ycnksIHRoZSByZXF1ZXN0ZWQgVVJMIHdhcyBub3QgZm91bmQgb24gb3VyIHNlcnZlci4= + RXJyb3IgNDA0IC0gTm90IEZvdW5k + QWN0aXZhdGlvbiBjb2RlIGhhcyBleHBpcmVk + QWN0aXZhdGlvbiBjb2RlIGlzIG5vdCB2YWxpZA== + Q2F0ZWdvcnkgYWxyZWFkeSBhZGRlZCE= + QWxyZWFkeSBjb21tZW50ZWQ= + Q2F0ZWdvcnkgbGltaXQgcmVhY2hlZCE= + UmVxdWlyZWQ= + VXNlciBOb3QgRm91bmQ= + RmF2b3JpdGU= + Tm90IHJlc2V0 + QXJjaGl2ZSBEYXRl + QXJ0aWNsZSBBdXRob3I= + QXJ0aWNsZSBCb2R5 + TnVtYmVyIG9mIERlc2NlbmRhbnRz + Q2F0ZWdvcnkgUGF0aA== + Q2F0ZWdvcnkgSWQ= + Q2l0eQ== + Q291bnRyeQ== + RGF0ZSBvZiBCaXJ0aA== + RWRpdG9yJ3MgcGljaw== + RS1tYWls + RW5kcyBPbg== + QXJ0aWNsZSBFeGNlcnB0 + Rmlyc3QgTmFtZQ== + TGFzdCBOYW1l + Q2F0ZWdvcnkgTGVhZCBTdG9yeT8= + TGVhZCBTdG9yeT8= + TG9naW4gKFVzZXIgbmFtZSk= + TWV0YSBEZXNjcmlwdGlvbg== + TWV0YSBLZXl3b3Jkcw== + UGFyZW50IElk + UGFyZW50IENhdGVnb3J5IFBhdGg= + UGFzc3dvcmQ= + VGVsZXBob25l + VXNlciBJRA== + U3RhcnQgRGF0ZQ== + U3RhdGU= + U3RyZWV0IEFkZHJlc3M= + QXJ0aWNsZSBUaXRsZQ== + VGltZSBab25l + Vmlld3M= + WmlwIChQb3N0YWwpIENvZGU= + Rmlyc3QgTmFtZQ== + QWRkcmVzcyBsaW5lIDE= + QWRkcmVzcyBsaW5lIDI= + RGF0ZSBvZiBiaXJ0aA== + Qm9keQ== + Q2FwdGNoYSBJbWFnZQ== + Q2l0eQ== + Q29tbWVudA== + Q29tcGFueQ== + Q291bnRyeQ== + RGVzY3JpcHRpb24= + RHVyYXRpb24= + RS1NYWls + RmF4 + UHJpbWFyeSBGaWxl + Mm5kIEZpbGU= + M3JkIEZpbGU= + RmlsZW5hbWU= + Rmlyc3QgbmFtZQ== + RnVsbCBuYW1l + Mm5kIEltYWdl + M3JkIEltYWdl + TGFzdCBuYW1l + VXNlcm5hbWU= + TW9kdWxl + QWRkaXRpb25hbCBDYXRlZ29yaWVz + TmFtZQ== + UGFzc3dvcmQ= + UGhvbmU= + UGhyYXNl + UHJpY2U= + UHJpbWFyeSBDYXRlZ29yeQ== + UHJpbWFyeSBJbWFnZQ== + UHJpbWFyeSBUcmFuc2xhdGlvbg== + UmF0aW5n + Q29tbWVudCBieQ== + Q29tbWVudA== + UGxlYXNlIHNlbGVjdCB5b3VyIGFkZHJlc3M= + U2l6ZQ== + U3RhdGU= + U3RyZWV0 + U3VibWl0dGluZyB0bw== + VGl0bGU= + VHJhbnNsYXRpb24= + TWVtYmVyc2hpcCBHcm91cA== + VmVyaWZ5IFBhc3N3b3Jk + VmVyc2lvbg== + WmlwIGNvZGU= + WmlwIGNvZGU= + SW5ib3g= + Rm9yZ290IHBhc3N3b3Jk + R3Vlc3Q= + SGVyZQ== + SGl0cw== + SGl0cyBIbyB0byBMb3c= + SGl0cyBMb3cgdG8gSGk= + SG9tZQ== + SG90 + aW4= + SW5ib3g= + SW5kaWNhdGVzIFJlcXVpcmVkIGZpZWxkcw== + SW52YWxpZCBlLW1haWwgYWRkcmVzcw== + SXRlbXMgUGVyIFBhZ2U= + Sm9pbmVk + TGFzdCBOYW1l + TG9jYXRpb24= + TG9naW4= + TG9nIE91dA== + TG9nb3V0IG9mIHlvdXIgYWNjb3VudA== + TWFpbGluZyBMaXN0 + TW9yZQ== + TXkgRmF2b3JpdGVz + TXkgUHJlZmVyZW5jZXM= + TXkgUHJvZmlsZQ== + TmFtZQ== + TmV3 + TmV3IEN1c3RvbWVycw== + WW91ciBwcml2YXRlIG1lc3NhZ2UgaGFzIGJlZW4gc2VudC4= + Tm8= + U29ycnksIHlvdSBoYXZlIG5vIGFjY2VzcyB0byB0aGlzIHBhZ2Uh + Tm8gQ2F0ZWdvcmllcw== + Tm8gZmF2b3JpdGUgaXRlbXMgc2F2ZWQ= + Tm8gbWVtYmVycyBmb3VuZA== + Tm9uZQ== + QmUgdGhlIGZpcnN0IHRvIGNvbW1lbnQ= + bm90IGxvZ2dlZCBpbg== + Tm8gUGVybWlzc2lvbnM= + T2xkIHRvIFJlY2VudA== + U2VsZWN0IENhdGVnb3J5 + b3I= + UGFzc3dvcmQ= + UGFzc3dvcmRzIGRvIG5vdCBtYXRjaA== + UGFzc3dvcmQgaXMgdG9vIHNob3J0LCBwbGVhc2UgZW50ZXIgYXQgbGVhc3QgJXMgY2hhcmFjdGVycw== + cGVuZGluZyBpdGVt + UGhvbmU= + UGljaw== + UGxlYXNlIFJlZ2lzdGVy + UG9wdWxhcg== + UG93ZXJlZCBieQ== + UHJpdmFjeSBQb2xpY3k= + UHJvZmlsZQ== + QXZhdGFyIEltYWdl + UXVpY2sgU2VhcmNo + UmF0aW5n + UmF0aW5nIEhpIHRvIExvdw== + UmF0aW5nIExvdyB0byBIaQ== + RmFpcg== + QXZlcmFnZQ== + R29vZA== + VmVyeSBHb29k + RXhjZWxsZW50 + UmVjZW50IHRvIE9sZA== + UmVjb21tZW5kIHRvIGEgRnJpZW5k + UmVjb21tZW5kYXRpb24gQ29uZmlybWF0aW9u + VGhhbmtzIGZvciByZWNvbW1lbmRpbmcgb3VyIHNpdGUgdG8geW91ciBmcmllbmQuIFRoZSBlbWFpbCBoYXMgYmVlbiBzZW50IG91dC4= + UmVjb21tZW5kIHRvIGEgZnJpZW5k + UmVnaXN0ZXI= + UmVnaXN0cmF0aW9uIENvbmZpcm1hdGlvbg== + VGhhbmsgWW91LiBSZWdpc3RyYXRpb24gY29tcGxldGVkLg== + WW91ciBsb2dpbiBpbmZvcm1hdGlvbiBoYXMgYmVlbiBlbWFpbGVkIHRvIHlvdS4gUGxlYXNlIGNoZWNrIHlvdXIgZW1haWwu + UmVsZXZhbmNl + UmVtZW1iZXIgTG9naW4= + UmVwZWF0IFBhc3N3b3Jk + UmVzZXQ= + UmV0dXJuIHRvIGhvbWVwYWdl + Q29tbWVudHM= + SG9tZQ== + U2VhcmNo + QWRkaXRpb25hbCBJbWFnZXM= + SW1hZ2Vz + TXlBY2NvdW50 + TXkgSXRlbXM= + Q29tbWVudHM= + U2VsZWN0IFVzZXJuYW1l + U2VuZA== + U2VudA== + U2l0ZW1hcA== + U3RhdGU= + U3RhdGlzdGljcw== + U3ViY2F0ZWdvcmllcw== + U3Vic2NyaXB0aW9uIENvbmZpcm1hdGlvbg== + QXJlIHlvdSBzdXJlIHlvdSB3YW50IHRvIHN1YnNjcmliZSB0byBvdXIgbWFpbGluZyBsaXN0PyAoWW91IGNhbiB1bnN1YnNjcmliZSBhbnkgdGltZSBieSBlbnRlcmluZyB5b3VyIGVtYWlsIG9uIHRoZSBmcm9udCBwYWdlKS4= + U3Vic2NyaWJlZA== + U3VibWl0dGluZyB0byBDYXRlZ29yaWVz + U3VnZ2VzdCBDYXRlZ29yeQ== + UHJpdmFjeQ== + VGVybXMgYW5kIENvbmRpdGlvbnMgb2YgVXNl + IFdlIGFyZSBzb3JyeSB5b3UgaGF2ZSB1bnN1YnNjcmliZWQgZnJvbSBvdXIgbWFpbGluZyBsaXN0 + WW91ciB1c2VyIGFjY291bnQgaXMgY3VycmVudGx5IHBlbmRpbmcgb3IgZGlzYWJsZWQuIElmIHlvdSBoYXZlIHJlZ2lzdHJlZCByZWNlbnRseSwgcGxlYXNlIHdhaXQgdW50aWwgeW91ciBhY2NvdW50IHdpbGwgYmUgYXBwcm92ZWQsIG90aGVyd2lzZSBwbGVhc2Ugd3JpdGU= + WW91ciBwYXNzd29yZCBoYXMgYmVlbiByZXNldC4gVGhlIG5ldyBwYXNzd29yZCBoYXMgYmVlbiBzZW50IHRvIHlvdXIgZS1tYWlsIGFkZHJlc3MuIFlvdSBtYXkgbm93IGxvZ2luIHdpdGggdGhlIG5ldyBwYXNzd29yZC4= + WW91IGhhdmUgY2hvc2VuIHRvIHJlc2V0IHlvdXIgcGFzc3dvcmQuPEJSLz48QlIvPg0KQW4gYXV0b21hdGljIGVtYWlsIGhhcyBiZWVuIHNlbnQgdG8geW91ciBlbWFpbCBhZGRyZXNzIG9uIGZpbGUuIFBsZWFzZSBmb2xsb3cgdGhlIGxpbmsgaW4gdGhlIGVtYWlsIGluIG9yZGVyIHRvIHJlY2VpdmUgYSBuZXcgcGFzc3dvcmQu + VGhlIGtleXdvcmQgaXMgdG9vIHNob3J0 + Tm8gY29tbWVudHMsIGFkZCBmaXJzdA== + Tm8gcGVybWlzc2lvbnMgdG8gcGVyZm9ybSB0aGlzIG9wZXJhdGlvbg== + Tm8gcGVybWlzc2lvbnMgdG8gc3VnZ2VzdCBuZXcgY2F0ZWdvcmllcyBpbnRvIGN1cnJlbnQgY2F0ZWdvcnku + Tm90aGluZyBGb3VuZA== + NDA0LiBQYWdlIG5vdCBmb3VuZCBvbiB0aGUgc2VydmVyLg== + UGxlYXNlIGNvbmZpcm0gdGhhdCB5b3Ugd2FudCB0byByZXNldCB5b3VyIHBhc3N3b3JkLg== + Q2xpY2sgaGVyZSBpZiB5b3VyIGJyb3dzZXIgZG9lcyBub3QgYXV0b21hdGljYWxseSByZWRpcmVjdCB5b3Uu + VGhhbmsgeW91IGZvciByZWdpc3RlcmluZyBvbiBvdXIgd2Vic2l0ZS4gWW91IGNhbiBhY3RpdmF0ZSB5b3VyIHJlZ2lzdHJhdGlvbiB1c2luZyBsaW5rIHNlbnQgdG8geW91IGJ5IGVtYWlsLg== + VGhhbmsgeW91IGZvciByZWdpc3RlcmluZyBvbiBvdXIgd2Vic2l0ZS4gWW91ciByZWdpc3RyYXRpb24gaXMgcGVuZGluZyBhZG1pbmlzdHJhdGl2ZSBhcHByb3ZhbC4gWW91IHdpbGwgZ2V0IGEgc2VwYXJhdGUgZW1haWwgb25jZSBpdCdzIGFjdGl2YXRlZC4= + VGhhbmsgeW91IGZvciBzdWdnZXN0aW5nIHlvdXIgY2F0ZWdvcnku + U3VnZ2VzdGVkIGNhdGVnb3J5IGlzIHBlbmRpbmcgZm9yIEFkbWluaXN0cmF0aXZlIGFwcHJvdmFsIA== + VGhhbmsgeW91IGZvciBzdWJtaXR0aW5nIHlvdXIgcmVxdWVzdC4= + VGhhbmsgeW91IGZvciBzdWJzY3JpYmluZyB0byBvdXIgbWFpbGluZyBsaXN0 + VGhhbmtzIGZvciBWb3Rpbmch + Q3VycmVudCBDYXRlZ29yeQ== + QWN0aW9uIEJveA== + QWRkaW5nIEFkZHJlc3M= + QWR2ZXJ0aXNlbWVudHM= + QmFjayB0byB0b3A= + Q2F0ZWdvcmllcw== + Q2F0ZWdvcnkgU2VhcmNoIFJlc3VsdHM= + UGVuZGluZyBvciBkaXNhYmxlZCB1c2VyIGFjY291bnQgd2FybmluZw== + RWRpdCBBZGRyZXNz + WW91ciBGYXZvcml0ZSBJdGVtcw== + WW91ciBGYXZvcml0ZXM= + Rm9yZ290IFBhc3N3b3Jk + Rm9yZ290IFBhc3N3b3JkIENvbmZpcm1hdGlvbg== + Rm9yZ290IFBhc3N3b3JkIE5vdGlmaWNhdGlvbg== + TG9naW4gQm94 + TWFpbGluZyBMaXN0 + TWVtYmVycw== + TWlzc2luZyBQaHJhc2UgQWRkaW5n + TXkgQWNjb3VudA== + TXkgQWRkcmVzc2Vz + TXkgRmF2b3JpdGVz + TXkgSXRlbXM= + TXkgUHJlZmVyZW5jZXM= + TXkgUHJvZmlsZQ== + Tm8gUGVybWlzc2lvbg== + UGFnZSBOb3QgRm91bmQ= + UGFzc3dvcmQgUmVxdWVzdCBDb25maXJtYXRpb24= + UHJpdmFjeSBQb2xpY3k= + UmVjb21tZW5kIENvbmZpcm1hdGlvbg== + UmVjb21tZW5kIHRvIGEgRnJpZW5k + UmVkaXJlY3RpbmcgLi4u + VXNlciBSZWdpc3RyYXRpb24gQ29uZmlybWF0aW9u + VXNlciBSZWdpc3RyYXRpb24gUGVuZGluZw== + UmVsYXRlZCBDYXRlZ29yaWVz + UmVsYXRlZCBJdGVtcw== + UmVsYXRlZCBTZWFyY2hlcw== + Q29tbWVudHM= + U2VhcmNoIEJveA== + U2VhcmNoIFJlc3VsdHM= + U2l0ZSBtYXA= + U3Vic2NyaXB0aW9uIENvbmZpcm1hdGlvbg== + U3Vic2NyaXB0aW9uIENvbmZpcm1lZA== + U3VnZ2VzdCBDYXRlZ29yeQ== + Q2F0ZWdvcnkgQWRkZWQ= + Q2F0ZWdvcnkgUGVuZGluZw== + VGVybXMgYW5kIENvbmRpdGlvbnM= + VGhhbmsgeW91IQ== + VW5zdWJzY3JpYmUgQ29uZmlybWF0aW9u + VW5zdWJzY3JpcHRpb24gQ29uZmlybWVk + VXNlciBQcm9maWxl + VXNlciBSZWdpc3RyYXRpb24= + V2VsY29tZSB0byBJbi1Qb3J0YWwh + VG90YWwgQ2F0ZWdvcmllcw== + VW5zdWJzY3JpcHRpb24gQ29uZmlybWF0aW9u + QXJlIHlvdSBzdXJlIHlvdSB3YW50IHRvIHVuc3Vic2NyaWJlIGZyb20gb3VyIG1haWxpbmcgbGlzdD8gKFlvdSBjYW4gYWx3YXlzIHN1YnNjcmliZSBhZ2FpbiBieSBlbnRlcmluZyB5b3VyIGVtYWlsIGF0IHRoZSBob21lIHBhZ2Up + VW5zdWJzY3JpYmU= + VXNlcm5hbWU= + QSB1c2VyIHdpdGggc3VjaCB1c2VybmFtZSBhbHJlYWR5IGV4aXN0cy4= + QSB1c2VyIHdpdGggc3VjaCB1c2VybmFtZS9lLW1haWwgYWxyZWFkeSBleGlzdHMu + VGhhbmsgeW91IGZvciByZWdpc3RlcmluZy4gWW91ciByZWdpc3RyYXRpb24gaXMgcGVuZGluZyBhZG1pbmlzdHJhdGl2ZSBhcHByb3ZhbC4= + VmVyaWZ5IHBhc3N3b3Jk + RGlyZWN0IGFjY2VzcyBvciBib29rbWFyaw== + TnVtYmVyIG9mIFZvdGVz + Vm90ZXM= + Vm90ZXMgSGkgdG8gTG93 + Vm90ZXMgTG93IHRvIEhp + Vm90ZSE= + V2FybmluZw== + V2UgYWNjZXB0IGNyZWRpdCBjYXJkcw== + d3JvdGU= + WWVz + WW91ciBBY2NvdW50 + TGFuZ3VhZ2U= + WW91ciBXaXNoIExpc3Q= + WklQIENvZGU= + + + \ No newline at end of file Index: branches/1.0.x/_install/install_data.sql =================================================================== diff -u -N --- branches/1.0.x/_install/install_data.sql (revision 0) +++ branches/1.0.x/_install/install_data.sql (revision 13321) @@ -0,0 +1 @@ +UPDATE Category SET l1_Name = 'Home' WHERE l1_Name = 'Home'; \ No newline at end of file Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payment_type_changed.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payment_type_changed.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payment_type_changed.tpl (revision 13321) @@ -0,0 +1,43 @@ + + + + + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file Index: branches/1.0.x/inc/calendar.js =================================================================== diff -u -N --- branches/1.0.x/inc/calendar.js (revision 0) +++ branches/1.0.x/inc/calendar.js (revision 13321) @@ -0,0 +1,1320 @@ +var cbPath = ""; + /* +preloadImage(cbPath); +preloadImage(cbPathO); +preloadImage(cbPathA); +*/ + +//addScript("core.js"); +//addScript("lang.js"); + +//addCss("wnd.css"); +//addCss("calendar.css"); + +function initCalendar(id, dateFormat) +{ + var input = document.getElementById(id); + if (!input) return; + input.dateFormat = dateFormat; + var cbPath = input.getAttribute("datepickerIcon"); + + var inputContainer = document.createElement("DIV"); + inputContainer.className = "dpContainer"; + inputContainer.noWrap = true; + var pNode = input.parentNode; + pNode.insertBefore(inputContainer, input.nextSibling); +// inputContainer.appendChild(pNode.removeChild(input)); + + var calendarButton = document.createElement("IMG"); + calendarButton.setAttribute("width", "19"); + calendarButton.setAttribute("height", "15"); + calendarButton.setAttribute("align", "absMiddle"); + calendarButton.style.width=19 + calendarButton.style.height=15 + calendarButton.style.cursor = "hand"; + + calendarButton.setAttribute("hspace", 2); + calendarButton.src = cbPath; + calendarButton.style.paddingLeft = '10px'; + calendarButton.onmouseover = cbMouseOver; + calendarButton.onmouseout = cbMouseOut; + calendarButton.onmouseup = calendarButton.onmouseout; + calendarButton.onmousedown = cbMouseDown; + calendarButton.showCalendar = wnd_showCalendar; + inputContainer.appendChild(calendarButton); + inputContainer.dateInput = input; +} + +var calendar; + +function cbMouseOver(e) +{ + // this.src = cbPathO; + var evt = (e) ? e : event; if (evt) evt.cancelBubble = true; +} + +function cbMouseOut(e) +{ + // this.src = cbPath; + var evt = (e) ? e : event; if (evt) evt.cancelBubble = true; +} + +function cbMouseDown(e) +{ + // this.src = cbPathA; + // alert("cbMouseDown"); + var evt = (e) ? e : event; if (evt) evt.cancelBubble = true; + this.showCalendar(); +} + +function wnd_showCalendar() +{ + var el = this.parentNode.dateInput; + if (calendar != null) calendar.hide(); + else + { + var calendarObject = new Calendar(false, null, dateSelected, closeHandler); + calendar = calendarObject; + calendarObject.setRange(1900, 2070); + calendarObject.create(); + } + calendar.setDateFormat(el.dateFormat); + calendar.parseDate(el.value); + calendar.sel = el; + calendar.showAtElement(el); + + Calendar.addEvent(document, "mousedown", checkCalendar); + return false; +} + +function dateSelected(calendarObject, date) +{ + calendarObject.sel.value = date; + calendarObject.callCloseHandler(); +} + +function closeHandler(calendarObject) +{ + calendarObject.hide(); + Calendar.removeEvent(document, "mousedown", checkCalendar); +} + +function checkCalendar(ev) +{ + var el = Calendar.is_ie ? Calendar.getElement(ev) : Calendar.getTargetElement(ev); + + for (; el != null; el = el.parentNode) + if (el == calendar.element || el.tagName == "A") break; + + if (el == null) + { + calendar.callCloseHandler(); + Calendar.stopEvent(ev); + } +} + +function preloadImage(path) +{ + var img = new Image(); + img.src = path; + preloadImages.push(img); +} + +function addCss(path) +{ + path = cssPath + path; + document.write(""); +} + +/**/ +/* Copyright Mihai Bazon, 2002 +* http://students.infoiasi.ro/~mishoo +* +* Version: 0.9.1 +* +* Feel free to use this script under the terms of the GNU General Public +* License, as long as you do not remove or alter this notice. +*/ + +/** The Calendar object constructor. */ +Calendar = function (mondayFirst, dateStr, onSelected, onClose) { + // member variables + this.activeDiv = null; + this.currentDateEl = null; + this.checkDisabled = null; + this.timeout = null; + this.onSelected = onSelected || null; + this.onClose = onClose || null; + this.dragging = false; + this.minYear = 1970; + this.maxYear = 2050; + this.dateFormat = Calendar._TT["DEF_DATE_FORMAT"]; + this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"]; + this.isPopup = true; + this.mondayFirst = mondayFirst; + this.dateStr = dateStr; + // HTML elements + this.table = null; + this.element = null; + this.tbody = null; + this.daynames = null; + // Combo boxes + this.monthsCombo = null; + this.yearsCombo = null; + this.hilitedMonth = null; + this.activeMonth = null; + this.hilitedYear = null; + this.activeYear = null; + + // one-time initializations + if (!Calendar._DN3) { + // table of short day names + var ar = new Array(); + for (var i = 8; i > 0;) { + ar[--i] = Calendar._DN[i].substr(0, 3); + } + Calendar._DN3 = ar; + // table of short month names + ar = new Array(); + for (var i = 12; i > 0;) { + ar[--i] = Calendar._MN[i].substr(0, 3); + } + Calendar._MN3 = ar; + } +}; + +// ** constants + +/// "static", needed for event handlers. +Calendar._C = null; + +/// detect a special case of "web browser" +Calendar.is_ie = ( (navigator.userAgent.toLowerCase().indexOf("msie") != -1) && +(navigator.userAgent.toLowerCase().indexOf("opera") == -1) ); + +// short day names array (initialized at first constructor call) +Calendar._DN3 = null; + +// short month names array (initialized at first constructor call) +Calendar._MN3 = null; + +// BEGIN: UTILITY FUNCTIONS; beware that these might be moved into a separate +// library, at some point. + +Calendar.getAbsolutePos = function(el) { + var r = { x: el.offsetLeft, y: el.offsetTop }; + if (el.offsetParent) { + var tmp = Calendar.getAbsolutePos(el.offsetParent); + r.x += tmp.x; + r.y += tmp.y; + } + return r; +}; + +Calendar.isRelated = function (el, evt) { + var related = evt.relatedTarget; + if (!related) { + var type = evt.type; + if (type == "mouseover") { + related = evt.fromElement; + } else if (type == "mouseout") { + related = evt.toElement; + } + } + while (related) { + if (related == el) { + return true; + } + related = related.parentNode; + } + return false; +}; + +Calendar.removeClass = function(el, className) { + if (!(el && el.className)) { + return; + } + var cls = el.className.split(" "); + var ar = new Array(); + for (var i = cls.length; i > 0;) { + if (cls[--i] != className) { + ar[ar.length] = cls[i]; + } + } + el.className = ar.join(" "); +}; + +Calendar.addClass = function(el, className) { + el.className += " " + className; +}; + +Calendar.getElement = function(ev) { + if (Calendar.is_ie) { + return window.event.srcElement; + } else { + return ev.currentTarget; + } +}; + +Calendar.getTargetElement = function(ev) { + if (Calendar.is_ie) { + return window.event.srcElement; + } else { + return ev.target; + } +}; + +Calendar.stopEvent = function(ev) { + if (Calendar.is_ie) { + window.event.cancelBubble = true; + window.event.returnValue = false; + } else { + ev.preventDefault(); + ev.stopPropagation(); + } +}; + +Calendar.addEvent = function(el, evname, func) { + if (Calendar.is_ie) { + el.attachEvent("on" + evname, func); + } else { + el.addEventListener(evname, func, true); + } +}; + +Calendar.removeEvent = function(el, evname, func) { + if (Calendar.is_ie) { + el.detachEvent("on" + evname, func); + } else { + el.removeEventListener(evname, func, true); + } +}; + +Calendar.createElement = function(type, parent) { + var el = null; + if (document.createElementNS) { + // use the XHTML namespace; IE won't normally get here unless + // _they_ "fix" the DOM2 implementation. + el = document.createElementNS("http://www.w3.org/1999/xhtml", type); + } else { + el = document.createElement(type); + } + if (typeof parent != "undefined") { + parent.appendChild(el); + } + return el; +}; + +// END: UTILITY FUNCTIONS + +// BEGIN: CALENDAR STATIC FUNCTIONS + +/** Internal -- adds a set of events to make some element behave like a button. */ +Calendar._add_evs = function(el) { + with (Calendar) { + addEvent(el, "mouseover", dayMouseOver); + addEvent(el, "mousedown", dayMouseDown); + addEvent(el, "mouseout", dayMouseOut); + if (is_ie) { + addEvent(el, "dblclick", dayMouseDblClick); + el.setAttribute("unselectable", true); + } + } +}; + +Calendar.findMonth = function(el) { + if (typeof el.month != "undefined") { + return el; + } else if (typeof el.parentNode.month != "undefined") { + return el.parentNode; + } + return null; +}; + +Calendar.findYear = function(el) { + if (typeof el.year != "undefined") { + return el; + } else if (typeof el.parentNode.year != "undefined") { + return el.parentNode; + } + return null; +}; + +Calendar.showMonthsCombo = function () { + var cal = Calendar._C; + if (!cal) { + return false; + } + var cal = cal; + var cd = cal.activeDiv; + var mc = cal.monthsCombo; + if (cal.hilitedMonth) { + Calendar.removeClass(cal.hilitedMonth, "hilite"); + } + if (cal.activeMonth) { + Calendar.removeClass(cal.activeMonth, "active"); + } + var mon = cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()]; + Calendar.addClass(mon, "active"); + cal.activeMonth = mon; + mc.style.left = cd.offsetLeft; + mc.style.top = cd.offsetTop + cd.offsetHeight; + mc.style.display = "block"; +}; + +Calendar.showYearsCombo = function (fwd) { + var cal = Calendar._C; + if (!cal) { + return false; + } + var cal = cal; + var cd = cal.activeDiv; + var yc = cal.yearsCombo; + if (cal.hilitedYear) { + Calendar.removeClass(cal.hilitedYear, "hilite"); + } + if (cal.activeYear) { + Calendar.removeClass(cal.activeYear, "active"); + } + cal.activeYear = null; + var Y = cal.date.getFullYear() + (fwd ? 1 : -1); + var yr = yc.firstChild; + var show = false; + for (var i = 12; i > 0; --i) { + if (Y >= cal.minYear && Y <= cal.maxYear) { + yr.firstChild.data = Y; + yr.year = Y; + yr.style.display = "block"; + show = true; + } else { + yr.style.display = "none"; + } + yr = yr.nextSibling; + Y += fwd ? 2 : -2; + } + if (show) { + yc.style.left = cd.offsetLeft; + yc.style.top = cd.offsetTop + cd.offsetHeight; + yc.style.display = "block"; + } +}; + +// event handlers + +Calendar.tableMouseUp = function(ev) { + var cal = Calendar._C; + if (!cal) { + return false; + } + if (cal.timeout) { + clearTimeout(cal.timeout); + } + var el = cal.activeDiv; + if (!el) { + return false; + } + var target = Calendar.getTargetElement(ev); + Calendar.removeClass(el, "active"); + if (target == el || target.parentNode == el) { + Calendar.cellClick(el); + } + var mon = Calendar.findMonth(target); + var date = null; + if (mon) { + date = new Date(cal.date); + if (mon.month != date.getMonth()) { + date.setMonth(mon.month); + cal.setDate(date); + } + } else { + var year = Calendar.findYear(target); + if (year) { + date = new Date(cal.date); + if (year.year != date.getFullYear()) { + date.setFullYear(year.year); + cal.setDate(date); + } + } + } + with (Calendar) { + removeEvent(document, "mouseup", tableMouseUp); + removeEvent(document, "mouseover", tableMouseOver); + removeEvent(document, "mousemove", tableMouseOver); + cal._hideCombos(); + stopEvent(ev); + _C = null; + } +}; + +Calendar.tableMouseOver = function (ev) { + var cal = Calendar._C; + if (!cal) { + return; + } + var el = cal.activeDiv; + var target = Calendar.getTargetElement(ev); + if (target == el || target.parentNode == el) { + Calendar.addClass(el, "hilite active"); + } else { + Calendar.removeClass(el, "active"); + Calendar.removeClass(el, "hilite"); + } + var mon = Calendar.findMonth(target); + if (mon) { + if (mon.month != cal.date.getMonth()) { + if (cal.hilitedMonth) { + Calendar.removeClass(cal.hilitedMonth, "hilite"); + } + Calendar.addClass(mon, "hilite"); + cal.hilitedMonth = mon; + } else if (cal.hilitedMonth) { + Calendar.removeClass(cal.hilitedMonth, "hilite"); + } + } else { + var year = Calendar.findYear(target); + if (year) { + if (year.year != cal.date.getFullYear()) { + if (cal.hilitedYear) { + Calendar.removeClass(cal.hilitedYear, "hilite"); + } + Calendar.addClass(year, "hilite"); + cal.hilitedYear = year; + } else if (cal.hilitedYear) { + Calendar.removeClass(cal.hilitedYear, "hilite"); + } + } + } + Calendar.stopEvent(ev); +}; + +Calendar.tableMouseDown = function (ev) { + if (Calendar.getTargetElement(ev) == Calendar.getElement(ev)) { + Calendar.stopEvent(ev); + } +}; + +Calendar.calDragIt = function (ev) { + var cal = Calendar._C; + if (!(cal && cal.dragging)) { + return false; + } + var posX; + var posY; + if (Calendar.is_ie) { + posY = window.event.clientY + document.body.scrollTop; + posX = window.event.clientX + document.body.scrollLeft; + } else { + posX = ev.pageX; + posY = ev.pageY; + } + cal.hideShowCovered(); + var st = cal.element.style; + st.left = (posX - cal.xOffs) + "px"; + st.top = (posY - cal.yOffs) + "px"; + Calendar.stopEvent(ev); +}; + +Calendar.calDragEnd = function (ev) { + var cal = Calendar._C; + if (!cal) { + return false; + } + cal.dragging = false; + with (Calendar) { + removeEvent(document, "mousemove", calDragIt); + removeEvent(document, "mouseover", stopEvent); + removeEvent(document, "mouseup", calDragEnd); + tableMouseUp(ev); + } + cal.hideShowCovered(); +}; + +Calendar.dayMouseDown = function(ev) { + var el = Calendar.getElement(ev); + if (el.disabled) { + return false; + } + var cal = el.calendar; + cal.activeDiv = el; + Calendar._C = cal; + if (el.navtype != 300) with (Calendar) { + addClass(el, "hilite active"); + addEvent(document, "mouseover", tableMouseOver); + addEvent(document, "mousemove", tableMouseOver); + addEvent(document, "mouseup", tableMouseUp); + } else if (cal.isPopup) { + cal._dragStart(ev); + } + Calendar.stopEvent(ev); + if (el.navtype == -1 || el.navtype == 1) { + cal.timeout = setTimeout("Calendar.showMonthsCombo()", 250); + } else if (el.navtype == -2 || el.navtype == 2) { + cal.timeout = setTimeout((el.navtype > 0) ? "Calendar.showYearsCombo(true)" : "Calendar.showYearsCombo(false)", 250); + } else { + cal.timeout = null; + } +}; + +Calendar.dayMouseDblClick = function(ev) { + Calendar.cellClick(Calendar.getElement(ev)); + if (Calendar.is_ie) { + document.selection.empty(); + } +}; + +Calendar.dayMouseOver = function(ev) { + var el = Calendar.getElement(ev); + if (Calendar.isRelated(el, ev) || Calendar._C || el.disabled) { + return false; + } + if (el.ttip) { + if (el.ttip.substr(0, 1) == "_") { + var date = null; + with (el.calendar.date) { + date = new Date(getFullYear(), getMonth(), el.caldate); + } + el.ttip = date.print(el.calendar.ttDateFormat) + el.ttip.substr(1); + } + el.calendar.tooltips.firstChild.data = el.ttip; + } + if (el.navtype != 300) { + Calendar.addClass(el, "hilite"); + } + Calendar.stopEvent(ev); +}; + +Calendar.dayMouseOut = function(ev) { + with (Calendar) { + var el = getElement(ev); + if (isRelated(el, ev) || _C || el.disabled) { + return false; + } + removeClass(el, "hilite"); + el.calendar.tooltips.firstChild.data = _TT["SEL_DATE"]; + stopEvent(ev); + } +}; + +/** +* A generic "click" handler :) handles all types of buttons defined in this +* calendar. +*/ +Calendar.cellClick = function(el) { + var cal = el.calendar; + var closing = false; + var newdate = false; + var date = null; + if (typeof el.navtype == "undefined") { + Calendar.removeClass(cal.currentDateEl, "selected"); + Calendar.addClass(el, "selected"); + closing = (cal.currentDateEl == el); + if (!closing) { + cal.currentDateEl = el; + } + cal.date.setDate(el.caldate); + date = cal.date; + newdate = true; + } else { + if (el.navtype == 200) { + Calendar.removeClass(el, "hilite"); + cal.callCloseHandler(); + return; + } + date = (el.navtype == 0) ? new Date() : new Date(cal.date); + var year = date.getFullYear(); + var mon = date.getMonth(); + var setMonth = function (mon) { + var day = date.getDate(); + var max = date.getMonthDays(); + if (day > max) { + date.setDate(max); + } + date.setMonth(mon); + }; + switch (el.navtype) { + case -2: + if (year > cal.minYear) { + date.setFullYear(year - 1); + } + break; + case -1: + if (mon > 0) { + setMonth(mon - 1); + } else if (year-- > cal.minYear) { + date.setFullYear(year); + setMonth(11); + } + break; + case 1: + if (mon < 11) { + setMonth(mon + 1); + } else if (year < cal.maxYear) { + date.setFullYear(year + 1); + setMonth(0); + } + break; + case 2: + if (year < cal.maxYear) { + date.setFullYear(year + 1); + } + break; + case 100: + cal.setMondayFirst(!cal.mondayFirst); + return; + } + if (!date.equalsTo(cal.date)) { + cal.setDate(date); + newdate = el.navtype == 0; + } + } + if (newdate) { + cal.callHandler(); + } + if (closing) { + Calendar.removeClass(el, "hilite"); + cal.callCloseHandler(); + } +}; + +// END: CALENDAR STATIC FUNCTIONS + +// BEGIN: CALENDAR OBJECT FUNCTIONS + +/** +* This function creates the calendar inside the given parent. If _par is +* null than it creates a popup calendar inside the BODY element. If _par is +* an element, be it BODY, then it creates a non-popup calendar (still +* hidden). Some properties need to be set before calling this function. +*/ +Calendar.prototype.create = function (_par) { + var parent = null; + if (! _par) { + // default parent is the document body, in which case we create + // a popup calendar. + parent = document.getElementsByTagName("body")[0]; + this.isPopup = true; + } else { + parent = _par; + this.isPopup = false; + } + this.date = this.dateStr ? new Date(this.dateStr) : new Date(); + + var table = Calendar.createElement("table"); + this.table = table; + table.cellSpacing = 0; + table.cellPadding = 0; + table.style.width = 'auto'; + table.calendar = this; + Calendar.addEvent(table, "mousedown", Calendar.tableMouseDown); + + var div = Calendar.createElement("div"); + this.element = div; + div.className = "calendar"; + if (this.isPopup) { + div.style.position = "absolute"; + div.style.display = "none"; + } + div.appendChild(table); + + var thead = Calendar.createElement("thead", table); + var cell = null; + var row = null; + + var cal = this; + var hh = function (text, cs, navtype) { + cell = Calendar.createElement("td", row); + cell.colSpan = cs; + cell.className = "calendar_button"; + Calendar._add_evs(cell); + cell.calendar = cal; + cell.navtype = navtype; + if (text.substr(0, 1) != "&") { + cell.appendChild(document.createTextNode(text)); + } + else { + // FIXME: dirty hack for entities + cell.innerHTML = text; + } + return cell; + }; + + row = Calendar.createElement("tr", thead); + row.className = "headrow"; + + hh("-", 1, 100).ttip = Calendar._TT["TOGGLE"]; + this.title = hh("", this.isPopup ? 5 : 6, 300); + this.title.className = "title"; + if (this.isPopup) { + this.title.ttip = Calendar._TT["DRAG_TO_MOVE"]; + this.title.style.cursor = "move"; + hh("X", 1, 200).ttip = Calendar._TT["CLOSE"]; + } + + row = Calendar.createElement("tr", thead); + row.className = "headrow"; + + hh("«", 1, -2).ttip = Calendar._TT["PREV_YEAR"]; + hh("‹", 1, -1).ttip = Calendar._TT["PREV_MONTH"]; + hh(Calendar._TT["TODAY"], 3, 0).ttip = Calendar._TT["GO_TODAY"]; + hh("›", 1, 1).ttip = Calendar._TT["NEXT_MONTH"]; + hh("»", 1, 2).ttip = Calendar._TT["NEXT_YEAR"]; + + // day names + row = Calendar.createElement("tr", thead); + row.className = "daynames"; + this.daynames = row; + for (var i = 7; i > 0; --i) { + cell = Calendar.createElement("td", row); + cell.appendChild(document.createTextNode("")); + if (!i) { + cell.navtype = 100; + cell.calendar = this; + Calendar._add_evs(cell); + } + } + this._displayWeekdays(); + + var tbody = Calendar.createElement("tbody", table); + this.tbody = tbody; + + for (i = 6; i > 0; --i) { + row = Calendar.createElement("tr", tbody); + for (var j = 7; j > 0; --j) { + cell = Calendar.createElement("td", row); + cell.appendChild(document.createTextNode("")); + cell.calendar = this; + Calendar._add_evs(cell); + } + } + + var tfoot = Calendar.createElement("tfoot", table); + + row = Calendar.createElement("tr", tfoot); + row.className = "footrow"; + + cell = hh(Calendar._TT["SEL_DATE"], 7, 300); + cell.className = "title"; + if (this.isPopup) { + cell.ttip = Calendar._TT["DRAG_TO_MOVE"]; + cell.style.cursor = "move"; + } + this.tooltips = cell; + + div = Calendar.createElement("div", this.element); + this.monthsCombo = div; + div.className = "combo"; + for (i = 0; i < Calendar._MN.length; ++i) { + var mn = Calendar.createElement("div"); + mn.className = "label"; + mn.month = i; + mn.appendChild(document.createTextNode(Calendar._MN3[i])); + div.appendChild(mn); + } + + div = Calendar.createElement("div", this.element); + this.yearsCombo = div; + div.className = "combo"; + for (i = 12; i > 0; --i) { + var yr = Calendar.createElement("div"); + yr.className = "label"; + yr.appendChild(document.createTextNode("")); + div.appendChild(yr); + } + + this._init(this.mondayFirst, this.date); + parent.appendChild(this.element); +}; + +/** +* (RE)Initializes the calendar to the given date and style (if mondayFirst is +* true it makes Monday the first day of week, otherwise the weeks start on +* Sunday. +*/ +Calendar.prototype._init = function (mondayFirst, date) { + var today = new Date(); + var year = date.getFullYear(); + if (year < this.minYear) { + year = this.minYear; + date.setFullYear(year); + } else if (year > this.maxYear) { + year = this.maxYear; + date.setFullYear(year); + } + this.mondayFirst = mondayFirst; + this.date = new Date(date); + var month = date.getMonth(); + var mday = date.getDate(); + var no_days = date.getMonthDays(); + date.setDate(1); + var wday = date.getDay(); + var MON = mondayFirst ? 1 : 0; + var SAT = mondayFirst ? 5 : 6; + var SUN = mondayFirst ? 6 : 0; + if (mondayFirst) { + wday = (wday > 0) ? (wday - 1) : 6; + } + var iday = 1; + var row = this.tbody.firstChild; + var MN = Calendar._MN3[month]; + var hasToday = ((today.getFullYear() == year) && (today.getMonth() == month)); + var todayDate = today.getDate(); + for (var i = 0; i < 6; ++i) { + if (iday > no_days) { + row.className = "emptyrow"; + row = row.nextSibling; + continue; + } + var cell = row.firstChild; + row.className = "daysrow"; + for (var j = 0; j < 7; ++j) { + if ((!i && j < wday) || iday > no_days) { + cell.className = "emptycell"; + cell = cell.nextSibling; + continue; + } + cell.firstChild.data = iday; + cell.className = "day"; + cell.disabled = false; + if (typeof this.checkDisabled == "function") { + date.setDate(iday); + if (this.checkDisabled(date)) { + cell.className += " disabled"; + cell.disabled = true; + } + } + if (!cell.disabled) { + cell.caldate = iday; + cell.ttip = "_"; + if (iday == mday) { + cell.className += " selected"; + this.currentDateEl = cell; + } + if (hasToday && (iday == todayDate)) { + cell.className += " today"; + cell.ttip += Calendar._TT["PART_TODAY"]; + } + if (wday == SAT || wday == SUN) { + cell.className += " weekend"; + } + } + ++iday; + ((++wday) ^ 7) || (wday = 0); + cell = cell.nextSibling; + } + row = row.nextSibling; + } + this.title.firstChild.data = Calendar._MN[month] + ", " + year; + // PROFILE + // this.tooltips.firstChild.data = "Generated in " + ((new Date()) - today) + " ms"; +}; + +/** +* Calls _init function above for going to a certain date (but only if the +* date is different than the currently selected one). +*/ +Calendar.prototype.setDate = function (date) { + if (!date.equalsTo(this.date)) { + this._init(this.mondayFirst, date); + } +}; + +/** Modifies the "mondayFirst" parameter (EU/US style). */ +Calendar.prototype.setMondayFirst = function (mondayFirst) { + this._init(mondayFirst, this.date); + this._displayWeekdays(); +}; + +/** +* Allows customization of what dates are enabled. The "unaryFunction" +* parameter must be a function object that receives the date (as a JS Date +* object) and returns a boolean value. If the returned value is true then +* the passed date will be marked as disabled. +*/ +Calendar.prototype.setDisabledHandler = function (unaryFunction) { + this.checkDisabled = unaryFunction; +}; + +/** Customization of allowed year range for the calendar. */ +Calendar.prototype.setRange = function (a, z) { + this.minYear = a; + this.maxYear = z; +}; + +/** Calls the first user handler (selectedHandler). */ +Calendar.prototype.callHandler = function () { + if (this.onSelected) { + this.onSelected(this, this.date.print(this.dateFormat)); + } +}; + +/** Calls the second user handler (closeHandler). */ +Calendar.prototype.callCloseHandler = function () { + if (this.onClose) { + this.onClose(this); + } + this.hideShowCovered(); +}; + +/** Removes the calendar object from the DOM tree and destroys it. */ +Calendar.prototype.destroy = function () { + var el = this.element.parentNode; + el.removeChild(this.element); + Calendar._C = null; + delete el; +}; + +/** +* Moves the calendar element to a different section in the DOM tree (changes +* its parent). +*/ +Calendar.prototype.reparent = function (new_parent) { + var el = this.element; + el.parentNode.removeChild(el); + new_parent.appendChild(el); +}; + +/** Shows the calendar. */ +Calendar.prototype.show = function () { + this.element.style.display = "block"; + this.hideShowCovered(); +}; + +/** +* Hides the calendar. Also removes any "hilite" from the class of any TD +* element. +*/ +Calendar.prototype.hide = function () { + var trs = this.table.getElementsByTagName("td"); + for (var i = trs.length; i > 0; ) { + Calendar.removeClass(trs[--i], "hilite"); + } + this.element.style.display = "none"; +}; + +/** +* Shows the calendar at a given absolute position (beware that, depending on +* the calendar element style -- position property -- this might be relative +* to the parent's containing rectangle). +*/ +Calendar.prototype.showAt = function (x, y) { + var s = this.element.style; + s.left = x + "px"; + s.top = y + "px"; + this.show(); +}; + +/** Shows the calendar near a given element. */ +Calendar.prototype.showAtElement = function (el) { + var p = Calendar.getAbsolutePos(el); + + var cw = 190; + var ch = -200; + + if (Calendar.is_ie) + { + var posX = getWndX(el) + el.offsetWidth + 18; if (posX + ch > document.body.scrollLeft + document.body.offsetWidth) posX = document.body.scrollLeft + document.body.offsetWidth - ch + var posY = p.y + el.offsetHeight; if (posY + cw > document.body.scrollTop + document.body.offsetHeight) posY = getWndY(el) - cw; + //document.body.scrollTop + document.body.offsetHeight - cw - el.offsetHeight + this.showAt(posX, posY); + } + else + { + // for other browsers types + this.showAt(getWndX(el) + el.offsetWidth + 30, p.y + el.offsetHeight-200); + } +}; + +function getWndC(object, c) +{ + pos = 0; + while (object != null) + { + pos += (c == "y") ? object.offsetTop : object.offsetLeft; + object = object.offsetParent; + } + return pos; +} + +function getWndX(object) {return getWndC(object, "x")} +function getWndY(object) {return getWndC(object, "y")} + + +/** Customizes the date format. */ +Calendar.prototype.setDateFormat = function (str) { + this.dateFormat = str; +}; + +/** Customizes the tooltip date format. */ +Calendar.prototype.setTtDateFormat = function (str) { + this.ttDateFormat = str; +}; + +/** +* Tries to identify the date represented in a string. If successful it also +* calls this.setDate which moves the calendar to the given date. +*/ +Calendar.prototype.parseDate = function (str, fmt) { + var y = 0; + var m = -1; + var d = 0; + var a = str.split(/\W+/); + if (!fmt) { + fmt = this.dateFormat; + } + var b = fmt.split(/\W+/); + var i = 0, j = 0; + for (i = 0; i < a.length; ++i) { + if (b[i] == "D" || b[i] == "DD") { + continue; + } + if (b[i] == "j" || b[i] == "d") { + d = a[i]; + } + if (b[i] == "n" || b[i] == "m") { + m = a[i]-1; + } + // if (b[i] == "y") { + // y = a[i]; + // } + if ((b[i] == "Y")||(b[i] == "y")) { + // if (b[i] == "yy") { + if (a[i].length == 4) { + y = a[i]; + } + else { + if (parseInt(a[i]) < 70) { + y = parseInt(a[i]) + 2000; + } + else { + y = parseInt(a[i]) + 1900; + } + } + } + if (b[i] == "M" || b[i] == "MM") { + for (j = 0; j < 12; ++j) { + if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) { m = j; break; } + } + } + } + if (y != 0 && m != -1 && d != 0) { + this.setDate(new Date(y, m, d)); + return; + } + y = 0; m = -1; d = 0; + for (i = 0; i < a.length; ++i) { + if (a[i].search(/[a-zA-Z]+/) != -1) { + var t = -1; + for (j = 0; j < 12; ++j) { + if (Calendar._MN[j].substr(0, a[i].length).toLowerCase() == a[i].toLowerCase()) { t = j; break; } + } + if (t != -1) { + if (m != -1) { + d = m+1; + } + m = t; + } + } else if (parseInt(a[i]) <= 12 && m == -1) { + m = a[i]-1; + } else if (parseInt(a[i]) > 31 && y == 0) { + y = a[i]; + } else if (d == 0) { + d = a[i]; + } + } + if (y == 0) { + var today = new Date(); + y = today.getFullYear(); + } + if (m != -1 && d != 0) { + this.setDate(new Date(y, m, d)); + } +}; + +Calendar.prototype.hideShowCovered = function () { + var tags = new Array("applet", "iframe", "select"); + var el = this.element; + + var p = Calendar.getAbsolutePos(el); + var EX1 = p.x; + var EX2 = el.offsetWidth + EX1; + var EY1 = p.y; + var EY2 = el.offsetHeight + EY1; + + for (var k = tags.length; k > 0; ) { + var ar = document.getElementsByTagName(tags[--k]); + var cc = null; + + for (var i = ar.length; i > 0;) { + cc = ar[--i]; + + p = Calendar.getAbsolutePos(cc); + var CX1 = p.x; + var CX2 = cc.offsetWidth + CX1; + var CY1 = p.y; + var CY2 = cc.offsetHeight + CY1; + + if ((CX1 > EX2) || (CX2 < EX1) || (CY1 > EY2) || (CY2 < EY1)) { + cc.style.visibility = "visible"; + } else { + cc.style.visibility = "hidden"; + } + } + } +}; + +/** Internal function; it displays the bar with the names of the weekday. */ +Calendar.prototype._displayWeekdays = function () { + var MON = this.mondayFirst ? 0 : 1; + var SUN = this.mondayFirst ? 6 : 0; + var SAT = this.mondayFirst ? 5 : 6; + var cell = this.daynames.firstChild; + for (var i = 0; i < 7; ++i) { + cell.className = "day name"; + if (!i) { + cell.ttip = this.mondayFirst ? Calendar._TT["SUN_FIRST"] : Calendar._TT["MON_FIRST"]; + cell.navtype = 100; + cell.calendar = this; + Calendar._add_evs(cell); + } + if (i == SUN || i == SAT) { + Calendar.addClass(cell, "weekend"); + } + cell.firstChild.data = Calendar._DN3[i + 1 - MON]; + cell = cell.nextSibling; + } +}; + +/** Internal function. Hides all combo boxes that might be displayed. */ +Calendar.prototype._hideCombos = function () { + this.monthsCombo.style.display = "none"; + this.yearsCombo.style.display = "none"; +}; + +/** Internal function. Starts dragging the element. */ +Calendar.prototype._dragStart = function (ev) { + if (this.dragging) { + return; + } + this.dragging = true; + var posX; + var posY; + if (Calendar.is_ie) { + posY = window.event.clientY + document.body.scrollTop; + posX = window.event.clientX + document.body.scrollLeft; + } else { + posY = ev.clientY + window.scrollY; + posX = ev.clientX + window.scrollX; + } + var st = this.element.style; + this.xOffs = posX - parseInt(st.left); + this.yOffs = posY - parseInt(st.top); + with (Calendar) { + addEvent(document, "mousemove", calDragIt); + addEvent(document, "mouseover", stopEvent); + addEvent(document, "mouseup", calDragEnd); + } +}; + +// BEGIN: DATE OBJECT PATCHES + +/** Adds the number of days array to the Date object. */ +Date._MD = new Array(31,28,31,30,31,30,31,31,30,31,30,31); + +/** Returns the number of days in the current month */ +Date.prototype.getMonthDays = function() { + var year = this.getFullYear(); + var month = this.getMonth(); + if (((0 == (year%4)) && ( (0 != (year%100)) || (0 == (year%400)))) && month == 1) { + return 29; + } else { + return Date._MD[month]; + } +}; + +/** Checks dates equality (ignores time) */ +Date.prototype.equalsTo = function(date) { + return ((this.getFullYear() == date.getFullYear()) && + (this.getMonth() == date.getMonth()) && + (this.getDate() == date.getDate())); +}; + +/** Prints the date in a string according to the given format. */ +Date.prototype.print = function (frm) { + var str = new String(frm); + var m = this.getMonth(); + var d = this.getDate(); + var y = this.getFullYear(); + var w = this.getDay(); + var s = new Array(); + s["j"] = d; + s["d"] = (d < 10) ? ("0" + d) : d; + s["n"] = 1+m; + s["m"] = (m < 9) ? ("0" + (1+m)) : (1+m); + s["Y"] = y; + s["y"] = new String(y).substr(2, 2); + with (Calendar) { + s["D"] = _DN3[w]; + s["DD"] = _DN[w]; + s["M"] = _MN3[m]; + s["MM"] = _MN[m]; + } + var re = /(.*)(\W|^)(j|d|n|m|y|Y|MM|M|DD|D)(\W|$)(.*)/; + while (re.exec(str) != null) { + str = RegExp.$1 + RegExp.$2 + s[RegExp.$3] + RegExp.$4 + RegExp.$5; + } + return str; +}; + +// END: DATE OBJECT PATCHES +/**/ +/**/ +Calendar._DN = new Array +("Sunday", +"Monday", +"Tuesday", +"Wednesday", +"Thursday", +"Friday", +"Saturday", +"Sunday"); +Calendar._MN = new Array +("January", +"February", +"March", +"April", +"May", +"June", +"July", +"August", +"September", +"October", +"November", +"December"); + +// tooltips +Calendar._TT = {}; +Calendar._TT["TOGGLE"] = "Toggle first day of week"; +Calendar._TT["PREV_YEAR"] = "Prev. year (hold for menu)"; +Calendar._TT["PREV_MONTH"] = "Prev. month (hold for menu)"; +Calendar._TT["GO_TODAY"] = "Go Today"; +Calendar._TT["NEXT_MONTH"] = "Next month (hold for menu)"; +Calendar._TT["NEXT_YEAR"] = "Next year (hold for menu)"; +Calendar._TT["SEL_DATE"] = "Select date"; +Calendar._TT["DRAG_TO_MOVE"] = "Drag to move"; +Calendar._TT["PART_TODAY"] = " (today)"; +Calendar._TT["MON_FIRST"] = "Display Monday first"; +Calendar._TT["SUN_FIRST"] = "Display Sunday first"; +Calendar._TT["CLOSE"] = "Close"; +Calendar._TT["TODAY"] = "Today"; + +// date formats +Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd"; +Calendar._TT["TT_DATE_FORMAT"] = "D, M d"; +/**/ +/**/ +//document.write("") +/* The main calendar widget. DIV containing a table. */ + Index: branches/1.0.x/elements/tracking.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/tracking.elm.tpl (revision 0) +++ branches/1.0.x/elements/tracking.elm.tpl (revision 13321) @@ -0,0 +1,21 @@ + + + + + + + + + + + + + \ No newline at end of file Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate.tpl (revision 13321) @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + "> +
+

+
+ + + + + +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+

+
+ + + + + + + +
+

+ + + + + + + +

+ + + + + +
+
+ +
+ + + + + + + + + " /> + +
+
+
+
+
+ + + + + \ No newline at end of file Index: branches/1.0.x/in-commerce/elements/content_boxes/featured_products.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/elements/content_boxes/featured_products.elm.tpl (revision 0) +++ branches/1.0.x/in-commerce/elements/content_boxes/featured_products.elm.tpl (revision 13321) @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + +
+ ">...
+
+
+ + +
+ \ No newline at end of file Index: branches/1.0.x/designs/general.tpl =================================================================== diff -u -N --- branches/1.0.x/designs/general.tpl (revision 0) +++ branches/1.0.x/designs/general.tpl (revision 13321) @@ -0,0 +1,69 @@ + + + + + + + + + +
+
+ +
+
+ +
+
+
+ + + +
+
+ +
+
+ + + + + + + + +
  • + "> +
  • +
    + +
      + +
    + + + +
    +
    +
    + + + + + + + \ No newline at end of file Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payment_type.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payment_type.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_payment_type.tpl (revision 13321) @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + +
    + +
    +
    +
    + + + + + + + + + + + + + + + + + +
    + : +


    + +
    +
    + +
    + + + + + + + " /> + +
    +
    +
    +
    + + + + + \ No newline at end of file Index: branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics_visits_list.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics_visits_list.tpl (revision 0) +++ branches/1.0.x/in-commerce/my_account/affiliate/affiliate_statistics_visits_list.tpl (revision 13321) @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + +
    + +
    +
    +
    + + + + + + + + + + + () + + + + + + + + + + + + + + + + + + +
    + + +
    +
    + + + + + Index: branches/1.0.x/in-commerce/elements/content_boxes/related_products.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/in-commerce/elements/content_boxes/related_products.elm.tpl (revision 0) +++ branches/1.0.x/in-commerce/elements/content_boxes/related_products.elm.tpl (revision 13321) @@ -0,0 +1,19 @@ + + + + + + () + + + + + + + + +
    + + +
    + \ No newline at end of file Index: branches/1.0.x/thankyou.tpl =================================================================== diff -u -N --- branches/1.0.x/thankyou.tpl (revision 0) +++ branches/1.0.x/thankyou.tpl (revision 13321) @@ -0,0 +1,28 @@ + + + + + + + + + + + + + +

    + + +
    + +
    + + + + + \ No newline at end of file Index: branches/1.0.x/inc/captcha_image.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/inc/captcha_image.elm.tpl (revision 0) +++ branches/1.0.x/inc/captcha_image.elm.tpl (revision 13321) @@ -0,0 +1 @@ + \ No newline at end of file Index: branches/1.0.x/elements/header.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/header.elm.tpl (revision 0) +++ branches/1.0.x/elements/header.elm.tpl (revision 13321) @@ -0,0 +1,133 @@ + + + + + + +
    + ">
    +
    + + + + + + + + + + + + + + + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + +
    + + + + + + + + + + + + +
    + : + +
    + + +
    +
    + : + +
    + + +
    +
    + +
    +
    +
    + + + + + + +
    + "> + + +
    +
    + + +
    +
    +
    + + + + "> + + + + "> + + +
    + + ">
    + + + ">
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    Index: branches/1.0.x/inc/nlsmenuext_dyn.js =================================================================== diff -u -N --- branches/1.0.x/inc/nlsmenuext_dyn.js (revision 0) +++ branches/1.0.x/inc/nlsmenuext_dyn.js (revision 13321) @@ -0,0 +1,153 @@ +/** +* nlsmenuext_dyn.js v.1.0 +* Copyright 2005-2007, addobject.com. All Rights Reserved +* Author Jack Hermanto, www.addobject.com +*/ +NLSMENU.setItemVisible=function(key, v) { + var it=this.getItemById(key); + var oIt=NlsMenu.$GE(it.intKey); + if(oIt) { + if (this.orient=="V") { oIt=oIt.parentNode; } + oIt.style.display=(v?"":"none"); + } + nlsMenuMgr[this.mgrId].hideMenus(); + var it=this.getItemById(key); + it.visible=v; +}; + +NLSMENU.setItemState=function(itId, s) { + var it=this.items[itId], lit=null; + if(it.group) { + for (var l in this.items) { + lit=this.items[l]; + if(lit.group==it.group && lit.state==2) { + setMnStyle(NlsMenu.$GE(lit.intKey), (lit.enable ? "N" : "D"), NlsMenu.getPrf(lit, this)); + setMnIcon(this, lit, "N"); + lit.state=1; + } + } + } + var oIt=NlsMenu.$GE(itId); + setMnStyle(oIt, (it.enable ? (s==1?"N":"S") : "D"), NlsMenu.getPrf(it, this)); + setMnIcon(this, it, "N"); + it.state=s; +}; + +NLSMENU.setSelection=function(itId, s) { + var prf=""; + var it=this.items[this.rt.lastSel]; + if(it){ + prf=it.stlprf; if(prf=="")prf=this.stlprf; + setMnStyle(NlsMenu.$GE(it.intKey), (it.enable ?"N":"D"), prf); + setMnIcon(this, it, "N"); + it.selected=false; + } + + it=this.items[itId]; + prf=it.stlprf; if(prf=="")prf=this.stlprf; + setMnStyle(NlsMenu.$GE(itId), (it.enable ?"S":"D"), prf); + setMnIcon(this, it, "O"); + this.rt.lastSel=itId; + it.selected=true; +}; + +NlsMnMgr.savePath=function(vl) { + NlsMenuManager.$setCookie(this.mgrId+"_path", String(vl)); +}; + +NlsMnMgr.loadPath=function() { + var p=NlsMenuManager.$getCookie(this.mgrId+"_path"); + if(p && p!="") { + p=p.split("_"); + this.selectPath(p[0], p[1]); + } + +} + +NlsMnMgr.selectPath=function(mId, id) { + this.unselectPath(); + var mn=nlsMenu[mId], it=mn.items[mId+"_"+id],prf="",pr=""; + while(mn && it) { + prf=it.stlprf; if(prf=="")prf=mn.stlprf; + setMnStyle(NlsMenu.$GE(it.intKey), (it.enable ?"S":"D"), prf); + setMnIcon(mn, it, "O"); + mn.rt.lastSel=it.intKey; + it.selected=true; + + pr=mn.prIt; + if(pr) { + mn=nlsMenu[pr.split("_")[0]]; + it=mn.items[pr]; + } else {mn=null; it=null} + } +}; + +NlsMnMgr.unselectPath=function() { + var mgr=this,prf="",it=null, mns=[mgr.menubar]; + for(var i in mgr.menus) { mns[mns.length]=mgr.menus[i]; } + for(var i=0;i=ovr && i1?unescape(c[1]):""); } + } + } + return ""; +}; + +NlsMenuManager.$removeCookie=function(key) { + NlsMenuManager.$setCookie(key, "-1", "Fri, 31 Dec 1999 23:59:59 GMT;"); +} + + +