2020-11-19 22:44:19 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Ansicht Bar</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2020-11-19 22:47:44 +01:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
2020-11-19 22:48:24 +01:00
|
|
|
<meta name="author" content="Stefan Pichel">
|
2020-11-19 22:44:19 +01:00
|
|
|
|
2020-11-19 23:11:47 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/bestformat.css?v=1.5.6">
|
2020-11-19 22:44:19 +01:00
|
|
|
|
2020-11-19 23:02:42 +01:00
|
|
|
<link rel="stylesheet" href="php/contenthandler.php?module=admin&command=getmobilecss" />
|
2020-11-19 22:44:19 +01:00
|
|
|
<link rel="stylesheet" href="php/3rdparty/orderstyle/jquery.mobile.icons.min.css" />
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="php/3rdparty/jquery.mobile-1.4.0.min.css" type="text/css" />
|
|
|
|
<script src="php/3rdparty/jquery-2.0.3.min.js"></script>
|
|
|
|
<script src="php/3rdparty/jquery.mobile-1.4.0.min.js"></script>
|
2020-11-19 23:11:47 +01:00
|
|
|
<script src="utilities.js?v=1.5.6"></script>
|
|
|
|
<script src="kitchenbar.js?v=1.5.6"></script>
|
2020-11-19 22:44:19 +01:00
|
|
|
<style>
|
|
|
|
|
|
|
|
#tableWithEntriesToCook,#tableWithCookedEntries,#headertableToCook
|
|
|
|
{
|
|
|
|
width:100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#declareready,#declarenotcooked {
|
|
|
|
text-align:center;
|
|
|
|
vertical-align:middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
#readybutton,#notreadybutton {
|
|
|
|
width:90%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#optiontext
|
|
|
|
{
|
|
|
|
font-family:sans-serif;
|
|
|
|
font-size:10pt;
|
|
|
|
color:black;
|
|
|
|
}
|
|
|
|
|
|
|
|
#tableWithCookedEntries td {
|
|
|
|
background:#b4b4ec
|
|
|
|
}
|
|
|
|
|
|
|
|
.dividerline {
|
|
|
|
height: 10px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
2020-11-19 22:47:44 +01:00
|
|
|
var lang = 0;
|
|
|
|
|
|
|
|
function setLanguage(language) {
|
|
|
|
lang = language;
|
|
|
|
}
|
2020-11-19 22:44:19 +01:00
|
|
|
|
|
|
|
// refreshing the content
|
|
|
|
$(document).ready(function() {
|
|
|
|
var refreshId = setInterval(function() {
|
|
|
|
getAndDisplayAllEntries();
|
2020-11-19 22:47:44 +01:00
|
|
|
}, 5000);
|
2020-11-19 22:44:19 +01:00
|
|
|
$.ajaxSetup({ cache: false });
|
|
|
|
});
|
|
|
|
|
|
|
|
function getEntriesToCook() {
|
|
|
|
// Drinks
|
|
|
|
var data = { kind: 1 };
|
|
|
|
doAjax("GET","php/contenthandler.php?module=queue&command=getJsonAllQueueItemsToMake",data,fillTableWithEntriesToCook,"no entries to make");
|
|
|
|
}
|
|
|
|
|
|
|
|
function getCookedEntries() {
|
|
|
|
var data = { kind: 1 };
|
|
|
|
doAjax("GET","php/contenthandler.php?module=queue&command=getJsonLastMadeItems",data,fillTableWithCookedEntries,"no cooked entries");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function hideElementsForNonBarUser(jsonAnswer) {
|
|
|
|
if (jsonAnswer != "Yes") {
|
|
|
|
$("#allpagecontent").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//pageinit event for first page
|
|
|
|
//triggers only once
|
|
|
|
//write all your on-load functions and event handlers pertaining to page1
|
|
|
|
$(document).on("pageinit", "#bar-page", function () {
|
2020-11-19 22:47:44 +01:00
|
|
|
var urlsuffix = location.search;
|
|
|
|
setWorkMode(urlsuffix);
|
|
|
|
|
|
|
|
getGeneralConfigItems();
|
2020-11-19 22:44:19 +01:00
|
|
|
});
|
|
|
|
|
2020-11-19 22:47:44 +01:00
|
|
|
function initializeEverything() {
|
|
|
|
hideMenu();
|
|
|
|
doAjax("GET","php/contenthandler.php?module=admin&command=isLoggedinUserBar",null,hideElementsForNonBarUser,"Fehler");
|
|
|
|
}
|
2020-11-19 22:44:19 +01:00
|
|
|
|
|
|
|
</script>
|
|
|
|
<!--first page -->
|
2020-11-19 23:11:29 +01:00
|
|
|
<div data-role="page" id="bar-page" data-theme="c">
|
2020-11-19 22:44:19 +01:00
|
|
|
<div data-role="panel" id="modulepanel" data-position="right" data-display="overlay">
|
|
|
|
<ul data-role="listview" id="modulemenu" data-divider-theme="a" data-inset="true">
|
2020-11-19 23:02:16 +01:00
|
|
|
<li data-role="list-divider" data-theme="b" data-role="heading">Hauptmenü</li>
|
2020-11-19 22:44:19 +01:00
|
|
|
</ul>
|
|
|
|
</div><!-- /panel -->
|
2020-11-19 23:11:29 +01:00
|
|
|
<div data-role="header" data-theme="b" data-position="fixed" id="headerline" style="background-color:black;">
|
2020-11-19 23:11:33 +01:00
|
|
|
<h1>Bar <img src="img/connection.png" class="connectionstatus" style="display:none;" /> <img src="img/printerstatus.png" class="printerstatus" style="display:none;" /> <img src="img/tasksstatus.png" class="tasksstatus" style="display:none;" /></h1>
|
2020-11-19 22:44:19 +01:00
|
|
|
<div data-type="horizontal" style="top:0px;position:absolute;float:right;z-index:10;display:inline;" align="right" class="ui-btn-right">
|
2020-11-19 23:02:16 +01:00
|
|
|
<a href="#" data-role="button" data-icon="arrow-d" data-ajax="false" id="menuswitch">Hauptmenü</a>
|
2020-11-19 22:44:19 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div data-role="content" id="allpagecontent">
|
|
|
|
<div id=listWithEntriesToCook></div>
|
2020-11-19 22:47:44 +01:00
|
|
|
<hr id="hrline">
|
2020-11-19 22:44:19 +01:00
|
|
|
<div id=listWithCookedEntries></div>
|
|
|
|
</div>
|
2020-11-19 23:11:29 +01:00
|
|
|
<div data-role="footer" data-theme="b" id="thefooterr" style="background-color:black;">
|
2020-11-19 22:44:19 +01:00
|
|
|
<div class="ui-grid-a">
|
2020-11-19 22:47:44 +01:00
|
|
|
<div class="ui-block-a userinfo"><span id="loggedinuser"></span></div>
|
2020-11-19 22:44:19 +01:00
|
|
|
<div class="ui-block-b grid_right" id="versioninfo"></div>
|
|
|
|
</div><!-- /grid-a -->
|
|
|
|
</div> <!-- footer -->
|
2020-11-19 22:47:44 +01:00
|
|
|
</div>
|
2020-11-19 22:44:19 +01:00
|
|
|
</body>
|
|
|
|
</html>
|