示例#1
0
function editar_campo_status($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm)
{
    $oDataForm = new paloSantoDataForm($pDB);
    if ($oDataForm->cambiar_status_field($_GET['id_field'], $_GET['status'])) {
        header("Location: ?menu={$module_name}&action=view&id=" . $_GET['id']);
    } else {
        $smarty->assign("mb_title", _tr('Changing Status Error'));
        $smarty->assign("mb_message", _tr('Error when Changing the form field status'));
    }
}