2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Merging the updated Limesurvey 1.92+ branch of queXS to trunk

This commit is contained in:
azammitdcarf
2012-11-21 04:04:39 +00:00
parent 153fc8ca0d
commit c569559964
856 changed files with 254260 additions and 819988 deletions

View File

@@ -1,122 +1,122 @@
/**
* Cookies.js, providing easy access to cookies thru the cookiejar object. Enabling so-called "subcookies" thru the subcookiejar
* object.
* See this related blogpost for more information on how to use these objects:
* <http://www.whatstyle.net/articles/28/subcookies>
* Check out this other blogpost for information about the new version:
* <http://www.whatstyle.net/articles/46/subcookies_v2>
*
* @author Harmen Janssen <http://www.whatstyle.net>
* @version 2.0
*
*/
/* based on http://www.quirksmode.org/js/cookies.html, by Peter-Paul Koch */
var cookiejar = {
/* set a cookie */
bake: function(cookieName,cookieValue,days,path) {
var expires='';
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
}
var thePath = '; path=/';
if (path) {
thePath = '; path=' + path;
}
document.cookie = cookieName+'='+escape(cookieValue)+expires+thePath;
return true;
},
/* get a cookie value */
fetch: function(cookieName) {
var nameEQ = cookieName + '=';
var ca = document.cookie.split(';');
for (var i=0; i<ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) == 0) {
return unescape(c.substring(nameEQ.length, c.length));
}
}
return null;
},
/* delete a cookie */
crumble: function(cookieName) {
return cookiejar.bake(cookieName,'',-1);
}
};
/* circumventing browser restrictions on the number of cookies one can use */
var subcookiejar = {
nameValueSeparator: '$$:$$',
subcookieSeparator: '$$/$$',
/* set a cookie. subcookieObj is a collection of cookies to be. Every member of subcookieObj is the name of the cookie, its value
* the cookie value
*/
bake: function(cookieName,subcookieObj,days,path) {
var existingCookie;
/* check for existing cookie */
if (existingCookie = subcookiejar.fetch (cookieName)) {
/* if a cookie by the same name is found,
* append its values to the subcookieObj.
*/
for (var i in existingCookie) {
if (!(i in subcookieObj)) {
subcookieObj[i] = existingCookie[i];
}
}
}
var cookieValue = '';
for (var i in subcookieObj) {
cookieValue += i + subcookiejar.nameValueSeparator;
cookieValue += subcookieObj[i];
cookieValue += subcookiejar.subcookieSeparator;
}
/* remove trailing subcookieSeparator */
cookieValue = cookieValue.substring(0,cookieValue.length-subcookiejar.subcookieSeparator.length);
return cookiejar.bake(cookieName,cookieValue,days,path);
},
/* get a subcookie */
fetch: function(cookieName,subcookieName) {
var cookieValue = cookiejar.fetch(cookieName);
/* proceed only if a cookie was found */
if (!cookieValue) {
return null;
}
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
var cookieObj = {};
for (var i=0,sclen=subcookies.length; i<sclen; i++) {
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
cookieObj [sc[0]] = sc[1];
}
/* if subcookieName is given, return that subcookie if available, or null.
* else, return the entire cookie as an object literal
*/
if (subcookieName != undefined) {
if (subcookieName in cookieObj) {
return cookieObj[subcookieName];
}
return null;
}
return cookieObj;
},
/* delete a subcookie */
crumble: function(cookieName,subcookieName,days,path) {
var cookieValue = cookiejar.fetch(cookieName);
if (!cookieValue) {
return false;
}
var newCookieObj = {};
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
for (var i=0, sclen=subcookies.length; i<sclen; i++) {
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
if (sc[0] != subcookieName) {
newCookieObj[sc[0]] = sc[1];
}
}
return subcookiejar.bake(cookieName,newCookieObj,days,path);
}
/**
* Cookies.js, providing easy access to cookies thru the cookiejar object. Enabling so-called "subcookies" thru the subcookiejar
* object.
* See this related blogpost for more information on how to use these objects:
* <http://www.whatstyle.net/articles/28/subcookies>
* Check out this other blogpost for information about the new version:
* <http://www.whatstyle.net/articles/46/subcookies_v2>
*
* @author Harmen Janssen <http://www.whatstyle.net>
* @version 2.0
*
*/
/* based on http://www.quirksmode.org/js/cookies.html, by Peter-Paul Koch */
var cookiejar = {
/* set a cookie */
bake: function(cookieName,cookieValue,days,path) {
var expires='';
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
}
var thePath = '; path=/';
if (path) {
thePath = '; path=' + path;
}
document.cookie = cookieName+'='+escape(cookieValue)+expires+thePath;
return true;
},
/* get a cookie value */
fetch: function(cookieName) {
var nameEQ = cookieName + '=';
var ca = document.cookie.split(';');
for (var i=0; i<ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) == 0) {
return unescape(c.substring(nameEQ.length, c.length));
}
}
return null;
},
/* delete a cookie */
crumble: function(cookieName) {
return cookiejar.bake(cookieName,'',-1);
}
};
/* circumventing browser restrictions on the number of cookies one can use */
var subcookiejar = {
nameValueSeparator: '$$:$$',
subcookieSeparator: '$$/$$',
/* set a cookie. subcookieObj is a collection of cookies to be. Every member of subcookieObj is the name of the cookie, its value
* the cookie value
*/
bake: function(cookieName,subcookieObj,days,path) {
var existingCookie;
/* check for existing cookie */
if (existingCookie = subcookiejar.fetch (cookieName)) {
/* if a cookie by the same name is found,
* append its values to the subcookieObj.
*/
for (var i in existingCookie) {
if (!(i in subcookieObj)) {
subcookieObj[i] = existingCookie[i];
}
}
}
var cookieValue = '';
for (var i in subcookieObj) {
cookieValue += i + subcookiejar.nameValueSeparator;
cookieValue += subcookieObj[i];
cookieValue += subcookiejar.subcookieSeparator;
}
/* remove trailing subcookieSeparator */
cookieValue = cookieValue.substring(0,cookieValue.length-subcookiejar.subcookieSeparator.length);
return cookiejar.bake(cookieName,cookieValue,days,path);
},
/* get a subcookie */
fetch: function(cookieName,subcookieName) {
var cookieValue = cookiejar.fetch(cookieName);
/* proceed only if a cookie was found */
if (!cookieValue) {
return null;
}
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
var cookieObj = {};
for (var i=0,sclen=subcookies.length; i<sclen; i++) {
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
cookieObj [sc[0]] = sc[1];
}
/* if subcookieName is given, return that subcookie if available, or null.
* else, return the entire cookie as an object literal
*/
if (subcookieName != undefined) {
if (subcookieName in cookieObj) {
return cookieObj[subcookieName];
}
return null;
}
return cookieObj;
},
/* delete a subcookie */
crumble: function(cookieName,subcookieName,days,path) {
var cookieValue = cookiejar.fetch(cookieName);
if (!cookieValue) {
return false;
}
var newCookieObj = {};
var subcookies = cookieValue.split(subcookiejar.subcookieSeparator);
for (var i=0, sclen=subcookies.length; i<sclen; i++) {
var sc = subcookies[i].split(subcookiejar.nameValueSeparator);
if (sc[0] != subcookieName) {
newCookieObj[sc[0]] = sc[1];
}
}
return subcookiejar.bake(cookieName,newCookieObj,days,path);
}
};

File diff suppressed because it is too large Load Diff

View File

@@ -1,102 +1,102 @@
/* Alternate style sheet for jQuery Keypad v1.3.0 */
button.keypad-trigger {
width: 25px;
padding: 0px;
}
img.keypad-trigger {
margin: 2px;
vertical-align: middle;
}
.keypad-popup {
display: none;
z-index: 10;
margin: 0;
padding: 0;
background-color: #fff;
color: #000;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
}
.keypad-keyentry {
display: none;
}
.keypad-inline {
background-color: #f4f4f4;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.keypad-disabled {
position: absolute;
z-index: 100;
background-color: white;
opacity: 0.25;
filter: alpha(opacity=25);
}
.keypad-rtl {
direction: rtl;
}
.keypad-prompt {
clear: both;
text-align: center;
}
.keypad-prompt.ui-widget-header {
margin: 2px;
}
.keypad-row {
clear: both;
float: left;
width: 100%;
}
.keypad-space {
float: left;
margin: 2px;
width: 24px;
}
* html .keypad-space { /* IE6 */
margin: 0px;
width: 28px;
}
.keypad-half-space {
float: left;
margin: 1px;
width: 12px;
}
* html .keypad-half-space { /* IE6 */
margin: 0px;
width: 14px;
}
.keypad-key {
float: left;
margin: 2px;
padding: 0px;
width: 24px;
text-align: center;
cursor: pointer;
}
.keypad-spacebar {
width: 164px;
}
.keypad-enter {
width: 52px;
}
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
width: 108px;
font-weight: bold;
}
.keypad-cover {
display: none;
display/**/: block;
position: absolute;
z-index: -1;
filter: mask();
top: -4px;
left: -4px;
width: 125px;
height: 200px;
}
/* Alternate style sheet for jQuery Keypad v1.3.0 */
button.keypad-trigger {
width: 25px;
padding: 0px;
}
img.keypad-trigger {
margin: 2px;
vertical-align: middle;
}
.keypad-popup {
display: none;
z-index: 10;
margin: 0;
padding: 0;
background-color: #fff;
color: #000;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
}
.keypad-keyentry {
display: none;
}
.keypad-inline {
background-color: #f4f4f4;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.keypad-disabled {
position: absolute;
z-index: 100;
background-color: white;
opacity: 0.25;
filter: alpha(opacity=25);
}
.keypad-rtl {
direction: rtl;
}
.keypad-prompt {
clear: both;
text-align: center;
}
.keypad-prompt.ui-widget-header {
margin: 2px;
}
.keypad-row {
clear: both;
float: left;
width: 100%;
}
.keypad-space {
float: left;
margin: 2px;
width: 24px;
}
* html .keypad-space { /* IE6 */
margin: 0px;
width: 28px;
}
.keypad-half-space {
float: left;
margin: 1px;
width: 12px;
}
* html .keypad-half-space { /* IE6 */
margin: 0px;
width: 14px;
}
.keypad-key {
float: left;
margin: 2px;
padding: 0px;
width: 24px;
text-align: center;
cursor: pointer;
}
.keypad-spacebar {
width: 164px;
}
.keypad-enter {
width: 52px;
}
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
width: 108px;
font-weight: bold;
}
.keypad-cover {
display: none;
display/**/: block;
position: absolute;
z-index: -1;
filter: mask();
top: -4px;
left: -4px;
width: 125px;
height: 200px;
}

View File

@@ -1,124 +1,124 @@
/* Main style sheet for jQuery Keypad v1.3.0 */
button.keypad-trigger {
width: 25px;
padding: 0px;
}
img.keypad-trigger {
margin: 2px;
vertical-align: middle;
}
.keypad-popup {
display: none;
z-index: 10;
margin: 0;
padding: 0;
background-color: #fff;
color: #000;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
}
.keypad-keyentry {
display: none;
}
.keypad-inline {
background-color: #f4f4f4;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.keypad-disabled {
position: absolute;
z-index: 100;
background-color: white;
opacity: 0.5;
filter: alpha(opacity=50);
}
.keypad-rtl {
direction: rtl;
}
.keypad-prompt {
clear: both;
text-align: center;
}
.keypad-prompt.ui-widget-header {
margin: 2px;
}
.keypad-row {
clear: both;
float: left;
width: 100%;
}
.keypad-space {
float: left;
margin: 2px;
width: 24px;
}
* html .keypad-space { /* IE6 */
margin: 0px;
width: 28px;
}
.keypad-half-space {
float: left;
margin: 1px;
width: 12px;
}
* html .keypad-half-space { /* IE6 */
margin: 0px;
width: 14px;
}
.keypad-key {
float: left;
margin: 2px;
padding: 0px;
width: 24px;
background-color: #f4f4f4;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
text-align: center;
cursor: pointer;
}
.keypad-key[disabled] {
border: 2px outset;
}
.keypad-key-down {
}
.keypad-spacebar {
width: 164px;
}
.keypad-enter {
width: 52px;
}
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
width: 52px;
color: #fff;
font-weight: bold;
}
.keypad-clear {
background-color: #a00;
}
.keypad-back {
background-color: #00a;
}
.keypad-close {
background-color: #0a0;
}
.keypad-shift {
background-color: #0aa;
}
.keypad-cover {
display: none;
display/**/: block;
position: absolute;
z-index: -1;
filter: mask();
top: -4px;
left: -4px;
width: 125px;
height: 200px;
}
/* Main style sheet for jQuery Keypad v1.3.0 */
button.keypad-trigger {
width: 25px;
padding: 0px;
}
img.keypad-trigger {
margin: 2px;
vertical-align: middle;
}
.keypad-popup {
display: none;
z-index: 10;
margin: 0;
padding: 0;
background-color: #fff;
color: #000;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
}
.keypad-keyentry {
display: none;
}
.keypad-inline {
background-color: #f4f4f4;
border: 1px solid #888;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
}
.keypad-disabled {
position: absolute;
z-index: 100;
background-color: white;
opacity: 0.5;
filter: alpha(opacity=50);
}
.keypad-rtl {
direction: rtl;
}
.keypad-prompt {
clear: both;
text-align: center;
}
.keypad-prompt.ui-widget-header {
margin: 2px;
}
.keypad-row {
clear: both;
float: left;
width: 100%;
}
.keypad-space {
float: left;
margin: 2px;
width: 24px;
}
* html .keypad-space { /* IE6 */
margin: 0px;
width: 28px;
}
.keypad-half-space {
float: left;
margin: 1px;
width: 12px;
}
* html .keypad-half-space { /* IE6 */
margin: 0px;
width: 14px;
}
.keypad-key {
float: left;
margin: 2px;
padding: 0px;
width: 24px;
background-color: #f4f4f4;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
text-align: center;
cursor: pointer;
}
.keypad-key[disabled] {
border: 2px outset;
}
.keypad-key-down {
}
.keypad-spacebar {
width: 164px;
}
.keypad-enter {
width: 52px;
}
.keypad-clear, .keypad-back, .keypad-close, .keypad-shift {
width: 52px;
color: #fff;
font-weight: bold;
}
.keypad-clear {
background-color: #a00;
}
.keypad-back {
background-color: #00a;
}
.keypad-close {
background-color: #0a0;
}
.keypad-shift {
background-color: #0aa;
}
.keypad-cover {
display: none;
display/**/: block;
position: absolute;
z-index: -1;
filter: mask();
top: -4px;
left: -4px;
width: 125px;
height: 200px;
}

View File

@@ -1,37 +1,37 @@
/*****
Default styles for the jQuery UI progress bar
*****/
#progress-wrapper {
width: 252px;
height: 2em;
margin: 10px auto 0 auto;
font-size: 12px;
}
#progress-wrapper #progress-pre {
float: left;
margin: 0 5px 0 0;
width: 45px;
text-align: right;
}
#progress-wrapper .ui-widget-content {
float: left;
width: 150px;
height: 1em;
text-align: left;
border: 1px solid #666666;
}
#progress-wrapper .ui-widget-header {
background-color: #AAAAAA;
background-image: none;
border: 1px solid #666666;
}
#progress-wrapper #progress-post {
float: left;
margin: 0 0 0 5px;
width: 45px;
text-align: left;
/*****
Default styles for the jQuery UI progress bar
*****/
#progress-wrapper {
width: 252px;
height: 2em;
margin: 10px auto 0 auto;
font-size: 12px;
}
#progress-wrapper #progress-pre {
float: left;
margin: 0 5px 0 0;
width: 45px;
text-align: right;
}
#progress-wrapper .ui-widget-content {
float: left;
width: 150px;
height: 1em;
text-align: left;
border: 1px solid #666666;
}
#progress-wrapper .ui-widget-header {
background-color: #AAAAAA;
background-image: none;
border: 1px solid #666666;
}
#progress-wrapper #progress-post {
float: left;
margin: 0 0 0 5px;
width: 45px;
text-align: left;
}

View File

@@ -1,174 +1,174 @@
/************** Skin 1 *********************/
.dd {
/*display:inline-block !important;*/
text-align:left;
background-color:#fff;
font-family:Arial, Helvetica, sans-serif;
float:left;
}
.dd span, .dd a{
font-size: 8pt;
}
.dd .ddTitle {
background:#f2f2f2;
border:1px solid #c3c3c3;
padding:3px;
text-indent:0;
cursor:default;
overflow:hidden;
height:16px;
}
.dd .ddTitle span.arrow {
background:url(dd_arrow.gif) no-repeat 0 0; float:right; display:inline-block;width:16px; height:16px; cursor:pointer;
}
.dd .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:16px;}
.dd .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0}
.dd .ddTitle img.selected {
padding:0 3px 0 0;
vertical-align:top;
}
.dd .ddChild {
position:absolute;
border:1px solid #c3c3c3;
border-top:none;
display:none;
margin:0;
width:auto;
overflow:auto;
overflow-x:hidden !important;
background-color:#ffffff;
}
.dd .ddChild .opta a, .dd .ddChild .opta a:visited {padding-left:10px}
.dd .ddChild a {
display:block;
padding:2px 0 2px 3px;
text-decoration:none;
color:#000;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
}
.dd .ddChild a:hover {
background-color:#66CCFF;
}
.dd .ddChild a img {
border:0;
padding:0 2px 0 0;
vertical-align:middle;
}
.dd .ddChild a.selected {
background-color:#66CCFF;
}
.hidden {display:none;}
.dd .borderTop{border-top:1px solid #c3c3c3 !important;}
.dd .noBorderTop{border-top:none 0 !important}
/************** Skin 2 *********************/
.dd2 {
/*display:inline-block !important;*/
text-align:left;
background-color:#fff;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
float:left;
}
.dd2 .ddTitle {
background:transparent url(../../images/msDropDown.gif) no-repeat;
padding:0 3px;
text-indent:0;
cursor:default;
overflow:hidden;
height:36px;
}
.dd2 .ddTitle span.arrow {
background:transparent url(../../images/icon-arrow.gif) no-repeat 0 0; float:right; display:inline-block;width:27px; height:27px; cursor:pointer; top:5px; position:relative; right:2px;
}
.dd2 .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:33px; font-family:Georgia, "Times New Roman", Times, serif; font-size:16px; font-weight:bold; color:#fff; _position:relative; _top:4px}
.dd2 .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0;}
.dd2 .ddTitle img.selected {
padding:0 2px 0 0;
vertical-align:top;
}
.dd2 .ddChild {
position:absolute;
border:1px solid #c3c3c3;
border-top:none;
display:none;
margin:0;
width:auto;
overflow:auto;
overflow-x:hidden !important;
background-color:#ffffff;
font-size:14px;
}
.dd2 .ddChild .opta a, .dd2 .ddChild .opta a:visited {padding-left:10px}
.dd2 .ddChild a {
display:block;
padding:3px 0 3px 3px;
text-decoration:none;
color:#000;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
}
.dd2 .ddChild a:hover {
background-color:#66CCFF;
}
.dd2 .ddChild a img {
border:0;
padding:0 2px 0 0;
vertical-align:middle;
}
.dd2 .ddChild a.selected {
background-color:#66CCFF;
}
.dd2 .borderTop{border-top:1px solid #c3c3c3 !important;}
.dd2 .noBorderTop{border-top:none 0 !important}
/************* use sprite *****************/
.dd .ddChild a.sprite, .dd .ddChild a.sprite:visited {
background-image:url(../icons/sprite.gif);
background-repeat:no-repeat;
padding-left:24px;
}
.dd .ddChild a.calendar, .dd .ddChild a.calendar:visited {
background-position:0 -404px;
}
.dd .ddChild a.shoppingcart, .dd .ddChild a.shoppingcart:visited {
background-position:0 -330px;
}
.dd .ddChild a.cd, .dd .ddChild a.cd:visited {
background-position:0 -439px;
}
.dd .ddChild a.email, .dd .ddChild a.email:visited {
background-position:0 -256px;
}
.dd .ddChild a.faq, .dd .ddChild a.faq:visited {
background-position:0 -183px;
}
.dd .ddChild a.games,
.dd .ddChild a.games:visited {
background-position:0 -365px;
}
.dd .ddChild a.music, .dd .ddChild a.music:visited {
background-position:0 -146px;
}
.dd .ddChild a.phone, .dd .ddChild a.phone:visited {
background-position:0 -109px;
}
.dd .ddChild a.graph, .dd .ddChild a.graph:visited {
background-position:0 -73px;
}
.dd .ddChild a.secured, .dd .ddChild a.secured:visited {
background-position:0 -37px;
}
.dd .ddChild a.video, .dd .ddChild a.video:visited {
background-position:0 0;
}
/************** Skin 1 *********************/
.dd {
/*display:inline-block !important;*/
text-align:left;
background-color:#fff;
font-family:Arial, Helvetica, sans-serif;
float:left;
}
.dd span, .dd a{
font-size: 8pt;
}
.dd .ddTitle {
background:#f2f2f2;
border:1px solid #c3c3c3;
padding:3px;
text-indent:0;
cursor:default;
overflow:hidden;
height:16px;
}
.dd .ddTitle span.arrow {
background:url(dd_arrow.gif) no-repeat 0 0; float:right; display:inline-block;width:16px; height:16px; cursor:pointer;
}
.dd .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:16px;}
.dd .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0}
.dd .ddTitle img.selected {
padding:0 3px 0 0;
vertical-align:top;
}
.dd .ddChild {
position:absolute;
border:1px solid #c3c3c3;
border-top:none;
display:none;
margin:0;
width:auto;
overflow:auto;
overflow-x:hidden !important;
background-color:#ffffff;
}
.dd .ddChild .opta a, .dd .ddChild .opta a:visited {padding-left:10px}
.dd .ddChild a {
display:block;
padding:2px 0 2px 3px;
text-decoration:none;
color:#000;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
}
.dd .ddChild a:hover {
background-color:#66CCFF;
}
.dd .ddChild a img {
border:0;
padding:0 2px 0 0;
vertical-align:middle;
}
.dd .ddChild a.selected {
background-color:#66CCFF;
}
.hidden {display:none;}
.dd .borderTop{border-top:1px solid #c3c3c3 !important;}
.dd .noBorderTop{border-top:none 0 !important}
/************** Skin 2 *********************/
.dd2 {
/*display:inline-block !important;*/
text-align:left;
background-color:#fff;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
float:left;
}
.dd2 .ddTitle {
background:transparent url(../../images/msDropDown.gif) no-repeat;
padding:0 3px;
text-indent:0;
cursor:default;
overflow:hidden;
height:36px;
}
.dd2 .ddTitle span.arrow {
background:transparent url(../../images/icon-arrow.gif) no-repeat 0 0; float:right; display:inline-block;width:27px; height:27px; cursor:pointer; top:5px; position:relative; right:2px;
}
.dd2 .ddTitle span.ddTitleText {text-indent:1px; overflow:hidden; line-height:33px; font-family:Georgia, "Times New Roman", Times, serif; font-size:16px; font-weight:bold; color:#fff; _position:relative; _top:4px}
.dd2 .ddTitle span.ddTitleText img{text-align:left; padding:0 2px 0 0;}
.dd2 .ddTitle img.selected {
padding:0 2px 0 0;
vertical-align:top;
}
.dd2 .ddChild {
position:absolute;
border:1px solid #c3c3c3;
border-top:none;
display:none;
margin:0;
width:auto;
overflow:auto;
overflow-x:hidden !important;
background-color:#ffffff;
font-size:14px;
}
.dd2 .ddChild .opta a, .dd2 .ddChild .opta a:visited {padding-left:10px}
.dd2 .ddChild a {
display:block;
padding:3px 0 3px 3px;
text-decoration:none;
color:#000;
overflow:hidden;
white-space:nowrap;
cursor:pointer;
}
.dd2 .ddChild a:hover {
background-color:#66CCFF;
}
.dd2 .ddChild a img {
border:0;
padding:0 2px 0 0;
vertical-align:middle;
}
.dd2 .ddChild a.selected {
background-color:#66CCFF;
}
.dd2 .borderTop{border-top:1px solid #c3c3c3 !important;}
.dd2 .noBorderTop{border-top:none 0 !important}
/************* use sprite *****************/
.dd .ddChild a.sprite, .dd .ddChild a.sprite:visited {
background-image:url(../icons/sprite.gif);
background-repeat:no-repeat;
padding-left:24px;
}
.dd .ddChild a.calendar, .dd .ddChild a.calendar:visited {
background-position:0 -404px;
}
.dd .ddChild a.shoppingcart, .dd .ddChild a.shoppingcart:visited {
background-position:0 -330px;
}
.dd .ddChild a.cd, .dd .ddChild a.cd:visited {
background-position:0 -439px;
}
.dd .ddChild a.email, .dd .ddChild a.email:visited {
background-position:0 -256px;
}
.dd .ddChild a.faq, .dd .ddChild a.faq:visited {
background-position:0 -183px;
}
.dd .ddChild a.games,
.dd .ddChild a.games:visited {
background-position:0 -365px;
}
.dd .ddChild a.music, .dd .ddChild a.music:visited {
background-position:0 -146px;
}
.dd .ddChild a.phone, .dd .ddChild a.phone:visited {
background-position:0 -109px;
}
.dd .ddChild a.graph, .dd .ddChild a.graph:visited {
background-position:0 -73px;
}
.dd .ddChild a.secured, .dd .ddChild a.secured:visited {
background-position:0 -37px;
}
.dd .ddChild a.video, .dd .ddChild a.video:visited {
background-position:0 0;
}
/*******************************/

View File

@@ -1,418 +1,418 @@
/*
* jQuery blockUI plugin
* Version 2.23 (21-JUN-2009)
* @requires jQuery v1.2.3 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2008 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
;(function($) {
if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
alert('blockUI requires jQuery v1.2.3 or later! You are using v' + $.fn.jquery);
return;
}
$.fn._fadeIn = $.fn.fadeIn;
// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
// retarded userAgent strings on Vista)
var mode = document.documentMode || 0;
var setExpr = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8);
var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !mode;
// global $ methods for blocking/unblocking the entire page
$.blockUI = function(opts) { install(window, opts); };
$.unblockUI = function(opts) { remove(window, opts); };
// convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
$.growlUI = function(title, message, timeout, onClose) {
var $m = $('<div class="growlUI"></div>');
if (title) $m.append('<h1>'+title+'</h1>');
if (message) $m.append('<h2>'+message+'</h2>');
if (timeout == undefined) timeout = 3000;
$.blockUI({
message: $m, fadeIn: 700, fadeOut: 1000, centerY: false,
timeout: timeout, showOverlay: false,
onUnblock: onClose,
css: $.blockUI.defaults.growlCSS
});
};
// plugin method for blocking element content
$.fn.block = function(opts) {
return this.unblock({ fadeOut: 0 }).each(function() {
if ($.css(this,'position') == 'static')
this.style.position = 'relative';
if ($.browser.msie)
this.style.zoom = 1; // force 'hasLayout'
install(this, opts);
});
};
// plugin method for unblocking element content
$.fn.unblock = function(opts) {
return this.each(function() {
remove(this, opts);
});
};
$.blockUI.version = 2.23; // 2nd generation blocking at no extra cost!
// override these in your code to change the default behavior and style
$.blockUI.defaults = {
// message displayed when blocking (use null for no message)
message: '<h1>Please wait...</h1>',
// styles for the message when blocking; if you wish to disable
// these and use an external stylesheet then do this in your code:
// $.blockUI.defaults.css = {};
css: {
padding: 0,
margin: 0,
width: '30%',
top: '40%',
left: '35%',
textAlign: 'center',
color: '#000',
border: '3px solid #aaa',
backgroundColor:'#fff',
cursor: 'wait'
},
// styles for the overlay
overlayCSS: {
backgroundColor: '#000',
opacity: 0.6,
cursor: 'wait'
},
// styles applied when using $.growlUI
growlCSS: {
width: '350px',
top: '10px',
left: '',
right: '10px',
border: 'none',
padding: '5px',
opacity: 0.6,
cursor: null,
color: '#fff',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px'
},
// IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
// (hat tip to Jorge H. N. de Vasconcelos)
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
// force usage of iframe in non-IE browsers (handy for blocking applets)
forceIframe: false,
// z-index for the blocking overlay
baseZ: 1000,
// set these to true to have the message automatically centered
centerX: true, // <-- only effects element blocking (page block controlled via css above)
centerY: true,
// allow body element to be stetched in ie6; this makes blocking look better
// on "short" pages. disable if you wish to prevent changes to the body height
allowBodyStretch: true,
// enable if you want key and mouse events to be disabled for content that is blocked
bindEvents: true,
// be default blockUI will supress tab navigation from leaving blocking content
// (if bindEvents is true)
constrainTabKey: true,
// fadeIn time in millis; set to 0 to disable fadeIn on block
fadeIn: 200,
// fadeOut time in millis; set to 0 to disable fadeOut on unblock
fadeOut: 400,
// time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
timeout: 0,
// disable if you don't want to show the overlay
showOverlay: true,
// if true, focus will be placed in the first available input field when
// page blocking
focusInput: true,
// suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
applyPlatformOpacityRules: true,
// callback method invoked when unblocking has completed; the callback is
// passed the element that has been unblocked (which is the window object for page
// blocks) and the options that were passed to the unblock call:
// onUnblock(element, options)
onUnblock: null,
// don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
quirksmodeOffsetHack: 4
};
// private data and functions follow...
var pageBlock = null;
var pageBlockEls = [];
function install(el, opts) {
var full = (el == window);
var msg = opts && opts.message !== undefined ? opts.message : undefined;
opts = $.extend({}, $.blockUI.defaults, opts || {});
opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
var css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
msg = msg === undefined ? opts.message : msg;
// remove the current block (if there is one)
if (full && pageBlock)
remove(window, {fadeOut:0});
// if an existing element is being used as the blocking content then we capture
// its current place in the DOM (and current display style) so we can restore
// it when we unblock
if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
var node = msg.jquery ? msg[0] : msg;
var data = {};
$(el).data('blockUI.history', data);
data.el = node;
data.parent = node.parentNode;
data.display = node.style.display;
data.position = node.style.position;
if (data.parent)
data.parent.removeChild(node);
}
var z = opts.baseZ;
// blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
// layer1 is the iframe layer which is used to supress bleed through of underlying content
// layer2 is the overlay layer which has opacity and a wait cursor (by default)
// layer3 is the message content that is displayed while blocking
var lyr1 = ($.browser.msie || opts.forceIframe)
? $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>')
: $('<div class="blockUI" style="display:none"></div>');
var lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
var lyr3 = full ? $('<div class="blockUI blockMsg blockPage" style="z-index:'+z+';display:none;position:fixed"></div>')
: $('<div class="blockUI blockMsg blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');
// if we have a message, style it
if (msg)
lyr3.css(css);
// style the overlay
if (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform)))
lyr2.css(opts.overlayCSS);
lyr2.css('position', full ? 'fixed' : 'absolute');
// make iframe layer transparent in IE
if ($.browser.msie || opts.forceIframe)
lyr1.css('opacity',0.0);
$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
// ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
var expr = setExpr && (!$.boxModel || $('object,embed', full ? null : el).length > 0);
if (ie6 || expr) {
// give body 100% height
if (full && opts.allowBodyStretch && $.boxModel)
$('html,body').css('height','100%');
// fix ie6 issue when blocked element has a border width
if ((ie6 || !$.boxModel) && !full) {
var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
var fixT = t ? '(0 - '+t+')' : 0;
var fixL = l ? '(0 - '+l+')' : 0;
}
// simulate fixed position
$.each([lyr1,lyr2,lyr3], function(i,o) {
var s = o[0].style;
s.position = 'absolute';
if (i < 2) {
full ? s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"')
: s.setExpression('height','this.parentNode.offsetHeight + "px"');
full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')
: s.setExpression('width','this.parentNode.offsetWidth + "px"');
if (fixL) s.setExpression('left', fixL);
if (fixT) s.setExpression('top', fixT);
}
else if (opts.centerY) {
if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
s.marginTop = 0;
}
else if (!opts.centerY && full) {
var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0;
var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
s.setExpression('top',expression);
}
});
}
// show the message
if (msg) {
lyr3.append(msg);
if (msg.jquery || msg.nodeType)
$(msg).show();
}
if (($.browser.msie || opts.forceIframe) && opts.showOverlay)
lyr1.show(); // opacity is zero
if (opts.fadeIn) {
if (opts.showOverlay)
lyr2._fadeIn(opts.fadeIn);
if (msg)
lyr3.fadeIn(opts.fadeIn);
}
else {
if (opts.showOverlay)
lyr2.show();
if (msg)
lyr3.show();
}
// bind key and mouse events
bind(1, el, opts);
if (full) {
pageBlock = lyr3[0];
pageBlockEls = $(':input:enabled:visible',pageBlock);
if (opts.focusInput)
setTimeout(focus, 20);
}
else
center(lyr3[0], opts.centerX, opts.centerY);
if (opts.timeout) {
// auto-unblock
var to = setTimeout(function() {
full ? $.unblockUI(opts) : $(el).unblock(opts);
}, opts.timeout);
$(el).data('blockUI.timeout', to);
}
};
// remove the block
function remove(el, opts) {
var full = el == window;
var $el = $(el);
var data = $el.data('blockUI.history');
var to = $el.data('blockUI.timeout');
if (to) {
clearTimeout(to);
$el.removeData('blockUI.timeout');
}
opts = $.extend({}, $.blockUI.defaults, opts || {});
bind(0, el, opts); // unbind events
var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el);
if (full)
pageBlock = pageBlockEls = null;
if (opts.fadeOut) {
els.fadeOut(opts.fadeOut);
setTimeout(function() { reset(els,data,opts,el); }, opts.fadeOut);
}
else
reset(els, data, opts, el);
};
// move blocking element back into the DOM where it started
function reset(els,data,opts,el) {
els.each(function(i,o) {
// remove via DOM calls so we don't lose event handlers
if (this.parentNode)
this.parentNode.removeChild(this);
});
if (data && data.el) {
data.el.style.display = data.display;
data.el.style.position = data.position;
if (data.parent)
data.parent.appendChild(data.el);
$(data.el).removeData('blockUI.history');
}
if (typeof opts.onUnblock == 'function')
opts.onUnblock(el,opts);
};
// bind/unbind the handler
function bind(b, el, opts) {
var full = el == window, $el = $(el);
// don't bother unbinding if there is nothing to unbind
if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
return;
if (!full)
$el.data('blockUI.isBlocked', b);
// don't bind events when overlay is not in use or if bindEvents is false
if (!opts.bindEvents || (b && !opts.showOverlay))
return;
// bind anchors and inputs for mouse and key events
var events = 'mousedown mouseup keydown keypress';
b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler);
// former impl...
// var $e = $('a,:input');
// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
};
// event handler to suppress keyboard/mouse events when blocking
function handler(e) {
// allow tab navigation (conditionally)
if (e.keyCode && e.keyCode == 9) {
if (pageBlock && e.data.constrainTabKey) {
var els = pageBlockEls;
var fwd = !e.shiftKey && e.target == els[els.length-1];
var back = e.shiftKey && e.target == els[0];
if (fwd || back) {
setTimeout(function(){focus(back)},10);
return false;
}
}
}
// allow events within the message content
if ($(e.target).parents('div.blockMsg').length > 0)
return true;
// allow events for content that is not being blocked
return $(e.target).parents().children().filter('div.blockUI').length == 0;
};
function focus(back) {
if (!pageBlockEls)
return;
var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
if (e)
e.focus();
};
function center(el, x, y) {
var p = el.parentNode, s = el.style;
var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
if (x) s.left = l > 0 ? (l+'px') : '0';
if (y) s.top = t > 0 ? (t+'px') : '0';
};
function sz(el, p) {
return parseInt($.css(el,p))||0;
};
})(jQuery);
/*
* jQuery blockUI plugin
* Version 2.23 (21-JUN-2009)
* @requires jQuery v1.2.3 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2008 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
;(function($) {
if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) {
alert('blockUI requires jQuery v1.2.3 or later! You are using v' + $.fn.jquery);
return;
}
$.fn._fadeIn = $.fn.fadeIn;
// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
// retarded userAgent strings on Vista)
var mode = document.documentMode || 0;
var setExpr = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8);
var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !mode;
// global $ methods for blocking/unblocking the entire page
$.blockUI = function(opts) { install(window, opts); };
$.unblockUI = function(opts) { remove(window, opts); };
// convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
$.growlUI = function(title, message, timeout, onClose) {
var $m = $('<div class="growlUI"></div>');
if (title) $m.append('<h1>'+title+'</h1>');
if (message) $m.append('<h2>'+message+'</h2>');
if (timeout == undefined) timeout = 3000;
$.blockUI({
message: $m, fadeIn: 700, fadeOut: 1000, centerY: false,
timeout: timeout, showOverlay: false,
onUnblock: onClose,
css: $.blockUI.defaults.growlCSS
});
};
// plugin method for blocking element content
$.fn.block = function(opts) {
return this.unblock({ fadeOut: 0 }).each(function() {
if ($.css(this,'position') == 'static')
this.style.position = 'relative';
if ($.browser.msie)
this.style.zoom = 1; // force 'hasLayout'
install(this, opts);
});
};
// plugin method for unblocking element content
$.fn.unblock = function(opts) {
return this.each(function() {
remove(this, opts);
});
};
$.blockUI.version = 2.23; // 2nd generation blocking at no extra cost!
// override these in your code to change the default behavior and style
$.blockUI.defaults = {
// message displayed when blocking (use null for no message)
message: '<h1>Please wait...</h1>',
// styles for the message when blocking; if you wish to disable
// these and use an external stylesheet then do this in your code:
// $.blockUI.defaults.css = {};
css: {
padding: 0,
margin: 0,
width: '30%',
top: '40%',
left: '35%',
textAlign: 'center',
color: '#000',
border: '3px solid #aaa',
backgroundColor:'#fff',
cursor: 'wait'
},
// styles for the overlay
overlayCSS: {
backgroundColor: '#000',
opacity: 0.6,
cursor: 'wait'
},
// styles applied when using $.growlUI
growlCSS: {
width: '350px',
top: '10px',
left: '',
right: '10px',
border: 'none',
padding: '5px',
opacity: 0.6,
cursor: null,
color: '#fff',
backgroundColor: '#000',
'-webkit-border-radius': '10px',
'-moz-border-radius': '10px'
},
// IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
// (hat tip to Jorge H. N. de Vasconcelos)
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
// force usage of iframe in non-IE browsers (handy for blocking applets)
forceIframe: false,
// z-index for the blocking overlay
baseZ: 1000,
// set these to true to have the message automatically centered
centerX: true, // <-- only effects element blocking (page block controlled via css above)
centerY: true,
// allow body element to be stetched in ie6; this makes blocking look better
// on "short" pages. disable if you wish to prevent changes to the body height
allowBodyStretch: true,
// enable if you want key and mouse events to be disabled for content that is blocked
bindEvents: true,
// be default blockUI will supress tab navigation from leaving blocking content
// (if bindEvents is true)
constrainTabKey: true,
// fadeIn time in millis; set to 0 to disable fadeIn on block
fadeIn: 200,
// fadeOut time in millis; set to 0 to disable fadeOut on unblock
fadeOut: 400,
// time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
timeout: 0,
// disable if you don't want to show the overlay
showOverlay: true,
// if true, focus will be placed in the first available input field when
// page blocking
focusInput: true,
// suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
applyPlatformOpacityRules: true,
// callback method invoked when unblocking has completed; the callback is
// passed the element that has been unblocked (which is the window object for page
// blocks) and the options that were passed to the unblock call:
// onUnblock(element, options)
onUnblock: null,
// don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
quirksmodeOffsetHack: 4
};
// private data and functions follow...
var pageBlock = null;
var pageBlockEls = [];
function install(el, opts) {
var full = (el == window);
var msg = opts && opts.message !== undefined ? opts.message : undefined;
opts = $.extend({}, $.blockUI.defaults, opts || {});
opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
var css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
msg = msg === undefined ? opts.message : msg;
// remove the current block (if there is one)
if (full && pageBlock)
remove(window, {fadeOut:0});
// if an existing element is being used as the blocking content then we capture
// its current place in the DOM (and current display style) so we can restore
// it when we unblock
if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
var node = msg.jquery ? msg[0] : msg;
var data = {};
$(el).data('blockUI.history', data);
data.el = node;
data.parent = node.parentNode;
data.display = node.style.display;
data.position = node.style.position;
if (data.parent)
data.parent.removeChild(node);
}
var z = opts.baseZ;
// blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
// layer1 is the iframe layer which is used to supress bleed through of underlying content
// layer2 is the overlay layer which has opacity and a wait cursor (by default)
// layer3 is the message content that is displayed while blocking
var lyr1 = ($.browser.msie || opts.forceIframe)
? $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>')
: $('<div class="blockUI" style="display:none"></div>');
var lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
var lyr3 = full ? $('<div class="blockUI blockMsg blockPage" style="z-index:'+z+';display:none;position:fixed"></div>')
: $('<div class="blockUI blockMsg blockElement" style="z-index:'+z+';display:none;position:absolute"></div>');
// if we have a message, style it
if (msg)
lyr3.css(css);
// style the overlay
if (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform)))
lyr2.css(opts.overlayCSS);
lyr2.css('position', full ? 'fixed' : 'absolute');
// make iframe layer transparent in IE
if ($.browser.msie || opts.forceIframe)
lyr1.css('opacity',0.0);
$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
// ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
var expr = setExpr && (!$.boxModel || $('object,embed', full ? null : el).length > 0);
if (ie6 || expr) {
// give body 100% height
if (full && opts.allowBodyStretch && $.boxModel)
$('html,body').css('height','100%');
// fix ie6 issue when blocked element has a border width
if ((ie6 || !$.boxModel) && !full) {
var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
var fixT = t ? '(0 - '+t+')' : 0;
var fixL = l ? '(0 - '+l+')' : 0;
}
// simulate fixed position
$.each([lyr1,lyr2,lyr3], function(i,o) {
var s = o[0].style;
s.position = 'absolute';
if (i < 2) {
full ? s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"')
: s.setExpression('height','this.parentNode.offsetHeight + "px"');
full ? s.setExpression('width','jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"')
: s.setExpression('width','this.parentNode.offsetWidth + "px"');
if (fixL) s.setExpression('left', fixL);
if (fixT) s.setExpression('top', fixT);
}
else if (opts.centerY) {
if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
s.marginTop = 0;
}
else if (!opts.centerY && full) {
var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0;
var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
s.setExpression('top',expression);
}
});
}
// show the message
if (msg) {
lyr3.append(msg);
if (msg.jquery || msg.nodeType)
$(msg).show();
}
if (($.browser.msie || opts.forceIframe) && opts.showOverlay)
lyr1.show(); // opacity is zero
if (opts.fadeIn) {
if (opts.showOverlay)
lyr2._fadeIn(opts.fadeIn);
if (msg)
lyr3.fadeIn(opts.fadeIn);
}
else {
if (opts.showOverlay)
lyr2.show();
if (msg)
lyr3.show();
}
// bind key and mouse events
bind(1, el, opts);
if (full) {
pageBlock = lyr3[0];
pageBlockEls = $(':input:enabled:visible',pageBlock);
if (opts.focusInput)
setTimeout(focus, 20);
}
else
center(lyr3[0], opts.centerX, opts.centerY);
if (opts.timeout) {
// auto-unblock
var to = setTimeout(function() {
full ? $.unblockUI(opts) : $(el).unblock(opts);
}, opts.timeout);
$(el).data('blockUI.timeout', to);
}
};
// remove the block
function remove(el, opts) {
var full = el == window;
var $el = $(el);
var data = $el.data('blockUI.history');
var to = $el.data('blockUI.timeout');
if (to) {
clearTimeout(to);
$el.removeData('blockUI.timeout');
}
opts = $.extend({}, $.blockUI.defaults, opts || {});
bind(0, el, opts); // unbind events
var els = full ? $('body').children().filter('.blockUI') : $('.blockUI', el);
if (full)
pageBlock = pageBlockEls = null;
if (opts.fadeOut) {
els.fadeOut(opts.fadeOut);
setTimeout(function() { reset(els,data,opts,el); }, opts.fadeOut);
}
else
reset(els, data, opts, el);
};
// move blocking element back into the DOM where it started
function reset(els,data,opts,el) {
els.each(function(i,o) {
// remove via DOM calls so we don't lose event handlers
if (this.parentNode)
this.parentNode.removeChild(this);
});
if (data && data.el) {
data.el.style.display = data.display;
data.el.style.position = data.position;
if (data.parent)
data.parent.appendChild(data.el);
$(data.el).removeData('blockUI.history');
}
if (typeof opts.onUnblock == 'function')
opts.onUnblock(el,opts);
};
// bind/unbind the handler
function bind(b, el, opts) {
var full = el == window, $el = $(el);
// don't bother unbinding if there is nothing to unbind
if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
return;
if (!full)
$el.data('blockUI.isBlocked', b);
// don't bind events when overlay is not in use or if bindEvents is false
if (!opts.bindEvents || (b && !opts.showOverlay))
return;
// bind anchors and inputs for mouse and key events
var events = 'mousedown mouseup keydown keypress';
b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler);
// former impl...
// var $e = $('a,:input');
// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
};
// event handler to suppress keyboard/mouse events when blocking
function handler(e) {
// allow tab navigation (conditionally)
if (e.keyCode && e.keyCode == 9) {
if (pageBlock && e.data.constrainTabKey) {
var els = pageBlockEls;
var fwd = !e.shiftKey && e.target == els[els.length-1];
var back = e.shiftKey && e.target == els[0];
if (fwd || back) {
setTimeout(function(){focus(back)},10);
return false;
}
}
}
// allow events within the message content
if ($(e.target).parents('div.blockMsg').length > 0)
return true;
// allow events for content that is not being blocked
return $(e.target).parents().children().filter('div.blockUI').length == 0;
};
function focus(back) {
if (!pageBlockEls)
return;
var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
if (e)
e.focus();
};
function center(el, x, y) {
var p = el.parentNode, s = el.style;
var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
if (x) s.left = l > 0 ? (l+'px') : '0';
if (y) s.top = t > 0 ? (t+'px') : '0';
};
function sz(el, p) {
return parseInt($.css(el,p))||0;
};
})(jQuery);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,14 +1,14 @@
/*
*
* Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version 2.2.4
* Demo: http://www.texotela.co.uk/code/jquery/select/
*
* $LastChangedDate: 2008-06-17 17:27:25 +0100 (Tue, 17 Jun 2008) $
* $Rev: 5727 $
*
*/
/*
*
* Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version 2.2.4
* Demo: http://www.texotela.co.uk/code/jquery/select/
*
* $LastChangedDate: 2008-06-17 17:27:25 +0100 (Tue, 17 Jun 2008) $
* $Rev: 5727 $
*
*/
;(function(h){h.fn.addOption=function(){var j=function(a,f,c,g){var d=document.createElement("option");d.value=f,d.text=c;var b=a.options;var e=b.length;if(!a.cache){a.cache={};for(var i=0;i<e;i++){a.cache[b[i].value]=i}}if(typeof a.cache[f]=="undefined")a.cache[f]=e;a.options[a.cache[f]]=d;if(g){d.selected=true}};var k=arguments;if(k.length==0)return this;var l=true;var m=false;var n,o,p;if(typeof(k[0])=="object"){m=true;n=k[0]}if(k.length>=2){if(typeof(k[1])=="boolean")l=k[1];else if(typeof(k[2])=="boolean")l=k[2];if(!m){o=k[0];p=k[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(m){for(var a in n){j(this,a,n[a],l)}}else{j(this,o,p,l)}});return this};h.fn.ajaxAddOption=function(c,g,d,b,e){if(typeof(c)!="string")return this;if(typeof(g)!="object")g={};if(typeof(d)!="boolean")d=true;this.each(function(){var f=this;h.getJSON(c,g,function(a){h(f).addOption(a,d);if(typeof b=="function"){if(typeof e=="object"){b.apply(f,e)}else{b.call(f)}}})});return this};h.fn.removeOption=function(){var d=arguments;if(d.length==0)return this;var b=typeof(d[0]);var e,i;if(b=="string"||b=="object"||b=="function"){e=d[0];if(e.constructor==Array){var j=e.length;for(var k=0;k<j;k++){this.removeOption(e[k],d[1])}return this}}else if(b=="number")i=d[0];else return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(this.cache)this.cache=null;var a=false;var f=this.options;if(!!e){var c=f.length;for(var g=c-1;g>=0;g--){if(e.constructor==RegExp){if(f[g].value.match(e)){a=true}}else if(f[g].value==e){a=true}if(a&&d[1]===true)a=f[g].selected;if(a){f[g]=null}a=false}}else{if(d[1]===true){a=f[i].selected}else{a=true}if(a){this.remove(i)}}});return this};h.fn.sortOptions=function(e){var i=h(this).selectedValues();var j=typeof(e)=="undefined"?true:!!e;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;var c=this.options;var g=c.length;var d=[];for(var b=0;b<g;b++){d[b]={v:c[b].value,t:c[b].text}}d.sort(function(a,f){o1t=a.t.toLowerCase(),o2t=f.t.toLowerCase();if(o1t==o2t)return 0;if(j){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var b=0;b<g;b++){c[b].text=d[b].t;c[b].value=d[b].v}}).selectOptions(i,true);return this};h.fn.selectOptions=function(g,d){var b=g;var e=typeof(g);if(e=="object"&&b.constructor==Array){var i=this;h.each(b,function(){i.selectOptions(this,d)})};var j=d||false;if(e!="string"&&e!="function"&&e!="object")return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b.constructor==RegExp){if(a[c].value.match(b)){a[c].selected=true}else if(j){a[c].selected=false}}else{if(a[c].value==b){a[c].selected=true}else if(j){a[c].selected=false}}}});return this};h.fn.copyOptions=function(g,d){var b=d||"selected";if(h(g).size()==0)return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b=="all"||(b=="selected"&&a[c].selected)){h(g).addOption(a[c].value,a[c].text)}}});return this};h.fn.containsOption=function(g,d){var b=false;var e=g;var i=typeof(e);var j=typeof(d);if(i!="string"&&i!="function"&&i!="object")return j=="function"?this:b;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;if(b&&j!="function")return false;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(e.constructor==RegExp){if(a[c].value.match(e)){b=true;if(j=="function")d.call(a[c],c)}}else{if(a[c].value==e){b=true;if(j=="function")d.call(a[c],c)}}}});return j=="function"?this:b};h.fn.selectedValues=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.value});return a};h.fn.selectedTexts=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.text});return a};h.fn.selectedOptions=function(){return this.find("option:selected")}})(jQuery);

View File

@@ -0,0 +1,11 @@
/*
* jQuery UI Touch Punch 0.2.2
*
* Copyright 2011, Dave Furfero
* Dual licensed under the MIT or GPL Version 2 licenses.
*
* Depends:
* jquery.ui.widget.js
* jquery.ui.mouse.js
*/
(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return;}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return;}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f);}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return;}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown");};c._touchMove=function(f){if(!a){return;}this._touchMoved=true;d(f,"mousemove");};c._touchEnd=function(f){if(!a){return;}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click");}a=false;};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f);};})(jQuery);

View File

@@ -1,94 +1,94 @@
$(document).ready(function(){
$(".popupdate").each(function(i,e) {
var basename = e.id.substr(6);
format=$('#dateformat'+basename).val();
language=$('#datelanguage'+basename).val();
yearrange=$('#dateyearrange'+basename).val();
range=yearrange.split(':');
$(e).datepicker({ dateFormat: format,
showOn: 'both',
changeYear: true,
changeMonth: true,
yearRange: yearrange,
defaultDate: +0,
minDate:new Date(range[0],0,1),
maxDate: new Date(range[1],11,31),
duration: 'fast'
}, $.datepicker.regional[language]);
});
$('.month').change(dateUpdater);
$('.day').change(dateUpdater)
$('.year').change(dateUpdater);
$('.year').change();
});
function dateUpdater() {
if(this.id.substr(0,3)=='yea')
{
thisid=this.id.substr(4);
}
if(this.id.substr(0,3)=='mon')
{
thisid=this.id.substr(5);
}
if(this.id.substr(0,3)=='day')
{
thisid=this.id.substr(3);
}
if (($('#year'+thisid).val()=='') && ($('#month'+thisid).val()=='') && ($('#day'+thisid).val()=='')){
$('#qattribute_answer'+thisid).val('');
$('#answer'+thisid).val('');
}
else if (($('#year'+thisid).val()=='') || ($('#month'+thisid).val()=='') || ($('#day'+thisid).val()=='')){
$('#qattribute_answer'+thisid).val('Please complete all parts of the date!');
$('#answer'+thisid).val('');
}
else
{
ValidDate(this,$('#year'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#day'+thisid).val());
parseddate=$.datepicker.parseDate( 'dd-mm-yy', $('#day'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#year'+thisid).val());
$('#answer'+thisid).val($.datepicker.formatDate( $('#dateformat'+thisid).val(), parseddate));
$('#answer'+thisid).change();
$('#qattribute_answer'+thisid).val('');
}
}
function ValidDate(oObject, value) {// Regular expression used to check if date is in correct format
var str_regexp = /[1-9][0-9]{3}-(0[1-9]|1[0-2])-([0-2][0-9]|3[0-1])/;
var pattern = new RegExp(str_regexp);
if ((value.match(pattern)!=null))
{
var date_array = value.split('-');
var day = date_array[2];
var month = date_array[1];
var year = date_array[0];
str_regexp = /1|3|5|7|8|10|12/;
pattern = new RegExp(str_regexp);
if ( day <= 31 && (month.match(pattern)!=null))
{
return true;
}
str_regexp = /4|6|9|11/;
pattern = new RegExp(str_regexp);
if ( day <= 30 && (month.match(pattern)!=null))
{
return true;
}
if (day == 29 && month == 2 && (year % 4 == 0))
{
return true;
}
if (day <= 28 && month == 2)
{
return true;
}
}
window.alert('Date is not valid!');
oObject.focus();
return false;
$(document).ready(function(){
$(".popupdate").each(function(i,e) {
var basename = e.id.substr(6);
format=$('#dateformat'+basename).val();
language=$('#datelanguage'+basename).val();
yearrange=$('#dateyearrange'+basename).val();
range=yearrange.split(':');
$(e).datepicker({ dateFormat: format,
showOn: 'both',
changeYear: true,
changeMonth: true,
yearRange: yearrange,
defaultDate: +0,
minDate:new Date(range[0],0,1),
maxDate: new Date(range[1],11,31),
duration: 'fast'
}, $.datepicker.regional[language]);
});
$('.month').change(dateUpdater);
$('.day').change(dateUpdater)
$('.year').change(dateUpdater);
$('.year').change();
});
function dateUpdater() {
if(this.id.substr(0,3)=='yea')
{
thisid=this.id.substr(4);
}
if(this.id.substr(0,3)=='mon')
{
thisid=this.id.substr(5);
}
if(this.id.substr(0,3)=='day')
{
thisid=this.id.substr(3);
}
if (($('#year'+thisid).val()=='') && ($('#month'+thisid).val()=='') && ($('#day'+thisid).val()=='')){
$('#qattribute_answer'+thisid).val('');
$('#answer'+thisid).val('');
}
else if (($('#year'+thisid).val()=='') || ($('#month'+thisid).val()=='') || ($('#day'+thisid).val()=='')){
$('#qattribute_answer'+thisid).val('Please complete all parts of the date!');
$('#answer'+thisid).val('');
}
else
{
ValidDate(this,$('#year'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#day'+thisid).val());
parseddate=$.datepicker.parseDate( 'dd-mm-yy', $('#day'+thisid).val()+'-'+$('#month'+thisid).val()+'-'+$('#year'+thisid).val());
$('#answer'+thisid).val($.datepicker.formatDate( $('#dateformat'+thisid).val(), parseddate));
$('#answer'+thisid).change();
$('#qattribute_answer'+thisid).val('');
}
}
function ValidDate(oObject, value) {// Regular expression used to check if date is in correct format
var str_regexp = /[1-9][0-9]{3}-(0[1-9]|1[0-2])-([0-2][0-9]|3[0-1])/;
var pattern = new RegExp(str_regexp);
if ((value.match(pattern)!=null))
{
var date_array = value.split('-');
var day = date_array[2];
var month = date_array[1];
var year = date_array[0];
str_regexp = /1|3|5|7|8|10|12/;
pattern = new RegExp(str_regexp);
if ( day <= 31 && (month.match(pattern)!=null))
{
return true;
}
str_regexp = /4|6|9|11/;
pattern = new RegExp(str_regexp);
if ( day <= 30 && (month.match(pattern)!=null))
{
return true;
}
if (day == 29 && month == 2 && (year % 4 == 0))
{
return true;
}
if (day <= 28 && month == 2)
{
return true;
}
}
window.alert('Date is not valid!');
oObject.focus();
return false;
}

View File

@@ -1,82 +1,82 @@
/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
* $Id: lime-slider.js 9648 2011-01-07 13:06:39Z c_schmitz $
*/
// This file will auto convert slider divs to sliders
$(document).ready(function(){
// call the init slider routine for each element of the .multinum-slider class
$(".multinum-slider").each(function(i,e) {
var basename = e.id.substr(10);
$('#answer'+basename).hide();
$(this).prev('label').addClass('slider-label'); //3796 TP - add a class to the labels in slider questions to facilitate styling
//$("#slider-"+basename).addClass('ui-slider-2');
//$("#slider-handle-"+basename).addClass('ui-slider-handle2');
var slider_divisor = $('#slider-param-divisor-' + basename).attr('value');
var slider_min = $('#slider-param-min-' + basename).attr('value');
var slider_max = $('#slider-param-max-' + basename).attr('value');
var slider_stepping = $('#slider-param-stepping-' + basename).attr('value');
var slider_startvalue = $('#slider-param-startvalue-' + basename).attr('value');
var slider_onchange = $('#slider-onchange-js-' + basename).attr('value');
var slider_prefix = $('#slider-prefix-' + basename).attr('value');
var slider_suffix = $('#slider-suffix-' + basename).attr('value');
var sliderparams = Array();
sliderparams['min'] = slider_min*1; // to force numerical we multiply with 1
sliderparams['max'] = slider_max*1; // to force numerical we multiply with 1
// not using the stepping param because it is not smooth
// using Math.round workaround instead
//sliderparams['stepping'] = slider_stepping;
//sliderparams['animate'] = true;
if (slider_startvalue != 'NULL')
{
sliderparams['value']= slider_startvalue*1;
}
sliderparams['slide'] = function(e, ui) {
//var thevalue = ui.value / slider_divisor;
if ($('#slider-modifiedstate-'+basename).val() ==0) $('#slider-modifiedstate-'+basename).val('1');
function updateCallout() {
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
}
// Delay updating the callout because it was picking up the last postion of the slider
setTimeout(updateCallout, 10);
};
sliderparams['stop'] = function(e, ui) {
//var thevalue = ui.value / slider_divisor;
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
};
sliderparams['change'] = function(e, ui) {
//var thevalue = ui.value / slider_divisor;
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
$('#answer'+basename).val(thevalue);
checkconditions( thevalue,'#answer'+basename,'text');
eval(slider_onchange);
};
$('#slider-'+basename).slider(sliderparams);
if (slider_startvalue != 'NULL' && $('#slider-modifiedstate-'+basename).val() !=0)
{
var thevalue = slider_startvalue / slider_divisor;
$('#slider-callout-'+basename).css('left', $('.ui-slider-handle:first').css('left')).text(slider_prefix + thevalue + slider_suffix);
}
})
});
/*
* LimeSurvey
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v2 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*
* $Id: lime-slider.js 12404 2012-02-08 19:30:28Z tmswhite $
*/
// This file will auto convert slider divs to sliders
$(document).ready(function(){
// call the init slider routine for each element of the .multinum-slider class
$(".multinum-slider").each(function(i,e) {
var basename = e.id.substr(10);
$('#answer'+basename).hide();
$(this).prev('label').addClass('slider-label'); //3796 TP - add a class to the labels in slider questions to facilitate styling
//$("#slider-"+basename).addClass('ui-slider-2');
//$("#slider-handle-"+basename).addClass('ui-slider-handle2');
var slider_divisor = $('#slider-param-divisor-' + basename).attr('value');
var slider_min = $('#slider-param-min-' + basename).attr('value');
var slider_max = $('#slider-param-max-' + basename).attr('value');
var slider_stepping = $('#slider-param-stepping-' + basename).attr('value');
var slider_startvalue = $('#slider-param-startvalue-' + basename).attr('value');
var slider_onchange = $('#slider-onchange-js-' + basename).attr('value');
var slider_prefix = $('#slider-prefix-' + basename).attr('value');
var slider_suffix = $('#slider-suffix-' + basename).attr('value');
var sliderparams = Array();
sliderparams['min'] = slider_min*1; // to force numerical we multiply with 1
sliderparams['max'] = slider_max*1; // to force numerical we multiply with 1
// not using the stepping param because it is not smooth
// using Math.round workaround instead
//sliderparams['stepping'] = slider_stepping;
//sliderparams['animate'] = true;
if (slider_startvalue != 'NULL')
{
sliderparams['value']= slider_startvalue*1;
}
sliderparams['slide'] = function(e, ui) {
//var thevalue = ui.value / slider_divisor;
if ($('#slider-modifiedstate-'+basename).val() ==0) $('#slider-modifiedstate-'+basename).val('1');
function updateCallout() {
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
}
// Delay updating the callout because it was picking up the last postion of the slider
setTimeout(updateCallout, 10);
};
sliderparams['stop'] = function(e, ui) {
//var thevalue = ui.value / slider_divisor;
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
$('#slider-callout-'+basename).css('left', $(ui.handle).css('left')).text(slider_prefix + thevalue + slider_suffix);
};
sliderparams['change'] = function(e, ui) {
//var thevalue = ui.value / slider_divisor;
var thevalue = slider_stepping * Math.round(ui.value / slider_stepping) / slider_divisor;
$('#answer'+basename).val(thevalue);
checkconditions( thevalue,basename,'text');
eval(slider_onchange);
};
$('#slider-'+basename).slider(sliderparams);
if (slider_startvalue != 'NULL' && $('#slider-modifiedstate-'+basename).val() !=0)
{
var thevalue = slider_startvalue / slider_divisor;
$('#slider-callout-'+basename).css('left', $('.ui-slider-handle:first').css('left')).text(slider_prefix + thevalue + slider_suffix);
}
})
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -1,24 +1,24 @@
/* Welsh/UK initialisation for the jQuery UI date picker plugin. */
/* Alan Davies */
jQuery(function($){
$.datepicker.regional['cy'] = {
closeText: 'Iawn',
prevText: 'Cynt',
nextText: 'Nesaf',
currentText: 'Heddiw',
monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin',
'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'],
monthNamesShort: ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh',
'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'],
dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher',
'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
dayNamesShort: ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'],
dayNamesMin: ['Su','Ll','Ma','Me','Ia','Gw','Sa'],
weekHeader: 'Wy.',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['cy']);
/* Welsh/UK initialisation for the jQuery UI date picker plugin. */
/* Alan Davies */
jQuery(function($){
$.datepicker.regional['cy'] = {
closeText: 'Iawn',
prevText: 'Cynt',
nextText: 'Nesaf',
currentText: 'Heddiw',
monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin',
'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'],
monthNamesShort: ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh',
'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'],
dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher',
'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
dayNamesShort: ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'],
dayNamesMin: ['Su','Ll','Ma','Me','Ia','Gw','Sa'],
weekHeader: 'Wy.',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['cy']);
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Done',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

View File

@@ -1,32 +1,32 @@
/* http://keith-wood.name/keypad.html
German localisation for the jQuery keypad extension
Written by Uwe Jakobs(u.jakobs{at}imageco.de) September 2009. */
(function($) { // hide the namespace
$.keypad.qwertzAlphabetic = ['qwertzuiopüß', 'asdfghjklöä', 'yxcvbnm'];
$.keypad.qwertzLayout =
['!"§$%&/()=?`' + $.keypad.BACK + $.keypad.HALF_SPACE + '$£€/',
'<>°^@{[]}\\~´;:' + $.keypad.HALF_SPACE + '789*',
$.keypad.qwertzAlphabetic[0] + '+*' +
$.keypad.HALF_SPACE + '456-',
$.keypad.HALF_SPACE + $.keypad.qwertzAlphabetic[1] +
'#\'' + $.keypad.SPACE + '123+',
'|' + $.keypad.qwertzAlphabetic[2] + 'µ,.-_' +
$.keypad.SPACE + $.keypad.HALF_SPACE +'.0,=',
$.keypad.SHIFT + $.keypad.SPACE + $.keypad.SPACE_BAR +
$.keypad.SPACE + $.keypad.SPACE + $.keypad.SPACE + $.keypad.CLEAR +
$.keypad.SPACE + $.keypad.SPACE + $.keypad.HALF_SPACE + $.keypad.CLOSE];
$.keypad.regional['de'] = {
buttonText: '...', buttonStatus: 'Öffnen',
closeText: 'schließen', closeStatus: 'schließen',
clearText: 'löschen', clearStatus: 'Gesamten Inhalt löschen',
backText: 'zurück', backStatus: 'Letzte Eingabe löschen',
shiftText: 'umschalten', shiftStatus: 'Zwischen Groß- und Kleinschreibung wechseln',
alphabeticLayout: $.keypad.qwertzAlphabetic,
fullLayout: $.keypad.qwertzLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['de']);
})(jQuery);
/* http://keith-wood.name/keypad.html
German localisation for the jQuery keypad extension
Written by Uwe Jakobs(u.jakobs{at}imageco.de) September 2009. */
(function($) { // hide the namespace
$.keypad.qwertzAlphabetic = ['qwertzuiopüß', 'asdfghjklöä', 'yxcvbnm'];
$.keypad.qwertzLayout =
['!"§$%&/()=?`' + $.keypad.BACK + $.keypad.HALF_SPACE + '$£€/',
'<>°^@{[]}\\~´;:' + $.keypad.HALF_SPACE + '789*',
$.keypad.qwertzAlphabetic[0] + '+*' +
$.keypad.HALF_SPACE + '456-',
$.keypad.HALF_SPACE + $.keypad.qwertzAlphabetic[1] +
'#\'' + $.keypad.SPACE + '123+',
'|' + $.keypad.qwertzAlphabetic[2] + 'µ,.-_' +
$.keypad.SPACE + $.keypad.HALF_SPACE +'.0,=',
$.keypad.SHIFT + $.keypad.SPACE + $.keypad.SPACE_BAR +
$.keypad.SPACE + $.keypad.SPACE + $.keypad.SPACE + $.keypad.CLEAR +
$.keypad.SPACE + $.keypad.SPACE + $.keypad.HALF_SPACE + $.keypad.CLOSE];
$.keypad.regional['de'] = {
buttonText: '...', buttonStatus: 'Öffnen',
closeText: 'schließen', closeStatus: 'schließen',
clearText: 'löschen', clearStatus: 'Gesamten Inhalt löschen',
backText: 'zurück', backStatus: 'Letzte Eingabe löschen',
shiftText: 'umschalten', shiftStatus: 'Zwischen Groß- und Kleinschreibung wechseln',
alphabeticLayout: $.keypad.qwertzAlphabetic,
fullLayout: $.keypad.qwertzLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['de']);
})(jQuery);

View File

@@ -1,17 +1,17 @@
/* http://keith-wood.name/keypad.html
Spanish initialisation for the jQuery keypad extension
Written by Cristhian Benitez (cbenitez@gmail.com). */
(function($) { // hide the namespace
$.keypad.regional['es'] = {
buttonText: '...', buttonStatus: 'Abrir el teclado',
closeText: 'Cerrar', closeStatus: 'Cerrar el teclado',
clearText: 'Limpiar', clearStatus: 'Eliminar todo el texto',
backText: 'Volver', backStatus: 'Borrar el caracter anterior',
shiftText: 'Shift', shiftStatus: 'Cambiar mayusculas/minusculas',
alphabeticLayout: $.keypad.qwertyAlphabetic,
fullLayout: $.keypad.qwertyLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['es']);
})(jQuery);
/* http://keith-wood.name/keypad.html
Spanish initialisation for the jQuery keypad extension
Written by Cristhian Benitez (cbenitez@gmail.com). */
(function($) { // hide the namespace
$.keypad.regional['es'] = {
buttonText: '...', buttonStatus: 'Abrir el teclado',
closeText: 'Cerrar', closeStatus: 'Cerrar el teclado',
clearText: 'Limpiar', clearStatus: 'Eliminar todo el texto',
backText: 'Volver', backStatus: 'Borrar el caracter anterior',
shiftText: 'Shift', shiftStatus: 'Cambiar mayusculas/minusculas',
alphabeticLayout: $.keypad.qwertyAlphabetic,
fullLayout: $.keypad.qwertyLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['es']);
})(jQuery);

View File

@@ -1,33 +1,33 @@
/* http://keith-wood.name/keypad.html
French initialisation for the jQuery keypad extension
Written by Keith Wood (kbwood{at}iinet.com.au) August 2008. */
(function($) { // hide the namespace
$.keypad.azertyAlphabetic = ['àâçéèêîôùû', 'azertyuiop', 'qsdfghjklm', 'wxcvbn'];
$.keypad.azertyLayout = ['&~#{([_@])}' + $.keypad.HALF_SPACE + '£$€',
'<>|`°^!?\'"\\' + $.keypad.HALF_SPACE + '/*=',
$.keypad.HALF_SPACE + $.keypad.azertyAlphabetic[0] + $.keypad.SPACE + '789',
$.keypad.azertyAlphabetic[1] + '%' + $.keypad.HALF_SPACE + '456',
$.keypad.HALF_SPACE + $.keypad.azertyAlphabetic[2] + $.keypad.SPACE + '123',
'§' + $.keypad.azertyAlphabetic[3] + ',.;:' + $.keypad.HALF_SPACE + '-0+',
$.keypad.SHIFT + $.keypad.SPACE_BAR + $.keypad.HALF_SPACE +
$.keypad.BACK + $.keypad.CLEAR + $.keypad.CLOSE];
$.keypad.regional['fr'] = {
buttonText: '...', buttonStatus: 'Ouvrir',
closeText: 'Fermer', closeStatus: 'Fermer le pavé numérique',
clearText: 'Effacer', clearStatus: 'Effacer la valeur',
backText: 'Défaire', backStatus: 'Effacer la dernière touche',
shiftText: 'Maj', shiftStatus: '',
alphabeticLayout: $.keypad.azertyAlphabetic,
fullLayout: $.keypad.azertyLayout,
isAlphabetic: isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['fr']);
function isAlphabetic(ch) {
return ($.keypad.isAlphabetic(ch) ||
'áàäãâçéèëêíìïîóòöõôúùüû'.indexOf(ch) > -1);
}
})(jQuery);
/* http://keith-wood.name/keypad.html
French initialisation for the jQuery keypad extension
Written by Keith Wood (kbwood{at}iinet.com.au) August 2008. */
(function($) { // hide the namespace
$.keypad.azertyAlphabetic = ['àâçéèêîôùû', 'azertyuiop', 'qsdfghjklm', 'wxcvbn'];
$.keypad.azertyLayout = ['&~#{([_@])}' + $.keypad.HALF_SPACE + '£$€',
'<>|`°^!?\'"\\' + $.keypad.HALF_SPACE + '/*=',
$.keypad.HALF_SPACE + $.keypad.azertyAlphabetic[0] + $.keypad.SPACE + '789',
$.keypad.azertyAlphabetic[1] + '%' + $.keypad.HALF_SPACE + '456',
$.keypad.HALF_SPACE + $.keypad.azertyAlphabetic[2] + $.keypad.SPACE + '123',
'§' + $.keypad.azertyAlphabetic[3] + ',.;:' + $.keypad.HALF_SPACE + '-0+',
$.keypad.SHIFT + $.keypad.SPACE_BAR + $.keypad.HALF_SPACE +
$.keypad.BACK + $.keypad.CLEAR + $.keypad.CLOSE];
$.keypad.regional['fr'] = {
buttonText: '...', buttonStatus: 'Ouvrir',
closeText: 'Fermer', closeStatus: 'Fermer le pavé numérique',
clearText: 'Effacer', clearStatus: 'Effacer la valeur',
backText: 'Défaire', backStatus: 'Effacer la dernière touche',
shiftText: 'Maj', shiftStatus: '',
alphabeticLayout: $.keypad.azertyAlphabetic,
fullLayout: $.keypad.azertyLayout,
isAlphabetic: isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['fr']);
function isAlphabetic(ch) {
return ($.keypad.isAlphabetic(ch) ||
'áàäãâçéèëêíìïîóòöõôúùüû'.indexOf(ch) > -1);
}
})(jQuery);

View File

@@ -1,17 +1,17 @@
/* http://keith-wood.name/keypad.html
dutch initialisation for the jQuery keypad extension
Written by Michiel Mussies (mail{at}webcrafts.nl) November 2009. */
(function($) { // hide the namespace
$.keypad.regional['nl'] = {
buttonText: '...', buttonStatus: 'Open',
closeText: 'Sluit', closeStatus: 'Sluit',
clearText: 'Wissen', clearStatus: 'Wis alle tekens',
backText: 'Terug', backStatus: 'Wis laatste teken',
shiftText: 'Shift', shiftStatus: 'Activeer hoofd-/kleine letters',
alphabeticLayout: $.keypad.qwertyAlphabetic,
fullLayout: $.keypad.qwertyLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['nl']);
})(jQuery);
/* http://keith-wood.name/keypad.html
dutch initialisation for the jQuery keypad extension
Written by Michiel Mussies (mail{at}webcrafts.nl) November 2009. */
(function($) { // hide the namespace
$.keypad.regional['nl'] = {
buttonText: '...', buttonStatus: 'Open',
closeText: 'Sluit', closeStatus: 'Sluit',
clearText: 'Wissen', clearStatus: 'Wis alle tekens',
backText: 'Terug', backStatus: 'Wis laatste teken',
shiftText: 'Shift', shiftStatus: 'Activeer hoofd-/kleine letters',
alphabeticLayout: $.keypad.qwertyAlphabetic,
fullLayout: $.keypad.qwertyLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false};
$.keypad.setDefaults($.keypad.regional['nl']);
})(jQuery);

View File

@@ -1,18 +1,18 @@
/* http://keith-wood.name/keypad.html
brazilian portuguese initialisation for the jQuery keypad extension
Written by Israel Rodriguez (yzraeu{at}gmail.com) July 2009. */
(function($) { // hide the namespace
$.keypad.regional['pt-BR'] = {
buttonText: '...', buttonStatus: 'Abrir o teclado',
closeText: 'Fechar', closeStatus: 'Fechar o teclado',
clearText: 'Limpar', clearStatus: 'Limpar todo o texto',
backText: 'Apagar', backStatus: 'Apagar o caractere anterior',
shiftText: 'Shift', shiftStatus: 'Ativar maiúsculas/minusculas',
alphabeticLayout: $.keypad.qwertyAlphabetic,
fullLayout: $.keypad.qwertyLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false
};
$.keypad.setDefaults($.keypad.regional['pt-BR']);
})(jQuery);
/* http://keith-wood.name/keypad.html
brazilian portuguese initialisation for the jQuery keypad extension
Written by Israel Rodriguez (yzraeu{at}gmail.com) July 2009. */
(function($) { // hide the namespace
$.keypad.regional['pt-BR'] = {
buttonText: '...', buttonStatus: 'Abrir o teclado',
closeText: 'Fechar', closeStatus: 'Fechar o teclado',
clearText: 'Limpar', clearStatus: 'Limpar todo o texto',
backText: 'Apagar', backStatus: 'Apagar o caractere anterior',
shiftText: 'Shift', shiftStatus: 'Ativar maiúsculas/minusculas',
alphabeticLayout: $.keypad.qwertyAlphabetic,
fullLayout: $.keypad.qwertyLayout,
isAlphabetic: $.keypad.isAlphabetic,
isNumeric: $.keypad.isNumeric,
isRTL: false
};
$.keypad.setDefaults($.keypad.regional['pt-BR']);
})(jQuery);

View File

@@ -1,99 +1,136 @@
$(document).ready(function() {
// $('#basic').hide();
// var jsonstring = $('#".$ia[1]."').val();
// var filecount = $('#".$ia[1]."_filecount').val();
// displayUploadedFiles(jsonstring, filecount, fieldname, show_title, show_comment, pos);
// $('#basic').hide();
// var jsonstring = $('#".$ia[1]."').val();
// var filecount = $('#".$ia[1]."_filecount').val();
// displayUploadedFiles(jsonstring, filecount, fieldname, show_title, show_comment, pos);
$(function() {
$('.upload').click(function(e) {
e.preventDefault();
var $this = $(this);
$(function() {
$('.upload').click(function(e) {
e.preventDefault();
var $this = $(this);
var show_title = getQueryVariable('show_title', this.href);
var show_comment = getQueryVariable('show_comment', this.href);
var pos = getQueryVariable('pos', this.href);
var fieldname = getQueryVariable('fieldname', this.href);
var buttonsOpts = {};
buttonsOpts[translt.returnTxt] = function() {
// Fix for the IE bug 04965
var pass; if(document.getElementById('uploader').contentDocument) { if(document.getElementById('uploader').contentDocument.defaultView) { /*Firefox*/ pass=document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos); }else{ /*IE8*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); } }else{ /*IE6*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); }
if (pass) {
$(this).dialog('destroy');
$('iframe#uploader').remove();
}
};
var show_title = getQueryVariable('show_title', this.href);
var show_comment = getQueryVariable('show_comment', this.href);
var pos = getQueryVariable('pos', this.href);
var fieldname = getQueryVariable('fieldname', this.href);
var buttonsOpts = {};
buttonsOpts[translt.returnTxt] = function() {
// Fix for the IE bug 04965
var pass;
if(document.getElementById('uploader').contentDocument) {
if(document.getElementById('uploader').contentDocument.defaultView)
{ /*Firefox*/
pass=document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos);
}
else
{ /*IE8*/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
}
else
{ /*IE6*/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
if (pass) {
$(this).dialog('close');
$('iframe#uploader').remove();
$(this).dialog('destroy');
checkconditions();
}
};
var horizontalPadding = 30;
var verticalPadding = 20;
$('#uploader').dialog('destroy'); // destroy the old modal dialog
var horizontalPadding = 30;
var verticalPadding = 20;
$('#uploader').dialog('destroy'); // destroy the old modal dialog
if ($('#uploader').length > 0)
{
if ($('#uploader').length > 0)
{
$('iframe#uploader', parent.document).dialog({
title: translt.title,
autoOpen: true,
width: 984,
height: 440,
modal: true,
resizable: true,
autoResize: true,
draggable: true,
closeOnEscape: false,
beforeclose: function() {
var pass; if(document.getElementById('uploader').contentDocument) { if(document.getElementById('uploader').contentDocument.defaultView) { /*Firefox*/ pass=document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos); }else{ /*IE8*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); } }else{ /*IE6*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); }
if (pass) {
$(this).dialog('destroy');
$('iframe#uploader').remove();
$('iframe#uploader', parent.document).dialog({
title: translt.title,
autoOpen: true,
width: 984,
height: 440,
modal: true,
resizable: true,
autoResize: true,
draggable: true,
closeOnEscape: false,
beforeclose: function() {
var pass; if(document.getElementById('uploader').contentDocument) {
if(document.getElementById('uploader').contentDocument.defaultView) { /*Firefox*/
pass=document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos);
}else{ /*IE8*/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
else {
$(this).dialog('destroy');
$('iframe#uploader').remove();
}else{
/*IE6*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
if (pass) {
$('iframe#uploader').remove();
$(this).dialog('destroy');
checkconditions();
}
return true;
},
overlay: {
opacity: 0.85,
background: 'black'
},
buttons: buttonsOpts
}).width(984 - horizontalPadding).height(440 - verticalPadding);
}
else
{
$('<iframe id=\"uploader\" name=\"uploader\" class=\"externalSite\" src=\"' + this.href + '\" />').dialog({
title: translt.title,
autoOpen: true,
width: 984,
height: 440,
modal: true,
resizable: true,
autoResize: true,
draggable: true,
closeOnEscape: false,
beforeclose: function() {
var pass; if(document.getElementById('uploader').contentDocument) { if(document.getElementById('uploader').contentDocument.defaultView) { /*Firefox*/ pass=document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos); }else{ /*IE8*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); } }else{ /*IE6*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); }
return pass;
},
overlay: {
opacity: 0.85,
background: 'black'
},
buttons: buttonsOpts
}).width(984 - horizontalPadding).height(440 - verticalPadding);
}
},
overlay: {
opacity: 0.85,
background: 'black'
},
buttons: buttonsOpts
}).width(984 - horizontalPadding).height(440 - verticalPadding);
}
else
{
$('<iframe id=\"uploader\" name=\"uploader\" class=\"externalSite\" src=\"' + this.href + '\" />').dialog({
title: translt.title,
autoOpen: true,
width: 984,
height: 440,
modal: true,
resizable: true,
autoResize: true,
draggable: true,
closeOnEscape: false,
beforeclose: function() {
var pass;
if(document.getElementById('uploader').contentDocument) {
if(document.getElementById('uploader').contentDocument.defaultView)
{ /*Firefox*/
pass=document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos);
}else{ /*IE8*/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
}else{ /*IE6*/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
if (pass) {
$('iframe#uploader').remove();
$(this).dialog('destroy');
checkconditions();
}
return pass;
},
overlay: {
opacity: 0.85,
background: 'black'
},
buttons: buttonsOpts
}).width(984 - horizontalPadding).height(440 - verticalPadding);
}
});
});
});
});
function getQueryVariable(variable, url) {
var query = url.split("?");
var vars = query[1].split("&");
var vars = query[1].replace(/\&amp;/g,'&').split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
return pair[1];
}
}
return null;
@@ -102,7 +139,7 @@ function getQueryVariable(variable, url) {
function isValueInArray(arr, val) {
inArray = false;
for (i = 0; i < arr.length; i++) {
if (val === arr[i]) {
if (val.toLowerCase() == arr[i].toLowerCase()) {
inArray = true;
}
}
@@ -121,37 +158,37 @@ function displayUploadedFiles(jsonstring, filecount, fieldname, show_title, show
}
if (jsonstring !== '')
{
{
jsonobj = eval('(' + jsonstring + ')');
display = '<table width="100%"><tr><th align="center" width="20%">&nbsp;</th>';
if (show_title != 0)
display += '<th align="center"><b>Title</b></th>';
display += '<th align="center"><b>'+translt.headTitle+'</b></th>';
if (show_comment != 0)
display += '<th align="center"><b>Comment</b></th>';
display += '<th align="center"><b>Name</b></th></tr>';
display += '<th align="center"><b>'+translt.headComment+'</b></th>';
display += '<th align="center"><b>'+translt.headFileName+'</b></th></tr>';
var image_extensions = new Array('gif', 'jpeg', 'jpg', 'png', 'swf', 'psd', 'bmp', 'tiff', 'jp2', 'iff', 'bmp', 'xbm', 'ico');
for (i = 0; i < filecount; i++)
{
if (pos)
{
if (pos)
{
if (isValueInArray(image_extensions, jsonobj[i].ext))
display += '<tr><td><img src="uploader.php?sid='+surveyid+'&amp;filegetcontents='+decodeURIComponent(jsonobj[i].filename)+'" height=100px align="center"/></td>';
display += '<tr><td><img src="'+rooturl+'/uploader.php?sid='+surveyid+'&amp;filegetcontents='+decodeURIComponent(jsonobj[i].filename)+'" height=100px align="center"/></td>';
else
display += '<tr><td><img src="images/placeholder.png" height=100px align="center"/></td>';
display += '<tr><td><img src="'+rooturl+'/images/placeholder.png" height=100px align="center"/></td>';
}
else
{
{
if (isValueInArray(image_extensions, jsonobj[i].ext))
display += '<tr><td><img src="uploader.php?filegetcontents='+decodeURIComponent(jsonobj[i].filename)+'" height=100px align="center"/></td>';
display += '<tr><td><img src="'+rooturl+'/uploader.php?sid='+surveyid+'&amp;filegetcontents='+decodeURIComponent(jsonobj[i].filename)+'" height=100px align="center"/></td>';
else
display += '<tr><td><img src="images/placeholder.png" height=100px align="center"/></td>';
display += '<tr><td><img src="'+rooturl+'/images/placeholder.png" height=100px align="center"/></td>';
}
if (show_title != 0)
display += '<td>'+jsonobj[i].title+'</td>';
if (show_comment != 0)
display += '<td>'+jsonobj[i].comment+'</td>';
display +='<td>'+decodeURIComponent(jsonobj[i].name)+'</td><td>'+'<img src="images/edit.png" onclick="$(\'#upload_'+fieldname+'\').click()" style="cursor:pointer"></td></tr>';
display +='<td>'+decodeURIComponent(jsonobj[i].name)+'</td><td>'+'<img src="'+rooturl+'/images/edit.png" onclick="$(\'#upload_'+fieldname+'\').click()" style="cursor:pointer"></td></tr>';
}
display += '</table>';
@@ -173,4 +210,4 @@ function showBasic() {
function hideBasic() {
$('#basic').hide();
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -40,7 +40,7 @@ img {
margin: 0.5em 0.4em 0.5em 0;
overflow: visible;
padding: 0.6em 0.6em 0.6em 0.6em;
width: 100px;
min-width: 100px;
text-align: center;
}

View File

@@ -21,20 +21,20 @@ $(document).ready(function(){
"<table align='center'><tr>"+
"<td align='center' width='50%' padding='20px' >";
if (isValueInArray(image_extensions, json[i-1].ext))
previewblock += "<img src='uploader.php?filegetcontents="+json[i-1].filename+"' height='60px' />"+decodeURIComponent(json[i-1].name);
if (isValueInArray(image_extensions, json[i-1].ext.toLowerCase()))
previewblock += "<img src='"+rooturl+"/uploader.php?sid="+surveyid+"&amp;filegetcontents="+json[i-1].filename+"' height='60px' />"+decodeURIComponent(json[i-1].name);
else
previewblock += "<img src='images/placeholder.png' height='60px' /><br />"+decodeURIComponent(json[i-1].name);
previewblock += "<img src='"+rooturl+"'/images/placeholder.png' height='60px' /><br />"+decodeURIComponent(json[i-1].name);
previewblock += "</td>";
if ($('#'+fieldname+'_show_title').val() == 1 && $('#'+fieldname+'_show_comment').val() == 1)
previewblock += "<td align='center'><label>"+translt.titleFld+"</label><br /><br /><label>"+translt.commentFld+"</label></td><td align='center'><input type='text' value='"+json[i-1].title+"' id='"+fieldname+"_title_"+i+"' /><br /><br /><input type='text' value='"+json[i-1].comment+"' id='"+fieldname+"_comment_"+i+"' /></td>";
previewblock += "<td align='center'><label>"+translt.titleFld+"</label><br /><br /><label>"+translt.commentFld+"</label></td><td align='center'><input type='text' value='"+escapeHtml(json[i-1].title)+"' id='"+fieldname+"_title_"+i+"' /><br /><br /><input type='text' value='"+escapeHtml(json[i-1].comment)+"' id='"+fieldname+"_comment_"+i+"' /></td>";
else if ($('#'+fieldname+'_show_title').val() == 1)
previewblock += "<td align='center'><label>"+translt.titleFld+"</label></td><td align='center'><input type='text' value='"+json[i-1].title+"' id='"+fieldname+"_title_"+i+"' /></td>";
previewblock += "<td align='center'><label>"+translt.titleFld+"</label></td><td align='center'><input type='text' value='"+escapeHtml(json[i-1].title)+"' id='"+fieldname+"_title_"+i+"' /></td>";
else if ($('#'+fieldname+'_show_comment').val() == 1)
previewblock += "<td align='center'><label>"+translt.commentFld+"</label></td><td align='center'><input type='text' value='"+json[i-1].comment+"' id='"+fieldname+"_comment_"+i+"' /></td>";
previewblock += "<td align='center'><label>"+translt.commentFld+"</label></td><td align='center'><input type='text' value='"+escapeHtml(json[i-1].comment)+"' id='"+fieldname+"_comment_"+i+"' /></td>";
previewblock += "<td align='center' width='20%' ><img style='cursor:pointer' src='images/delete.png' onclick='deletefile(\""+fieldname+"\", "+i+")' /></td></tr></table>"+
previewblock += "<td align='center' width='20%' ><img style='cursor:pointer' src='"+rooturl+"/images/delete.png' onclick='deletefile(\""+fieldname+"\", "+i+")' /></td></tr></table>"+
"<input type='hidden' id='"+fieldname+"_size_" +i+"' value="+json[i-1].size+" />"+
"<input type='hidden' id='"+fieldname+"_name_" +i+"' value="+json[i-1].name+" />"+
"<input type='hidden' id='"+fieldname+"_file_index_"+i+"' value="+i+" />"+
@@ -134,10 +134,10 @@ $(document).ready(function(){
"<td align='center' width='50%'>";
// If the file is not an image, use a placeholder
if (isValueInArray(image_extensions, metadata.ext))
previewblock += "<img src='uploader.php?filegetcontents="+decodeURIComponent(metadata.filename)+"' height='60px' />";
if (isValueInArray(image_extensions, metadata.ext.toLowerCase()))
previewblock += "<img src='"+rooturl+"/uploader.php?sid="+surveyid+"&amp;filegetcontents="+decodeURIComponent(metadata.filename)+"' height='60px' />";
else
previewblock += "<img src='images/placeholder.png' height='60px' />";
previewblock += "<img src='"+rooturl+"/images/placeholder.png' height='60px' />";
previewblock += "<br />"+decodeURIComponent(metadata.name)+"</td>";
if ($("#"+fieldname+"_show_title").val() == 1 && $("#"+fieldname+"_show_comment").val() == 1)
@@ -147,7 +147,7 @@ $(document).ready(function(){
else if ($("#"+fieldname+"_show_comment").val() == 1)
previewblock += "<td align='center'><label>"+translt.commentFld+"</label></td><td align='center'><input type='text' value='' id='"+fieldname+"_comment_"+count+"' /></td>";
previewblock += "<td align='center' width='20%'><img style='cursor:pointer' src='images/delete.png' onclick='deletefile(\""+fieldname+"\", "+count+")'/></td>"+
previewblock += "<td align='center' width='20%'><img style='cursor:pointer' src='"+rooturl+"/images/delete.png' onclick='deletefile(\""+fieldname+"\", "+count+")'/></td>"+
"</tr></table>"+
"<input type='hidden' id='"+fieldname+"_size_"+count+"' value="+metadata.size+" />"+
"<input type='hidden' id='"+fieldname+"_file_index_"+count+"' value="+metadata.file_index+" />"+
@@ -203,29 +203,25 @@ function passJSON(fieldname, show_title, show_comment, pos) {
while (i <= licount)
{
if (filecount > 0)
json += ",";
if ($("#"+fieldname+"_li_"+i).is(':visible'))
{
if (filecount > 0)
json += ",";
json += '{';
if ($("#"+fieldname+"_show_title").val() == 1)
json += '"title":"' +$("#"+fieldname+"_title_" +i).val()+'",';
json += '"title":"' +$("#"+fieldname+"_title_" +i).val().replace(/"/g, '\\"')+'",';
if ($("#"+fieldname+"_show_comment").val() == 1)
json += '"comment":"'+$("#"+fieldname+"_comment_"+i).val()+'",';
json += '"comment":"'+$("#"+fieldname+"_comment_"+i).val().replace(/"/g, '\\"')+'",';
json += '"size":"' +$("#"+fieldname+"_size_" +i).val()+'",'+
'"name":"' +$("#"+fieldname+"_name_" +i).val()+'",'+
'"filename":"' +$("#"+fieldname+"_filename_" +i).val()+'",'+
'"ext":"' +$("#"+fieldname+"_ext_" +i).val()+'"}';
filecount += 1;
i += 1;
}
else
{
i += 1;
}
i += 1;
}
json += "]";
window.parent.window.copyJSON(json, filecount, fieldname, show_title, show_comment, pos);
@@ -302,4 +298,14 @@ function deletefile(fieldname, count) {
name=$("#"+fieldname+"_name_"+count).val();
xmlhttp.open('GET','delete.php?sid='+surveyid+'&fieldname='+fieldname+'&filename='+filename+'&name='+encodeURI(name), true);
xmlhttp.send();
}
}
function escapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}