Location: PHPKode > projects > NOLA > adminarcarrieradd.php
<? include('includes/main.php'); ?>
<? include('includes/arfunctions.php'); ?>
<script language="JavaScript" src="js/validatephone.js">
</script>
<?
     echo texttitle(STR_SHIPPING_CARRIER_ADD);
     if ($name) {
          $conn->BeginTrans();
          if (arcompanyadd($address1, $address2, $city, $state, $zip, $country, $phone1, $phone1comment, $phone2, $phone2comment, $phone3, $phone3comment, $phone4, $phone4comment, $email1, $email1comment, $email2, $email2comment, $website, $federalid, $name, $mailstop)) {
               $recordSet = &$conn->SelectLimit('select id from company where companyname='.sqlprep($name).' order by id desc', 1);
               if ($recordSet&&$recordSet->EOF) {
                    $companyid=$recordSet->fields[0];
                    if (arcarrieradd($companyid, $customernumber, $trackingurlbase, $trackingurlvarname)) {
                         $conn->CommitTrans();
                    } else {
                         $conn->RollbackTrans();
                    };
               } else {
                    $conn->RollbackTrans();
                    die(STR_COMPANY_NOT_FOUND);
               };
          } else {
               $conn->RollbackTrans();
          };
     };
     echo '<form action="adminarcarrieradd.php" method="post"><input type="hidden" name="nonprintable" value="1"><table>';
     formarcarrieradd();
     echo '</table><input type="submit" value="'.STR_ADD.'"></form>';
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA