示例#1
0
 $smarty->assign("address", $address);
 $city = inputValue("city");
 $smarty->assign("city", $city);
 $state = inputValue("state");
 $smarty->assign("state", $state);
 $zip = inputValue("zip");
 $smarty->assign("zip", $zip);
 $hTel = inputValue("htel");
 $smarty->assign("htel", $hTel);
 $wTel = inputValue("wtel");
 $smarty->assign("wtel", $wTel);
 $cTel = inputValue("ctel");
 $smarty->assign("ctel", $cTel);
 $ct = inputValue("ct");
 $smarty->assign("ct", $ct);
 $ctTel = inputValue("ctt");
 $smarty->assign("ctt", $ctTel);
 /*if no error occured insert to db and verify that insert was successful*/
 if (!strcmp($error, "")) {
     $user = new Users($email);
     $insert = $user->insertToUsers($title, $firstName, $mname, $lastName, $address, $city, $state, $zip, $hTel, $wTel, $cTel, $ct, $ctTel, $passWord);
     if ($insert > 0) {
         $inserted = $user->getUser($insert);
         if (isset($inserted)) {
             $smarty->assign("userPass", $passWord);
             $smarty->assign("inserted", $inserted);
             $smarty->assign("success", "*Successfully inserted the new Customer's information");
             $smarty->assign("inFlag", "true");
         } else {
             $error = "*email/userId MUST be unique, Please choose another email/userId";
         }
示例#2
0
 $smarty->assign("city", $city);
 $state = inputValue("state");
 $smarty->assign("state", $state);
 $zip = inputValue("zip");
 $smarty->assign("zip", $zip);
 $hTel = inputValue("htel");
 $smarty->assign("htel", $hTel);
 $wTel = inputValue("wtel");
 $smarty->assign("wtel", $wTel);
 $cTel = inputValue("ctel");
 $smarty->assign("ctel", $cTel);
 $ct = inputValue("ct");
 $smarty->assign("ct", $ct);
 $ctTel = inputValue("ctt");
 $smarty->assign("ctt", $ctTel);
 $email = inputValue("email");
 $smarty->assign("email", $email);
 /*if no error occured insert to db and verify that insert was successful*/
 if (!strcmp($error, "")) {
     $user = new Users();
     $uid = $_GET['uid'];
     $update = $user->updateUsers($title, $firstName, $mname, $lastName, $address, $city, $state, $zip, $hTel, $wTel, $cTel, $ct, $ctTel, $passWord, $email, $uid);
     $updated = $user->getUser($uid);
     if (!isset($update)) {
         $error = "*Please choose a unique email/userId <br>";
     } else {
         if (!isset($update)) {
             $error = "*An Error is occured while inserting to the Database <br>\n                            Please consult your Systems Administrator";
         } else {
             $smarty->assign("userPass", $passWord);
             $smarty->assign("updated", $updated);