Skip to content
Snippets Groups Projects
Commit 673bd87a authored by Hotte's avatar Hotte
Browse files

-mensaIMGs -mensaArt

parent f5a6dd96
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -133,83 +133,7 @@ this.loaded = function(panel, config) { ...@@ -133,83 +133,7 @@ this.loaded = function(panel, config) {
c++; c++;
} }
var cell1 = row.insertCell(0); var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
cell1.innerHTML = gericht.shortText; cell1.innerHTML = gericht.shortText;
var art = "";
var first = true;
if (gericht.rind) {
art += "R";
}
if (!first) {
art += " ";
first = false;
}
if (gericht.schwein) {
art += "S";
}
if (!first) {
art += " ";
first = false;
}
if (gericht.gefluegel) {
art += "G";
}
if (!first) {
art += " ";
first = false;
}
if (gericht.fisch) {
art += "F";
}
if (!first) {
art += " ";
first = false;
}
if (gericht.vegetarisch) {
art += "V";
}
if (!first) {
art += " ";
first = false;
}
if (gericht.vegan) {
art += "N";
}
cell2.innerHTML = art;
var img = "";
switch (gericht.counter) {
case 1:
img = "icon-menue-1.png";
break;
case 2:
img = "icon-menue-2.png";
break;
case 3:
img = "icon-tagesgericht.png";
break;
case 4:
img = "icon-vegetarisch.png";
break;
case 5:
img = "icon-aktionsteller.png";
break;
case 6:
img = "icon-grillstation.png";
break;
case 7:
img = "icon-fisch.png";
break;
case 8:
img = "icon-vegan.png";
break;
default:
img = "ERROR";
}
if (gericht.counter != 0) {
gericht.counter = cell3.innerHTML = '<img src="panels/mensaPlan/img/'
+ img + '" />';
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment