Location: PHPKode > projects > NOLA > admininvunitnameupd.php
<? include('includes/main.php'); ?>
<? include('includes/invfunctions.php'); ?>
<?
	echo texttitle(STR_UNIT_NAME_UPDATE);
	if ($id) { // if the user has submitted info
		if ($delete) { //if we should be deleting the entry
			if (invunitnamedelete($id)) die(textsuccess(STR_UNIT_NAME_DELETED_SUCCESSFULLY));
		} elseif ($unitname) { //if we should update the entry
			invunitnameupdate($id, $unitname);
		}; //if we should display more info about the entry that the user can edit
		echo '<form action="admininvunitnameupd.php" method="post"><table>';
		forminvunitnameupdate($id);
		echo '</table><input type="submit" value="'.STR_SAVE_CHANGES.'"></form> <a href="javascript:confirmdelete(\'admininvunitnameupd.php?delete=1&id='.$id.'\')">'.STR_DELETE_THIS_UNIT_NAME.'</a>';
	} else { //display unit names, let the user pick one to edit
		echo '<form action="admininvunitnameupd.php" method="post"><table>';
		forminvunitnameselect('id');
		echo '</table><input type="submit" value="'.STR_EDIT_SELECTION.'"></form>';
        echo '<a href="admininvunitnameadd.php">'.STR_ADD_NEW_UNIT_NAME.'</a>';
	};
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA