Understand the Saizeriya Order Protocol scope and constraints
mainThe Saizeriya Order Protocol defines a compatibility layer for a table-based ordering system. It exposes the same application under /saizeriya2/ and /saizeriya3/ paths.
Core Workflow:
- A QR URL or direct URL resolves to a table session.
- The first access displays the
entrypage. - Navigation is form-based: the client submits a
form#frm_ctrlvia POST to./?{urlId}, setting hidden fields likeprocandctrl. - Ajax endpoints under
./src/cmd/*.phphandle status checks, item lookups, and staff calls. - Submitting an order moves cart lines to
submittedOrders, clears the cart, and renders thecallpage.
Clean-Room Implementation Rules: When implementing a compatible server, you may preserve URL paths, HTTP methods, form/JSON field names, selector names (used as API hooks), page state names, and numeric limits.
You must not copy the original source code, exact UI strings, HTML structure (except required hooks), CSS, images, icons, fonts, audio, or proprietary branding. Use semantic message keys (e.g., last_order_closed, empty_cart) instead of reproducing historical wording.