$fields = substr($fields, 0, strlen($fields) - 1); echo $strMess0 . "<b>" . $fields . "</b><br></font>"; } else { if (!$eflag && $action == $strBregister && !$logged) { $objAddr = new Address($dbusercat); $objAddr->setFields('S', "", "", "", $cep, $street, $number, "", "", $city, $state, $country); $objUser = new User($dbusercat); $objUser->setFields($userId, $objAddr->addressId, $password, $fullname, "", "", $email, $areaCode, $phone, "", $company, $companyType, $activity, 2, 1); if ($objUser->insertPF($objAddr)) { echo " {$strUsr} {$userId} {$strMess2} "; } else { echo $strMess6; } } else { if (!$eflag && $action == $strBupdate && $logged) { searchByUserid($dbusercat, $matU, $matA, $matC, $order, $_SESSION['userId'], 1); $matU[0]->setFields($userId, 0, $password, $fullname, "", "", $email, $areaCode, $phone, "", $company, $companyType, $activity); if (!$matU[0]->modify()) { $eflag = true; } if (!$eflag and $password != "") { if (!$matU[0]->modifyPassword()) { $eflag = true; } } if (!$eflag and $userType == 2) { $matA[0]->setFields('', "", "", "", $cep, $street, $number, "", "", $city, $state, $country); if (!$matA[0]->modify()) { $eflag = true; } }
printf('<html> <title>Data Confirmation</title> <head>'); include "css.php"; printf('</head>'); printf('<body>'); $dbcat = $GLOBALS["dbcatalog"]; $dbusercat = $GLOBALS["dbusercat"]; $operator = $_SESSION['operatorId']; if ($GLOBALS["stationDebug"]) { printf('Data confirmation for user %s <br>', $userid); printf(' Address identification: %d <br>', $addressid); printf(' Request Identification: %d <br>', $reqid); printf(' Payment type: %s<br>', $formaPagamento); } $nUser = searchByUserid($dbusercat, $matUser, $matAddr, $matComp, "", $userid, 1); $nAddr = searchAddrById($dbusercat, $matAddr, $addressid); // Store all items in cart into local variables $sql = "SELECT * FROM RequestItem WHERE ReqId='{$reqid}'"; $dbcat->query($sql) or $dbcat->error($sql); $itens = $dbcat->numRows(); $count = 0; while ($row = $dbcat->fetchRow()) { $scenes[$count] = $row["SceneId"]; $media[$count] = $row["Media"]; $price[$count] = $row["Price"]; $id[$count++] = $row["Id"]; } $dbcat->freeResult($result); // Draw table header ?>