Location: PHPKode > projects > NOLA > admininvlocationupd.php
<? include('includes/main.php'); ?>
<? include('includes/invfunctions.php'); ?>
<script language="JavaScript" src="js/validatephone.js">
</script>
<?
     echo texttitle(STR_INVENTORY_LOCATION_UPDATE);
     if ($id) {
          if ($delete) {
               if (invcompanydelete($id)) if (invinventorylocationdelete($id)) die(textsuccess(STR_INVENTORY_LOCATION_DELETED_SUCCESSFULLY));
          } elseif ($name) {
               if (invcompanyupdate($id, $address1, $address2, $city, $state, $zip, $country, $phone1, $phone1comment, $phone2, $phone2comment, $phone3, $phone3comment, $phone4, $phone4comment, $email1, $email1comment, $email2, $email2comment, $website, $federalid, $name,$lastchangedate)) echo textsuccess(STR_INVENTORY_LOCATION_UPDATED_SUCCESSFULLY);
          };
          echo '<form action="admininvlocationupd.php" method="post"><input type="hidden" name="nonprintable" value="1"><table>';
          echo '<input type="hidden" name="id" value="'.$id.'">';
          forminvinventorylocationupdate($id);
          echo '</table><input type="submit" value="'.STR_SAVE_CHANGES.'"></form> <a href="javascript:confirmdelete(\'admininvlocationupd.php?delete=1&id='.$id.'\')">'.STR_DELETE_THIS_LOCATION.'</a>';
     } else {
          echo '<form action="admininvlocationupd.php" method="post"><table>';
          forminvinventorylocationselect('id');
          echo '</table><input type="submit" value="'.STR_EDIT_SELECTION.'"></form>';
          echo '<a href="admininvlocationadd.php">'.STR_ADD_NEW_LOCATION.'</a>';
     };
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA