From 3cd4381ce456b7eff41697046ea9f36df1b835ff Mon Sep 17 00:00:00 2001
From: Geno
Betriebe-Tabelle managen | ||
---|---|---|
@@ -36,6 +35,3 @@
-
-
-
diff --git a/spider/index.html b/spider/index.html
index ee16a18..f9fa0e4 100644
--- a/spider/index.html
+++ b/spider/index.html
@@ -38,7 +38,7 @@ function handleResultOfInstallCheck(is_installed) {
function handleLoginResult(status) {
if (status == "Yes") {
// user could be logged in
- reloadPage("overview.html");
+ reloadPage("overview.php");
} else {
// user entered wrong access code
alert("Falscher Zugangscode");
diff --git a/spider/install/installer.php b/spider/install/installer.php
index a69d00e..bd4cf38 100644
--- a/spider/install/installer.php
+++ b/spider/install/installer.php
@@ -85,7 +85,7 @@ class Installer {
}
Database::dropTables($pdo);
Database::createEmptyTables($pdo, $prefix);
- Database::setVersion($pdo,$prefix,"1.3.16");
+ Database::setVersion($pdo,$prefix,"1.3.17");
Database::setAccessPassword($pdo,$prefix,$adminpass);
Database::setRefreshRate($pdo,$prefix,"5"); // default: 5 times per hour
return array("status" => "OK","msg" => "Installation successful");
diff --git a/spider/js/clientset.js b/spider/js/clientset.js
index 0d121f3..d2ec30d 100644
--- a/spider/js/clientset.js
+++ b/spider/js/clientset.js
@@ -57,7 +57,7 @@ ClientSet.bindRateSelection = function() {
}
ClientSet.reloadOverviewPage = function() {
- reloadPage("overview.html");
+ reloadPage("overview.php");
};
diff --git a/spider/overview.html b/spider/overview.php
similarity index 96%
rename from spider/overview.html
rename to spider/overview.php
index bf8d89d..a18b32c 100644
--- a/spider/overview.html
+++ b/spider/overview.php
@@ -81,9 +81,6 @@ $( document ).ready(function() {
$.ajaxSetup({ cache: false });
doAjax("GET","php/generals.php?command=getSpiderVersion",null,insertSpiderVersion,null);
-
- $("#clientoviewarea").load("clientset.html");
- $("#clientsdetailsarea").load("clientdetails.html");
doAjax("POST","php/generals.php?command=isUserLoggedIn",null,handleLoginStatus,null);
bindLogout();
@@ -122,7 +119,9 @@ $( document ).ready(function() {
+
+
-
+
+
diff --git a/spider/php/clients.php b/spider/php/clients.php
index 5e1e5f8..2dc5d3d 100644
--- a/spider/php/clients.php
+++ b/spider/php/clients.php
@@ -132,7 +132,7 @@ function saveclients() {
$sql = "SELECT * FROM %clients%";
$stmt = $pdo->prepare(DbUtils::substTableAlias($sql));
$stmt->execute();
- $retStr = json_encode($stmt->fetchAll());
+ $retStr = json_encode($stmt->fetchAll(PDO::FETCH_ASSOC));
header("Pragma: public");
header("Expires: 0");
@@ -155,12 +155,12 @@ function saveclients() {
function readclients() {
if ($_FILES['userfile']['error'] != UPLOAD_ERR_OK //checks for errors
&& is_uploaded_file($_FILES['userfile']['tmp_name'])) { //checks that file is uploaded
- header("Location: ../infopage.html?e=overview.html=Kann_Datei_nicht_laden.");
+ header("Location: ../infopage.html?e=overview.php=Kann_Datei_nicht_laden.");
exit();
}
if(!file_exists($_FILES['userfile']['tmp_name']) || !is_uploaded_file($_FILES['userfile']['tmp_name'])) {
- header("Location: ../infopage.html?e=overview.html=Datei_nicht_angegeben.");
+ header("Location: ../infopage.html?e=overview.php=Datei_nicht_angegeben.");
exit();
}
@@ -174,11 +174,11 @@ function readclients() {
foreach ($content as $client) {
$sql = "INSERT INTO %clients% (`id` , `name`,`url`,`remoteaccesscode`,`basicauthuser`,`basicauthpass`,`remark`) VALUES (NULL,?,?,?,?,?,?)";
$stmt = $pdo->prepare(DbUtils::substTableAlias($sql));
- $stmt->execute(array($client->name,$client->url,$client->code,$client->basicauthuser,$client->basicauthpass,$client->remark));
+ $stmt->execute(array($client->name,$client->url,$client->remoteaccesscode,$client->basicauthuser,$client->basicauthpass,$client->remark));
}
$pdo->commit();
- header("Location: ../infopage.html?i=overview.html=Import_war_erfolgreich."); /* Browser umleiten */
+ header("Location: ../infopage.html?i=overview.php=Import_war_erfolgreich."); /* Browser umleiten */
exit;
}
diff --git a/webapp/OrderSprinterPrintserver.exe b/webapp/OrderSprinterPrintserver.exe
index efc07b51327db650ad2367921817912aad28254d..d7180a5bca428597faef8bfa890a91e20f8c8661 100644
GIT binary patch
delta 162
zcmZqp!{6|Se?kYddWlYBcWXCeYd6!@Zf5@`M#1g3o0ykrt5{k(xmp@qy6Bp?8k*{w
zIJ>&)I$4-m>KeP6xEi>+7#Ld^nr&aYj(M>@qxp8vd(4M91?EoPH&fK_ozIR;J3qb)
z7Gm3FUNCd>1En>-Gp8|f3NkP=FfuSO2yUPLgE^iNDE|E?^J*YHeerK*b5?T(JqClx
OhKx$v8UHZ
+
+
| ||
Passwort: | + | |
Passwort: | ||
- + | diff --git a/webapp/install/installer.php b/webapp/install/installer.php index 5c6aae3..242a32c 100644 --- a/webapp/install/installer.php +++ b/webapp/install/installer.php @@ -2287,6 +2287,32 @@ return false; } } +function updateUserTable1316_1317($prefix, $version, $dbname) { +$pdo = $this->pdo; +try { +if ($version != "1.3.16") { +$ret = $this->updateUserTable1315_1316($prefix, $version, $dbname); +if (!$ret) { +echo "Version update v1.3.15 to 1.3.16 not successful."; +return false; +} +} + +DbUtils::overrulePrefix($prefix); + +$sql = "INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL,?,?)"; +$stmt = $pdo->prepare($this->basedb->resolveTablenamesInSqlString($sql)); +$stmt->execute(array('dblog','1')); + +$this->updateVersion($pdo, '1.3.17'); + +return true; +} catch (PDOException $e) { +echo "Error in v1.3.16 to 1.3.17: $e"; +return false; +} +} + function setVersion($prefix,$theVersion) { $pdo = $this->pdo; @@ -2413,7 +2439,7 @@ $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VAL $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'billlanguage', $billlanguage)"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'currency', '$currency')"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'receiptfontsize', '12')"); -$this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'version', '1.3.16')"); +$this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'version', '1.3.17')"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'paymentconfig', '0')"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'remoteaccesscode', null)"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'decpoint', '$decpoint')"); @@ -2461,6 +2487,7 @@ $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VAL $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'memorylimit', '512')"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'updateurl', 'http://www.ordersprinter.de/update')"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'restaurantmode', '1')"); +$this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'dblog', '1')"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'returntoorder', '1')"); $this->basedb->doSQL($pdo,"INSERT INTO `%config%` (`id` , `name`, `setting`) VALUES (NULL , 'discountname1', '')"); @@ -2843,7 +2870,7 @@ $zones[] = $timezone_identifiers[$i]; } echo json_encode($zones); } else if ($command == 'update') { -$installerVersion = "1.3.16"; +$installerVersion = "1.3.17"; $admin = new InstallAdmin(); $pdo = $admin->openDbAndReturnPdo($_POST['host'],$_POST['db'],$_POST['user'],$_POST['password']); @@ -2874,7 +2901,7 @@ $supportedVersions = array("1.0.22","1.0.23","1.0.24","1.0.25","1.0.26","1.0.27" "1.1.18","1.1.19","1.1.20","1.1.21","1.1.22","1.1.23","1.1.24","1.1.25","1.1.26","1.1.27","1.1.28","1.1.29","1.1.30", "1.2.0","1.2.1","1.2.2", "1.2.3", "1.2.4","1.2.5","1.2.6","1.2.7","1.2.8","1.2.9","1.2.10","1.2.11","1.2.12","1.2.13","1.2.14","1.2.15","1.2.16","1.2.17", "1.2.18","1.2.19","1.2.20","1.2.21","1.2.22","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.3.9","1.3.10","1.3.11","1.3.12", -"1.3.13","1.3.14","1.3.15" +"1.3.13","1.3.14","1.3.15","1.3.16" ); if (!in_array($version, $supportedVersions)) { @@ -2882,7 +2909,7 @@ echo json_encode("Quellversion nicht unterstützt"); return; } -$ret = $admin->updateUserTable1315_1316($_POST['prefix'], $version, $_POST['db']); +$ret = $admin->updateUserTable1316_1317($_POST['prefix'], $version, $_POST['db']); if(session_id() == '') { session_start(); diff --git a/webapp/kitchen.html b/webapp/kitchen.html index a3879c6..a7b3897 100644 --- a/webapp/kitchen.html +++ b/webapp/kitchen.html @@ -5,7 +5,7 @@ - + diff --git a/webapp/manager.html b/webapp/manager.html index 308b2b2..ea1f009 100644 --- a/webapp/manager.html +++ b/webapp/manager.html @@ -5,7 +5,7 @@ - + @@ -347,6 +347,7 @@ var MAN_SHOWPAYMENT5 = ["Überweisung","Transfer","transferencia"]; var MAN_SHOWPAYMENT6 = ["Lastschrift","debitsCard","Débito"]; var MAN_SHOWPAYMENT7 = ["Hotelzimmer","Hotel room","Habitación"]; var MAN_SHOWPAYMENT8 = ["Gast","Guest","Huésped"]; +var MAN_DBLOG = ["Debug-Logging","Debug logging","Debug logging"]; var MAN_RESTAURANT_MODE = ["Restaurantmodus","Restaurant mode","Usar para restaurantes"]; var MAN_REST_MODE_HINT = ["Hinweis: Wird der Restaurantmodus auf Nein gesetzt, wird in der Desktopansicht die Tischauswahl deaktiviert. Alle Produkte werden als Außer-Haus-Verkauf gebucht.","Hint: If the restautant mode is set to no in the desktop view the table selection is deactivated and all products are ordered as to-go","Nota: Si el modus del restaurante es configurado a no en la vista de Desktop la selección de las mesas es deactivada y todos los productos son ordenados como to-go"]; var MAN_SPECIAL_SETTINGS_TXT = ["Einstellungen für spezielle Abläufe:","Settings for special workflows:","Configuración para workflows muy escpeciales:"]; @@ -377,7 +378,7 @@ var MAN_DASHSLOT2 = ["Dashboard Slot 2","Dashboard Slot 2","Dashboard Slot 2"]; var MAN_DASHSLOT3 = ["Dashboard Slot 3","Dashboard Slot 3","Dashboard Slot 3"]; var lang = 0; -var generalVals = [12,2,0,3,0,1,1,0,0,1, 0,50,20,10,1,0,0,0,1,0,1,0,0,1,1, 1,1,1,1,1,1,1,1,1,1, 1,2,3, 1,0]; +var generalVals = [12,2,0,3,0,1,1,0,0,1, 0,50,20,10,1,0,0,0,1,0,1,0,0,1,1, 1,1,1,1,1,1,1,1,1,1, 1,2,3, 1,0, 1]; var numberOfClosings = 0; @@ -411,7 +412,6 @@ var generalValuesSettings = [ ["bigfontworkreceipt",MAN_WORKFONT_CONFIG[lang],"s",7], ["prominentsearch",MAN_PROMINENT_SEARCH[lang],"s",8], ["groupworkitemsf",MAN_GROUP_WORK_ITEMS_F[lang],"s",9], - ["groupworkitemsd",MAN_GROUP_WORK_ITEMS_D[lang],"s",38], ["discount1",MAN_DISCOUNT1[lang],"s",11], ["discount2",MAN_DISCOUNT2[lang],"s",12], ["discount3",MAN_DISCOUNT3[lang],"s",13], @@ -419,7 +419,6 @@ var generalValuesSettings = [ ["digigopaysetready",MAN_DIGI_GOPAY_SET_READY[lang],"s",14], ["waitergopayprint",MAN_WAITER_GOPAY_PRINT[lang],"s",15], ["oneprodworkrecf",MAN_ONE_PROD_WORKREC_F[lang],"s",17], - ["oneprodworkrecd",MAN_ONE_PROD_WORKREC_D[lang],"s",39], ["digiprintwork",MAN_DIGI_PRINTWORK[lang],"s",18], ["printandqueuejobs",MAN_PRINT_AND_QUEUE[lang],"s",19], ["cashenabled",MAN_CASH[lang],"s",20], @@ -473,7 +472,10 @@ var generalValuesSettings = [ ["hs3refresh",MAN_HS3REFRESH[lang],"i",0,""], ["dashslot1",MAN_DASHSLOT1[lang],"s",35], ["dashslot2",MAN_DASHSLOT2[lang],"s",36], - ["dashslot3",MAN_DASHSLOT3[lang],"s",37] + ["dashslot3",MAN_DASHSLOT3[lang],"s",37], + ["groupworkitemsd",MAN_GROUP_WORK_ITEMS_D[lang],"s",38], + ["oneprodworkrecd",MAN_ONE_PROD_WORKREC_D[lang],"s",39], + ["dblog",MAN_DBLOG[lang],"s",40] ]; var predef = ""; @@ -740,9 +742,10 @@ function insertGeneralConfigItems(configResult) { $("#partOfDigiprintwork").html(createDigiprintwork(values.digiprintwork)); $("#partOfPrintAndQueueJobs").html(createPrintAndQueueJobs(values.printandqueuejobs)); $("#partOfCash").html(createCash(values.cashenabled)); - $("#partOfReturntoorder").html(createReturntoorder(values.returntoorder)); - $("#partOfBeepCooked").html(createBeepCooked(values.beepcooked)); - $("#partOfRestaurantmode").html(createRestaurantmode(values.restaurantmode)); + $("#partOfReturntoorder").html(createYesNo("returntoorder",MAN_RETURNTOORDER,values.returntoorder)); + $("#partOfBeepCooked").html(createYesNo("beepcooked",MAN_BEEP_COOKED, values.beepcooked)); + $("#partOfRestaurantmode").html(createYesNo("restaurantmode",MAN_RESTAURANT_MODE, values.restaurantmode)); + $("#partOfDblog").html(createYesNo("dblog",MAN_DBLOG, values.dblog)); $("#partOfclosshowci").html(createYesNo("closshowci",MAN_CLOSSHOWCI,values.closshowci)); $("#partOfclosshowpaytaxes").html(createYesNo("closshowpaytaxes",MAN_CLOSSHOWPAYTAXES,values.closshowpaytaxes)); @@ -786,7 +789,6 @@ function insertGeneralConfigItems(configResult) { generalVals[7] = values.bigfontworkreceipt; generalVals[8] = values.prominentsearch; generalVals[9] = values.groupworkitemsf; - generalVals[38] = values.groupworkitemsd; generalVals[11] = parseInt(values.discount1); generalVals[12] = parseInt(values.discount2); @@ -798,7 +800,6 @@ function insertGeneralConfigItems(configResult) { generalVals[14] = values.digigopaysetready; generalVals[15] = values.waitergopayprint; generalVals[17] = values.oneprodworkrecf; - generalVals[39] = values.oneprodworkrecd; generalVals[18] = values.digiprintwork; generalVals[19] = values.printandqueuejobs; generalVals[20] = values.cashenabled; @@ -823,6 +824,10 @@ function insertGeneralConfigItems(configResult) { generalVals[36] = values.dashslot2; generalVals[37] = values.dashslot3; + generalVals[38] = values.groupworkitemsd; + generalVals[39] = values.oneprodworkrecd; + generalVals[40] = values.dblog; + $("#smtphost").val(values.smtphost); $("#partOfSmtpauth").html(createSMTPAuth(values.smtpauth)); $("#smtpuser").val(values.smtpuser); @@ -989,15 +994,6 @@ function createPrintAndQueueJobs(theValue) { function createCash(theValue) { return createYesNo("cashenabled",MAN_CASH, theValue); } -function createReturntoorder(theValue) { - return createYesNo("returntoorder",MAN_RETURNTOORDER, theValue); -} -function createBeepCooked(theValue) { - return createYesNo("beepcooked",MAN_BEEP_COOKED, theValue); -} -function createRestaurantmode(theValue) { - return createYesNo("restaurantmode",MAN_RESTAURANT_MODE, theValue); -} function createYesNo(label,nameOnGui,theValue) { var html = ' |