From e4b3d93aa359ab2e77dc13a6d889b6792bb929d0 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 27 Dec 2009 13:39:55 +0000 Subject: [PATCH] Fix: iphone template should not be linked with theme New: update iui --- htdocs/includes/iphone/iui/iui-favicon.png | Bin 0 -> 1250 bytes htdocs/includes/iphone/iui/iui.css | 59 +-- htdocs/includes/iphone/iui/iui.js | 275 ++++++++--- htdocs/includes/iphone/iui/iuix.css | 2 +- htdocs/includes/iphone/iui/iuix.js | 2 +- .../includes/iphone/iui/js/iui-event-log.js | 62 +++ .../iphone/iui/js/iui-theme-switcher.js | 42 ++ htdocs/includes/iphone/releaseNotes.txt | 22 +- htdocs/lib/security.lib.php | 4 +- .../phones/iphone/default/default.css.php | 449 ------------------ .../phones/iphone/default/img/backButton.png | Bin 816 -> 0 bytes .../phones/iphone/default/img/blueButton.png | Bin 517 -> 0 bytes .../phones/iphone/default/img/cancel.png | Bin 362 -> 0 bytes .../phones/iphone/default/img/grayButton.png | Bin 943 -> 0 bytes .../default/img/iui-logo-touch-icon.png | Bin 2887 -> 0 bytes .../phones/iphone/default/img/listArrow.png | Bin 259 -> 0 bytes .../iphone/default/img/listArrowSel.png | Bin 308 -> 0 bytes .../phones/iphone/default/img/listGroup.png | Bin 2867 -> 0 bytes .../phones/iphone/default/img/loading.gif | Bin 1435 -> 0 bytes .../phones/iphone/default/img/pinstripes.png | Bin 117 -> 0 bytes .../phones/iphone/default/img/redButton.png | Bin 947 -> 0 bytes .../phones/iphone/default/img/selection.png | Bin 159 -> 0 bytes .../theme/phones/iphone/default/img/thumb.png | Bin 2835 -> 0 bytes .../phones/iphone/default/img/toggle.png | Bin 2815 -> 0 bytes .../phones/iphone/default/img/toggleOn.png | Bin 163 -> 0 bytes .../phones/iphone/default/img/toolButton.png | Bin 531 -> 0 bytes .../phones/iphone/default/img/toolbar.png | Bin 171 -> 0 bytes .../phones/iphone/default/img/whiteButton.png | Bin 978 -> 0 bytes .../iphone/{default => templates}/index.php | 0 .../iphone/{default => }/templates/login.tpl | 12 +- .../iphone/theme/default/default.css.php | 160 +++++++ .../iphone/theme/default/img/back-img.png | Bin 0 -> 504 bytes .../iphone/theme/default/img}/backButton.png | Bin .../theme/default/img/backButtonBack.png | Bin 0 -> 205 bytes .../theme/default/img/backButtonBrdr.png | Bin 0 -> 977 bytes .../iphone/theme/default/img}/blueButton.png | Bin .../iphone/theme/default/img}/cancel.png | Bin .../iphone/theme/default/img}/grayButton.png | Bin .../iphone/theme/default/img}/listArrow.png | Bin .../theme/default/img}/listArrowSel.png | Bin .../iphone/theme/default/img}/listGroup.png | Bin .../iphone/theme/default/img}/loading.gif | Bin .../iphone/theme/default/img}/pinstripes.png | Bin .../iphone/theme/default/img}/redButton.png | Bin .../iphone/theme/default/img}/selection.png | Bin .../iphone/theme/default/img}/thumb.png | Bin .../iphone/theme/default/img/title-img.png | Bin 0 -> 822 bytes .../iphone/theme/default/img}/toggle.png | Bin .../iphone/theme/default/img}/toggleOn.png | Bin .../iphone/theme/default/img}/toolButton.png | Bin .../iphone/theme/default/img}/toolbar.png | Bin .../iphone/theme/default/img}/whiteButton.png | Bin .../templates => theme/default}/index.php | 0 .../others/{default => }/templates/index.php | 0 .../others/{default => }/templates/login.tpl | 0 55 files changed, 535 insertions(+), 554 deletions(-) create mode 100644 htdocs/includes/iphone/iui/iui-favicon.png create mode 100644 htdocs/includes/iphone/iui/js/iui-event-log.js create mode 100644 htdocs/includes/iphone/iui/js/iui-theme-switcher.js delete mode 100644 htdocs/theme/phones/iphone/default/default.css.php delete mode 100644 htdocs/theme/phones/iphone/default/img/backButton.png delete mode 100644 htdocs/theme/phones/iphone/default/img/blueButton.png delete mode 100644 htdocs/theme/phones/iphone/default/img/cancel.png delete mode 100644 htdocs/theme/phones/iphone/default/img/grayButton.png delete mode 100644 htdocs/theme/phones/iphone/default/img/iui-logo-touch-icon.png delete mode 100644 htdocs/theme/phones/iphone/default/img/listArrow.png delete mode 100644 htdocs/theme/phones/iphone/default/img/listArrowSel.png delete mode 100644 htdocs/theme/phones/iphone/default/img/listGroup.png delete mode 100644 htdocs/theme/phones/iphone/default/img/loading.gif delete mode 100644 htdocs/theme/phones/iphone/default/img/pinstripes.png delete mode 100644 htdocs/theme/phones/iphone/default/img/redButton.png delete mode 100644 htdocs/theme/phones/iphone/default/img/selection.png delete mode 100644 htdocs/theme/phones/iphone/default/img/thumb.png delete mode 100644 htdocs/theme/phones/iphone/default/img/toggle.png delete mode 100644 htdocs/theme/phones/iphone/default/img/toggleOn.png delete mode 100644 htdocs/theme/phones/iphone/default/img/toolButton.png delete mode 100644 htdocs/theme/phones/iphone/default/img/toolbar.png delete mode 100644 htdocs/theme/phones/iphone/default/img/whiteButton.png rename htdocs/theme/phones/iphone/{default => templates}/index.php (100%) rename htdocs/theme/phones/iphone/{default => }/templates/login.tpl (81%) create mode 100644 htdocs/theme/phones/iphone/theme/default/default.css.php create mode 100644 htdocs/theme/phones/iphone/theme/default/img/back-img.png rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/backButton.png (100%) create mode 100644 htdocs/theme/phones/iphone/theme/default/img/backButtonBack.png create mode 100644 htdocs/theme/phones/iphone/theme/default/img/backButtonBrdr.png rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/blueButton.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/cancel.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/grayButton.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/listArrow.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/listArrowSel.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/listGroup.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/loading.gif (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/pinstripes.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/redButton.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/selection.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/thumb.png (100%) create mode 100644 htdocs/theme/phones/iphone/theme/default/img/title-img.png rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/toggle.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/toggleOn.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/toolButton.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/toolbar.png (100%) rename htdocs/{includes/iphone/iui => theme/phones/iphone/theme/default/img}/whiteButton.png (100%) rename htdocs/theme/phones/iphone/{default/templates => theme/default}/index.php (100%) rename htdocs/theme/phones/others/{default => }/templates/index.php (100%) rename htdocs/theme/phones/others/{default => }/templates/login.tpl (100%) diff --git a/htdocs/includes/iphone/iui/iui-favicon.png b/htdocs/includes/iphone/iui/iui-favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..2f9586564a1b01f31e7377bbda00f6b7694e780b GIT binary patch literal 1250 zcmV<81ReW{P)z15kcHiAjxm1p&?v`Z7nJG!J zQ9~4)G=Kate!Bj$QqIRRWvw9lxJL+zAYBUV2(qADiMJ0QIc@9p*!4;KuZ~?C|4W?hh@s(ed|rm})Ht5XA$FFN&=a_p~d$B9-GK4X{=YdZF0-;ZeCZ0x3C zF@l&D@g6{gFd;1Q-D{C`P`q!ucbOXIf+XKhBFop;*de?wc+6J?(mV$7$bMRr5)5{8 za4xhE*pI_0Fd+r-YB5srcpZTX0b4XU5c&xVcRNl9Iqj;ALH_Zu*t7U zu2Y1!H?a)>wsGGnBLPA7tbqEtM7ug7e3>>TJw7YQ>WQ00eR5TR79mqIX!(qR*qZ7T z+$SXtq_O83vRne&vB!J|02!iwUlm}(L{G1==jwzYnL^TaENOJ5L^m$M?W$luR=U*W z6(>8S{5};}K`N^-QMgtQ15Yma5I}%4;8#{e7N3Wh?>#smAgC8$=UQ38)gol7@n&a0 zv@m230l{IyK(AagASjh32~PP{0SmPl2Gg5A_W;*&AgM5bEh%J6Y66iM^pqCt%oJ9` zdRMS*2lH?Z!04504@6BhlHJl}meC%O<+Naia;jMgjoSF zaBz}bBfFAFxme~Ei`jBV7?f^-nDb)sVOX(8<;Fyvmer_jgq7@bRGVk^;r#hNFCk$u zru_Q)zO_R}KY^W**{Ua%XOmgMObzg2l1-0xMkt!~`-k)A4=>$fs5!EZ*|CwsQ#S!> z=4U`fLuNJr#$&<7-v5t%4)Gb1=l5hzX|SW8Bq7g4E@xb+vDp0SD*@378rVR5gmG!3 zQ8-cChW|L7q)Q~qfpGwrU@Jz*76p5-MBIUBXHU9kzG_LF_%x^MD7kJ&!1 *:not(.toolbar) { left: 0; top: 45px; width: 100%; - min-height: 372px; + height: auto; + min-height: 415px; -webkit-transition-duration: 300ms; -webkit-transition-property: -webkit-transform; -webkit-transform: translateX(0%); } body[orient="landscape"] > *:not(.toolbar) { + height: auto; min-height: 268px; } @@ -31,29 +37,26 @@ body > *[selected="true"] { display: block; } -a[selected], a:active { +li > a[selected], li > a:active { background-color: #194fdb !important; - background-image: url(listArrowSel.png), url(selection.png) !important; - background-repeat: no-repeat, repeat-x; - background-position: right center, left top; + background-repeat: no-repeat, repeat-x !important; /* TG: !important */ + background-position: right center, left top !important; /* TG: !important */ color: #FFFFFF !important; } -a[selected="progress"] { - background-image: url(loading.gif), url(selection.png) !important; +li > a[selected="progress"] { } /************************************************************************************************/ body > .toolbar { box-sizing: border-box; - -moz-box-sizing: border-box; -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; border-bottom: 1px solid #2d3642; border-top: 1px solid #6d84a2; - padding: 10px; + padding: 0 10px 10px 10px; height: 45px; - background: url(toolbar.png) #6d84a2 repeat-x; } .toolbar > h1 { @@ -61,6 +64,7 @@ body > .toolbar { overflow: hidden; left: 50%; margin: 1px 0 0 -75px; + padding-top: 10px; height: 45px; font-size: 20px; width: 150px; @@ -97,11 +101,9 @@ body[orient="landscape"] > .toolbar > h1 { text-decoration: none; white-space: nowrap; background: none; - -webkit-border-image: url(toolButton.png) 0 5 0 5; } .blueButton { - -webkit-border-image: url(blueButton.png) 0 5 0 5; border-width: 0 5px; } @@ -117,7 +119,6 @@ body[orient="landscape"] > .toolbar > h1 { padding: 0; max-width: 55px; border-width: 0 8px 0 14px; - -webkit-border-image: url(backButton.png) 0 8 0 14; } .whiteButton, @@ -133,20 +134,22 @@ body[orient="landscape"] > .toolbar > h1 { color: inherit; } +/* TG */ .grayButton[selected], .grayButton:active, .whiteButton { - -webkit-border-image: url(whiteButton.png) 0 12 0 12; text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0; +/* TG */ background:transparent !important; } .redButton { - -webkit-border-image: url(redButton.png) 0 12 0 12; +/* TG */ background:transparent !important; color:#fff; text-shadow: #7a0001 0 -1px 0; } +/* TG */ .whiteButton[selected], .whiteButton:active, .grayButton { - -webkit-border-image: url(grayButton.png) 0 12 0 12; color: #FFFFFF; +/* TG */ background:transparent !important; } /************************************************************************************************/ @@ -168,7 +171,6 @@ body > ul > li.group { border-top: 1px solid #7d7d7d; border-bottom: 1px solid #999999; padding: 1px 10px; - background: url(listGroup.png) repeat-x; font-size: 17px; font-weight: bold; text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0; @@ -186,12 +188,12 @@ body > ul > li > a { padding: 8px 32px 8px 10px; text-decoration: none; color: inherit; - background: url(listArrow.png) no-repeat right center; } a[target="_replace"] { box-sizing: border-box; -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; padding-top: 25px; padding-bottom: 25px; font-size: 18px; @@ -215,12 +217,12 @@ body > .dialog { .dialog > fieldset { box-sizing: border-box; -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; width: 100%; margin: 0; border: none; border-top: 1px solid #6d84a2; padding: 10px 6px; - background: url(toolbar.png) #7388a5 repeat-x; } .dialog > fieldset > h1 { @@ -243,6 +245,7 @@ body > .dialog { input:not(input[type|=radio]):not(input[type|=checkbox]) { box-sizing: border-box; -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; width: 100%; margin: 8px 0 0 0; padding: 6px 6px 6px 44px; @@ -254,12 +257,12 @@ input:not(input[type|=radio]):not(input[type|=checkbox]) { body > .panel { box-sizing: border-box; - -moz-box-sizing: border-box; -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; padding: 10px; - background: #c8c8c8 url(pinstripes.png); } +.panel > ul, .panel > fieldset { position: relative; margin: 0 0 20px 0; @@ -272,22 +275,25 @@ body > .panel { font-size: 16px; } +.panel > ul li, .row { position: relative; min-height: 42px; border-bottom: 1px solid #999999; -webkit-border-radius: 0; + -moz-border-radius: 0; text-align: right; } +.panel > ul li:last-child, fieldset > .row:last-child { border-bottom: none !important; } .row > input:not(input[type|=radio]):not(input[type|=checkbox]) { box-sizing: border-box; - -moz-box-sizing: border-box; -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; margin: 0; border: none; padding: 12px 10px 0 110px; @@ -324,7 +330,7 @@ fieldset > .row:last-child { .toggle { border: 1px solid #888888; -webkit-border-radius: 6px; - background: #FFFFFF url(toggle.png) repeat-x; + -moz-border-radius: 6px; font-size: 19px; font-weight: bold; line-height: 30px; @@ -332,7 +338,6 @@ fieldset > .row:last-child { .toggle[toggled="true"] { border: 1px solid #143fae; - background: #194fdb url(toggleOn.png) repeat-x; } .toggleOn { @@ -371,7 +376,7 @@ fieldset > .row:last-child { height: 28px; border: 1px solid #888888; -webkit-border-radius: 6px; - background: #ffffff url(thumb.png) repeat-x; + -moz-border-radius: 6px; } .toggle[toggled="true"] > .thumb { @@ -391,6 +396,4 @@ fieldset > .row:last-child { #preloader { display: none; - background-image: url(loading.gif), url(selection.png), - url(blueButton.png), url(listArrowSel.png), url(listGroup.png); } diff --git a/htdocs/includes/iphone/iui/iui.js b/htdocs/includes/iphone/iui/iui.js index 40f7431c71b..5cbe4bb8028 100644 --- a/htdocs/includes/iphone/iui/iui.js +++ b/htdocs/includes/iphone/iui/iui.js @@ -1,6 +1,7 @@ /* Copyright (c) 2007-9, iUI Project Members See LICENSE.txt for licensing terms + Version 0.40-dev2 */ @@ -12,6 +13,7 @@ var slideInterval = 0; var currentPage = null; var currentDialog = null; var currentWidth = 0; +var currentHeight = 0; var currentHash = location.hash; var hashPrefix = "#_"; var pageHistory = []; @@ -27,27 +29,51 @@ window.iui = { animOn: true, // Slide animation with CSS transition is now enabled by default where supported + httpHeaders: { + "X-Requested-With" : "XMLHttpRequest" + }, + showPage: function(page, backwards) { if (page) { +// if (window.iui_ext) window.iui_ext.injectEventMethods(page); // TG + if (currentDialog) { currentDialog.removeAttribute("selected"); + // EVENT blur->currentDialog + sendEvent("blur", currentDialog); currentDialog = null; } if (hasClass(page, "dialog")) + { + // EVENT focus->page + sendEvent("focus", page); showDialog(page); + } else { + sendEvent("load", page); // 127(stylesheet), 128(script), 129(onload) + // 130(onFocus), 133(loadActionButton) var fromPage = currentPage; + // EVENT blur->currentPage + sendEvent("blur", currentPage); currentPage = page; + // EVENT focus->currentPage + sendEvent("focus", page); if (fromPage) + { + if (backwards) sendEvent("unload", fromPage); setTimeout(slidePages, 0, fromPage, page, backwards); + } else + { updatePage(page, fromPage); + } + } } }, @@ -60,54 +86,95 @@ window.iui = var index = pageHistory.indexOf(pageId); var backwards = index != -1; if (backwards) - pageHistory.splice(index, pageHistory.length); + { + // we're going back, remove history from index on + // remember - pageId will be added again in updatePage + pageHistory.splice(index); + } iui.showPage(page, backwards); } }, + + goBack: function() + { + pageHistory.pop(); // pop current page + var pageID = pageHistory.pop(); // pop/get parent + var page = $(pageID); + iui.showPage(page, true); + }, showPageByHref: function(href, args, method, replace, cb) { - var req = new XMLHttpRequest(); - req.onerror = function() + // I don't think we need onerror, because readstate will still go to 4 in that case + function spbhCB(xhr) + { + if (xhr.readyState == 4) { - if (cb) - cb(false); - }; - - req.onreadystatechange = function() - { - if (req.readyState == 4) - { - if (replace) - replaceElementWithSource(replace, req.responseText); - else - { - var frag = document.createElement("div"); - frag.innerHTML = req.responseText; - iui.insertPages(frag.childNodes); - } - if (cb) - setTimeout(cb, 1000, true); - } - }; - - if (args) - { - req.open(method || "GET", href, true); - req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - req.setRequestHeader("Content-Length", args.length); - req.send(args.join("&")); - } - else - { - req.open(method || "GET", href, true); - req.send(null); + // Add 'if (xhr.responseText)' to make sure we have something??? + var frag = document.createElement("div"); + frag.innerHTML = xhr.responseText; + // EVENT beforeInsert->body + sendEvent("beforeinsert", document.body, {fragment:frag}) + if (replace) + { + replaceElementWithFrag(replace, frag); + } + else + { + iui.insertPages(frag); + } + if (cb) + setTimeout(cb, 1000, true); } + }; + iui.ajax(href, args, method, spbhCB); }, - insertPages: function(nodes) + // Callback function gets a single argument, the XHR + ajax: function(url, args, method, cb) { + var xhr = new XMLHttpRequest(); + method = method ? method.toUpperCase() : "GET"; + if (args && method == "GET") + { + url = url + "?" + iui.param(args); + } + xhr.open(method, url, true); + if (cb) + { + xhr.onreadystatechange = function() { cb(xhr); }; + } + var data = null; + if (args && method != "GET") + { + xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); + data = iui.param(args); + } + for (var header in iui.httpHeaders) + { + xhr.setRequestHeader(header, iui.httpHeaders[header]); + } + xhr.send(data); + }, + + // Thanks, jQuery + // stripped-down, simplified, object-only version + param: function( o ) + { + var s = [ ]; + + // Serialize the key/values + for ( var key in o ) + s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(o[key]); + + // Return the resulting serialization + return s.join("&").replace(/%20/g, "+"); + }, + + insertPages: function(frag) + { + var nodes = frag.childNodes; var targetPage; for (var i = 0; i < nodes.length; ++i) { @@ -118,10 +185,16 @@ window.iui = child.id = "__" + (++newPageCount) + "__"; var clone = $(child.id); - if (clone) + var docNode; + if (clone) { clone.parentNode.replaceChild(child, clone); + docNode = $(child.id); + } else - document.body.appendChild(child); + docNode = document.body.appendChild(child); + + sendEvent("afterinsert", document.body, {insertedNode:docNode}); + if (child.getAttribute("selected") == "true" || !targetPage) targetPage = child; @@ -129,9 +202,9 @@ window.iui = --i; } } - if (targetPage) - iui.showPage(targetPage); + iui.showPage(targetPage); + }, getSelectedPage: function() @@ -158,7 +231,25 @@ window.iui = new RegExp("^http:\/\/www.youtube.com\/v\/"), new RegExp("^javascript:"), - ] + ], + hasClass: function(self, name) + { + var re = new RegExp("(^|\\s)"+name+"($|\\s)"); + return re.exec(self.getAttribute("class")) != null; + }, + + addClass: function(self, name) + { + if (!iui.hasClass(self,name)) self.className += " "+name; + }, + + removeClass: function(self, name) + { + if (iui.hasClass(self,name)) { + var reg = new RegExp('(\\s|^)'+name+'(\\s|$)'); + self.className=self.className.replace(reg,' '); + } + } }; // ************************************************************************************************* @@ -204,23 +295,27 @@ addEventListener("click", function(event) setTimeout(unselect, 500); } else if (link == $("backButton")) - history.back(); + { + iui.goBack(); + } else if (link.getAttribute("type") == "submit") { var form = findParent(link, "form"); if (form.target == "_self") { form.submit(); - return; // return so we don't preventDefault + return; // allow default } submitForm(form); } else if (link.getAttribute("type") == "cancel") + { cancelDialog(findParent(link, "form")); + } else if (link.target == "_replace") { link.setAttribute("selected", "progress"); - iui.showPageByHref(link.href, null, null, link, unselect); + iui.showPageByHref(link.href, null, "GET", link, unselect); } else if (iui.isNativeUrl(link.href)) { @@ -233,7 +328,7 @@ addEventListener("click", function(event) else if (!link.target) { link.setAttribute("selected", "progress"); - iui.showPageByHref(link.href, null, null, null, unselect); + iui.showPageByHref(link.href, null, "GET", null, unselect); } else return; @@ -252,6 +347,24 @@ addEventListener("click", function(event) } }, true); + +function sendEvent(type, node, props) +{ + if (node) + { + var event = document.createEvent("UIEvent"); + event.initEvent(type, false, false); // no bubble, no cancel + if (props) + { + for (i in props) + { + event[i] = props[i]; + } + } + node.dispatchEvent(event); + } +} + function getPageFromLoc() { var page; @@ -284,10 +397,11 @@ function checkOrientAndLocation() { if (!hasOrientationEvent) { - if (window.innerWidth != currentWidth) + if ((window.innerWidth != currentWidth) || (window.innerHeight != currentHeight)) { currentWidth = window.innerWidth; - var orient = currentWidth == 320 ? portraitVal : landscapeVal; + currentHeight = window.innerHeight; + var orient = (currentWidth < currentHeight) ? portraitVal : landscapeVal; setOrientation(orient); } } @@ -302,6 +416,22 @@ function checkOrientAndLocation() function setOrientation(orient) { document.body.setAttribute("orient", orient); +// Set class in addition to orient attribute: + if (orient == portraitVal) + { + iui.removeClass(document.body, landscapeVal); + iui.addClass(document.body, portraitVal); + } + else if (orient == landscapeVal) + { + iui.removeClass(document.body, portraitVal); + iui.addClass(document.body, landscapeVal); + } + else + { + iui.removeClass(document.body, portraitVal); + iui.removeClass(document.body, landscapeVal); + } setTimeout(scrollTo, 100, 0, 1); } @@ -310,7 +440,7 @@ function showDialog(page) currentDialog = page; page.setAttribute("selected", "true"); - if (hasClass(page, "dialog") && !page.target) + if (hasClass(page, "dialog")) showForm(page); } @@ -318,12 +448,17 @@ function showForm(form) { form.onsubmit = function(event) { +// submitForm and preventDefault are called in the click handler +// when the user clicks the submit a.button +// event.preventDefault(); submitForm(form); }; form.onclick = function(event) { +// Why is this code needed? cancelDialog is called from +// the click hander. When will this be called? if (event.target == form && hasClass(form, "dialog")) cancelDialog(form); }; @@ -345,6 +480,8 @@ function updatePage(page, fromPage) var pageTitle = $("pageTitle"); if (page.title) pageTitle.innerHTML = page.title; + var ttlClass = page.getAttribute("ttlclass"); + pageTitle.className = ttlClass ? ttlClass : ""; if (page.localName.toLowerCase() == "form" && !page.target) showForm(page); @@ -357,6 +494,8 @@ function updatePage(page, fromPage) { backButton.style.display = "inline"; backButton.innerHTML = prevPage.title ? prevPage.title : "Back"; + var bbClass = prevPage.getAttribute("bbclass"); + backButton.className = (bbClass) ? 'button ' + bbClass : 'button'; } else backButton.style.display = "none"; @@ -369,6 +508,8 @@ function slidePages(fromPage, toPage, backwards) clearInterval(checkTimer); + sendEvent("beforetransition", fromPage, {out:true}); + sendEvent("beforetransition", toPage, {out:false}); if (canDoSlideAnim() && axis != 'y') { slide2(fromPage, toPage, backwards, slideDone); @@ -385,6 +526,9 @@ function slidePages(fromPage, toPage, backwards) checkTimer = setInterval(checkOrientAndLocation, 300); setTimeout(updatePage, 0, toPage, fromPage); fromPage.removeEventListener('webkitTransitionEnd', slideDone, false); + sendEvent("aftertransition", fromPage, {out:true}); + sendEvent("aftertransition", toPage, {out:false}); + } } @@ -459,7 +603,9 @@ function preloadImages() function submitForm(form) { - iui.showPageByHref(form.action || "POST", encodeForm(form), form.method); + iui.addClass(form, "progress"); + iui.showPageByHref(form.action, encodeForm(form), form.method || "GET", null, clear); + function clear() { iui.removeClass(form, "progress"); } } function encodeForm(form) @@ -468,16 +614,17 @@ function encodeForm(form) { for (var i = 0; i < inputs.length; ++i) { - if (inputs[i].name) - args.push(inputs[i].name + "=" + escape(inputs[i].value)); + if (inputs[i].name) + args[inputs[i].name] = inputs[i].value; } } - var args = []; - encode(form.getElementsByTagName("input")); - encode(form.getElementsByTagName("textarea")); - encode(form.getElementsByTagName("select")); - return args; + var args = {}; + encode(form.getElementsByTagName("input")); + encode(form.getElementsByTagName("textarea")); + encode(form.getElementsByTagName("select")); + encode(form.getElementsByTagName("button")); + return args; } function findParent(node, localName) @@ -489,11 +636,10 @@ function findParent(node, localName) function hasClass(self, name) { - var re = new RegExp("(^|\\s)"+name+"($|\\s)"); - return re.exec(self.getAttribute("class")) != null; + return iui.hasClass(self,name); } -function replaceElementWithSource(replace, source) +function replaceElementWithFrag(replace, frag) { var page = replace.parentNode; var parent = replace; @@ -502,14 +648,13 @@ function replaceElementWithSource(replace, source) page = page.parentNode; parent = parent.parentNode; } - - var frag = document.createElement(parent.localName); - frag.innerHTML = source; - page.removeChild(parent); - while (frag.firstChild) - page.appendChild(frag.firstChild); + var docNode; + while (frag.firstChild) { + docNode = page.appendChild(frag.firstChild); + sendEvent("afterinsert", document.body, {insertedNode:docNode}); + } } function $(id) { return document.getElementById(id); } diff --git a/htdocs/includes/iphone/iui/iuix.css b/htdocs/includes/iphone/iui/iuix.css index 1df7e8a000f..ab0001c35ea 100644 --- a/htdocs/includes/iphone/iui/iuix.css +++ b/htdocs/includes/iphone/iui/iuix.css @@ -1 +1 @@ -body{margin:0;font-family:Helvetica;background:#FFF;color:#000;overflow-x:hidden;-webkit-user-select:none;-webkit-text-size-adjust:none;}body>*:not(.toolbar){display:none;position:absolute;margin:0;padding:0;left:0;top:45px;width:100%;min-height:372px;-webkit-transition-duration:300ms;-webkit-transition-property:-webkit-transform;-webkit-transform:translateX(0%);}body[orient="landscape"]>*:not(.toolbar){min-height:268px;}body>*[selected="true"]{display:block;}a[selected],a:active{background-color:#194fdb!important;background-image:url(listArrowSel.png),url(selection.png)!important;background-repeat:no-repeat,repeat-x;background-position:right center,left top;color:#FFF!important;}a[selected="progress"]{background-image:url(loading.gif),url(selection.png)!important;}body>.toolbar{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:1px solid #2d3642;border-top:1px solid #6d84a2;padding:10px;height:45px;background:url(toolbar.png) #6d84a2 repeat-x;}.toolbar>h1{position:absolute;overflow:hidden;left:50%;margin:1px 0 0 -75px;height:45px;font-size:20px;width:150px;font-weight:bold;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;text-align:center;text-overflow:ellipsis;white-space:nowrap;color:#FFF;}body[orient="landscape"]>.toolbar>h1{margin-left:-125px;width:250px;}.button{position:absolute;overflow:hidden;top:8px;right:6px;margin:0;border-width:0 5px;padding:0 3px;width:auto;height:30px;line-height:30px;font-family:inherit;font-size:12px;font-weight:bold;color:#FFF;text-shadow:rgba(0,0,0,0.6) 0 -1px 0;text-overflow:ellipsis;text-decoration:none;white-space:nowrap;background:none;-webkit-border-image:url(toolButton.png) 0 5 0 5;}.blueButton{-webkit-border-image:url(blueButton.png) 0 5 0 5;border-width:0 5px;}.leftButton{left:6px;right:auto;}#backButton{display:none;left:6px;right:auto;padding:0;max-width:55px;border-width:0 8px 0 14px;-webkit-border-image:url(backButton.png) 0 8 0 14;}.whiteButton,.redButton,.grayButton{display:block;border-width:0 12px;padding:10px;text-align:center;font-size:20px;font-weight:bold;text-decoration:inherit;color:inherit;}.whiteButton{-webkit-border-image:url(whiteButton.png) 0 12 0 12;text-shadow:rgba(255,255,255,0.7) 0 1px 0;}.redButton{-webkit-border-image:url(redButton.png) 0 12 0 12;color:#fff;text-shadow:#7a0001 0 -1px 0;}.grayButton{-webkit-border-image:url(grayButton.png) 0 12 0 12;color:#FFF;}body>ul>li{position:relative;margin:0;border-bottom:1px solid #E0E0E0;padding:8px 0 8px 10px;font-size:20px;font-weight:bold;list-style:none;}body>ul>li.group{position:relative;top:-1px;margin-bottom:-2px;border-top:1px solid #7d7d7d;border-bottom:1px solid #999;padding:1px 10px;background:url(listGroup.png) repeat-x;font-size:17px;font-weight:bold;text-shadow:rgba(0,0,0,0.4) 0 1px 0;color:#FFF;}body>ul>li.group:first-child{top:0;border-top:none;}body>ul>li>a{display:block;margin:-8px 0 -8px -10px;padding:8px 32px 8px 10px;text-decoration:none;color:inherit;background:url(listArrow.png) no-repeat right center;}a[target="_replace"]{box-sizing:border-box;-webkit-box-sizing:border-box;padding-top:25px;padding-bottom:25px;font-size:18px;color:cornflowerblue;background-color:#FFF;background-image:none;}body>.dialog{top:0;width:100%;min-height:417px;z-index:2;background:rgba(0,0,0,0.8);padding:0;text-align:right;}.dialog>fieldset{box-sizing:border-box;-webkit-box-sizing:border-box;width:100%;margin:0;border:none;border-top:1px solid #6d84a2;padding:10px 6px;background:url(toolbar.png) #7388a5 repeat-x;}.dialog>fieldset>h1{margin:0 10px 0 10px;padding:0;font-size:20px;font-weight:bold;color:#FFF;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;text-align:center;}.dialog>fieldset>label{position:absolute;margin:16px 0 0 6px;font-size:14px;color:#999;}input:not(input[type|=radio]):not(input[type|=checkbox]){box-sizing:border-box;-webkit-box-sizing:border-box;width:100%;margin:8px 0 0 0;padding:6px 6px 6px 44px;font-size:16px;font-weight:normal;}body>.panel{box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:10px;background:#c8c8c8 url(pinstripes.png);}.panel>fieldset{position:relative;margin:0 0 20px 0;padding:0;background:#FFF;-webkit-border-radius:10px;-moz-border-radius:10px;border:1px solid #999;text-align:right;font-size:16px;}.row{position:relative;min-height:42px;border-bottom:1px solid #999;-webkit-border-radius:0;text-align:right;}fieldset>.row:last-child{border-bottom:none!important;}.row>input:not(input[type|=radio]):not(input[type|=checkbox]){box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin:0;border:none;padding:12px 10px 0 110px;height:42px;background:none;}.row>input[type|=radio],.row>input[type|=checkbox]{margin:7px 7px 0 0;height:25px;width:25px;}.row>label{position:absolute;margin:0 0 0 14px;line-height:42px;font-weight:bold;}.row>span{position:absolute;padding:12px 10px 0 110px;margin:0;}.row>.toggle{position:absolute;top:6px;right:6px;width:100px;height:28px;}.toggle{border:1px solid #888;-webkit-border-radius:6px;background:#FFF url(toggle.png) repeat-x;font-size:19px;font-weight:bold;line-height:30px;}.toggle[toggled="true"]{border:1px solid #143fae;background:#194fdb url(toggleOn.png) repeat-x;}.toggleOn{display:none;position:absolute;width:60px;text-align:center;left:0;top:0;color:#FFF;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;}.toggleOff{position:absolute;width:60px;text-align:center;right:0;top:0;color:#666;}.toggle[toggled="true"]>.toggleOn{display:block;}.toggle[toggled="true"]>.toggleOff{display:none;}.thumb{position:absolute;top:-1px;left:-1px;width:40px;height:28px;border:1px solid #888;-webkit-border-radius:6px;background:#fff url(thumb.png) repeat-x;}.toggle[toggled="true"]>.thumb{left:auto;right:-1px;}.panel>h2{margin:0 0 8px 14px;font-size:inherit;font-weight:bold;color:#4d4d70;text-shadow:rgba(255,255,255,0.75) 2px 2px 0;}#preloader{display:none;background-image:url(loading.gif),url(selection.png),url(blueButton.png),url(listArrowSel.png),url(listGroup.png);} \ No newline at end of file +body{margin:0;font-family:Helvetica;background:#FFF;color:#000;overflow-x:hidden;-webkit-user-select:none;-webkit-text-size-adjust:none;}body>*:not(.toolbar){display:none;position:absolute;margin:0;padding:0;left:0;top:45px;width:100%;height:auto;min-height:415px;-webkit-transition-duration:300ms;-webkit-transition-property:-webkit-transform;-webkit-transform:translateX(0%);}body[orient="landscape"]>*:not(.toolbar){height:auto;min-height:268px;}body>*[selected="true"]{display:block;}li>a[selected],li>a:active{background-color:#194fdb!important;background-repeat:no-repeat,repeat-x!important;background-position:right center,left top!important;color:#FFF!important;}body>.toolbar{box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;border-bottom:1px solid #2d3642;border-top:1px solid #6d84a2;padding:0 10px 10px 10px;height:45px;}.toolbar>h1{position:absolute;overflow:hidden;left:50%;margin:1px 0 0 -75px;padding-top:10px;height:45px;font-size:20px;width:150px;font-weight:bold;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;text-align:center;text-overflow:ellipsis;white-space:nowrap;color:#FFF;}body[orient="landscape"]>.toolbar>h1{margin-left:-125px;width:250px;}.button{position:absolute;overflow:hidden;top:8px;right:6px;margin:0;border-width:0 5px;padding:0 3px;width:auto;height:30px;line-height:30px;font-family:inherit;font-size:12px;font-weight:bold;color:#FFF;text-shadow:rgba(0,0,0,0.6) 0 -1px 0;text-overflow:ellipsis;text-decoration:none;white-space:nowrap;background:none;}.blueButton{border-width:0 5px;}.leftButton{left:6px;right:auto;}#backButton{display:none;left:6px;right:auto;padding:0;max-width:55px;border-width:0 8px 0 14px;}.whiteButton,.redButton,.grayButton{display:block;border-width:0 12px;padding:10px;text-align:center;font-size:20px;font-weight:bold;text-decoration:inherit;color:inherit;}.grayButton[selected],.grayButton:active,.whiteButton{text-shadow:rgba(255,255,255,0.7) 0 1px 0;background:transparent!important;}.redButton{background:transparent!important;color:#fff;text-shadow:#7a0001 0 -1px 0;}.whiteButton[selected],.whiteButton:active,.grayButton{color:#FFF;background:transparent!important;}body>ul>li{position:relative;margin:0;border-bottom:1px solid #E0E0E0;padding:8px 0 8px 10px;font-size:20px;font-weight:bold;list-style:none;}body>ul>li.group{position:relative;top:-1px;margin-bottom:-2px;border-top:1px solid #7d7d7d;border-bottom:1px solid #999;padding:1px 10px;font-size:17px;font-weight:bold;text-shadow:rgba(0,0,0,0.4) 0 1px 0;color:#FFF;}body>ul>li.group:first-child{top:0;border-top:none;}body>ul>li>a{display:block;margin:-8px 0 -8px -10px;padding:8px 32px 8px 10px;text-decoration:none;color:inherit;}a[target="_replace"]{box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;padding-top:25px;padding-bottom:25px;font-size:18px;color:cornflowerblue;background-color:#FFF;background-image:none;}body>.dialog{top:0;width:100%;min-height:417px;z-index:2;background:rgba(0,0,0,0.8);padding:0;text-align:right;}.dialog>fieldset{box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;width:100%;margin:0;border:none;border-top:1px solid #6d84a2;padding:10px 6px;}.dialog>fieldset>h1{margin:0 10px 0 10px;padding:0;font-size:20px;font-weight:bold;color:#FFF;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;text-align:center;}.dialog>fieldset>label{position:absolute;margin:16px 0 0 6px;font-size:14px;color:#999;}input:not(input[type|=radio]):not(input[type|=checkbox]){box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;width:100%;margin:8px 0 0 0;padding:6px 6px 6px 44px;font-size:16px;font-weight:normal;}body>.panel{box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;padding:10px;}.panel>ul,.panel>fieldset{position:relative;margin:0 0 20px 0;padding:0;background:#FFF;-webkit-border-radius:10px;-moz-border-radius:10px;border:1px solid #999;text-align:right;font-size:16px;}.panel>ul li,.row{position:relative;min-height:42px;border-bottom:1px solid #999;-webkit-border-radius:0;-moz-border-radius:0;text-align:right;}.panel>ul li:last-child,fieldset>.row:last-child{border-bottom:none!important;}.row>input:not(input[type|=radio]):not(input[type|=checkbox]){box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;margin:0;border:none;padding:12px 10px 0 110px;height:42px;background:none;}.row>input[type|=radio],.row>input[type|=checkbox]{margin:7px 7px 0 0;height:25px;width:25px;}.row>label{position:absolute;margin:0 0 0 14px;line-height:42px;font-weight:bold;}.row>span{position:absolute;padding:12px 10px 0 110px;margin:0;}.row>.toggle{position:absolute;top:6px;right:6px;width:100px;height:28px;}.toggle{border:1px solid #888;-webkit-border-radius:6px;-moz-border-radius:6px;font-size:19px;font-weight:bold;line-height:30px;}.toggle[toggled="true"]{border:1px solid #143fae;}.toggleOn{display:none;position:absolute;width:60px;text-align:center;left:0;top:0;color:#FFF;text-shadow:rgba(0,0,0,0.4) 0 -1px 0;}.toggleOff{position:absolute;width:60px;text-align:center;right:0;top:0;color:#666;}.toggle[toggled="true"]>.toggleOn{display:block;}.toggle[toggled="true"]>.toggleOff{display:none;}.thumb{position:absolute;top:-1px;left:-1px;width:40px;height:28px;border:1px solid #888;-webkit-border-radius:6px;-moz-border-radius:6px;}.toggle[toggled="true"]>.thumb{left:auto;right:-1px;}.panel>h2{margin:0 0 8px 14px;font-size:inherit;font-weight:bold;color:#4d4d70;text-shadow:rgba(255,255,255,0.75) 2px 2px 0;}#preloader{display:none;} \ No newline at end of file diff --git a/htdocs/includes/iphone/iui/iuix.js b/htdocs/includes/iphone/iui/iuix.js index 09d2eb99312..ff289e21a40 100644 --- a/htdocs/includes/iphone/iui/iuix.js +++ b/htdocs/includes/iphone/iui/iuix.js @@ -1 +1 @@ -(function(){var _1=20;var _2=0;var _3=null;var _4=null;var _5=0;var _6=location.hash;var _7="#_";var _8=[];var _9=0;var _a;var _b=false;var _c="portrait";var _d="landscape";window.iui={animOn:true,showPage:function(_e,_f){if(_e){if(_4){_4.removeAttribute("selected");_4=null;}if(hasClass(_e,"dialog")){showDialog(_e);}else{var _10=_3;_3=_e;if(_10){setTimeout(slidePages,0,_10,_e,_f);}else{updatePage(_e,_10);}}}},showPageById:function(_11){var _12=$(_11);if(_12){var _13=_8.indexOf(_11);var _14=_13!=-1;if(_14){_8.splice(_13,_8.length);}iui.showPage(_12,_14);}},showPageByHref:function(_15,_16,_17,_18,cb){var req=new XMLHttpRequest();req.onerror=function(){if(cb){cb(false);}};req.onreadystatechange=function(){if(req.readyState==4){if(_18){replaceElementWithSource(_18,req.responseText);}else{var _1b=document.createElement("div");_1b.innerHTML=req.responseText;iui.insertPages(_1b.childNodes);}if(cb){setTimeout(cb,1000,true);}}};if(_16){req.open(_17||"GET",_15,true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.setRequestHeader("Content-Length",_16.length);req.send(_16.join("&"));}else{req.open(_17||"GET",_15,true);req.send(null);}},insertPages:function(_1c){var _1d;for(var i=0;i<_1c.length;++i){var _1f=_1c[i];if(_1f.nodeType==1){if(!_1f.id){_1f.id="__"+(++_9)+"__";}var _20=$(_1f.id);if(_20){_20.parentNode.replaceChild(_1f,_20);}else{document.body.appendChild(_1f);}if(_1f.getAttribute("selected")=="true"||!_1d){_1d=_1f;}--i;}}if(_1d){iui.showPage(_1d);}},getSelectedPage:function(){for(var _21=document.body.firstChild;_21;_21=_21.nextSibling){if(_21.nodeType==1&&_21.getAttribute("selected")=="true"){return _21;}}},isNativeUrl:function(_22){for(var i=0;i *:not(.toolbar)"); + for (var i = 0; i < nodes.length ; i++) + { + registerAllEvents(nodes[i]); + } +}, false); + +function registerAllEvents(node) +{ + for (var i = 0; i < eventNames.length ; i++) + { + console.log("addlistener: " + eventNames[i] + " on #" + node.id + " = " + node); + node.addEventListener(eventNames[i], logEvent, false); + } +} + +function afterInsert(e) +{ + logEvent(e); + registerAllEvents(e.insertedNode); // Set event handlers on newly added node +} + +function logEvent(e) +{ + console.log("logEvent type: " + e.type + " target " + e.target.tagName + "#" + e.target.id); + if (e.type == "beforetransition" || e.type == "aftertransition") + { + console.log(" out trans = " + e.out); + } + else if (e.type == "beforeinsert") { + console.log(" fragment = " + e.fragment); + } + else if (e.type == "afterinsert") { + console.log(" node = " + e.insertedNode); + } +} + + +})(); diff --git a/htdocs/includes/iphone/iui/js/iui-theme-switcher.js b/htdocs/includes/iphone/iui/js/iui-theme-switcher.js new file mode 100644 index 00000000000..9ef074f8a21 --- /dev/null +++ b/htdocs/includes/iphone/iui/js/iui-theme-switcher.js @@ -0,0 +1,42 @@ +/* + Copyright (c) 2007-9, iUI Project Members + See LICENSE.txt for licensing terms + */ + +iui.ts = { + themeSelect: function(select) + { + var curTheme = iui.ts.getTheme(); + var index = select.selectedIndex; + var newTheme = select.options[index].value; + iui.ts.setTheme(newTheme); + return false; + }, + + getTheme: function() + { + var i, a, main; + for(i=0; (a = document.getElementsByTagName("link")[i]); i++) + { + if(a.getAttribute("rel").indexOf("style") != -1 + && a.getAttribute("title")) + { + if (a.disabled == false) return a.getAttribute("title"); + } + } + }, + + setTheme: function(title) + { + var i, a, main; + for(i=0; (a = document.getElementsByTagName("link")[i]); i++) + { + if(a.getAttribute("rel").indexOf("style") != -1 + && a.getAttribute("title")) + { + a.disabled = true; + if(a.getAttribute("title") == title) a.disabled = false; + } + } + } +}; \ No newline at end of file diff --git a/htdocs/includes/iphone/releaseNotes.txt b/htdocs/includes/iphone/releaseNotes.txt index 6fb8a57357c..b68a9a2620a 100644 --- a/htdocs/includes/iphone/releaseNotes.txt +++ b/htdocs/includes/iphone/releaseNotes.txt @@ -1,7 +1,23 @@ -REL-0.31 2009-10-05 +REL-0.40-dev2 2009-12-18 + * Fix Issue #138 (orientation css not updating) + * Fix Issue #184 (hardcoded width of 320 in "orientation event fallback") + * Re-enable call to submitForm in onsubmit in showForm() + (rev d6abb099744e6ae7f1591e3208d3d54bb35c2a51) + * Merge all -moz-* properties back in to iui.css and theme css + * Fix Issue #124 (Panel height too short on webapp-capapble) and add a test for it + * Create placeholder for gradient version of default theme + * Add iui.goBack() and use it instead of history.back() + * Add iUI favicon.ico and iui-favicon.png + * Added starting point/placeholder for QUnit Tests + * Numerous additions and improvements to Test pages + * Numerous improvements to Google App Engine website -* Slide animation with CSS transitions is now on by default where enabled -* Non-AJAX form subission when target="_self" (Issue #136) +REL-0.40-dev1 2009-10-06 + + * Work in progress + * Add events to iui/iui.js + * Add iui-views extension + * Integrate masabi rail-tickets and iui_ext REL-0.30 2009-08-06 diff --git a/htdocs/lib/security.lib.php b/htdocs/lib/security.lib.php index c9ab8e946cb..1c14d2aef1d 100644 --- a/htdocs/lib/security.lib.php +++ b/htdocs/lib/security.lib.php @@ -355,11 +355,11 @@ function dol_loginfunction2($langs,$conf,$mysoc) { if (file_exists(DOL_DOCUMENT_ROOT."/theme/phones/".$conf->browser->phone)) { - $smarty->template_dir = DOL_DOCUMENT_ROOT."/theme/phones/".$conf->browser->phone."/default/templates/"; + $smarty->template_dir = DOL_DOCUMENT_ROOT."/theme/phones/".$conf->browser->phone."/templates/"; } else { - $smarty->template_dir = DOL_DOCUMENT_ROOT."/theme/phones/others/default/templates/"; + $smarty->template_dir = DOL_DOCUMENT_ROOT."/theme/phones/others/templates/"; } } else diff --git a/htdocs/theme/phones/iphone/default/default.css.php b/htdocs/theme/phones/iphone/default/default.css.php deleted file mode 100644 index 1a6d4562b10..00000000000 --- a/htdocs/theme/phones/iphone/default/default.css.php +++ /dev/null @@ -1,449 +0,0 @@ - - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -/** - * \file htdocs/theme/phones/iphone/default.css.php - * \brief Fichier de style CSS du theme Iphone default - * \version $Id$ - */ - -if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token renewal -if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); -if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); -if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); -if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); -//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // We need to use translation files to know direction -if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); - -require_once("../../../../master.inc.php"); -require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php"); - -// Define css type -header('Content-type: text/css'); -// Important: Avoid page request by browser and dynamic build at -// each Dolibarr page access. -if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate'); -else header('Cache-Control: no-cache'); - - -if (! empty($_GET["lang"])) $langs->setDefaultLang($_GET["lang"]); // If language was forced on URL by the main.inc.php -$langs->load("main",0,1); -$right=($langs->direction=='rtl'?'left':'right'); -$left=($langs->direction=='rtl'?'right':'left'); -?> - -body { - margin: 0; - font-family: Helvetica; - background: #FFFFFF; - color: #000000; - overflow-x: hidden; - -webkit-user-select: none; - -webkit-text-size-adjust: none; -} - -body > *:not(.toolbar) { - display: none; - position: absolute; - margin: 0; - padding: 0; - left: 0; - top: 45px; - width: 100%; - min-height: 372px; - -webkit-transition-duration: 300ms; - -webkit-transition-property: -webkit-transform; - -webkit-transform: translateX(0%); -} - -body[orient="landscape"] > *:not(.toolbar) { - min-height: 268px; -} - -body > *[selected="true"] { - display: block; -} - -a[selected], a:active { - background-color: #194fdb !important; - background-image: url(), - url() !important; - background-repeat: no-repeat, repeat-x; - background-position: right center, left top; - color: #FFFFFF !important; -} - -a[selected="progress"] { - background-image: url(), - url() !important; -} - -/************************************************************************************************/ - -body > .toolbar { - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - border-bottom: 1px solid #2d3642; - border-top: 1px solid #6d84a2; - padding: 10px; - height: 45px; - background: url() #6d84a2 repeat-x; -} - -.toolbar > h1 { - position: absolute; - overflow: hidden; - left: 50%; - margin: 1px 0 0 -75px; - height: 45px; - font-size: 20px; - width: 150px; - font-weight: bold; - text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; - text-align: center; - text-overflow: ellipsis; - white-space: nowrap; - color: #FFFFFF; -} - -body[orient="landscape"] > .toolbar > h1 { - margin-left: -125px; - width: 250px; -} - -.button { - position: absolute; - overflow: hidden; - top: 8px; - right: 6px; - margin: 0; - border-width: 0 5px; - padding: 0 3px; - width: auto; - height: 30px; - line-height: 30px; - font-family: inherit; - font-size: 12px; - font-weight: bold; - color: #FFFFFF; - text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0; - text-overflow: ellipsis; - text-decoration: none; - white-space: nowrap; - background: none; - -webkit-border-image: url() 0 5 0 5; -} - -.blueButton { - -webkit-border-image: url() 0 5 0 5; - border-width: 0 5px; -} - -.leftButton { - left: 6px; - right: auto; -} - -#backButton { - display: none; - left: 6px; - right: auto; - padding: 0; - max-width: 55px; - border-width: 0 8px 0 14px; - -webkit-border-image: url() 0 8 0 14; -} - -.whiteButton, -.redButton, -.grayButton { - display: block; - border-width: 0 12px; - padding: 10px; - text-align: center; - font-size: 20px; - font-weight: bold; - text-decoration: inherit; - color: inherit; -} - -.whiteButton { - -webkit-border-image: url() 0 12 0 12; - text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0; -} - -.redButton { - -webkit-border-image: url() 0 12 0 12; - color:#fff; - text-shadow: #7a0001 0 -1px 0; -} - -.grayButton { - -webkit-border-image: url() 0 12 0 12; - color: #FFFFFF; -} - -/************************************************************************************************/ - -body > ul > li { - position: relative; - margin: 0; - border-bottom: 1px solid #E0E0E0; - padding: 8px 0 8px 10px; - font-size: 20px; - font-weight: bold; - list-style: none; -} - -body > ul > li.group { - position: relative; - top: -1px; - margin-bottom: -2px; - border-top: 1px solid #7d7d7d; - border-bottom: 1px solid #999999; - padding: 1px 10px; - background: url() repeat-x; - font-size: 17px; - font-weight: bold; - text-shadow: rgba(0, 0, 0, 0.4) 0 1px 0; - color: #FFFFFF; -} - -body > ul > li.group:first-child { - top: 0; - border-top: none; -} - -body > ul > li > a { - display: block; - margin: -8px 0 -8px -10px; - padding: 8px 32px 8px 10px; - text-decoration: none; - color: inherit; - background: url() no-repeat right center; -} - -a[target="_replace"] { - box-sizing: border-box; - -webkit-box-sizing: border-box; - padding-top: 25px; - padding-bottom: 25px; - font-size: 18px; - color: cornflowerblue; - background-color: #FFFFFF; - background-image: none; -} - -/************************************************************************************************/ - -body > .dialog { - top: 0; - width: 100%; - min-height: 417px; - z-index: 2; - background: rgba(0, 0, 0, 0.8); - padding: 0; - text-align: right; -} - -.dialog > fieldset { - box-sizing: border-box; - -webkit-box-sizing: border-box; - width: 100%; - margin: 0; - border: none; - border-top: 1px solid #6d84a2; - padding: 10px 6px; - background: url() #7388a5 repeat-x; -} - -.dialog > fieldset > h1 { - margin: 0 10px 0 10px; - padding: 0; - font-size: 20px; - font-weight: bold; - color: #FFFFFF; - text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; - text-align: center; -} - -.dialog > fieldset > label { - position: absolute; - margin: 16px 0 0 6px; - font-size: 14px; - color: #999999; -} - -input:not(input[type|=radio]):not(input[type|=checkbox]) { - box-sizing: border-box; - -webkit-box-sizing: border-box; - width: 100%; - margin: 8px 0 0 0; - padding: 6px 6px 6px 44px; - font-size: 16px; - font-weight: normal; -} - -/************************************************************************************************/ - -body > .panel { - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - padding: 10px; - background: #c8c8c8 url(); -} - -.panel > fieldset { - position: relative; - margin: 0 0 20px 0; - padding: 0; - background: #FFFFFF; - -webkit-border-radius: 10px; - -moz-border-radius: 10px; - border: 1px solid #999999; - text-align: right; - font-size: 16px; -} - -.row { - position: relative; - min-height: 42px; - border-bottom: 1px solid #999999; - -webkit-border-radius: 0; - text-align: right; -} - -fieldset > .row:last-child { - border-bottom: none !important; -} - -.row > input:not(input[type|=radio]):not(input[type|=checkbox]) { - box-sizing: border-box; - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - margin: 0; - border: none; - padding: 12px 10px 0 110px; - height: 42px; - background: none; -} -.row > input[type|=radio], .row > input[type|=checkbox] { - margin: 7px 7px 0 0; - height: 25px; - width: 25px; -} - -.row > label { - position: absolute; - margin: 0 0 0 14px; - line-height: 42px; - font-weight: bold; -} - -.row > span { - position: absolute; - padding: 12px 10px 0 110px; - margin: 0; -} - -.row > .toggle { - position: absolute; - top: 6px; - right: 6px; - width: 100px; - height: 28px; -} - -.toggle { - border: 1px solid #888888; - -webkit-border-radius: 6px; - background: #FFFFFF url() repeat-x; - font-size: 19px; - font-weight: bold; - line-height: 30px; -} - -.toggle[toggled="true"] { - border: 1px solid #143fae; - background: #194fdb url() repeat-x; -} - -.toggleOn { - display: none; - position: absolute; - width: 60px; - text-align: center; - left: 0; - top: 0; - color: #FFFFFF; - text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; -} - -.toggleOff { - position: absolute; - width: 60px; - text-align: center; - right: 0; - top: 0; - color: #666666; -} - -.toggle[toggled="true"] > .toggleOn { - display: block; -} - -.toggle[toggled="true"] > .toggleOff { - display: none; -} - -.thumb { - position: absolute; - top: -1px; - left: -1px; - width: 40px; - height: 28px; - border: 1px solid #888888; - -webkit-border-radius: 6px; - background: #ffffff url() repeat-x; -} - -.toggle[toggled="true"] > .thumb { - left: auto; - right: -1px; -} - -.panel > h2 { - margin: 0 0 8px 14px; - font-size: inherit; - font-weight: bold; - color: #4d4d70; - text-shadow: rgba(255, 255, 255, 0.75) 2px 2px 0; -} - -/************************************************************************************************/ - -#preloader { - display: none; - background-image: url(), - url(), - url(), - url(), - url(); -} diff --git a/htdocs/theme/phones/iphone/default/img/backButton.png b/htdocs/theme/phones/iphone/default/img/backButton.png deleted file mode 100644 index e27ea8cdf9a4f3b35c78f6bb0a407a4047e72e12..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 816 zcmV-01JC@4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CTrdUc@&;VH>;qrTna3JWSyf0gaS9#>1I zyeOCOl;qy?t|3S3up4!K=3k5`59MOdq!*rCKBMvASdU30W0|&eUnTvOjF(g8b5o9@ zCzqwqpwsL4;cf%dQBl39uWP?9Jw|qnSY74EN$W?u%8V85Yf-!S&!9`5MR&Amyt^lr zHatSk3N?7BYnqhPtQ1SUPkNlRPg}&u4002ovPDHLkV1goEzRdst diff --git a/htdocs/theme/phones/iphone/default/img/listArrow.png b/htdocs/theme/phones/iphone/default/img/listArrow.png deleted file mode 100644 index 6421a16762c0f843bf342a1d01090ce8b77256fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 259 zcmeAS@N?(olHy`uVBq!ia0vp^l0YoN!3HEN%BSrG36!`-lmzFem6RtIr7}3CCgZF_RMP;g_&g!eAw8+>M~{e^us?&19oxF zesu1f-zQziO$!7&@4IwANODeU)>*x*Rn^qtPS=tAh0|PL2=Z@Q!F+ZRSJaYqUMAhQ zG`Dhu3(aFX@_xb(O9venU+*Q2KNu!0^l!Yucs8g@r!jItQ`$kM_RelF{r G5}E+j-eN=m diff --git a/htdocs/theme/phones/iphone/default/img/listArrowSel.png b/htdocs/theme/phones/iphone/default/img/listArrowSel.png deleted file mode 100644 index 86832ebc7b961840d95938a98a0905cb09bc84a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 308 zcmV-40n7f0P)P000yS1^@s6cz2e)0000PbVXQnQ*UN; zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUy)=5M`RCwBA)X8|lKx@FnKnE~PEy?ia z{SU&_wuA-Qf@~i?82A5-t)CgG?h{sKgqa}A(mbi>Be*4#H+^E9wf!?(BG-?47NNum z$fCJBQ7uY#r`#fp)HPuPszn6>lv{)~2`@YFmEq&pe{g=312+RdH`9NrSt2ID{C|Ft z2*^+{|J8@T42gYjK$bF6#S)kWa-u9K7Cd_Whmk75MJo&7mM}9h{O?H-qKO4?OaA_2 zV60jA9&9+ZEd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|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z00019Nkl zCjY=i7V9oLHAd}acT3oj)KbHCm(8mkPDu2;o^i>?_7x^ixw#O)RJ+hp(Kxs+)tAi39 za;jZxp54$8HAJBiUK>rCWijd-DIDhAwEt7^~-0}%C6b<+tBH~2-*)}A8^?ECDXvxQbA5DuV zJ)NXk+a}SbQ#{AR`iT3rD=P!HiLeDQvAJUPN;c4BiN!y5stQl?m~6>0UB%z1BeK{e zU3r1X=8n!JMHf>MA$H}11wJyohno*fGO-YGcTBuuvM#jiP=bcax*I)71_CmRX0SOn zI-1G*a~j+*uv*3B@JaDRnizu@e?W#XGlRHtCPR*7Umb?eKnWHUb5V;Uj8=-Azq7T% zi_xpo*zRakWZ$WXQ;MS7uAI54C?Rp2wYb1D$?(FX0tO}7Q%sEw7QQ^(OTKQblv$u~ zB=JMR4Gwiig^w%VIq-cg;NWLybKB9#u*?O;yUf6J2}&rDA5LCZNiI73x8V4hgSiT2 z6@62@e81{&q^eB5yhhsTh>V@;yo();8d)uqCnUCo%xy87p8MfJAwz@9B8R1-7Mu)8 z1_3r1i`lj*6$nh=W^lVu$I~Qz{jfq0ifypm7!CB?oW&9MuFp!5z7`|9yk*McQol!u zvr`Sbr)Ws7k*Vm@)R$j6QG-jJw`J2eNdtp*iHr;{e7Txh)EE>h*t(7`{1CvyCv^0( zo5Gc>_Alb-WeSL_OtK7Q7f(IKdl@3W!G2jAW(#RHc*FD*#te{9~? z?$B`JhnW2FMGYH6oBF4#6c*TV^d}vB5GY|%x58Rl|sI%aUEiXevud?ZKCqKVvP5$7W!A>HrElaOmP+;?T zxNb$|4hgpIzDEu=MpIpresys1cRXUcK4GtlgxjI2j87_jhaPUM(-Fu&H7Bq3fmfNa Is33zi04%B!Q2+n{ diff --git a/htdocs/theme/phones/iphone/default/img/pinstripes.png b/htdocs/theme/phones/iphone/default/img/pinstripes.png deleted file mode 100644 index c99777512fb135af7dcdf4130e5770072cb39241..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 117 zcmeAS@N?(olHy`uVBq!ia0vp^>_E)O!2~4dW-8AFQj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>Jio`u#978H@CD~Lx<6>s|lboE)9K^uL#$fKtT%LaBX8=$M NgQu&X%Q~loCIB>$9?k#& diff --git a/htdocs/theme/phones/iphone/default/img/redButton.png b/htdocs/theme/phones/iphone/default/img/redButton.png deleted file mode 100644 index 210f156afe6a543a89a54bb98f06dc6a33a37b94..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 947 zcmV;k15EshP)`9&$+YG_xX7^jh&sCX!$p4DZIXUSyelG3K&W0DCdwK>s73Fm@mm4+8 zWsu=?=28kf_?#Wj+bk3c_ok<(cWa-?)c4_2GO5VEzu338H)SurMybmi;A&9LskCWciFqCb&|VwVG}w;EuWw|tQ+WF%1f>Y-InG0)SOf}U zY^bvnK3LZH2`FP%DqWP&ivmre)Sl-J*X0dCeP3f7X~Ux&BcMbF5?fO7X>QI9H`@l)R`9+Q$=Y8C5$1)ln7)>G?kav31iB< zxa`$ArcNcMM4-HcD|7!Qk@)N-OkS)QM4-G>;j@<&g+Op|P&I&tWWq97-7*4;L!d`M zt4syfUe?K)<@L%{(6T^Kp995Jgz}cffnpbH1}$!Fg-OJ`D06yy0nYR_oCet*V%vz@ zOKmmo(W+DhlLUfF9I6Vnwj;~pnDVVn!U?t#Ng${sb4(@H>sVO1p4VQcN|b43H6oev z@~Uc>xuF*Y%AXu6@=8MGmG~}G0}~1wiK(iFdsL*n@Jo3`Gvz_$Y9h%3nacl1B2^iR z-7;#FsU(a-vaozPF=LbW! z?H-_MuwfYBy6$FE!7r6cb7p`4E#uIH?p&^|EWaR`uZM^1_5VekDGRb`nsY~%m3cpK z4z@20ft^fNg8!F;VhqjhZumGh25&42_V@QQx~@O3XY<<|H^YmC(UDX>pMRz(%6KZ3 zf^<3!u~-bB(OSzx8KGD#LJk$nX0uQz6c!SR#G_0mlaGMb>~W&&u4P#dD5Y0%T*lGb z85h5gV;#pTE_iWmZEZR7-{8ADw@+T_2!UbSUPd{V*-CBO4p;s=TUl9YInF-?7yv7b V+3MoiUjYCB002ovPDHLkV1ljFu?qkI diff --git a/htdocs/theme/phones/iphone/default/img/selection.png b/htdocs/theme/phones/iphone/default/img/selection.png deleted file mode 100644 index 537e3f0b13ea422a5ac5487317872414d51574c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2~3aiye;!Qj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>JiX1&%978x{Sr2X$Jj5WtvT?p{@1r}0Gc6VGKL6Qv;l%Dc zTgw%X}gxBOXmxAbz1ds%&OUSwBY#<9&n!x%hW{an^L HB{Ts5+CMp^ diff --git a/htdocs/theme/phones/iphone/default/img/thumb.png b/htdocs/theme/phones/iphone/default/img/thumb.png deleted file mode 100644 index cefa8fc5e9db724b96d36a8df814ecdf85d05582..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2835 zcmV+u3+(iXP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE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VD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0000!NklvM+ l_8Dya@)x$R&mAm#1^^7g31?suuiO9t002ovPDHLkV1oC&Lec;L diff --git a/htdocs/theme/phones/iphone/default/img/toggle.png b/htdocs/theme/phones/iphone/default/img/toggle.png deleted file mode 100644 index 3b62ebf26eaf8b21e341d413a6bd7cebcf5e7075..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2815 zcmVN`700009a7bBm000XU z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw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*VOx(OQVe-!X_OEL! zXP)jRN0wp49Q(=>PDt*)$slfyumne%b( zz|EDmc8?ij_jlE^RtksgiA*+sdbDScPbgMuxUjI6 zOpi*k5;8`CeTxq1O4AK9k*=H_fvm=@_3rB0s}O|M9z>S6HqK}fecy~112Ui z10wSU>iHI#2|x@`7(fV+`@#U30eMIt(F7j$61oA8l)wWNego&gF+>an0WwEVaNLge z-WCMN3{2`t5FoS6A_}A)CLBQR6glAw6OLdKP(4xJ9KEFIfC@mrx`;IlIe;Q36GqVW zgj&`2Qb|)T&g9%ygZO^~$W|&$$qMLm`LVZ`2j6q}U(52?wV-N$^>tyVa(R8YE zS$(d*cwVOu(Dm3zIx#y}QdG6^>Htl)debpBD)z4*}Q$iB}<+eS( diff --git a/htdocs/theme/phones/iphone/default/img/whiteButton.png b/htdocs/theme/phones/iphone/default/img/whiteButton.png deleted file mode 100644 index 5514b270053a41039e9e96ef8591796521ee0312..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 978 zcmV;@11}R*8aG1*L?d1O->_T@+D~u1Y}!yL0VI=|WL) zUB!jV?nDqFVEqcjNU7Q;7-O1A(q?8dlX-96yZ5-5q-Ly5=jDGlkNe*5{m(h~zIU$B ztvpZh0>hld-kwYNkqy3Ko}K-V%D(G)Z`(9CN35XDjL&xuH$Mh_XF(}UB(Tw%lJL(m|<1LC)=R9eoc+{eJ zNQwFm3ZOo%tAYib`a=Ya6#-N=4JiO(J0G^!!{zGLYx*)_QJi=^gsb6jQm_J=B!6wD zD%0-bC{8`;0(Q9FGD%w0qhLC5rQirtj;nGAUq!X!Dqd2rt6&lNPuJ>g7pqvn zrLC}dJQx&>lhnC-)EE`H)reg0T)izKV$|3W#Z{x-uG+(BCOFiFCeuK~FK_qmdcCS1 z>8qPuMY7^&mwW$}US2j%`m-B`MG8c7zyGk_Te#n^&tIcWp2Z*u%VSYOaGhsH3-(@~ zmGI-aXiXaBcJ0@|xe~1jq8+&sKXGKh9t>WX-&ip>B{%Tf)t#qUx1u_4ei+87UrHDfl6dXpw%k7!k~_oku06C3S8F^@(Qf&-L}LBUh<3`S518 zHslKoXby|rLrF-aMbk8j+ef37#cK7AgI*>xK3*KI+wDGQqnw)Edn!H~2Jv7#l+-p> zSL68q&WJ!JQ!W>a*5>p3XLojzq*mM7in|*4KU7;ZTp6~iyZ`_I07*qoM6N<$f;?{4 AHUIzs diff --git a/htdocs/theme/phones/iphone/default/index.php b/htdocs/theme/phones/iphone/templates/index.php similarity index 100% rename from htdocs/theme/phones/iphone/default/index.php rename to htdocs/theme/phones/iphone/templates/index.php diff --git a/htdocs/theme/phones/iphone/default/templates/login.tpl b/htdocs/theme/phones/iphone/templates/login.tpl similarity index 81% rename from htdocs/theme/phones/iphone/default/templates/login.tpl rename to htdocs/theme/phones/iphone/templates/login.tpl index f337ae00592..6a0a3ff56d2 100644 --- a/htdocs/theme/phones/iphone/default/templates/login.tpl +++ b/htdocs/theme/phones/iphone/templates/login.tpl @@ -29,12 +29,15 @@ {$title} - + - - - + + + + + + @@ -42,7 +45,6 @@

-
diff --git a/htdocs/theme/phones/iphone/theme/default/default.css.php b/htdocs/theme/phones/iphone/theme/default/default.css.php new file mode 100644 index 00000000000..9dfbfd634d5 --- /dev/null +++ b/htdocs/theme/phones/iphone/theme/default/default.css.php @@ -0,0 +1,160 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +/** + * \file htdocs/theme/phones/iphone/default.css.php + * \brief Fichier de style CSS du theme Iphone default + * \version $Id$ + */ + +if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token renewal +if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1'); +if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); +if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1'); +if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); +//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); // We need to use translation files to know direction +if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); + +require_once("../../../../../master.inc.php"); +require_once(DOL_DOCUMENT_ROOT."/lib/functions.lib.php"); + +// Define css type +header('Content-type: text/css'); +// Important: Avoid page request by browser and dynamic build at +// each Dolibarr page access. +if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate'); +else header('Cache-Control: no-cache'); + + +if (! empty($_GET["lang"])) $langs->setDefaultLang($_GET["lang"]); // If language was forced on URL by the main.inc.php +$langs->load("main",0,1); +$right=($langs->direction=='rtl'?'left':'right'); +$left=($langs->direction=='rtl'?'right':'left'); +?> + +body { + color: #000000; +} + +li > a[selected], li > a:active { + background-image: url(), + url() !important; +} + +li > a[selected="progress"] { + background-image: url(), + url() !important; +} + +/************************************************************************************************/ + +body > .toolbar { + background: url() #6d84a2 repeat-x; +} + +.button { + -webkit-border-image: url() 0 5 0 5; + -moz-border-image: url() 0 5 0 5; +} + +.blueButton { + -webkit-border-image: url() 0 5 0 5; + -moz-border-image: url() 0 5 0 5; +} + +#backButton { + -webkit-border-image: url() 0 8 0 14; + -moz-border-image: url() 0 8 0 14; + background: url() repeat-x; +} + + +.whiteButton { + -webkit-border-image: url() 0 12 0 12; + -moz-border-image: url() 0 12 0 12; + text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0; +} + +.redButton { + -webkit-border-image: url() 0 12 0 12; + -moz-border-image: url(') 0 12 0 12; +} + +.grayButton { + -webkit-border-image: url() 0 12 0 12; + -moz-border-image: url(') 0 12 0 12; + color: #FFFFFF; +} + +/************************************************************************************************/ + +body > ul > li.group { + opacity:0.7; + background: url() repeat-x; +} + +body > ul > li > a { + background: url() no-repeat right center; +} + +/************************************************************************************************/ + +.dialog > fieldset { + background: url() #7388a5 repeat-x; +} + +/************************************************************************************************/ + +body > .panel { + background: #c8c8c8 url(); +} + +.toggle { + border: 1px solid #888888; + background: #FFFFFF url() repeat-x; +} + +.toggle[toggled="true"] { + background: #194fdb url() repeat-x; +} + +.thumb { + background: #ffffff url() repeat-x; +} + +/************************************************************************************************/ +#preloader { + display: none; + background-image: url(), + url(), + url(), + url(), + url(); +} + +.toolbar > h1.titleImg { + background: url() no-repeat top center; + color: rgba(0,0,0,0); +} + +.backButtonImg { + width: 50px; + background: url() no-repeat center left, + url() repeat-x top left !important; + color: rgba(0,0,0,0); +} diff --git a/htdocs/theme/phones/iphone/theme/default/img/back-img.png b/htdocs/theme/phones/iphone/theme/default/img/back-img.png new file mode 100644 index 0000000000000000000000000000000000000000..9df2d7f69c8e26d11ca2e897e2a5abe2a8705359 GIT binary patch literal 504 zcmV|ow{}{E`d(EIS7tU z3Vs3COm5Q2p_{FPL&xGErN)2C6^`q3&GjYM1TOF!!aXm)Ja@?u76buH8ygo`SsGUj zxB}Ig1jaHTFXMUMR%A2AazySP5jRsm?5mO^SEC^`aD8-m&yYTQ_@|zsO!3|2+-DF#dxH7Y?)7XDQP_Tg>h*< z@d9EVz<2>+KNR+TUp0({rCY!gXwH)s@{Yg__?dIoZ$T~Urw*>HqO0NopGGHGR u!!HIn0f(4scAb6JDs75?00030{{sL?csJYznleBD0000YmyG(7W4QgbxR+kZ&{6{mZ;IEGZrNis0loV?<7{J9I;pC~v#Z>r^4 zyZO6;iO>C$0k)~y&YAzy+7`Xz<*|I5Eol@LW~^eqCZ%J2>@k7hty2^i)d)6MKl5Sh zUlW<|W+w09&60bH3X(rJB(+(t<_B8A@c%zE!^v4XHg(%F`$2q9S3j3^P6lLrI^Nl_6|D-1Qt!&K8$-|A^!W@yY_ zgqwHt;&-<*&!3%TcXmm7{}(E;v~`GH{U~asGF%z^O?bLibsN`i)Ig@xAh4ME+dxve zpD4#0PC+DThN9PqK}UpptUZ*5Es%o7;KJ?thcMXug$}Z|`vd3kMmA6*m1D@2fO~Nd zzT`3Y*x>p%P?L$zumsbnYgNNDw+52Ten%;Dt2v099%E=SiHWyI@UEN`@Qy9+P?O8Y zFixyM(ftzS?fY+FiKOzlb6*LaEecoc5bpTVU%X>aZ&70ldB~m!u}eE&!SYZ&0F~Yi z`}_eM(a-o{Cyp#^9^py!;vLJ{ROp1*`Hdr-)+E=U^Q9jKU$!LPv8+w`^D&UQ^)D#uH+dnJX))m5 zhJNB*NxWlOo2?oL$joXUlq;M;)g3vytt-&Fw$H^ombLky=M6|GnFm#SPX(EF3cZd@ zS-fLen~hz<-5{`hfbLi05H<4pfaZ_!aJ6= zDd{kSR7;g;?D3%8v|2IVv8+vT`v^!==P<-i1CaJFR*ZKnYx8>Zpm6J2%R{2Jqpoir z4Z2uGc*n9fueTULob&JDi|?Yk&06>cmpaxyy90MLi&5V?Zgn`(I1np~cPwkOipJVz zc0lt$3#2nf}kwxH7>_M!w zp;5PhCViZVcPwl3Myn7z8qDA{dPz8Ew;)o!5e|x7uGo=424{^&vUuT)qgL&?T(Ktq zCRnDH_Ru*P#ND32g~!rMvPL01!Cw2)C?&YOkNdsjsPCJ-&{&BkghyHr$ncc#`clGc zfiM0McU5*spNB6bmfp5RZ5BADGayFq2F^n-34bDohNoi?cX=Vz^8X@3BOCgog)>^M zuwu})T)0~au_=^e3T$FJd4Ol;2qY>i_gMO8s%bZ)P49&#`T;KC2}?VOVKRkE3<+o1 z8_yw{=KqmnY5Qy8O`ATX=ou|G`~d&}|NjF3O7*+#LU?tT00000NkvXXu0mjfZ@ABQ literal 0 HcmV?d00001 diff --git a/htdocs/includes/iphone/iui/blueButton.png b/htdocs/theme/phones/iphone/theme/default/img/blueButton.png similarity index 100% rename from htdocs/includes/iphone/iui/blueButton.png rename to htdocs/theme/phones/iphone/theme/default/img/blueButton.png diff --git a/htdocs/includes/iphone/iui/cancel.png b/htdocs/theme/phones/iphone/theme/default/img/cancel.png similarity index 100% rename from htdocs/includes/iphone/iui/cancel.png rename to htdocs/theme/phones/iphone/theme/default/img/cancel.png diff --git a/htdocs/includes/iphone/iui/grayButton.png b/htdocs/theme/phones/iphone/theme/default/img/grayButton.png similarity index 100% rename from htdocs/includes/iphone/iui/grayButton.png rename to htdocs/theme/phones/iphone/theme/default/img/grayButton.png diff --git a/htdocs/includes/iphone/iui/listArrow.png b/htdocs/theme/phones/iphone/theme/default/img/listArrow.png similarity index 100% rename from htdocs/includes/iphone/iui/listArrow.png rename to htdocs/theme/phones/iphone/theme/default/img/listArrow.png diff --git a/htdocs/includes/iphone/iui/listArrowSel.png b/htdocs/theme/phones/iphone/theme/default/img/listArrowSel.png similarity index 100% rename from htdocs/includes/iphone/iui/listArrowSel.png rename to htdocs/theme/phones/iphone/theme/default/img/listArrowSel.png diff --git a/htdocs/includes/iphone/iui/listGroup.png b/htdocs/theme/phones/iphone/theme/default/img/listGroup.png similarity index 100% rename from htdocs/includes/iphone/iui/listGroup.png rename to htdocs/theme/phones/iphone/theme/default/img/listGroup.png diff --git a/htdocs/includes/iphone/iui/loading.gif b/htdocs/theme/phones/iphone/theme/default/img/loading.gif similarity index 100% rename from htdocs/includes/iphone/iui/loading.gif rename to htdocs/theme/phones/iphone/theme/default/img/loading.gif diff --git a/htdocs/includes/iphone/iui/pinstripes.png b/htdocs/theme/phones/iphone/theme/default/img/pinstripes.png similarity index 100% rename from htdocs/includes/iphone/iui/pinstripes.png rename to htdocs/theme/phones/iphone/theme/default/img/pinstripes.png diff --git a/htdocs/includes/iphone/iui/redButton.png b/htdocs/theme/phones/iphone/theme/default/img/redButton.png similarity index 100% rename from htdocs/includes/iphone/iui/redButton.png rename to htdocs/theme/phones/iphone/theme/default/img/redButton.png diff --git a/htdocs/includes/iphone/iui/selection.png b/htdocs/theme/phones/iphone/theme/default/img/selection.png similarity index 100% rename from htdocs/includes/iphone/iui/selection.png rename to htdocs/theme/phones/iphone/theme/default/img/selection.png diff --git a/htdocs/includes/iphone/iui/thumb.png b/htdocs/theme/phones/iphone/theme/default/img/thumb.png similarity index 100% rename from htdocs/includes/iphone/iui/thumb.png rename to htdocs/theme/phones/iphone/theme/default/img/thumb.png diff --git a/htdocs/theme/phones/iphone/theme/default/img/title-img.png b/htdocs/theme/phones/iphone/theme/default/img/title-img.png new file mode 100644 index 0000000000000000000000000000000000000000..05c10a6741ffbceafbb7623db4d8bbc17ea6ffc0 GIT binary patch literal 822 zcmeAS@N?(olHy`uVBq!ia0vp^(|}lugAGUqaxQuUq*#ibJVQ8upoSx*1IXtr@Q5r1 zs=p4xj7}P}D}aKMC9V-A!TD(=<%vb94CUqJdYO6I#mR{Use1WE>9gP2NHH)lZT56= z45^s&_Kt0~NTA5EkN-I@E=W>Zq;x|^W0~;AppBoG261oPaC-X&L6^WaYu;?R=oKB` zCGwNu77J&GhLC{*N8p8&qbrWsh;3%{O?#J?R=oM#ozKmR2IbG*C{}Lz{_b>-=b@cn z%`UuWi!rX;5F^t3H*bNKu{9gdQ=Y#QzASn$hcUq-V4LpC@{@Mk7-w^})qDPmE4bI^ zaI@0WJN4I(_a3XBvemFm*}Rv3j&W4Mxld&~oa7%jR`GM4lYDi_ef9nQ_v6gxbH$3t z>4>+opLTtCuqg1#w@}3ooEw_{t~;M4t>fAL>u$65v*3l@i?*GQNHg>KXMb$clApcr zj{jY~?I6=Vrt0Ev=NZ=a<{n-91gPjx^V3Bi5_W3XMCftxPs7Cx;tt!cUC^~|8|O_K ziRd)}>ji_juQ^TsIFZY=obA{x(O0HUSqD$;J@#IIVfNpymZq<3o%XtUXhlrgC-5(M z`>89&n{}Vmm!{urH~KnDWo1I?9`2sG+L5nS9-3Y&Ia$>^F=>MubF%uGHwm3l$&H4L z!KzuNUR?)garE#qe7F9d%we?I`@qoyioug6?M>1+n$XK!-1zbFfh9BNnr{xhJZGk? z!Dj0NhxPhDuV|OcUVrX><$9N(+h^V}O=oWJW%6&ZG@i|t*0}b7UBZ7Uxiq;Q*R$7` zPK()KwT^LlgK})2bmU<}ZBB{FU$#2M_fC8i(y@f~0n-Odr=PPY$+@qH*7juMcDTe- zz*e!>PgT58I^}%ZNpG_VhDmXgd`q{#cw4+T{6L^*c<6WQk83Aet>2i(e7pGD^r+h& zzc^!F?zv>`{Y~v<=BA@nC!`-peh{fxSG0Xb49hz9W7+%djDNn}5pKBIF@b->?$5>I xH`#A&PAT6!bE-(yX{AbF47*;+))7B1fBYb4-WI3hO~5qH;OXk;vd$@?2>>t}bIkw% literal 0 HcmV?d00001 diff --git a/htdocs/includes/iphone/iui/toggle.png b/htdocs/theme/phones/iphone/theme/default/img/toggle.png similarity index 100% rename from htdocs/includes/iphone/iui/toggle.png rename to htdocs/theme/phones/iphone/theme/default/img/toggle.png diff --git a/htdocs/includes/iphone/iui/toggleOn.png b/htdocs/theme/phones/iphone/theme/default/img/toggleOn.png similarity index 100% rename from htdocs/includes/iphone/iui/toggleOn.png rename to htdocs/theme/phones/iphone/theme/default/img/toggleOn.png diff --git a/htdocs/includes/iphone/iui/toolButton.png b/htdocs/theme/phones/iphone/theme/default/img/toolButton.png similarity index 100% rename from htdocs/includes/iphone/iui/toolButton.png rename to htdocs/theme/phones/iphone/theme/default/img/toolButton.png diff --git a/htdocs/includes/iphone/iui/toolbar.png b/htdocs/theme/phones/iphone/theme/default/img/toolbar.png similarity index 100% rename from htdocs/includes/iphone/iui/toolbar.png rename to htdocs/theme/phones/iphone/theme/default/img/toolbar.png diff --git a/htdocs/includes/iphone/iui/whiteButton.png b/htdocs/theme/phones/iphone/theme/default/img/whiteButton.png similarity index 100% rename from htdocs/includes/iphone/iui/whiteButton.png rename to htdocs/theme/phones/iphone/theme/default/img/whiteButton.png diff --git a/htdocs/theme/phones/iphone/default/templates/index.php b/htdocs/theme/phones/iphone/theme/default/index.php similarity index 100% rename from htdocs/theme/phones/iphone/default/templates/index.php rename to htdocs/theme/phones/iphone/theme/default/index.php diff --git a/htdocs/theme/phones/others/default/templates/index.php b/htdocs/theme/phones/others/templates/index.php similarity index 100% rename from htdocs/theme/phones/others/default/templates/index.php rename to htdocs/theme/phones/others/templates/index.php diff --git a/htdocs/theme/phones/others/default/templates/login.tpl b/htdocs/theme/phones/others/templates/login.tpl similarity index 100% rename from htdocs/theme/phones/others/default/templates/login.tpl rename to htdocs/theme/phones/others/templates/login.tpl