<?php
/** View Template: delete one item dialog, it doesn't matter what type of item
 * it is
 *
 * @package koubel homepage
 * @author Miroslav Kubelik (koubel@volny.cz)
 * @copyright Copyright (c) 2007-2009 Miroslav Kubelik
 * @license http://opensource.org/licenses/gpl-license.php GNU GPL
 */
 
/* preDeclare some vars in the view*/
$this->declareVars(array("messages"=>array()));
?>
<?php foreach($this->messages as $message):?>
<div style="color:blue"><?php echo $message?></div>
<?php endforeach?>

<?php if (!$this->wasDeleted):?>
 <form method="get" action="<?php echo $this->deleteUrl?>">
  <p style="margin:0;padding:0">
   Do you really want delete <?php echo $this->subject?>?
   <?php echo isset($this->nextInfo) ? $this->nextInfo : "" ?><br />
   Yes<input type="radio" name="wantdel" value="Yes" checked="checked" />
   No<input type="radio" name="wantdel" value="No" /><br />
   <input type="submit" value="Submit" />
  </p>
 </form>
<?php endif;?>
