示例#1
0
function new_form($pDB, $smarty, $module_name, $local_templates_dir, $formCampos, $oForm)
{
    $oDataForm = new paloSantoDataForm($pDB);
    $id_nuevo_formulario = $oDataForm->proximo_id_formulario();
    $smarty->assign('FRAMEWORK_TIENE_TITULO_MODULO', existeSoporteTituloFramework());
    $smarty->assign("id_formulario_actual", $id_nuevo_formulario);
    // obtengo el id para crear el nuevo formulario
    $smarty->assign('icon', 'images/kfaxview.png');
    $contenidoModulo = $oForm->fetchForm("{$local_templates_dir}/form.tpl", _tr('New Form'), $_POST);
    return $contenidoModulo;
}