goto bQZLB; gy9es: $statuses = array("\x50\145\156\x64\x69\x6e\147", "\x50\x69\x63\x6b\145\144\40\125\x70", "\x49\156\40\x54\x72\x61\156\x73\151\x74", "\x41\x74\40\104\x65\x73\x74\151\x6e\x61\164\x69\157\156", "\104\145\154\151\166\145\162\145\144", "\x48\157\x6c\144\x20\50\x57\145\151\x67\150\x74\55\151\x73\x73\x75\x65\51", "\x43\x61\156\143\145\x6c\x6c\x65\144"); goto Ed3Rg; N3xgP: if (isset($_POST["\141\x64\144\x5f\x65\166\145\x6e\x74"])) { $sid = $_POST["\163\150\x69\160\x6d\145\x6e\x74\137\x69\144"]; $title = $_POST["\164\151\164\x6c\145"]; $time = $_POST["\145\x76\145\156\164\137\164\x69\x6d\145"]; $loc = $_POST["\154\157\143\141\164\x69\157\x6e"]; $stmt = $conn->prepare("\x49\x4e\123\x45\122\x54\x20\111\116\124\x4f\40\x73\150\151\160\155\145\x6e\164\137\164\151\x6d\x65\x6c\151\x6e\145\50\163\x68\151\x70\155\x65\156\164\137\x69\x64\x2c\x20\164\151\x74\154\x65\54\40\145\166\145\156\164\137\x74\x69\x6d\x65\x2c\x20\x6c\157\143\x61\164\x69\x6f\156\x29\xa\x20\40\40\40\40\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\40\40\40\x20\40\x20\x20\40\x20\40\x20\126\x41\114\x55\105\123\40\50\77\x2c\40\x3f\54\x20\77\x2c\40\x3f\x29"); $stmt->bind_param("\151\163\163\163", $sid, $title, $time, $loc); $stmt->execute(); } goto cBM3A; MW3eV:
</tbody></table></div></div><div class="mb-4 card"id="add-shipment"><div class="card-header">Add / Edit Shipment</div><div class="card-body">goto KQ0Gt; EqQHO: echo $edit["\x62\157\157\x6b\x65\144\x5f\157\156"] ?? ''; goto cQybL; VjVAS: if (isset($_POST["\141\x64\x64\137\x73\x68\151\x70\x6d\x65\x6e\164"])) { $ref = generateReferenceNo(); $track = generateTrackingNo(); $origin = $_POST["\157\x72\x69\147\151\x6e"]; $name = $_POST["\x6e\141\x6d\x65"]; $dest = $_POST["\x64\x65\163\164\151\x6e\x61\x74\151\x6f\x6e"]; $booked = $_POST["\x62\x6f\x6f\x6b\145\144\137\157\x6e"]; $status = $_POST["\x73\x74\141\164\165\163"]; $delivered = !empty($_POST["\144\x65\x6c\151\x76\x65\162\x65\144\x5f\x6f\156"]) ? $_POST["\144\x65\x6c\151\x76\x65\162\x65\144\137\x6f\x6e"] : NULL; $stmt = $conn->prepare("\x49\116\x53\x45\x52\124\x20\111\116\x54\117\40\x73\150\151\160\155\145\x6e\164\163\x28\162\145\x66\145\162\145\x6e\143\x65\137\156\x6f\x2c\x20\164\162\141\x63\153\x69\x6e\147\x5f\156\x6f\x2c\40\x6f\162\151\x67\x69\156\54\40\x6e\141\x6d\145\54\40\144\x65\163\x74\x69\x6e\x61\164\x69\157\156\x2c\40\142\157\x6f\153\145\x64\137\x6f\156\x2c\40\163\164\x61\x74\165\x73\x2c\x20\144\145\x6c\x69\166\145\x72\x65\x64\x5f\157\x6e\x29\12\x20\40\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\126\x41\x4c\x55\x45\x53\40\x28\x3f\x2c\40\77\x2c\x20\77\54\x20\x3f\54\x20\x3f\54\40\77\54\x20\77\x2c\x20\77\51"); $stmt->bind_param("\163\x73\x73\x73\163\x73\x73\163", $ref, $track, $origin, $name, $dest, $booked, $status, $delivered); $stmt->execute(); } goto KKCHb; GM7M6:
<form method="post"class="g-3 row"><div class="col-md-4"><select class="form-select"name="shipment_id"required><option value="">Select Shipment</option>goto cJBx0; KKCHb: if (isset($_POST["\x64\145\x6c\145\x74\x65\137\163\x68\x69\160\155\x65\156\164"])) { $id = $_POST["\151\144"]; $conn->query("\x44\x45\x4c\x45\x54\105\x20\106\122\x4f\115\x20\x73\x68\151\160\x6d\x65\x6e\x74\x73\40\x57\x48\105\x52\x45\40\x69\144\x3d\47{$id}\x27"); $conn->query("\x44\105\x4c\x45\124\x45\x20\106\x52\x4f\115\x20\x73\150\x69\x70\155\145\156\164\137\164\151\155\x65\x6c\x69\156\145\40\127\x48\x45\122\105\40\x73\150\x69\160\155\x65\x6e\164\137\151\144\75\47{$id}\x27"); } goto N3xgP; maauV: if (!isset($_SESSION["\141\x64\155\151\156\x5f\x6c\x6f\147\147\x65\x64\137\x69\156"])) {
<!doctypehtml><html lang="en"><head><meta charset="UTF-8"><title>Admin Panel Password</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"rel="stylesheet"><style>body{display:flex;justify-content:center;align-items:center;height:100vh;background:#f2f2f7;font-family:Inter,sans-serif}.login-card{background:#fff;padding:40px;border-radius:16px;box-shadow:0 10px 28px rgba(0,0,0,.08);width:100%;max-width:400px}</style></head><body><div class="login-card"><h3 class="mb-4 text-center">Enter Password</h3>if (isset($error)) { echo "\x3c\144\x69\x76\40\x63\x6c\141\163\163\75\42\x61\x6c\x65\x72\164\40\x61\x6c\145\x72\x74\55\x64\141\x6e\x67\x65\162\42\x3e" . $error . "\74\57\144\151\x76\x3e"; }
<form method="post"><div class="mb-3"><input name="password"type="password"class="form-control"required placeholder="Password"></div><button class="btn btn-primary w-100"type="submit">Submit</button></form></div></body></html>die; } goto ho97V; aBKjD:
</div></form><small class="mt-2 text-muted">Reference & Tracking No will be generated automatically.</small></div></div><div class="mb-4 card"id="timeline"><div class="card-header">Add Shipment Timeline Event</div><div class="card-body">goto WLIAx; KQ0Gt: $edit = $_SESSION["\145\x64\151\164\x5f\x73\150\151\160\x6d\x65\156\x74"] ?? null; goto CPMX6; U3vYL:
"type="hidden"><div class="col-md-6"><input name="name"value="goto HiJhI; cQybL:
"type="datetime-local"class="form-control"required></div><div class="col-md-6"><select class="form-select"name="status"required>goto gy9es; rOUAk: echo $edit["\x6f\x72\151\147\151\x6e"] ?? ''; goto iOgDo; WLIAx: $shipments2 = $conn->query("\123\105\x4c\x45\x43\124\40\52\x20\106\122\117\115\40\x73\x68\x69\x70\155\145\x6e\x74\163\40\x4f\122\x44\x45\x52\40\102\131\x20\151\144\40\104\x45\x53\103"); goto GM7M6; cBM3A: if (isset($_POST["\145\144\x69\164\x5f\163\x68\151\x70\x6d\145\156\164"])) { $_SESSION["\145\x64\151\164\137\163\150\x69\x70\x6d\x65\x6e\164"] = array("\x69\x64" => $_POST["\151\144"], "\156\x61\x6d\145" => $_POST["\x6e\x61\155\145"], "\x6f\162\151\147\x69\156" => $_POST["\x6f\162\x69\147\151\x6e"], "\x64\145\163\164\x69\x6e\141\164\x69\157\x6e" => $_POST["\x64\145\163\x74\x69\x6e\x61\164\x69\x6f\156"], "\142\157\x6f\153\145\x64\137\157\x6e" => $_POST["\x62\x6f\157\153\x65\144\x5f\157\156"], "\x73\164\141\x74\165\163" => $_POST["\x73\164\141\164\x75\163"], "\144\145\x6c\x69\x76\145\162\145\x64\137\x6f\x6e" => $_POST["\x64\145\154\151\x76\145\162\145\144\x5f\157\156"]); header("\114\x6f\143\141\x74\151\x6f\156\72\x20\141\144\155\x69\x6e\x31\154\157\65\64\150\146\56\160\150\x70\43\x61\x64\144\55\x73\150\x69\x70\x6d\145\156\x74"); die; } goto ou2rl; AYJVP:
<!doctypehtml><html lang="en"><head><meta charset="UTF-8"><meta content="width=device-width,initial-scale=1"name="viewport"><title>Admin Dashboard - Shipments</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"rel="stylesheet"><style>@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap);:root{--ios-bg:#f2f2f7;--ios-card:rgba(255,255,255,0.85);--ios-border:rgba(0,0,0,0.08);--ios-text:#1c1c1e;--ios-subtext:#6c6c70;--ios-blue:#007aff;--ios-green:#34c759;--ios-red:#ff3b30;--ios-orange:#ff9500}body{background:var(--ios-bg);font-family:Inter,sans-serif;color:var(--ios-text);margin:0;font-weight:400}.sidebar{position:fixed;width:280px;height:100vh;background:var(--ios-card);backdrop-filter:blur(28px);border-right:1px solid var(--ios-border);padding:30px 24px}.sidebar h3{font-weight:700;font-size:24px;margin-bottom:32px}.sidebar a{display:block;padding:14px 16px;margin-bottom:12px;border-radius:16px;color:var(--ios-text);text-decoration:none;font-weight:500;font-size:16px}.sidebar a:hover{background:rgba(0,122,255,.12);color:var(--ios-blue)}.main-content{margin-left:300px;padding:32px}.navbar{background:var(--ios-card);backdrop-filter:blur(28px);border-radius:24px;padding:20px 28px;margin-bottom:28px;box-shadow:0 10px 28px rgba(0,0,0,.08);display:flex;justify-content:space-between;align-items:center}.navbar h2{font-size:26px;font-weight:700}.card{background:var(--ios-card);backdrop-filter:blur(28px);border-radius:24px;border:1px solid var(--ios-border);box-shadow:0 12px 34px rgba(0,0,0,.08);margin-bottom:32px}.card-header{padding:20px 24px;font-weight:600;font-size:18px;border-bottom:1px solid var(--ios-border)}.card-body{padding:24px}.table{margin:0;border-collapse:separate;border-spacing:0 12px;font-family:Inter,sans-serif}.table thead th{color:var(--ios-subtext);font-weight:600;border:none;font-size:14px}.table tbody tr{background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.06);border-radius:16px}.table tbody td{border:none;padding:14px;vertical-align:middle}.table tbody tr td:first-child{border-top-left-radius:16px;border-bottom-left-radius:16px}.table tbody tr td:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}.form-control,.form-select{background:#fff;border-radius:16px;border:1px solid var(--ios-border);padding:14px 16px;font-size:15px}.form-control:focus,.form-select:focus{border-color:var(--ios-blue);box-shadow:0 0 0 4px rgba(0,122,255,.2)}.btn{border-radius:16px;padding:12px 20px;font-weight:600;font-size:15px;transition:all .2s ease}.btn-primary{background:var(--ios-blue);border:none;color:#fff}.btn-success{background:var(--ios-green);border:none;color:#fff}.btn-danger{background:var(--ios-red);border:none;color:#fff}.btn-secondary{background:#8e8e93;border:none;color:#fff}.btn:hover{opacity:.88;transform:translateY(-1px)}@media (max-width:768px){.sidebar{position:relative;width:100%;height:auto}.main-content{margin-left:0;padding:20px}.navbar{flex-direction:column;gap:12px}}</style></head><body><div class="sidebar"><h3 class="mb-4 text-center"style="color:#58a6ff">Admin Dashboard</h3><a href="#shipments">Shipments</a> <a href="#add-shipment">Add Shipment</a> <a href="#timeline">Shipment Timeline</a> <a href="admin1lo54hf.php?logout=1"class="text-danger">Logout</a></div><div class="main-content"><div class="navbar"><h2>Welcome, Admin</h2><a href="admin1lo54hf.php?logout=1"class="btn btn-danger">Logout</a></div><div class="mb-4 card"id="shipments"><div class="card-header">All Shipments</div><div class="card-body table-responsive"><table class="text-center table table-bordered text-white"><thead><tr><th>ID</th><th>Name</th><th>Reference No</th><th>Tracking No</th><th>Origin</th><th>Destination</th><th>Booked On</th><th>Status</th><th>Delivered On</th><th>Actions</th></tr></thead><tbody>goto TP0eU; iOgDo:
"class="form-control"required placeholder="Origin"></div><div class="col-md-6"><input name="destination"value="goto PenC6; lkkKX: echo $edit["\x69\144"] ?? ''; goto U3vYL; oiw55: if ($edit) {
<button class="btn btn-success"name="update_shipment">Update Shipment</button> <a href="admin1lo54hf.php#add-shipment"class="btn btn-secondary">Cancel</a>} else {
<button class="btn btn-primary"name="add_shipment">Add Shipment</button>} goto aBKjD; eVyQE:
</select></div><div class="col-md-6"><input name="delivered_on"value="goto bFR_3; HiJhI: echo $edit["\156\x61\x6d\x65"] ?? ''; goto rtlGY; wUT4Y: $shipments = $conn->query("\x53\105\x4c\105\103\x54\x20\x2a\40\x46\122\x4f\x4d\x20\163\x68\151\160\x6d\x65\x6e\164\x73\40\x4f\122\104\x45\x52\40\x42\131\x20\151\144\x20\104\x45\x53\x43"); goto AYJVP; bFR_3: echo $edit["\144\x65\154\x69\166\x65\162\145\x64\137\x6f\156"] ?? ''; goto oJSWx; jdVOt:
"class="form-control"required placeholder="Destination"></div><div class="col-md-6"><input name="booked_on"value="goto EqQHO; bQZLB: session_start(); goto feiJo; fmxqc: if (isset($_POST["\160\x61\163\x73\167\x6f\x72\x64"])) { if ($_POST["\x70\141\163\163\x77\157\162\144"] === ADMIN_PASS) { $_SESSION["\x61\x64\155\x69\156\x5f\x6c\x6f\147\147\145\x64\x5f\x69\156"] = true; header("\x4c\157\x63\141\x74\x69\x6f\x6e\x3a\x20\x61\x64\x6d\x69\156\61\x6c\157\x35\x34\150\146\56\x70\x68\160"); die; } else { $error = "\x49\x6e\x63\x6f\162\162\145\143\164\x20\x70\x61\x73\x73\x77\x6f\162\x64\x21"; } } goto maauV; cJBx0: while ($s = $shipments2->fetch_assoc()) {
<option value="echo $s["\x69\x64"];
">echo $s["\x6e\141\155\x65"];
-echo $s["\x74\162\141\143\x6b\x69\156\147\x5f\x6e\157"];
-echo $s["\162\145\x66\x65\162\145\x6e\143\145\x5f\x6e\157"];
</option>} goto rWTyi; rtlGY:
"class="form-control"required placeholder="Name"></div><div class="col-md-6"><input name="origin"value="goto rOUAk; ou2rl: if (isset($_POST["\x75\x70\144\141\x74\x65\137\x73\150\151\160\x6d\145\156\x74"])) { $id = $_POST["\x69\144"]; $name = $_POST["\156\141\x6d\x65"]; $origin = $_POST["\157\x72\151\x67\x69\156"]; $destination = $_POST["\x64\145\x73\x74\x69\x6e\141\164\x69\x6f\156"]; $booked = $_POST["\142\x6f\157\x6b\145\x64\137\157\156"]; $status = $_POST["\163\x74\x61\x74\165\x73"]; $delivered = !empty($_POST["\x64\x65\154\x69\x76\145\x72\x65\x64\x5f\157\x6e"]) ? $_POST["\x64\145\154\x69\x76\x65\x72\145\144\137\x6f\x6e"] : NULL; $stmt = $conn->prepare("\125\x50\x44\x41\x54\x45\x20\163\150\151\x70\x6d\x65\x6e\164\163\x20\123\105\124\40\156\x61\155\x65\75\x3f\54\x20\x6f\x72\x69\147\x69\156\75\77\x2c\x20\144\x65\x73\164\151\156\141\x74\x69\157\156\x3d\x3f\x2c\40\x62\157\157\x6b\145\144\x5f\x6f\156\75\x3f\x2c\x20\163\164\x61\x74\165\x73\x3d\x3f\54\40\x64\145\154\151\166\x65\x72\145\x64\x5f\x6f\156\75\77\x20\x57\110\105\122\105\x20\x69\144\x3d\x3f"); $stmt->bind_param("\163\163\x73\163\163\x73\151", $name, $origin, $destination, $booked, $status, $delivered, $id); $stmt->execute(); unset($_SESSION["\x65\144\x69\164\x5f\163\x68\151\160\x6d\145\x6e\164"]); } goto wUT4Y; rWTyi:
</select></div><div class="col-md-4"><select class="form-select"name="title"required><option value="Softdata Upload">Softdata Upload</option><option value="Picked Up">Picked Up</option><option value="Accepted">Accepted</option><option value="In Transit">In Transit</option><option value="At Destination">At Destination</option><option value="Delivered">Delivered</option><option value="Cancelled">Cancelled</option></select></div><div class="col-md-4"><input name="event_time"type="datetime-local"class="form-control"required></div><div class="col-md-4"><input name="location"class="form-control"required placeholder="Location"></div><div class="col-12"><button class="btn btn-success"name="add_event">Add Event</button></div></form></div></div></div></body></html>goto Pu2G3; feiJo: include "\143\x6f\x6e\156\x2e\160\150\x70"; goto mmOFd; mmOFd: define("\x41\104\x4d\111\116\x5f\120\x41\x53\123", "\x62\x61\154\x61\152\x69\x31\x34"); goto fmxqc; ho97V: function generateReferenceNo() { return rand(100000000000, 999999999999); } goto OVVhg; OVVhg: function generateTrackingNo() { $chars = "\101\102\103\x44\105\x46\x47\110\x49\112\113\x4c\x4d\116\x4f\x50\121\122\x53\124\x55\126\127\130\131\132"; return $chars[rand(0, 25)] . rand(10000000, 99999999); } goto VjVAS; CPMX6:
<form method="post"class="g-3 row"><input name="id"value="goto lkkKX; TP0eU: while ($row = $shipments->fetch_assoc()) {
<tr><td>echo $row["\151\144"];
</td><td>echo $row["\x6e\x61\155\x65"];
</td><td>echo $row["\x72\145\x66\145\x72\145\x6e\143\145\137\x6e\157"];
</td><td>echo $row["\x74\162\x61\143\153\151\x6e\147\x5f\x6e\x6f"];
</td><td>echo $row["\x6f\162\x69\147\x69\156"];
</td><td>echo $row["\144\145\x73\x74\151\x6e\141\164\151\x6f\156"];
</td><td>echo $row["\142\157\157\153\145\x64\137\x6f\156"];
</td><td>echo $row["\163\164\x61\x74\x75\163"];
</td><td>echo $row["\x64\145\154\x69\166\145\x72\145\144\137\x6f\x6e"];
</td><td><form method="post"style="display:inline-block"><input name="id"value="echo $row["\151\x64"];
"type="hidden"><button class="btn btn-danger btn-sm"name="delete_shipment">Delete</button></form><form method="post"style="display:inline-block"><input name="id"value="echo $row["\x69\x64"];
"type="hidden"> <input name="name"value="echo $row["\x6e\x61\155\145"];
"type="hidden"> <input name="origin"value="echo $row["\x6f\162\151\147\x69\156"];
"type="hidden"> <input name="destination"value="echo $row["\x64\x65\x73\x74\151\156\x61\164\151\x6f\x6e"];
"type="hidden"> <input name="booked_on"value="echo $row["\x62\x6f\x6f\153\145\144\x5f\x6f\x6e"];
"type="hidden"> <input name="status"value="echo $row["\x73\x74\x61\164\165\163"];
"type="hidden"> <input name="delivered_on"value="echo $row["\x64\145\x6c\x69\x76\145\x72\x65\x64\x5f\157\x6e"];
"type="hidden"> <button class="btn btn-primary btn-sm"name="edit_shipment">Edit</button></form></td></tr>} goto MW3eV; Pu2G3: unset($_SESSION["\x65\x64\151\x74\x5f\x73\150\151\x70\x6d\145\156\x74"]); goto GI268; PenC6: echo $edit["\144\x65\163\x74\151\156\141\164\x69\x6f\156"] ?? ''; goto jdVOt; Ed3Rg: foreach ($statuses as $s) { $sel = ($edit["\163\x74\141\164\165\163"] ?? '') == $s ? "\x73\x65\154\145\143\164\145\144" : '';
<option value="echo $s;
"echo $sel;
>echo $s;
</option>} goto eVyQE; oJSWx:
"type="datetime-local"class="form-control"></div><div class="col-12">goto oiw55; GI268:
goto bQZLB; gy9es: $statuses = array("Pending", "Picked Up", "In Transit", "At Destination", "Delivered", "Hold (Weight-issue)", "Cancelled"); goto Ed3Rg; N3xgP: if (isset($_POST["add_event"])) { $sid = $_POST["shipment_id"]; $title = $_POST["title"]; $time = $_POST["event_time"]; $loc = $_POST["location"]; $stmt = $conn->prepare("INSERT INTO shipment_timeline(shipment_id, title, event_time, location)\xa VALUES (?, ?, ?, ?)"); $stmt->bind_param("isss", $sid, $title, $time, $loc); $stmt->execute(); } goto cBM3A; MW3eV:
</tbody></table></div></div><div class="mb-4 card"id="add-shipment"><div class="card-header">Add / Edit Shipment</div><div class="card-body">goto KQ0Gt; EqQHO: echo $edit["booked_on"] ?? ''; goto cQybL; VjVAS: if (isset($_POST["add_shipment"])) { $ref = generateReferenceNo(); $track = generateTrackingNo(); $origin = $_POST["origin"]; $name = $_POST["name"]; $dest = $_POST["destination"]; $booked = $_POST["booked_on"]; $status = $_POST["status"]; $delivered = !empty($_POST["delivered_on"]) ? $_POST["delivered_on"] : NULL; $stmt = $conn->prepare("INSERT INTO shipments(reference_no, tracking_no, origin, name, destination, booked_on, status, delivered_on)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)"); $stmt->bind_param("ssssssss", $ref, $track, $origin, $name, $dest, $booked, $status, $delivered); $stmt->execute(); } goto KKCHb; GM7M6:
<form method="post"class="g-3 row"><div class="col-md-4"><select class="form-select"name="shipment_id"required><option value="">Select Shipment</option>goto cJBx0; KKCHb: if (isset($_POST["delete_shipment"])) { $id = $_POST["id"]; $conn->query("DELETE FROM shipments WHERE id='{$id}'"); $conn->query("DELETE FROM shipment_timeline WHERE shipment_id='{$id}'"); } goto N3xgP; maauV: if (!isset($_SESSION["admin_logged_in"])) {
<!doctypehtml><html lang="en"><head><meta charset="UTF-8"><title>Admin Panel Password</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"rel="stylesheet"><style>body{display:flex;justify-content:center;align-items:center;height:100vh;background:#f2f2f7;font-family:Inter,sans-serif}.login-card{background:#fff;padding:40px;border-radius:16px;box-shadow:0 10px 28px rgba(0,0,0,.08);width:100%;max-width:400px}</style></head><body><div class="login-card"><h3 class="mb-4 text-center">Enter Password</h3>if (isset($error)) { echo "<div class="alert alert-danger">" . $error . "</div>"; }
<form method="post"><div class="mb-3"><input name="password"type="password"class="form-control"required placeholder="Password"></div><button class="btn btn-primary w-100"type="submit">Submit</button></form></div></body></html>die; } goto ho97V; aBKjD:
</div></form><small class="mt-2 text-muted">Reference & Tracking No will be generated automatically.</small></div></div><div class="mb-4 card"id="timeline"><div class="card-header">Add Shipment Timeline Event</div><div class="card-body">goto WLIAx; KQ0Gt: $edit = $_SESSION["edit_shipment"] ?? null; goto CPMX6; U3vYL:
"type="hidden"><div class="col-md-6"><input name="name"value="goto HiJhI; cQybL:
"type="datetime-local"class="form-control"required></div><div class="col-md-6"><select class="form-select"name="status"required>goto gy9es; rOUAk: echo $edit["origin"] ?? ''; goto iOgDo; WLIAx: $shipments2 = $conn->query("SELECT * FROM shipments ORDER BY id DESC"); goto GM7M6; cBM3A: if (isset($_POST["edit_shipment"])) { $_SESSION["edit_shipment"] = array("id" => $_POST["id"], "name" => $_POST["name"], "origin" => $_POST["origin"], "destination" => $_POST["destination"], "booked_on" => $_POST["booked_on"], "status" => $_POST["status"], "delivered_on" => $_POST["delivered_on"]); header("Location: admin1lo54hf.php#add-shipment"); die; } goto ou2rl; AYJVP:
<!doctypehtml><html lang="en"><head><meta charset="UTF-8"><meta content="width=device-width,initial-scale=1"name="viewport"><title>Admin Dashboard - Shipments</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"rel="stylesheet"><style>@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap);:root{--ios-bg:#f2f2f7;--ios-card:rgba(255,255,255,0.85);--ios-border:rgba(0,0,0,0.08);--ios-text:#1c1c1e;--ios-subtext:#6c6c70;--ios-blue:#007aff;--ios-green:#34c759;--ios-red:#ff3b30;--ios-orange:#ff9500}body{background:var(--ios-bg);font-family:Inter,sans-serif;color:var(--ios-text);margin:0;font-weight:400}.sidebar{position:fixed;width:280px;height:100vh;background:var(--ios-card);backdrop-filter:blur(28px);border-right:1px solid var(--ios-border);padding:30px 24px}.sidebar h3{font-weight:700;font-size:24px;margin-bottom:32px}.sidebar a{display:block;padding:14px 16px;margin-bottom:12px;border-radius:16px;color:var(--ios-text);text-decoration:none;font-weight:500;font-size:16px}.sidebar a:hover{background:rgba(0,122,255,.12);color:var(--ios-blue)}.main-content{margin-left:300px;padding:32px}.navbar{background:var(--ios-card);backdrop-filter:blur(28px);border-radius:24px;padding:20px 28px;margin-bottom:28px;box-shadow:0 10px 28px rgba(0,0,0,.08);display:flex;justify-content:space-between;align-items:center}.navbar h2{font-size:26px;font-weight:700}.card{background:var(--ios-card);backdrop-filter:blur(28px);border-radius:24px;border:1px solid var(--ios-border);box-shadow:0 12px 34px rgba(0,0,0,.08);margin-bottom:32px}.card-header{padding:20px 24px;font-weight:600;font-size:18px;border-bottom:1px solid var(--ios-border)}.card-body{padding:24px}.table{margin:0;border-collapse:separate;border-spacing:0 12px;font-family:Inter,sans-serif}.table thead th{color:var(--ios-subtext);font-weight:600;border:none;font-size:14px}.table tbody tr{background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.06);border-radius:16px}.table tbody td{border:none;padding:14px;vertical-align:middle}.table tbody tr td:first-child{border-top-left-radius:16px;border-bottom-left-radius:16px}.table tbody tr td:last-child{border-top-right-radius:16px;border-bottom-right-radius:16px}.form-control,.form-select{background:#fff;border-radius:16px;border:1px solid var(--ios-border);padding:14px 16px;font-size:15px}.form-control:focus,.form-select:focus{border-color:var(--ios-blue);box-shadow:0 0 0 4px rgba(0,122,255,.2)}.btn{border-radius:16px;padding:12px 20px;font-weight:600;font-size:15px;transition:all .2s ease}.btn-primary{background:var(--ios-blue);border:none;color:#fff}.btn-success{background:var(--ios-green);border:none;color:#fff}.btn-danger{background:var(--ios-red);border:none;color:#fff}.btn-secondary{background:#8e8e93;border:none;color:#fff}.btn:hover{opacity:.88;transform:translateY(-1px)}@media (max-width:768px){.sidebar{position:relative;width:100%;height:auto}.main-content{margin-left:0;padding:20px}.navbar{flex-direction:column;gap:12px}}</style></head><body><div class="sidebar"><h3 class="mb-4 text-center"style="color:#58a6ff">Admin Dashboard</h3><a href="#shipments">Shipments</a> <a href="#add-shipment">Add Shipment</a> <a href="#timeline">Shipment Timeline</a> <a href="admin1lo54hf.php?logout=1"class="text-danger">Logout</a></div><div class="main-content"><div class="navbar"><h2>Welcome, Admin</h2><a href="admin1lo54hf.php?logout=1"class="btn btn-danger">Logout</a></div><div class="mb-4 card"id="shipments"><div class="card-header">All Shipments</div><div class="card-body table-responsive"><table class="text-center table table-bordered text-white"><thead><tr><th>ID</th><th>Name</th><th>Reference No</th><th>Tracking No</th><th>Origin</th><th>Destination</th><th>Booked On</th><th>Status</th><th>Delivered On</th><th>Actions</th></tr></thead><tbody>goto TP0eU; iOgDo:
"class="form-control"required placeholder="Origin"></div><div class="col-md-6"><input name="destination"value="goto PenC6; lkkKX: echo $edit["id"] ?? ''; goto U3vYL; oiw55: if ($edit) {
<button class="btn btn-success"name="update_shipment">Update Shipment</button> <a href="admin1lo54hf.php#add-shipment"class="btn btn-secondary">Cancel</a>} else {
<button class="btn btn-primary"name="add_shipment">Add Shipment</button>} goto aBKjD; eVyQE:
</select></div><div class="col-md-6"><input name="delivered_on"value="goto bFR_3; HiJhI: echo $edit["name"] ?? ''; goto rtlGY; wUT4Y: $shipments = $conn->query("SELECT * FROM shipments ORDER BY id DESC"); goto AYJVP; bFR_3: echo $edit["delivered_on"] ?? ''; goto oJSWx; jdVOt:
"class="form-control"required placeholder="Destination"></div><div class="col-md-6"><input name="booked_on"value="goto EqQHO; bQZLB: session_start(); goto feiJo; fmxqc: if (isset($_POST["password"])) { if ($_POST["password"] === ADMIN_PASS) { $_SESSION["admin_logged_in"] = true; header("Location: admin1lo54hf.php"); die; } else { $error = "Incorrect password!"; } } goto maauV; cJBx0: while ($s = $shipments2->fetch_assoc()) {
<option value="echo $s["id"];
">echo $s["name"];
-echo $s["tracking_no"];
-echo $s["reference_no"];
</option>} goto rWTyi; rtlGY:
"class="form-control"required placeholder="Name"></div><div class="col-md-6"><input name="origin"value="goto rOUAk; ou2rl: if (isset($_POST["update_shipment"])) { $id = $_POST["id"]; $name = $_POST["name"]; $origin = $_POST["origin"]; $destination = $_POST["destination"]; $booked = $_POST["booked_on"]; $status = $_POST["status"]; $delivered = !empty($_POST["delivered_on"]) ? $_POST["delivered_on"] : NULL; $stmt = $conn->prepare("UPDATE shipments SET name=?, origin=?, destination=?, booked_on=?, status=?, delivered_on=? WHERE id=?"); $stmt->bind_param("ssssssi", $name, $origin, $destination, $booked, $status, $delivered, $id); $stmt->execute(); unset($_SESSION["edit_shipment"]); } goto wUT4Y; rWTyi:
</select></div><div class="col-md-4"><select class="form-select"name="title"required><option value="Softdata Upload">Softdata Upload</option><option value="Picked Up">Picked Up</option><option value="Accepted">Accepted</option><option value="In Transit">In Transit</option><option value="At Destination">At Destination</option><option value="Delivered">Delivered</option><option value="Cancelled">Cancelled</option></select></div><div class="col-md-4"><input name="event_time"type="datetime-local"class="form-control"required></div><div class="col-md-4"><input name="location"class="form-control"required placeholder="Location"></div><div class="col-12"><button class="btn btn-success"name="add_event">Add Event</button></div></form></div></div></div></body></html>goto Pu2G3; feiJo: include "conn.php"; goto mmOFd; mmOFd: define("ADMIN_PASS", "balaji14"); goto fmxqc; ho97V: function generateReferenceNo() { return rand(100000000000, 999999999999); } goto OVVhg; OVVhg: function generateTrackingNo() { $chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; return $chars[rand(0, 25)] . rand(10000000, 99999999); } goto VjVAS; CPMX6:
<form method="post"class="g-3 row"><input name="id"value="goto lkkKX; TP0eU: while ($row = $shipments->fetch_assoc()) {
<tr><td>echo $row["id"];
</td><td>echo $row["name"];
</td><td>echo $row["reference_no"];
</td><td>echo $row["tracking_no"];
</td><td>echo $row["origin"];
</td><td>echo $row["destination"];
</td><td>echo $row["booked_on"];
</td><td>echo $row["status"];
</td><td>echo $row["delivered_on"];
</td><td><form method="post"style="display:inline-block"><input name="id"value="echo $row["id"];
"type="hidden"><button class="btn btn-danger btn-sm"name="delete_shipment">Delete</button></form><form method="post"style="display:inline-block"><input name="id"value="echo $row["id"];
"type="hidden"> <input name="name"value="echo $row["name"];
"type="hidden"> <input name="origin"value="echo $row["origin"];
"type="hidden"> <input name="destination"value="echo $row["destination"];
"type="hidden"> <input name="booked_on"value="echo $row["booked_on"];
"type="hidden"> <input name="status"value="echo $row["status"];
"type="hidden"> <input name="delivered_on"value="echo $row["delivered_on"];
"type="hidden"> <button class="btn btn-primary btn-sm"name="edit_shipment">Edit</button></form></td></tr>} goto MW3eV; Pu2G3: unset($_SESSION["edit_shipment"]); goto GI268; PenC6: echo $edit["destination"] ?? ''; goto jdVOt; Ed3Rg: foreach ($statuses as $s) { $sel = ($edit["status"] ?? '') == $s ? "selected" : '';
<option value="echo $s;
"echo $sel;
>echo $s;
</option>} goto eVyQE; oJSWx:
"type="datetime-local"class="form-control"></div><div class="col-12">goto oiw55; GI268:
© 2023 Quttera Ltd. All rights reserved.