<? include('includes/main.php'); ?>
<? include('includes/invfunctions.php'); ?>
<script language="JavaScript" src="js/validatephone.js">
</script>
<?
echo texttitle(STR_INVENTORY_LOCATION_ADD);
if ($name) {
if (invcompanyadd($address1, $address2, $city, $state, $zip, $country, $phone1, $phone1comment, $phone2, $phone2comment, $phone3, $phone3comment, $phone4, $phone4comment, $email1, $email1comment, $email2, $email2comment, $website, $federalid, $name)) {
$recordSet = &$conn->Execute('select id from company where companyname='.sqlprep($name).' order by id desc');
if (!$recordSet->EOF) $companyid=$recordSet->fields[0];
invinventorylocationadd($companyid);
};
};
echo '<form action="admininvlocationadd.php" method="post"><input type="hidden" name="nonprintable" value="1"><table>';
forminvinventorylocationadd();
echo '</table><input type="submit" value="'.STR_ADD.'"></form>';
?>
<? include('includes/footer.php'); ?>