- if (!$SAMURAI_PERM->tiene(SAMURAI_DEVELOPER)) {
-// header('Location: error')
- }
+$SAMURAI_PERM->setSistema(SAMURAI_PERM);
+if (!$SAMURAI_PERM->tiene(SAMURAI_PERM_DEVELOPER)) {
+ $SAMURAI_PERM->chequear(SAMURAI_PERM_DEVELOPER);
+}
+$MARCO =& new MECON_Marco ('/var/www/sistemas/samurai/sistema/conf/confSecciones.php', $SAMURAI_PERM);
$FORM->addElement ('header', 'cabecera', 'ABM Permisos');
$FORM->addElement ('hidden', 'id_permiso');
$FORM->addElement ('text' , 'desc_permiso', 'Descripcion', array('size'=>'50'));
$FORM->addElement ('header', 'cabecera', 'ABM Permisos');
$FORM->addElement ('hidden', 'id_permiso');
$FORM->addElement ('text' , 'desc_permiso', 'Descripcion', array('size'=>'50'));
$group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar');
$group[] = HTML_QuickForm::createElement('button', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:history.go(-1);return true;'));
$FORM->addGroup($group,'botones');
$group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar');
$group[] = HTML_QuickForm::createElement('button', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:history.go(-1);return true;'));
$FORM->addGroup($group,'botones');