Ukrycie opcji wzywania kelnera

This commit is contained in:
2026-05-27 14:46:19 +02:00
parent 22989d9f9b
commit d54c93623f
8 changed files with 967 additions and 67 deletions

View File

@@ -5,7 +5,7 @@ $tsql = "SELECT ID, Nazwa FROM dbo.NGastroStolik ORDER BY Nazwa";
$stmt = sqlsrv_query($conn, $tsql);
$host = $_SERVER['HTTP_HOST'] ?? 'localhost';
$baseUrl = "http://$host/karczma-stoliki/public/stolik2_api.html?h=";
$baseUrl = "https://$host/app/public/app.html?h=";
echo "<!DOCTYPE html>
<html lang='pl'>

View File

@@ -293,6 +293,7 @@
orders[orderId] = {
number: orderId,
stolik: item.NazwaStolika || item.StolikID,
stolikId: item.StolikID,
time: item.DataDodania,
groups: {}
};
@@ -327,7 +328,8 @@
sortedOrders.forEach(order => {
const timeStr = new Date(order.time).toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
const stolikText = order.stolik ? `STOLIK: ${order.stolik}` : 'BRAK STOLIKA';
const stolikLink = order.stolikId ? `<a href="../app.html?h=${order.stolikId}" target="_blank" style="color: var(--accent); text-decoration: underline;">STOLIK: ${order.stolik}</a>` : `STOLIK: ${order.stolik}`;
const stolikText = order.stolik ? stolikLink : 'BRAK STOLIKA';
let itemsHtml = '';