<?php
function smarty_block_mvc_form($params, $content, &$smarty)
{
if (isset($content)) {
$handler = $params["handler"];
if (!empty($params["method"]))
$method = $params["method"];
else
$method = "action";
$id = $params["id"];
$returnValue = "<form action=\"index.php\" method=\"get\"><input type=\"hidden\" name=\"handler\" value=\"$handler\" />";
$returnValue .= "<input type=\"hidden\" name=\"method\" value=\"$method\" /><input type=\"hidden\" name=\"id\" value=\"$id\" />";
$returnValue .= "<input type=\"hidden\" name=\"nextAction\" value=\"".$smarty->get_template_vars('nextAction')."\" />";
$returnValue .= "$content</form>";
return $returnValue;
}
}
?>