echo "</td>"; } echo "</tr></table>"; echo "</p>"; } else { //here $check_id = get_site_sesion(); if (!empty($check_id)) { echo "SESSUION" . ($customer_id = $check_id); $FLAG_SITE_PICKED_UP = 1; } } //keep in sesson if (isset($_POST['sticker_id'])) { echo "SS" . strlen($_POST['first_sticker']); if (validate_size_barcode($_POST['first_sticker']) == 1) { echo "First sticker"; $sticky = 1; $first_sticker = set_first_sticker($_POST['first_sticker']); } } else { if (get_sticker_session()) { $first_sticker = get_sticker_session(); } } //echo $customer_id; //echo $FLAG_SITE_PICKED_UP; if ($customer_id == 0 and $FLAG_SITE_PICKED_UP == 1) { echo "redirecting to specify new customer"; // echo '<a href="customer.php">A </a>'; $FLAG_GO_CUSTOMER_DETAILS = 1;
<p> Manifest Done. Please SET Your Last Sticker than Close.</p> <?php $manifest_reg_id = $_SESSION['MANIFEST_REG_ID']; //borrowed $sql = "SELECT siteid from manifest_reg WHERE idmanifest_reg='{$manifest_reg_id}'"; $result = query_selecti($sql); $rek = mysqli_fetch_array($result); $site_id = $rek[0]; //intiased the second time in code. Taken from bf update //this barely to get to site range dbi write if (isset($_POST['submit'])) { if (!empty($_POST['last_sticker'])) { $last_sticker = $_POST['last_sticker']; //get that if (validate_size_barcode($last_sticker) == 1) { //if sticker size is correct dbi_set_last_sticker($manifest_reg_id, $last_sticker); //and write to database } else { } //if sticker size not valid } } echo '<div data-role="controlgroup">'; $last_sticker = dbi_get_last_sticker($manifest_reg_id); //get end_dbs from db echo '<form action="atts_finish.php" method="POST">'; echo '<input type="text" name="last_sticker" value="' . $last_sticker . '" placeholder="last sticker..." autofocus="">'; echo '<input type="submit" name="submit" value="Set">'; echo '</form>';