diff --git a/config/layouts/default.json b/config/layouts/default.json index 4651d742ea0cb2a888a7a48be5c7dc7edc5dc191..8be73ad7a5a4613f5adb2aad2d5068a27f43ce9f 100755 --- a/config/layouts/default.json +++ b/config/layouts/default.json @@ -17,7 +17,7 @@ }, "down": { - "type":"panel","name":"mensaPlan" + "type":"panel","name":"topListe" } } } diff --git a/panels/mensaPlan/config.php b/panels/mensaPlan/config.php index f6162edf27979517efe6952e8d04da06f120552d..59e1fdda7ff7ae3c9f688aaebf59d615f7775758 100644 --- a/panels/mensaPlan/config.php +++ b/panels/mensaPlan/config.php @@ -1,30 +1,30 @@ -<?php -// Universal -$MENSA_URL = "http://www.stwdo.de/gastronomie/speiseplaene/hauptmensa/wochenansicht-hauptmensa/"; -$PARSE_DAYLIST = array ( - "montag", - "dienstag", - "mittwoch", - "donnerstag", - "freitag" -); -$DO_SQL = true; -$DO_JSON = true; - -// SQL -$SQL_SERVER = "ovanier.de"; -$SQL_USER = "info_writer"; -$SQL_PW = "XAHQTZeGbqsnt8K6"; -$SQL_DB = "infoscreen"; - -// JSON -$JSON_NAME = "mensaPlan.json"; -$JSON_INC_NR = false; -$JSON_INC_ORIGINAL = false; -$JSON_INC_SHORT = true; -$JSON_INC_ART = true; -$JSON_INC_KIND = false; -$JSON_INC_COUNTER = true; -$JSON_INC_STOFFE = false; -$JSON_INC_DATE = true; +<?php +// Universal +$MENSA_URL = "http://www.stwdo.de/gastronomie/speiseplaene/hauptmensa/wochenansicht-hauptmensa/"; +$PARSE_DAYLIST = array ( + "montag", + "dienstag", + "mittwoch", + "donnerstag", + "freitag" +); +$DO_SQL = true; +$DO_JSON = true; + +// SQL +$SQL_SERVER = "ovanier.com"; +$SQL_USER = "info_writer"; +$SQL_PW = "XAHQTZeGbqsnt8K6"; +$SQL_DB = "infoscreen"; + +// JSON +$JSON_NAME = "mensaPlan.json"; +$JSON_INC_NR = false; +$JSON_INC_ORIGINAL = false; +$JSON_INC_SHORT = true; +$JSON_INC_ART = true; +$JSON_INC_KIND = false; +$JSON_INC_COUNTER = true; +$JSON_INC_STOFFE = false; +$JSON_INC_DATE = true; ?> \ No newline at end of file diff --git a/panels/mensaPlan/setup/zusatzstoffe.sql b/panels/mensaPlan/setup/zusatzstoffe.sql new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/panels/topListe/getTasks.php b/panels/topListe/getTasks.php new file mode 100644 index 0000000000000000000000000000000000000000..8dce5a57346d86280d73e7590a26388958388195 --- /dev/null +++ b/panels/topListe/getTasks.php @@ -0,0 +1,4 @@ +<?php + + +?> \ No newline at end of file diff --git a/panels/topListe/script.js b/panels/topListe/script.js index fef4259f784ee2c1ae72743ec5878762b2e8e819..db799dcdcf59623ab0319c9219b0bb8debca1d9c 100644 --- a/panels/topListe/script.js +++ b/panels/topListe/script.js @@ -1,15 +1,39 @@ this.loaded = function(panel, config) { -<<<<<<< HEAD + addElement("A"); + addElement("B"); + addElement("C"); + addElement("D"); + addElement("E"); + //removeElement(3); + moveElement(3,1); +} -$(function() { - $( "#sortable" ).sortable(); - $( "#sortable" ).disableSelection(); - }); +var lastUpdates; +function pull(){ + } -======= - var $li = $("<li class='ui-state-default'/>").text("BLA"); - $("#sortable").append($li); - $("#sortable").sortable('refresh'); + +function addElement($text){ + var $li = $("<li class='ui-state-default'/>").text($text); + $("#topListSortable").append($li); + $("#topListSortable").sortable(); + $("#topListSortable").disableSelection(); + $("#topListSortable").sortable('refresh'); } ->>>>>>> remotes/origin/dev + +function moveElement($idO,$idN){ + if($idO != $idN) { + if($idO < $idN){ + $("#topListSortable li:eq("+$idO+")").insertAfter($("#topListSortable li:eq("+$idN+")")); + } else { + $("#topListSortable li:eq("+$idO+")").insertBefore($("#topListSortable li:eq("+$idN+")")); + } + $("#topListSortable").sortable('refresh'); + } +} + +function removeElement($id){ + $("#topListSortable li:eq(" + $id+")").remove(); + $("#topListSortable").sortable('refresh'); +} \ No newline at end of file diff --git a/panels/topListe/style.less b/panels/topListe/style.less index 2483010ebda05e2fe89abfbfe9b533e6249eee29..8aa83bfc3490366bd70d5c75b48820fb6254923d 100644 --- a/panels/topListe/style.less +++ b/panels/topListe/style.less @@ -30,13 +30,13 @@ font-size: 200%; } -#topListSortable{ +#topListAnzeige{ float: left; width: 100%; height: 25%; } -#sortable { +#topListSortable { font-weight: bold; color: #ffffff; list-style-type: decimal; diff --git a/panels/topListe/template.html b/panels/topListe/template.html index f9387a2d73a3cc92c6706d3ffacacdc79b8bc366..f261b32c9f4f401fbad467206dd76fa99a5c758b 100644 --- a/panels/topListe/template.html +++ b/panels/topListe/template.html @@ -1,26 +1,15 @@ -<<<<<<< HEAD <div id="topListe"> -<div id="currentTop"> - <div id="topName"> - TEST1 + <div id="currentTop"> + <div id="topName"> + TEST1 + </div> + <div id="topDescription"> + TEST2 + </div> </div> - <div id="topDescription"> - TEST2 + <div id="topListAnzeige"> + <ol id="topListSortable"> + </ol> </div> </div> -<div id="topListSortable"> - <ol id="sortable"> - <li class="ui-state-default">Item 1</li> - <li class="ui-state-default">Item 2</li> - <li class="ui-state-default">Item 3</li> - <li class="ui-state-default">Item 4</li> - <li class="ui-state-default">Item 5</li> - <li class="ui-state-default">Item 6</li> - <li class="ui-state-default">Item 7</li> - </ol> -</div> -======= -<ul id="sortable"> - <li class="ui-state-default">Item 1</li> -</ul> ->>>>>>> remotes/origin/dev +