2020-11-19 22:47:44 +01:00
|
|
|
function initializeMainMenu(menuid) {
|
|
|
|
$.ajax({ type: "GET",
|
|
|
|
dataType: "json",
|
|
|
|
url: "php/contenthandler.php?module=admin&command=getJsonMenuItemsAndVersion",
|
|
|
|
async: false,
|
|
|
|
success : function(moduleEntries)
|
|
|
|
{
|
|
|
|
$("#versioninfo").html(moduleEntries.version + " ");
|
|
|
|
if (moduleEntries.loggedin == 1) {
|
|
|
|
$("#loggedinuser").html(" " + moduleEntries.user);
|
2020-11-19 23:02:16 +01:00
|
|
|
var li='<li data-role="list-divider" data-theme="b" data-role="heading">Hauptmenü</li>';
|
|
|
|
$.each(moduleEntries.menu, function (i, module) {
|
2020-11-19 22:47:44 +01:00
|
|
|
var name = module.name;
|
|
|
|
var link = module.link;
|
|
|
|
if ((name != "Abmelden") && (name != "Log out") && (name != "Adios")) {
|
|
|
|
li += '<li data-theme="e"><a href="' + link + '" target="_top" class="modulebutton">' + name + '</a></li>';
|
|
|
|
} else {
|
|
|
|
li += '<li data-theme="e"><a href="' + link + '" target="_top">' + name + '</a></li>';
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$(menuid).empty().append(li).promise().done(function () {
|
|
|
|
$(menuid).listview("refresh");
|
|
|
|
});
|
|
|
|
$("#menuswitch").show();
|
|
|
|
} else {
|
|
|
|
$("#menuswitch").hide();
|
|
|
|
}
|
|
|
|
},
|
2020-11-19 23:02:08 +01:00
|
|
|
error: function( text ) {
|
|
|
|
alert( "Kommunikationsproblem zum Server bei Modulabfrage!" );
|
|
|
|
}
|
2020-11-19 22:47:44 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
$(".modulebutton").off("click").on("click", function (e) {
|
|
|
|
var view = $(this).attr("href");
|
|
|
|
doAjax("POST","php/contenthandler.php?module=admin&command=setLastModuleOfUser",
|
|
|
|
{ view: view}, null, "Problem Benutzerdatenpflege");
|
|
|
|
});
|
2020-11-19 22:59:57 +01:00
|
|
|
|
|
|
|
intervalGetPrinterStatus(5);
|
2020-11-19 23:03:51 +01:00
|
|
|
intervalCheckConnection(2);
|
2020-11-19 22:59:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function intervalGetPrinterStatus(seconds) {
|
2020-11-19 23:00:18 +01:00
|
|
|
doAjax("GET","php/contenthandler.php?module=admin&command=isPrinterServerActive",null,setPrinterStatus,null,true);
|
2020-11-19 22:59:57 +01:00
|
|
|
var fetchTimer = setInterval(function() {
|
|
|
|
doAjax("GET","php/contenthandler.php?module=admin&command=isPrinterServerActive",null,setPrinterStatus,null,true);
|
|
|
|
}, seconds * 1000);
|
|
|
|
}
|
|
|
|
|
|
|
|
function setPrinterStatus(answer) {
|
|
|
|
if (answer.status === "OK") {
|
|
|
|
if (answer.msg === 0) {
|
2020-11-19 23:11:33 +01:00
|
|
|
$(".printerstatus").show();
|
|
|
|
} else {
|
|
|
|
$(".printerstatus").hide();
|
|
|
|
}
|
|
|
|
if (answer.tasksforme === 1) {
|
|
|
|
$(".tasksstatus").show();
|
|
|
|
} else {
|
|
|
|
$(".tasksstatus").hide();
|
|
|
|
}
|
2020-11-19 23:14:48 +01:00
|
|
|
if (answer.tsestatus === 1) {
|
|
|
|
$(".tsestatus").hide();
|
|
|
|
} else {
|
|
|
|
$(".tsestatus").show();
|
|
|
|
}
|
2020-11-19 23:11:33 +01:00
|
|
|
return;
|
2020-11-19 22:59:57 +01:00
|
|
|
}
|
|
|
|
$(".printerstatus").hide();
|
2020-11-19 22:47:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function hideMenu() {
|
|
|
|
$( "#modulepanel" ).panel( "close" );
|
|
|
|
$("#menuswitch").off("click").on("click", function (e) {
|
|
|
|
$("#menuswitch").trigger("mouseout");
|
|
|
|
e.stopImmediatePropagation();
|
|
|
|
e.preventDefault();
|
|
|
|
$( "#modulepanel" ).panel( "open" );;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// to make IE happy...
|
|
|
|
function refreshList(selector) {
|
|
|
|
if ( $(selector).hasClass('ui-listview')) {
|
|
|
|
$(selector).listview('refresh');
|
|
|
|
} else {
|
|
|
|
$(selector).trigger('create');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-19 23:03:51 +01:00
|
|
|
function doAjax(getOrPost, url, data, functionToCallIfSuccess, errorMsg, doAsync) {
|
|
|
|
if (typeof doAsync === 'undefined') {
|
|
|
|
doAsync = false;
|
|
|
|
}
|
|
|
|
$.ajax({type: getOrPost,
|
|
|
|
url: url,
|
|
|
|
dataType: "json",
|
|
|
|
data: data,
|
|
|
|
async: doAsync,
|
|
|
|
success: function (jsonContent)
|
|
|
|
{
|
|
|
|
if (functionToCallIfSuccess != null) {
|
|
|
|
functionToCallIfSuccess(jsonContent);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
error: function (xhr, status, error) {
|
|
|
|
|
|
|
|
if (url != "php/debug.php") {
|
|
|
|
var debugData = {
|
|
|
|
cmd: url,
|
|
|
|
fct: functionToCallIfSuccess.name,
|
|
|
|
xhr: xhr.responseText,
|
|
|
|
errormsg: errorMsg,
|
|
|
|
status: status
|
|
|
|
};
|
|
|
|
|
|
|
|
var n = getMillis();
|
|
|
|
|
|
|
|
if (errorMsg != null) {
|
|
|
|
if ($(".connectionstatus").is(":visible")) {
|
|
|
|
alert("Kommunikation zum Server ist unterbrochen!");
|
|
|
|
} else {
|
|
|
|
var errorMsgTxt = errorMsg + error + " (" + url + ")";
|
2020-11-19 23:12:30 +01:00
|
|
|
alert("Kommunikationsfehler zum Server: " + errorMsgTxt + " - In der Feedbackansicht lässt sich ein Fehlerprotokoll an den Anbieter übermitteln.");
|
2020-11-19 23:03:51 +01:00
|
|
|
doAjax("POST", "php/debug.php?n=" + n, debugData, null, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-19 22:47:44 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-11-19 23:03:51 +01:00
|
|
|
function doAjaxAsync(getOrPost, url, data, functionToCallIfSuccess) {
|
|
|
|
$.ajax({type: getOrPost,
|
|
|
|
url: url,
|
|
|
|
dataType: "json",
|
|
|
|
data: data,
|
|
|
|
async: true,
|
|
|
|
success: function (jsonContent)
|
|
|
|
{
|
|
|
|
if (functionToCallIfSuccess != null) {
|
|
|
|
functionToCallIfSuccess(jsonContent);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
error: function (xhr, status, error) {
|
|
|
|
if (url != "php/debug.php") {
|
|
|
|
var debugData = {
|
|
|
|
cmd: url,
|
|
|
|
fct: functionToCallIfSuccess.name,
|
|
|
|
xhr: xhr.responseText,
|
|
|
|
errormsg: errorMsg,
|
|
|
|
status: status
|
|
|
|
};
|
|
|
|
|
|
|
|
var n = getMillis();
|
|
|
|
|
|
|
|
if (errorMsg != null) {
|
|
|
|
if ($(".connectionstatus").is(":visible")) {
|
|
|
|
alert("Kommunikation zum Server ist unterbrochen!");
|
|
|
|
} else {
|
|
|
|
var errorMsgTxt = errorMsg + error + " (" + url + ")";
|
2020-11-19 23:12:30 +01:00
|
|
|
alert("Kommunikationsfehler zum Server: " + errorMsgTxt + " - In der Feedbackansicht lässt sich ein Fehlerprotokoll an den Anbieter übermitteln.");
|
2020-11-19 23:03:51 +01:00
|
|
|
doAjax("POST", "php/debug.php?n=" + n, debugData, null, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-19 22:48:24 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-11-19 22:47:44 +01:00
|
|
|
function doAjaxTransmitData(getOrPost,url,data,functionToCallIfSuccess,errorMsg,dataToTransmit) {
|
|
|
|
$.ajax({ type: getOrPost,
|
|
|
|
url: url,
|
|
|
|
dataType: "json",
|
|
|
|
data: data,
|
|
|
|
async: false,
|
|
|
|
success : function(jsonContent)
|
|
|
|
{
|
|
|
|
if (functionToCallIfSuccess != null) {
|
|
|
|
functionToCallIfSuccess(jsonContent,dataToTransmit);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
error: function(xhr,status,error ) {
|
|
|
|
if (errorMsg != null) {
|
|
|
|
var errorMsgTxt = errorMsg + ", Status: " + status + ", Error:" + error + ", Msg: " + xhr.responseText + " (" + url + ")";
|
2020-11-19 23:12:30 +01:00
|
|
|
alert( "Kommunikationsfehler zum Server: " + errorMsgTxt + " - In der Feedbackansicht lässt sich ein Fehlerprotokoll an den Anbieter übermitteln.");
|
2020-11-19 22:47:44 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function doAjaxSuppressError(getOrPost,url,data,functionToCallIfSuccess,errorMsg) {
|
|
|
|
$.ajax({ type: getOrPost,
|
|
|
|
url: url,
|
|
|
|
dataType: "json",
|
|
|
|
data: data,
|
|
|
|
async: false,
|
|
|
|
success : function(jsonContent)
|
|
|
|
{
|
|
|
|
if (functionToCallIfSuccess != null) {
|
|
|
|
functionToCallIfSuccess(jsonContent);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
error: function( text ) {
|
|
|
|
functionToCallIfSuccess("ERROR");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function doAjaxNonJsonNonCall(getOrPost,url,data) {
|
|
|
|
$.ajax({ type: getOrPost,
|
|
|
|
data : data,
|
|
|
|
url: url,
|
|
|
|
async: false,
|
|
|
|
error: function( text ) {
|
|
|
|
alert( "Kommunikationsproblem zum Server" );
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function toHtml(text) {
|
|
|
|
if (typeof text === 'string') {
|
|
|
|
return (text.replace(/"/g, '"').replace(/</g, "<").replace(/>/g, ">"));
|
|
|
|
} else {
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-19 23:15:04 +01:00
|
|
|
function createExtraParagraph(extras,fontsize) {
|
2020-11-19 22:47:44 +01:00
|
|
|
if ((extras == null) || (extras == "")) {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
var extratxt = "";
|
|
|
|
for (var j=0;j<extras.length;j++) {
|
2020-11-19 23:15:04 +01:00
|
|
|
if (fontsize == 0) {
|
|
|
|
extratxt += "<p>+ " + toHtml(extras[j]) + "</p>";
|
|
|
|
} else {
|
|
|
|
extratxt += "<p style='font-size:" + fontsize + "px;'>+ " + toHtml(extras[j]) + "</p>";
|
|
|
|
}
|
|
|
|
|
2020-11-19 22:47:44 +01:00
|
|
|
}
|
|
|
|
return extratxt;
|
|
|
|
}
|
|
|
|
|
|
|
|
function checkForLogIn() {
|
|
|
|
doAjax("GET","php/contenthandler.php?module=admin&command=isUserAlreadyLoggedIn",null,handleTestForLoggedIn,null);
|
|
|
|
}
|
|
|
|
function handleTestForLoggedIn(answer) {
|
|
|
|
if (answer != "YES") {
|
|
|
|
setTimeout(function(){document.location.href = "index.html"},250);
|
|
|
|
}
|
2020-11-19 22:59:47 +01:00
|
|
|
}
|
|
|
|
function isInt(value) {
|
|
|
|
if(Math.floor(value) == value && $.isNumeric(value)) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
2020-11-19 23:02:33 +01:00
|
|
|
}
|
|
|
|
|
2020-11-19 23:02:49 +01:00
|
|
|
function isFloat(n){
|
|
|
|
return Number(n) === n && n % 1 !== 0;
|
|
|
|
}
|
|
|
|
|
2020-11-19 23:12:00 +01:00
|
|
|
function roundtodigits(value, digits) {
|
|
|
|
value = parseFloat(value);
|
|
|
|
if (!value) return 0;
|
|
|
|
var factor = Math.pow(10,digits);
|
|
|
|
return Math.round(value * factor) / factor;
|
|
|
|
}
|
|
|
|
|
2020-11-19 23:02:33 +01:00
|
|
|
function getMillis() {
|
|
|
|
var d = new Date();
|
|
|
|
var n = d.getTime();
|
|
|
|
return n;
|
2020-11-19 23:03:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function intervalCheckConnection(seconds) {
|
|
|
|
checkConnection();
|
|
|
|
var fetchTimer = setInterval(function() {
|
|
|
|
checkConnection();
|
|
|
|
}, seconds * 1000);
|
|
|
|
}
|
|
|
|
|
|
|
|
function checkConnection() {
|
|
|
|
var img = new Image();
|
|
|
|
img.onerror = function () {
|
|
|
|
$(".connectionstatus").show();
|
|
|
|
}
|
|
|
|
img.onload = function () {
|
|
|
|
$(".connectionstatus").hide();
|
|
|
|
}
|
|
|
|
img.src = "img/gray.png?t=" + (+new Date);
|
2020-11-19 23:11:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
function createLabelWithTextField(labelid,displayedName,defaultText) {
|
|
|
|
var text = '<div class="ui-field-contain">';
|
|
|
|
text += '<label for="' + labelid + '">' + displayedName + '</label>';
|
|
|
|
text += '<input type="text" id="' + labelid + '" value="" data-mini="true" placeholder="' + defaultText + '" style="background-color:white;color:black;" />';
|
|
|
|
text += '</div>';
|
|
|
|
return text;
|
|
|
|
}
|
2020-11-19 23:12:35 +01:00
|
|
|
function createLabelWithTextFieldWithContent(labelid,displayedName,defaultText,content) {
|
|
|
|
var text = '<div class="ui-field-contain">';
|
|
|
|
text += '<label for="' + labelid + '">' + displayedName + '</label>';
|
|
|
|
text += '<input type="text" id="' + labelid + '" value="' + toHtml(content) + '" data-mini="true" placeholder="' + defaultText + '" style="background-color:white;color:black;" />';
|
|
|
|
text += '</div>';
|
|
|
|
return text;
|
|
|
|
}
|
2020-11-19 23:11:33 +01:00
|
|
|
function createLabelWithTextFieldWithValue(labelid,displayedName,content) {
|
|
|
|
var text = '<div class="ui-field-contain">';
|
|
|
|
text += '<label for="' + labelid + '">' + displayedName + '</label>';
|
|
|
|
text += '<input type="text" id="' + labelid + '" data-mini="true" value="' + content + '" style="background-color:white;color:black;" />';
|
|
|
|
text += '</div>';
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
|
|
|
|
function createLabelWithTextArea(labelid,displayedName) {
|
|
|
|
var text = '<div class="ui-field-contain">';
|
|
|
|
text += '<label for="' + labelid + '">' + displayedName + '</label>';
|
|
|
|
text += '<textarea id="' + labelid + '" name="' + labelid + '" cols="40" rows="8" style="background-color:white;color:black;"></textarea>';
|
|
|
|
text += '</div>';
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
function createLabelWithTextAreaWithValue(labelid,displayedName,content) {
|
|
|
|
var text = '<div class="ui-field-contain">';
|
|
|
|
text += '<label for="' + labelid + '">' + displayedName + '</label>';
|
|
|
|
text += '<textarea id="' + labelid + '" name="' + labelid + '" cols="40" rows="8" style="background-color:white;color:black;">';
|
|
|
|
text += content;
|
|
|
|
text += '</textarea>';
|
|
|
|
text += '</div>';
|
|
|
|
return text;
|
|
|
|
}
|
|
|
|
function createLabelWithOption(prefix,id,aLabel,displayedName,allValues,theValue) {
|
|
|
|
var labelid = id;
|
|
|
|
if ((prefix != "") || (aLabel != "")) {
|
|
|
|
labelid = prefix + aLabel + "_" + id;
|
|
|
|
}
|
|
|
|
var text = '<div class="ui-field-contain">';
|
|
|
|
text += '<label for="' + labelid + '">' + displayedName + '</label>';
|
|
|
|
|
|
|
|
text += '<select name="' + labelid + '" id="' + labelid + '" data-theme="f">';
|
|
|
|
for (var i=0;i<allValues.length;i++) {
|
|
|
|
var aValue = allValues[i];
|
|
|
|
if (aValue.id == theValue) {
|
|
|
|
text += '<option value="' + aValue.id + '" selected>' + aValue.text + '</option>';
|
|
|
|
} else {
|
|
|
|
text += '<option value="' + aValue.id + '" >' + aValue.text + '</option>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
text += '</select></div>';
|
|
|
|
|
|
|
|
return text;
|
2020-11-19 23:12:35 +01:00
|
|
|
}
|
|
|
|
|
2020-11-19 23:13:57 +01:00
|
|
|
function pad(num, size) {
|
|
|
|
var s = "000000000" + num;
|
|
|
|
return s.substr(s.length-size);
|
|
|
|
}
|
|
|
|
|
2020-11-19 23:14:02 +01:00
|
|
|
function getUrlGetParameter(urlsuffix,paramMarker) {
|
|
|
|
var tid = '';
|
|
|
|
var urlParts = urlsuffix.split(/&|\?/);
|
|
|
|
for (var i=0;i<urlParts.length;i++) {
|
|
|
|
var aPart = urlParts[i];
|
|
|
|
if (aPart.indexOf(paramMarker) == 0) {
|
|
|
|
var parts = aPart.split("=");
|
|
|
|
tid = parts[1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return tid;
|
|
|
|
}
|
|
|
|
|
2020-11-19 23:12:35 +01:00
|
|
|
var g_units_arr = [
|
|
|
|
{ text: "Stück", value: 0, id: "piece", longtext: "Stück"},
|
|
|
|
{ text: "Eingabe", value: 1, id: "input", longtext: "Preiseingabe"},
|
|
|
|
{ text: "kg", value: 2, id: "kg", longtext: "Gewicht (kg)"},
|
|
|
|
{ text: "gr", value: 3, id: "gr", longtext: "Gewicht (gr)"},
|
|
|
|
{ text: "mg", value: 4, id: "mg", longtext: "Gewicht (mg)"},
|
|
|
|
{ text: "l", value: 5, id: "l", longtext: "Volumen (l)"},
|
|
|
|
{ text: "ml", value: 6, id: "ml", longtext: "Volumen (ml)"},
|
2020-11-19 23:14:48 +01:00
|
|
|
{ text: "m", value: 7, id: "m", longtext: "Länge (m)"},
|
|
|
|
{ text: "EinzweckgutscheinKauf", value: 8, id: "EG", longtext: "EinzweckgutscheinKauf"},
|
|
|
|
{ text: "EinzweckgutscheinEinl", value: 9, id: "MG", longtext: "EinzweckgutscheinEinl"}
|
|
|
|
];
|
|
|
|
|
|
|
|
var taxesDefs = [
|
|
|
|
{ key: 1, value: null, name: "Allgemeiner Steuersatz (§ 12 Abs. 1 UStG)"},
|
|
|
|
{ key: 2, value: null, name: "Ermäßigter Steuersatz (§ 12 Abs. 2 UStG)"},
|
|
|
|
// { key: 3, value: 10.70, name: "Durchschnittsatz (§ 24 Abs. 1 Nr. 3 UStG) übrige Fälle"},
|
|
|
|
// { key: 4, value: 5.50, name: "Durchschnittsatz (§ 24 Abs. 1 Nr. 1 UStG)"},
|
|
|
|
{ key: 5, value: 0.0, name: "Nicht Steuerbar"},
|
|
|
|
// { key: 6, value: 0.0, name: "Umsatzsteuerfrei"},
|
|
|
|
// { key: 7, value: 0.0, name: "UmsatzsteuerNichtErmittelbar"},
|
|
|
|
{ key: 11, value: 19.0, name: "Historischer allgemeiner Steuersatz (§ 12 Abs. 1 UStG)"},
|
|
|
|
{ key: 12, value: 7.0, name: "Historischer ermäßigter Steuersatz (§ 12 Abs. 2 UStG)"},
|
|
|
|
{ key: 21, value: 16.0, name: "Historischer allgemeiner Steuersatz (§ 12 Abs. 1 UStG)"},
|
|
|
|
{ key: 22, value: 5.0, name: "Historischer ermäßigter Steuersatz (§ 12 Abs. 2 UStG)"}
|
2020-11-19 23:15:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
function isSelected(currentIndex,searchIndex) {
|
|
|
|
if (currentIndex == searchIndex) {
|
|
|
|
return " selected";
|
|
|
|
} else {
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createPreferMobileThemePart(prefervalue,label,labeltxt,l) {
|
|
|
|
var PREF_THEME_COLORFUL = ["Active Colors","Active Colors","Active Colors"];
|
|
|
|
var PREF_THEME_PALE = ["Power Pale","Power Pale","Power Pale"];
|
|
|
|
var PREF_THEME_DARK_SOUL = ["Dark Soul","Dark Soul","Dark Soul"];
|
|
|
|
var PREF_THEME_STYLISH = ["Stylish","Stylish","Stylish"];
|
|
|
|
var PREF_THEME_BLUETHUNDER = ["Blue Thunder","Blue Thunder","Blue Thunder"];
|
|
|
|
var PREF_THEME_COOL = ["Cool","Cool","Cool"];
|
|
|
|
var PREF_THEME_PINKLADY = ["Pink Lady","Pink Lady","Pink Lady"];
|
|
|
|
var PREF_THEME_GREENFIELD = ["Green Field","Green Field","Green Field"];
|
|
|
|
|
|
|
|
var html = '<div class="ui-field-contain">';
|
|
|
|
html += '<label for="' + label + '"><span id="' + label + 'txt">' + labeltxt + '</span>:</label>';
|
|
|
|
html += '<select name="' + label + '" id="' + label + '" data-theme="e">';
|
|
|
|
|
|
|
|
html += '<option value="0"' + isSelected(0,prefervalue) + '>' + PREF_THEME_COLORFUL[l] + '</option>';
|
|
|
|
html += '<option value="1"' + isSelected(1,prefervalue) + '>' + PREF_THEME_PALE[l] + '</option>';
|
|
|
|
html += '<option value="2"' + isSelected(2,prefervalue) + '>' + PREF_THEME_DARK_SOUL[l] + '</option>';
|
|
|
|
html += '<option value="3"' + isSelected(3,prefervalue) + '>' + PREF_THEME_STYLISH[l] + '</option>';
|
|
|
|
html += '<option value="4"' + isSelected(4,prefervalue) + '>' + PREF_THEME_BLUETHUNDER[l] + '</option>';
|
|
|
|
html += '<option value="5"' + isSelected(5,prefervalue) + '>' + PREF_THEME_COOL[l] + '</option>';
|
|
|
|
html += '<option value="6"' + isSelected(6,prefervalue) + '>' + PREF_THEME_PINKLADY[l] + '</option>';
|
|
|
|
html += '<option value="7"' + isSelected(7,prefervalue) + '>' + PREF_THEME_GREENFIELD[l] + '</option>';
|
|
|
|
html += '<option value="8"' + isSelected(8,prefervalue) + '>Bright Energy</option>';
|
|
|
|
|
|
|
|
html += '</select></div>';
|
|
|
|
return html;
|
|
|
|
}
|