From add7ebb15d096a7a0fc2017e0aae205f7317ab22 Mon Sep 17 00:00:00 2001 From: Paolo Date: Fri, 25 Aug 2017 14:46:25 +0200 Subject: [PATCH] Removed unused files from include directory --- include/js/CSS and JavaScript.txt | 50 -- include/js/jquery-barcode-1.3.3.js | 828 ------------------------- include/js/jquery-barcode-1.3.3.min.js | 15 - include/js/jquery.idTabs.min.js | 12 - include/js/jquery.tools.min.js | 38 -- include/js/sorttable.js | 493 --------------- 6 files changed, 1436 deletions(-) delete mode 100644 include/js/CSS and JavaScript.txt delete mode 100644 include/js/jquery-barcode-1.3.3.js delete mode 100644 include/js/jquery-barcode-1.3.3.min.js delete mode 100644 include/js/jquery.idTabs.min.js delete mode 100644 include/js/jquery.tools.min.js delete mode 100644 include/js/sorttable.js diff --git a/include/js/CSS and JavaScript.txt b/include/js/CSS and JavaScript.txt deleted file mode 100644 index 741eff8e0..000000000 --- a/include/js/CSS and JavaScript.txt +++ /dev/null @@ -1,50 +0,0 @@ -CSS FILES -***************************** -in einzubindender Reihenfolge -Alle CSS Files im Ordner trunk/skin - -jquery.css - ->autocomplete - ->datepicker - -tabelsort.css - ->tablesort - -fhcomplete.css - -wawi/cis/fas.css - - -JS FILES -***************************** -in einzubindender Reihenfolge -Alle JS Files im Ordner trunk/include/js - - - -// DEPRECATED NICHT MEHR VERWENDEN! -jquery.js - ->autocomplete (Plugin Version) - ->datepicker - ->tablesorter - ->Deutsches Schema fuer datepicker - - - -jquery1.9.min.js - -> jqueryUI (autocomplete, datepicker, etc) - -> Deutsches Schema für datepicker - -> tablesorter - - -Tablesorter -************** -$(document).ready(function() -{ - $("#t1").tablesorter( - { - sortList: [[2,1]], - widgets: ["zebra"] - }); -}); - diff --git a/include/js/jquery-barcode-1.3.3.js b/include/js/jquery-barcode-1.3.3.js deleted file mode 100644 index 65f91b092..000000000 --- a/include/js/jquery-barcode-1.3.3.js +++ /dev/null @@ -1,828 +0,0 @@ -/* - * BarCode Coder Library (BCC Library) - * BCCL Version 1.0 - * - * Porting : Jquery barcode plugin - * Version : 1.3.3 - * - * Date : October 17 2009 - * Author : DEMONTE Jean-Baptiste (firejocker) - * Contact : jbdemonte @ gmail.com - * Web site: http://barcode-coder.com/ - * dual licence : http://www.cecill.info/licences/Licence_CeCILL_V2-fr.html - * http://www.gnu.org/licenses/gpl.html - * - * Managed : - * - * standard 2 of 5 (std25) - * interleaved 2 of 5 (int25) - * ean 8 (ean8) - * ean 13 (ean13) - * code 11 (code11) - * code 39 (code39) - * code 93 (code93) - * code 128 (code128) - * codabar (codabar) - * msi (msi) - * - * Output : - * - * CSS (compatible with any browser) - To print, you must set the option in your browser "print background image" - * SVG inline (not compatible with IE) - * BMP inline (not compatible with IE) - * - * - * 1.1 - 2009/05/26 - * -> std25 fixed - * - * 1.2 - 2009/09/10 - * parseInt replaced by intval (nb: parseInt("09") => 0) - * code128 fixed (C Table analyse) - * Thanks to Vadim for the bug reporting - * 1.3 - 2009/09/26 - * add bmp and svg image renderer - * 1.3.2 - 2009/10/03 - * manage int and string formated values for barcode width/height - * 1.3.3 - 2009/10/17 - * no wait document is ready to add plugin - * - */ - -$.barcode = { - settings:{ - barWidth: 1, - barHeight: 50, - showHRI: true, - marginHRI: 5, - bgColor: "#FFFFFF", - color: "#000000", - fontSize: "10px", - output: "css" - }, - intval: function(val){ - var type = typeof( val ); - if (type == 'string'){ - val = val.replace(/[^0-9-.]/g, ""); - val = parseInt(val * 1, 10); - if (isNaN(val) || !isFinite(val)){ - return 0; - } else{ - return val; - } - } else if (type == 'number' && isFinite(val) ){ - return Math.floor(val); - } else{ - return 0; - } - }, - i25: { // std25 int25 - encoding: [ "NNWWN", "WNNNW", "NWNNW", "WWNNN", "NNWNW", - "WNWNN", "NWWNN", "NNNWW", "WNNWN","NWNWN"], - compute: function(code, crc, type){ - if (! crc) { - if (code.length % 2 != 0) code = '0' + code; - } else { - if ( (type == "int25") && (code.length % 2 == 0) ) code = '0' + code; - var odd = true, v, sum = 0; - for(var i=code.length-1; i>-1; i--){ - v = $.barcode.intval(code.charAt(i)); - if (isNaN(v)) return(""); - sum += odd ? 3 * v : v; - odd = ! odd; - } - code += ((10 - sum % 10) % 10).toString(); - } - return(code); - }, - getDigit: function(code, crc, type){ - code = this.compute(code, crc, type); - if (code == "") return(""); - result = ""; - - var i, j; - if (type == "int25") { - // Interleaved 2 of 5 - - // start - result += "1010"; - - // digits + CRC - var c1, c2; - for(i=0; i '9') ){ - return(""); - } - } - // get checksum - code = this.compute(code, type); - - // process analyse - var result = "101"; // start - - if (type == "ean8"){ - - // process left part - for(var i=0; i<4; i++){ - result += this.encoding[$.barcode.intval(code.charAt(i))][0]; - } - - // center guard bars - result += "01010"; - - // process right part - for(var i=4; i<8; i++){ - result += this.encoding[$.barcode.intval(code.charAt(i))][2]; - } - - } else { // ean13 - // extract first digit and get sequence - var seq = this.first[ $.barcode.intval(code.charAt(0)) ]; - - // process left part - for(var i=1; i<7; i++){ - result += this.encoding[$.barcode.intval(code.charAt(i))][ $.barcode.intval(seq.charAt(i-1)) ]; - } - - // center guard bars - result += "01010"; - - // process right part - for(var i=7; i<13; i++){ - result += this.encoding[$.barcode.intval(code.charAt(i))][ 2 ]; - } - } // ean13 - - result += "101"; // stop - return(result); - }, - compute: function (code, type){ - var len = type == "ean13" ? 12 : 7; - code = code.substring(0, len); - var sum = 0, odd = true; - for(i=code.length-1; i>-1; i--){ - sum += (odd ? 3 : 1) * $.barcode.intval(code.charAt(i)); - odd = ! odd; - } - return(code + ((10 - sum % 10) % 10).toString()); - } - }, - msi: { - encoding:[ "100100100100", "100100100110", "100100110100", "100100110110", - "100110100100", "100110100110", "100110110100", "100110110110", - "110100100100", "110100100110"], - compute: function(code, crc){ - if (typeof(crc) == "object"){ - if (crc.crc1 == "mod10"){ - code = this.computeMod10(code); - } else if (crc.crc1 == "mod11"){ - code = this.computeMod11(code); - } - if (crc.crc2 == "mod10"){ - code = this.computeMod10(code); - } else if (crc.crc2 == "mod11"){ - code = this.computeMod11(code); - } - } else if (typeof(crc) == "boolean"){ - if (crc){ - code = this.computeMod10(code); - } - } - return(code); - }, - computeMod10:function(code){ - var i, - toPart1 = code.length % 2; - var n1 = 0, sum = 0; - for(i=0; i=0; i--){ - sum += weight * $.barcode.intval(code.charAt(i)); - weight = weight == 7 ? 2 : weight + 1; - } - return(code + ((11 - sum % 11) % 11).toString()); - }, - getDigit: function(code, crc){ - var table = "0123456789"; - var index = 0; - var result = ""; - - code = this.compute(code, false); - - // start - result = "110"; - - // digits - for(i=0; i=0; i--){ - weightC = weightC == 10 ? 1 : weightC + 1; - weightK = weightK == 10 ? 1 : weightK + 1; - - index = table.indexOf( code.charAt(i) ); - - weightSumC += weightC * index; - weightSumK += weightK * index; - } - - var c = weightSumC % 11; - weightSumK += c; - var k = weightSumK % 11; - - result += this.encoding[c] + intercharacter; - - if (code.length >= 10){ - result += this.encoding[k] + intercharacter; - } - - // stop - result += "1011001"; - - return(result); - } - }, - code39: { - encoding:[ "101001101101", "110100101011", "101100101011", "110110010101", - "101001101011", "110100110101", "101100110101", "101001011011", - "110100101101", "101100101101", "110101001011", "101101001011", - "110110100101", "101011001011", "110101100101", "101101100101", - "101010011011", "110101001101", "101101001101", "101011001101", - "110101010011", "101101010011", "110110101001", "101011010011", - "110101101001", "101101101001", "101010110011", "110101011001", - "101101011001", "101011011001", "110010101011", "100110101011", - "110011010101", "100101101011", "110010110101", "100110110101", - "100101011011", "110010101101", "100110101101", "100100100101", - "100100101001", "100101001001", "101001001001", "100101101101"], - getDigit: function(code){ - var table = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*"; - var i, index, result="", intercharacter='0'; - - if (code.indexOf('*') >= 0) return(""); - - // Add Start and Stop charactere : * - code = ("*" + code + "*").toUpperCase(); - - for(i=0; i 0) result += intercharacter; - result += this.encoding[ index ]; - } - return(result); - } - }, - code93:{ - encoding:[ "100010100", "101001000", "101000100", "101000010", - "100101000", "100100100", "100100010", "101010000", - "100010010", "100001010", "110101000", "110100100", - "110100010", "110010100", "110010010", "110001010", - "101101000", "101100100", "101100010", "100110100", - "100011010", "101011000", "101001100", "101000110", - "100101100", "100010110", "110110100", "110110010", - "110101100", "110100110", "110010110", "110011010", - "101101100", "101100110", "100110110", "100111010", - "100101110", "111010100", "111010010", "111001010", - "101101110", "101110110", "110101110", "100100110", - "111011010", "111010110", "100110010", "101011110"], - getDigit: function(code, crc){ - var table = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%____*", // _ => ($), (%), (/) et (+) - c, result = ""; - - if (code.indexOf('*') >= 0) return(""); - - code = code.toUpperCase(); - - // start : * - result += this.encoding[47]; - - // digits - for(i=0; i=0; i--){ - weightC = weightC == 20 ? 1 : weightC + 1; - weightK = weightK == 15 ? 1 : weightK + 1; - - index = table.indexOf( code.charAt(i) ); - - weightSumC += weightC * index; - weightSumK += weightK * index; - } - - var c = weightSumC % 47; - weightSumK += c; - var k = weightSumK % 47; - - result += this.encoding[c]; - result += this.encoding[k]; - } - - // stop : * - result += this.encoding[47]; - - // Terminaison bar - result += '1'; - return(result); - } - - }, - code128: { - encoding:[ "11011001100", "11001101100", "11001100110", "10010011000", - "10010001100", "10001001100", "10011001000", "10011000100", - "10001100100", "11001001000", "11001000100", "11000100100", - "10110011100", "10011011100", "10011001110", "10111001100", - "10011101100", "10011100110", "11001110010", "11001011100", - "11001001110", "11011100100", "11001110100", "11101101110", - "11101001100", "11100101100", "11100100110", "11101100100", - "11100110100", "11100110010", "11011011000", "11011000110", - "11000110110", "10100011000", "10001011000", "10001000110", - "10110001000", "10001101000", "10001100010", "11010001000", - "11000101000", "11000100010", "10110111000", "10110001110", - "10001101110", "10111011000", "10111000110", "10001110110", - "11101110110", "11010001110", "11000101110", "11011101000", - "11011100010", "11011101110", "11101011000", "11101000110", - "11100010110", "11101101000", "11101100010", "11100011010", - "11101111010", "11001000010", "11110001010", "10100110000", - "10100001100", "10010110000", "10010000110", "10000101100", - "10000100110", "10110010000", "10110000100", "10011010000", - "10011000010", "10000110100", "10000110010", "11000010010", - "11001010000", "11110111010", "11000010100", "10001111010", - "10100111100", "10010111100", "10010011110", "10111100100", - "10011110100", "10011110010", "11110100100", "11110010100", - "11110010010", "11011011110", "11011110110", "11110110110", - "10101111000", "10100011110", "10001011110", "10111101000", - "10111100010", "11110101000", "11110100010", "10111011110", - "10111101110", "11101011110", "11110101110", "11010000100", - "11010010000", "11010011100", "11000111010"], - getDigit: function(code){ - var tableB = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; - var result = ""; - var sum = 0; - var isum = 0; - var i = 0; - var j = 0; - var value = 0; - - // check each characters - for(i=0; i 1; - var c = ''; - for(i=0; i<3 && i= '0' && c <= '9'; - } - - sum = tableCActivated ? 105 : 104; - - // start : [105] : C table or [104] : B table - result = this.encoding[ sum ]; - - i = 0; - while( i < code.length ){ - - if (! tableCActivated){ - j = 0; - // check next character to activate C table if interresting - while ( (i + j < code.length) && (code.charAt(i+j) >= '0') && (code.charAt(i+j) <= '9') ) j++; - - // 6 min everywhere or 4 mini at the end - tableCActivated = (j > 5) || ((i + j - 1 == code.length) && (j > 3)); - - if ( tableCActivated ){ - result += this.encoding[ 99 ]; // C table - sum += ++isum * 99; - } - // 2 min for table C so need table B - } else if ( (i == code.length) || (code.charAt(i) < '0') || (code.charAt(i) > '9') || (code.charAt(i+1) < '0') || (code.charAt(i+1) > '9') ) { - tableCActivated = false; - result += this.encoding[ 100 ]; // B table - sum += ++isum * 100; - } - - if ( tableCActivated ) { - value = $.barcode.intval(code.charAt(i) + code.charAt(i+1)); // Add two characters (numeric) - i += 2; - } else { - value = tableB.indexOf( code.charAt(i) ); // Add one character - i += 1; - } - result += this.encoding[ value ]; - sum += ++isum * value; - } - - // Add CRC - result += this.encoding[ sum % 103 ]; - - // Stop - result += this.encoding[106]; - - // Termination bar - result += "11"; - - return(result); - } - }, - codabar: { - encoding:[ "101010011", "101011001", "101001011", "110010101", - "101101001", "110101001", "100101011", "100101101", - "100110101", "110100101", "101001101", "101100101", - "1101011011", "1101101011", "1101101101", "1011011011", - "1011001001", "1010010011", "1001001011", "1010011001"], - getDigit: function(code){ - var table = "0123456789-$:/.+"; - var i, index, result="", intercharacter = '0'; - - // add start : A->D : arbitrary choose A - result += this.encoding[16] + intercharacter; - - for(i=0; iD : arbitrary choose A - result += this.encoding[16]; - return(result); - } - }, - // little endian convertor - lec:{ - // convert an int - cInt: function(value, byteCount){ - var le = ''; - for(var i=0; i> 8; - } - return le; - }, - // return a byte string from rgb values - cRgb: function(r,g,b){ - return String.fromCharCode(b) + String.fromCharCode(g) + String.fromCharCode(r); - }, - // return a byte string from a hex string color - cHexColor: function(hex){ - var v = parseInt('0x' + hex.substr(1)); - var b = v & 0xFF; - v = v >> 8; - var g = v & 0xFF; - var r = v >> 8; - return(this.cRgb(r,g,b)); - } - }, - // test if a string is a hexa string color (like #FF0000) - isHexColor: function (value){ - var r = new RegExp("#[0-91-F]", "gi"); - return value.match(r); - }, - // encode data in base64 - base64Encode: function(value) { - var r = '', c1, c2, c3, b1, b2, b3, b4; - var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; - var i = 0; - while (i < value.length) { - c1 = value.charCodeAt(i++); - c2 = value.charCodeAt(i++); - c3 = value.charCodeAt(i++); - b1 = c1 >> 2; - b2 = ((c1 & 3) << 4) | (c2 >> 4); - b3 = ((c2 & 15) << 2) | (c3 >> 6); - b4 = c3 & 63; - if (isNaN(c2)) b3 = b4 = 64; - else if (isNaN(c3)) b4 = 64; - r += k.charAt(b1) + k.charAt(b2) + k.charAt(b3) + k.charAt(b4); - } - return r; - }, - // bmp barcode renderer - digitToBmp: function($container, settings, digit, hri){ - var barWidth = $.barcode.intval(settings.barWidth); - var barHeight = $.barcode.intval(settings.barHeight); - var i = 0; - var c0 = this.isHexColor(settings.bgColor) ? this.lec.cHexColor(settings.bgColor) : this.lec.cRgb(255,255,255); - var c1 = this.isHexColor(settings.color) ? this.lec.cHexColor(settings.color) : this.lec.cRgb(0,0,0); - var bar0 = ''; - var bar1 = ''; - // create one bar 0 and 1 of "barWidth" byte length - for(i=0; i"; - current = digit.charAt(i); - len=1; - } - } - if (len > 0){ - content += (current == '0' ? bar0 : bar1) + (len * barWidth) + "px\">"; - } - if (settings.showHRI){ - // add HRI centered - content += "
"+hri+"
"; - } - // set "css" image to the container - $container - .css("padding", "0px") - .css("overflow", "auto") - .css("width", (barWidth * digit.length) + "px") - .html(content); - }, - // svg barcode renderer - digitToSvg: function($container, settings, digit, hri){ - var barWidth = $.barcode.intval(settings.barWidth); - var barHeight = $.barcode.intval(settings.barHeight); - var width = digit.length * barWidth; - var height = barHeight; - var fontSize = $.barcode.intval(settings.fontSize); - if (settings.showHRI){ - height += $.barcode.intval(settings.marginHRI) + fontSize; - } - // svg header - var svg = ''; - - // background - svg += ''; - - var len = 0; - var current = digit.charAt(0); - for(var i=0; i'; - } - current = digit.charAt(i); - len=1; - } - } - if ( (len > 0) && (current == '1') ){ - svg += ''; - } - if (settings.showHRI){ - // add HRI as centered text - svg += ''; - svg += '' + hri + ''; - svg += ''; - } - // svg footer - svg += ''; - - // create a dom object, flush container and add object to the container - var object = document.createElement('object'); - object.setAttribute('type', 'image/svg+xml'); - object.setAttribute('data', 'data:image/svg+xml,'+ svg); - $container.html("").append(object); - } -} - - -$.fn.extend({ - barcode: function(datas, type, settings) { - var digit = "", - hri = "", - code = "", - crc = true; - - if (typeof(datas) == "string"){ - code = datas; - } else if (typeof(datas) == "object"){ - code = typeof(datas.code) == "string" ? datas.code : ""; - crc = typeof(datas.crc) != "undefined" ? datas.crc : true; - } - - if (code == "") return(false); - - - switch(type){ - case "std25": - case "int25": - digit = $.barcode.i25.getDigit(code, crc, type); - hri = $.barcode.i25.compute(code, crc, type); - break; - case "ean8": - case "ean13": - digit = $.barcode.ean.getDigit(code, type); - hri = $.barcode.ean.compute(code, type); - break; - case "code11": - digit = $.barcode.code11.getDigit(code); - hri = code; - break; - case "code39": - digit = $.barcode.code39.getDigit(code); - hri = code; - break; - case "code93": - digit = $.barcode.code93.getDigit(code, crc); - hri = code; - break; - case "code128": - digit = $.barcode.code128.getDigit(code); - hri = code; - break - case "codabar": - digit = $.barcode.codabar.getDigit(code); - hri = code; - break; - case "msi": - digit = $.barcode.msi.getDigit(code, crc); - hri = $.barcode.msi.compute(code, crc); - break; - } - if (digit.length == 0) return($(this)); - // add Quiet Zone - digit = "0000000000" + digit + "0000000000"; - - // merge default settings with call settings - if (settings == undefined){ - settings = []; - } - for(var name in $.barcode.settings){ - if (settings[name] == undefined) settings[name] = $.barcode.settings[name]; - } - - var $this = $(this); - - // call the god renderer - switch(settings.output){ - case "bmp": - $.barcode.digitToBmp($this, settings, digit, hri); - break; - case "svg": - $.barcode.digitToSvg($this, settings, digit, hri); - break; - default: - $.barcode.digitToCss($this, settings, digit, hri); - break; - } - - - return($this); - } -}); \ No newline at end of file diff --git a/include/js/jquery-barcode-1.3.3.min.js b/include/js/jquery-barcode-1.3.3.min.js deleted file mode 100644 index 0af2301e9..000000000 --- a/include/js/jquery-barcode-1.3.3.min.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * BarCode Coder Library (BCC Library) - * BCCL Version 1.0 - * - * Porting : Jquery barcode plugin - * Version : 1.3.3 - * - * Date : October 17 2009 - * Author : DEMONTE Jean-Baptiste (firejocker) - * Contact : jbdemonte @ gmail.com - * Web site: http://barcode-coder.com/ - * dual licence : http://www.cecill.info/licences/Licence_CeCILL_V2-fr.html - * http://www.gnu.org/licenses/gpl.html - */ -$.barcode={settings:{barWidth:1,barHeight:50,showHRI:true,marginHRI:5,bgColor:"#FFFFFF",color:"#000000",fontSize:"10px",output:"css"},intval:function(b){var a=typeof(b);if(a=="string"){b=b.replace(/[^0-9-.]/g,"");b=parseInt(b*1,10);if(isNaN(b)||!isFinite(b)){return 0}else{return b}}else{if(a=="number"&&isFinite(b)){return Math.floor(b)}else{return 0}}},i25:{encoding:["NNWWN","WNNNW","NWNNW","WWNNN","NNWNW","WNWNN","NWWNN","NNNWW","WNNWN","NWNWN"],compute:function(e,g,d){if(!g){if(e.length%2!=0){e="0"+e}}else{if((d=="int25")&&(e.length%2==0)){e="0"+e}var f=true,a,c=0;for(var b=e.length-1;b>-1;b--){a=$.barcode.intval(e.charAt(b));if(isNaN(a)){return("")}c+=f?3*a:a;f=!f}e+=((10-c%10)%10).toString()}return(e)},getDigit:function(g,h,f){g=this.compute(g,h,f);if(g==""){return("")}result="";var d,a;if(f=="int25"){result+="1010";var e,b;for(d=0;d"9")){return("")}}g=this.compute(g,f);var a="101";if(f=="ean8"){for(var e=0;e<4;e++){a+=this.encoding[$.barcode.intval(g.charAt(e))][0]}a+="01010";for(var e=4;e<8;e++){a+=this.encoding[$.barcode.intval(g.charAt(e))][2]}}else{var d=this.first[$.barcode.intval(g.charAt(0))];for(var e=1;e<7;e++){a+=this.encoding[$.barcode.intval(g.charAt(e))][$.barcode.intval(d.charAt(e-1))]}a+="01010";for(var e=7;e<13;e++){a+=this.encoding[$.barcode.intval(g.charAt(e))][2]}}a+="101";return(a)},compute:function(d,c){var a=c=="ean13"?12:7;d=d.substring(0,a);var b=0,e=true;for(i=d.length-1;i>-1;i--){b+=(e?3:1)*$.barcode.intval(d.charAt(i));e=!e}return(d+((10-b%10)%10).toString())}},msi:{encoding:["100100100100","100100100110","100100110100","100100110110","100110100100","100110100110","100110110100","100110110110","110100100100","110100100110"],compute:function(a,b){if(typeof(b)=="object"){if(b.crc1=="mod10"){a=this.computeMod10(a)}else{if(b.crc1=="mod11"){a=this.computeMod11(a)}}if(b.crc2=="mod10"){a=this.computeMod10(a)}else{if(b.crc2=="mod11"){a=this.computeMod11(a)}}}else{if(typeof(b)=="boolean"){if(b){a=this.computeMod10(a)}}}return(a)},computeMod10:function(f){var c,a=f.length%2;var e=0,d=0;for(c=0;c=0;a--){b+=d*$.barcode.intval(c.charAt(a));d=d==7?2:d+1}return(c+((11-b%11)%11).toString())},getDigit:function(d,e){var c="0123456789";var b=0;var a="";d=this.compute(d,false);a="110";for(i=0;i=0;g--){m=m==10?1:m+1;h=h==10?1:h+1;j=n.indexOf(b.charAt(g));f+=m*j;a+=h*j}var l=f%11;a+=l;var e=a%11;o+=this.encoding[l]+d;if(b.length>=10){o+=this.encoding[e]+d}o+="1011001";return(o)}},code39:{encoding:["101001101101","110100101011","101100101011","110110010101","101001101011","110100110101","101100110101","101001011011","110100101101","101100101101","110101001011","101101001011","110110100101","101011001011","110101100101","101101100101","101010011011","110101001101","101101001101","101011001101","110101010011","101101010011","110110101001","101011010011","110101101001","101101101001","101010110011","110101011001","101101011001","101011011001","110010101011","100110101011","110011010101","100101101011","110010110101","100110110101","100101011011","110010101101","100110101101","100100100101","100100101001","100101001001","101001001001","100101101101"],getDigit:function(f){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*";var d,c,b="",a="0";if(f.indexOf("*")>=0){return("")}f=("*"+f+"*").toUpperCase();for(d=0;d0){b+=a}b+=this.encoding[c]}return(b)}},code93:{encoding:["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],getDigit:function(b,g){var l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%____*",h,m="";if(b.indexOf("*")>=0){return("")}b=b.toUpperCase();m+=this.encoding[47];for(i=0;i=0;i--){j=j==20?1:j+1;f=f==15?1:f+1;index=l.indexOf(b.charAt(i));e+=j*index;a+=f*index}var h=e%47;a+=h;var d=a%47;m+=this.encoding[h];m+=this.encoding[d]}m+=this.encoding[47];m+="1";return(m)}},code128:{encoding:["11011001100","11001101100","11001100110","10010011000","10010001100","10001001100","10011001000","10011000100","10001100100","11001001000","11001000100","11000100100","10110011100","10011011100","10011001110","10111001100","10011101100","10011100110","11001110010","11001011100","11001001110","11011100100","11001110100","11101101110","11101001100","11100101100","11100100110","11101100100","11100110100","11100110010","11011011000","11011000110","11000110110","10100011000","10001011000","10001000110","10110001000","10001101000","10001100010","11010001000","11000101000","11000100010","10110111000","10110001110","10001101110","10111011000","10111000110","10001110110","11101110110","11010001110","11000101110","11011101000","11011100010","11011101110","11101011000","11101000110","11100010110","11101101000","11101100010","11100011010","11101111010","11001000010","11110001010","10100110000","10100001100","10010110000","10010000110","10000101100","10000100110","10110010000","10110000100","10011010000","10011000010","10000110100","10000110010","11000010010","11001010000","11110111010","11000010100","10001111010","10100111100","10010111100","10010011110","10111100100","10011110100","10011110010","11110100100","11110010100","11110010010","11011011110","11011110110","11110110110","10101111000","10100011110","10001011110","10111101000","10111100010","11110101000","11110100010","10111011110","10111101110","11101011110","11110101110","11010000100","11010010000","11010011100","11000111010"],getDigit:function(b){var a=" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~";var m="";var h=0;var d=0;var g=0;var f=0;var l=0;for(g=0;g1;var k="";for(g=0;g<3&&g="0"&&k<="9"}h=e?105:104;m=this.encoding[h];g=0;while(g="0")&&(b.charAt(g+f)<="9")){f++}e=(f>5)||((g+f-1==b.length)&&(f>3));if(e){m+=this.encoding[99];h+=++d*99}}else{if((g==b.length)||(b.charAt(g)<"0")||(b.charAt(g)>"9")||(b.charAt(g+1)<"0")||(b.charAt(g+1)>"9")){e=false;m+=this.encoding[100];h+=++d*100}}if(e){l=$.barcode.intval(b.charAt(g)+b.charAt(g+1));g+=2}else{l=a.indexOf(b.charAt(g));g+=1}m+=this.encoding[l];h+=++d*l}m+=this.encoding[h%103];m+=this.encoding[106];m+="11";return(m)}},codabar:{encoding:["101010011","101011001","101001011","110010101","101101001","110101001","100101011","100101101","100110101","110100101","101001101","101100101","1101011011","1101101011","1101101101","1011011011","1011001001","1010010011","1001001011","1010011001"],getDigit:function(f){var e="0123456789-$:/.+";var d,c,b="",a="0";b+=this.encoding[16]+a;for(d=0;d>8}return b},cRgb:function(d,c,a){return String.fromCharCode(a)+String.fromCharCode(c)+String.fromCharCode(d)},cHexColor:function(f){var c=parseInt("0x"+f.substr(1));var a=c&255;c=c>>8;var e=c&255;var d=c>>8;return(this.cRgb(d,e,a))}},isHexColor:function(b){var a=new RegExp("#[0-91-F]","gi");return b.match(a)},base64Encode:function(m){var a="",f,d,c,l,j,h,g;var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var e=0;while(e>2;j=((f&3)<<4)|(d>>4);h=((d&15)<<2)|(c>>6);g=c&63;if(isNaN(d)){h=g=64}else{if(isNaN(c)){g=64}}a+=b.charAt(l)+b.charAt(j)+b.charAt(h)+b.charAt(g)}return a},digitToBmp:function(q,c,l,e){var r=$.barcode.intval(c.barWidth);var p=$.barcode.intval(c.barHeight);var g=0;var h=this.isHexColor(c.bgColor)?this.lec.cHexColor(c.bgColor):this.lec.cRgb(255,255,255);var f=this.isHexColor(c.color)?this.lec.cHexColor(c.color):this.lec.cRgb(0,0,0);var n="";var k="";for(g=0;g';e=g.charAt(c);d=1}}if(d>0){f+=(e=="0"?j:h)+(d*m)+'px">'}if(a.showHRI){f+='
'+b+"
"}l.css("padding","0px").css("overflow","auto").css("width",(m*g.length)+"px").html(f)},digitToSvg:function(m,b,j,d){var o=$.barcode.intval(b.barWidth);var k=$.barcode.intval(b.barHeight);var a=j.length*o;var l=k;var n=$.barcode.intval(b.fontSize);if(b.showHRI){l+=$.barcode.intval(b.marginHRI)+n}var f='';f+='';var g=0;var h=j.charAt(0);for(var e=0;e'}h=j.charAt(e);g=1}}if((g>0)&&(h=="1")){f+=''}if(b.showHRI){f+='';f+=''+d+"";f+=""}f+="";var c=document.createElement("object");c.setAttribute("type","image/svg+xml");c.setAttribute("data","data:image/svg+xml,"+f);m.html("").append(c)}};$.fn.extend({barcode:function(e,h,c){var j="",d="",b="",f=true;if(typeof(e)=="string"){b=e}else{if(typeof(e)=="object"){b=typeof(e.code)=="string"?e.code:"";f=typeof(e.crc)!="undefined"?e.crc:true}}if(b==""){return(false)}switch(h){case"std25":case"int25":j=$.barcode.i25.getDigit(b,f,h);d=$.barcode.i25.compute(b,f,h);break;case"ean8":case"ean13":j=$.barcode.ean.getDigit(b,h);d=$.barcode.ean.compute(b,h);break;case"code11":j=$.barcode.code11.getDigit(b);d=b;break;case"code39":j=$.barcode.code39.getDigit(b);d=b;break;case"code93":j=$.barcode.code93.getDigit(b,f);d=b;break;case"code128":j=$.barcode.code128.getDigit(b);d=b;break;case"codabar":j=$.barcode.codabar.getDigit(b);d=b;break;case"msi":j=$.barcode.msi.getDigit(b,f);d=$.barcode.msi.compute(b,f);break}if(j.length==0){return($(this))}j="0000000000"+j+"0000000000";if(c==undefined){c=[]}for(var a in $.barcode.settings){if(c[a]==undefined){c[a]=$.barcode.settings[a]}}var g=$(this);switch(c.output){case"bmp":$.barcode.digitToBmp(g,c,j,d);break;case"svg":$.barcode.digitToSvg(g,c,j,d);break;default:$.barcode.digitToCss(g,c,j,d);break}return(g)}}); \ No newline at end of file diff --git a/include/js/jquery.idTabs.min.js b/include/js/jquery.idTabs.min.js deleted file mode 100644 index 7106f5496..000000000 --- a/include/js/jquery.idTabs.min.js +++ /dev/null @@ -1,12 +0,0 @@ -/* idTabs ~ Sean Catchpole - Version 2.2 - MIT/GPL */ -(function(){var dep={"jQuery":"http://code.jquery.com/jquery-latest.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;im){return e.click(0,n)}}if(!l.length){if(i>=0){return e}k=f.initialIndex;l=g.eq(k)}if(k===i){return e}n=n||d.Event();n.type="onBeforeClick";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}c[f.effect].call(e,k,function(){n.type="onClick";j.trigger(n,[k])});n.type="onStart";j.trigger(n,[k]);if(n.isDefaultPrevented()){return}i=k;g.removeClass(f.current);l.addClass(f.current);return e},getConf:function(){return f},getTabs:function(){return g},getPanes:function(){return h},getCurrentPane:function(){return h.eq(i)},getCurrentTab:function(){return g.eq(i)},getIndex:function(){return i},next:function(){return e.click(i+1)},prev:function(){return e.click(i-1)},bind:function(k,l){j.bind(k,l);return e},onBeforeClick:function(k){return this.bind("onBeforeClick",k)},onClick:function(k){return this.bind("onClick",k)},unbind:function(k){j.unbind(k);return e}});g.each(function(k){d(this).bind(f.event,function(l){e.click(k,l);return false})});if(location.hash){e.click(location.hash)}else{if(f.initialIndex===0||f.initialIndex>0){e.click(f.initialIndex)}}h.find("a[href^=#]").click(function(k){e.click(d(this).attr("href"),k)})}d.fn.tabs=function(i,f){var g=this.eq(typeof f=="number"?f:0).data("tabs");if(g){return g}if(d.isFunction(f)){f={onBeforeClick:f}}var h=d.extend({},d.tools.tabs.conf),e=this.length;f=d.extend(h,f);this.each(function(l){var j=d(this);var k=j.find(f.tabs);if(!k.length){k=j.children()}var m=i.jquery?i:j.children(i);if(!m.length){m=e==1?d(i):j.parent().find(i)}g=new a(k,m,f);j.data("tabs",g)});return f.api?g:this}})(jQuery); -(function(b){var a=b.tools.tabs;a.plugins=a.plugins||{};a.plugins.slideshow={version:"1.0.2",conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3000,clickable:true,api:false}};b.prototype.slideshow=function(e){var f=b.extend({},a.plugins.slideshow.conf),c=this.length,d;e=b.extend(f,e);this.each(function(){var p=b(this),m=p.tabs(),i=b(m),o=m;b.each(e,function(t,u){if(b.isFunction(u)){m.bind(t,u)}});function n(t){return c==1?b(t):p.parent().find(t)}var s=n(e.next).click(function(){m.next()});var q=n(e.prev).click(function(){m.prev()});var h,j,l,g=false;b.extend(m,{play:function(){if(h){return}var t=b.Event("onBeforePlay");i.trigger(t);if(t.isDefaultPrevented()){return m}g=false;h=setInterval(m.next,e.interval);i.trigger("onPlay");m.next()},pause:function(){if(!h){return m}var t=b.Event("onBeforePause");i.trigger(t);if(t.isDefaultPrevented()){return m}h=clearInterval(h);l=clearInterval(l);i.trigger("onPause")},stop:function(){m.pause();g=true},onBeforePlay:function(t){return m.bind("onBeforePlay",t)},onPlay:function(t){return m.bind("onPlay",t)},onBeforePause:function(t){return m.bind("onBeforePause",t)},onPause:function(t){return m.bind("onPause",t)}});if(e.autopause){var k=m.getTabs().add(s).add(q).add(m.getPanes());k.hover(function(){m.pause();j=clearInterval(j)},function(){if(!g){j=setTimeout(m.play,e.interval)}})}if(e.autoplay){l=setTimeout(m.play,e.interval)}else{m.stop()}if(e.clickable){m.getPanes().click(function(){m.next()})}if(!m.getConf().rotate){var r=e.disabledClass;if(!m.getIndex()){q.addClass(r)}m.onBeforeClick(function(u,t){if(!t){q.addClass(r)}else{q.removeClass(r);if(t==m.getTabs().length-1){s.addClass(r)}else{s.removeClass(r)}}})}});return e.api?d:this}})(jQuery); -(function(d){var a=d.tools.tabs;a.plugins=a.plugins||{};a.plugins.history={version:"1.0.2",conf:{api:false}};var e,b;function c(f){if(f){var g=b.contentWindow.document;g.open().close();g.location.hash=f}}d.fn.onHash=function(g){var f=this;if(d.browser.msie&&d.browser.version<"8"){if(!b){b=d("