+ else {
+ //Habilitado
+ $tmp =& new MECON_HTML_Link (
+ 'permisos-abm',
+ new MECON_HTML_Image (
+ '/MECON/images/general_modificar.gif',
+ '(M)'
+ ),
+ array (
+ 'accion' => 'm',
+ 'idPermiso' => $param['id_permiso']
+ )
+ );
+ return $tmp->toHtml();
+ }
+}
+//}}}
+//Eliminar {{{
+$TABLA->addRowsData('%s',
+ array (
+ array (
+ array (
+ 'id_permiso',
+ 'cuenta'
+ ),
+ 'eliminar_callback'
+ )
+ )
+ );
+
+function eliminar_callback($param) {
+ if ($param['cuenta']) {
+ //DesHabilitado
+ $tmp =& new MECON_HTML_Image (
+ '/MECON/images/general_eliminar_des.gif',
+ '(e)'
+ );
+ return $tmp->toHtml();
+ }
+ else {
+ //Habilitado
+ $tmp =& new MECON_HTML_Link (
+ 'permisos-abm',
+ new MECON_HTML_Image (
+ '/MECON/images/general_eliminar.gif',
+ '(E)'
+ ),
+ array (
+ 'accion' => 'e',
+ 'idPermiso' => $param['id_permiso']
+ )
+ );
+ return $tmp->toHtml();
+ }
+}
+//}}}
+//}}}
+
+$TABLA->addRows($pager, array ('id_permiso', 'desc_permiso'));
+$TABLA->updateColAttributes(0,'width="10%" ');
+$TABLA->updateColAttributes(1,'width="70%"');
+$TABLA->updateColAttributes(2,'width="10%"');
+$TABLA->updateColAttributes(3,'width="10%"');
+//}}}
+