Location: PHPKode > projects > OpenVet > openvet/action/deletepatient.php
<?php

	$ch_uid = $_POST["patientuid"];
	$ch_confirm = $_POST["confirm"];

	if ($user->getRechte() >= 2)
	{

		$thispatient = new Patient();

	} else {
		
		header("Location: index.php?tab=medical&page=notauthorized");
		exit ();

	}

	if ($ch_confirm == "OK")
	{
		if (!$thispatient->deletefromdb ($ch_uid))
			$message = $thispatient->getError();
		else
			$message = _("The patient was deleted.");
	} else
			$message = _("You did not type 'OK' to confirm.");

?>
Return current item: OpenVet