Location: PHPKode > projects > NOLA > gencompanyupd.php
<? include('includes/main.php'); ?>
<? include('includes/genfunctions.php'); ?>
<script language="JavaScript" src="js/validatephone.js">
</script>
<?
	echo texttitle('Company Update');
	if ($id) {
        if (!DEMO_MODE) {
		  if ($delete) {
			if (gencompanydelete($id)) die(textsuccess('Company deleted successfully.'));
		  } elseif ($name) {
			gencompanyupdate($id, $address1, $address2, $city, $state, $zip, $country, $phone1, $phone2, $phone3, $phone4, $email, $web, $name);
		  };
        } else {
            echo 'Cannot update companies while in demo mode.<br>';
        };
		echo '<form action="gencompanyupd.php" method="post"><input type="hidden" name="nonprintable" value="1"><table>';
		echo '<input type="hidden" name="id" value="'.$id.'">';
		formgencompanyupdate($id);
		echo '</table><input type="submit" value="Save Changes"></form> <a href="javascript:confirmdelete(\'gencompanyupd.php?delete=1&id='.$id.'\')">Delete this Company</a>';
	} else {
		echo '<form action="gencompanyupd.php" method="post"><table>';
		formgencompanyselect('id');
		echo '</table><input type="submit" value="Edit Selected Company"></form>';
        echo '<a href="gencompanyadd.php">Add new company</a>';
	};
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA