Location: PHPKode > projects > NOLA > adminarquotecomupd.php
<? include('includes/main.php'); ?>
<? include('includes/arfunctions.php'); ?>
<?
	echo texttitle(STR_QUOTE_COMMENT_UPDATE);
	if ($id) { //if quote comment selected
		if ($delete) { //if quote comment should be deleted
			if (arquotecommentdelete($id)) die(); //OK
		} elseif ($comment) { //if quote comment should be updated
			arquotecommentupdate($id, $comment);
		};
		//edit quote comment
		echo '<form action="adminarquotecomupd.php" method="post"><input type="hidden" name="id" value="'.$id.'"><table>';
		formarquotecommentupdate($id);
		echo '</table><input type="submit" value="'.STR_SAVE_CHANGES.'"></form><a href="javascript:confirmdelete(\'adminarquotecomupd.php?delete=1&id='.$id.'\')">'.STR_DELETE_THIS_QUOTE_COMMENT.'</a>';
	} else { //select quote comment
		echo '<form action="adminarquotecomupd.php" method="post"><table>';
		if (formarquotecommentselect('id')) echo '<input type="submit" value="'.STR_EDIT_SELECTION.'">';
		echo '</table></form><a href="adminarquotecomadd.php">'.STR_ADD_NEW_QUOTE_COMMENT.'</a>';
	};
?>
<? include('includes/footer.php'); ?>
Return current item: NOLA