assign("gp_id", $gp_id); $smarty->assign("gp_nome", $gp_nome); $smarty->assign("gp_status", $gp_status); $smarty->assign("acaoUser", $acaoUser); $smarty->assign("formAction", FORM_INSERT); $smarty->assign("erro", $msgErro); GetTemplate($smarty, 'seguranca/grupos/gruposCadastro.tpl'); function LimpaGpVar() { $GLOBALS["gp_nome"] = ""; $GLOBALS["gp_status"] = 1; $GLOBALS["gp_id"] = 0; } function GetGpValues() { $GLOBALS["gp_nome"] = mb_strtoupper(RemoveAcentos($_POST["gp_nome"])); $GLOBALS["gp_status"] = $_POST["gp_status"]; $GLOBALS["gp_id"] = $_POST["gp_id"]; }