checkRecord($_GET['id_padre']) ) { $HTML->generateDefaultError(); return exit; } //------------------------------------------------------------------------------------- // GENERAR PAGINA $js_vars = array( 'JS_TEXT_SELECT_ID' => $LNG['js_error_select_id'], 'JS_TEXT_DELETE_ID' => $LNG['js_error_delete_id'], 'JS_DIR_IMAGES' => $CONF['sys_http_admin'] . $CONF['ws_images'] ); $buttons = array(); $buttons[] = array( 'href' => '#" onClick="openForm(\'FormSubSection\', \'\', \'?id_padre=' . $_GET['id_padre'] . '\')', 'title' => $LNG['button_new_section_oa_alt'], 'img' => 'boton_nueva_seccion_peq.gif', 'img_des' => 'boton_nueva_seccion_peq_des.gif', 'status' => true ); $buttons[] = array( 'href' => '#" onClick="openForm(\'FormSubSection\', \'\', \'?id_padre=' . $_GET['id_padre'] . '\', \'1\')', 'title' => $LNG['button_edit_section_oa_alt'], 'img' => 'boton_editar_seccion_peq.gif', 'img_des' => 'boton_editar_seccion_peq_des.gif', 'status' => true ); $buttons[] = array( 'href' => '#" onClick="deleteRecord();', 'title' => $LNG['button_delete_section_oa_alt'], 'img' => 'boton_eliminar_seccion_peq.gif', 'img_des' => 'boton_eliminar_seccion_peq_des.gif', 'status' => true, 'params' => 'class="separation"' ); $buttons[] = array( 'href' => $CONF['pg_sections'] . '?id=' . $_GET['id_padre'], 'title' => $LNG['button_back'], 'img' => 'boton_secciones_volver_peq.gif', 'img_des' => 'boton_secciones_volver_peq_des.gif', 'status' => ( $_GET['id_padre'] ? true : false ), 'params' => 'class="separation"' ); $button_actions = array(); $button_actions[0] = array( 'status' => false ); $button_actions[1] = array( 'status' => false ); $HTML->managePageTitle($LNG['title']); $HTML->generateHeader(array($CONF['css_forms'], $CONF['css_campos']), array($CONF['js_general'], $CONF['js_forms']), $js_vars); $HTML->generateFormButtons($buttons, $button_actions); echo '' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; echo '
' . "\n"; $HTML->generateListBody($CONF['pg_sections'] . '?section=' . $_GET['id_padre'] . '&eS=1', $SECTION); echo '
' . "\n"; $HTML->generateFooterPage(); ?>