getColumnCount(); if (isset($_REQUEST['add_fields'])) { $add_fields += $_REQUEST['added_fields']; } } elseif (isset($_REQUEST['create_index'])) { $add_fields = $_REQUEST['added_fields']; } else { $add_fields = 1; }// end preparing form values $html = ""; $html .= '
'; $form_params = array( 'db' => $db, 'table' => $table, ); if (isset($_REQUEST['create_index'])) { $form_params['create_index'] = 1; } elseif (isset($_REQUEST['old_index'])) { $form_params['old_index'] = $_REQUEST['old_index']; } elseif (isset($_REQUEST['index'])) { $form_params['old_index'] = $_REQUEST['index']; } $html .= PMA_URL_getHiddenInputs($form_params); $html .= '
'; if ($GLOBALS['is_ajax_request'] != true) { $html .= ''; if (isset($_REQUEST['create_index'])) { $html .= __('Add index'); } else { $html .= __('Edit index'); } $html .= ''; } $html .= '
'; $html .= '
' . '
' . '' . '' . '' . '
' . '' . '
'; if (PMA_MYSQL_INT_VERSION > 50500) { $html .= '
' . '
' . '' . '' . '' . '
' . '' . '
'; } $html .= '
' . '
' . '' . '' . '' . '
' . '' . '
'; $html .= '
'; $html .= '
'; $html .= ''; $html .= '' . '' . '' . '' . '' . ''; $odd_row = true; $spatial_types = array( 'geometry', 'point', 'linestring', 'polygon', 'multipoint', 'multilinestring', 'multipolygon', 'geomtrycollection' ); $html .= ''; foreach ($index->getColumns() as $column) { $html .= ''; $html .= ''; $html .= ''; $html .= ''; $odd_row = !$odd_row; } // end foreach $edited_index_info['Sequences'] for ($i = 0; $i < $add_fields; $i++) { $html .= ''; $html .= ''; $html .= ''; $html .= ''; $odd_row = !$odd_row; } // end foreach $edited_index_info['Sequences'] $html .= ''; $html .= '
' . __('Column') . '' . __('Size') . '
'; $html .= ''; $html .= ''; $html .= ''; $html .= '
'; $html .= ''; $html .= '' . '' . '
'; $html .= '
'; $html .= '
'; if ($GLOBALS['is_ajax_request'] != true || ! empty($_REQUEST['ajax_page_request'])) { $html .= ''; $html .= ''; $html .= __('Or') . ' '; $html .= printf( __('Add %s column(s) to index') . "\n", '' ); $html .= '' . "\n"; $html .= ''; } else { $btn_value = sprintf(__('Add %s column(s) to index'), 1); $html .= '
'; $html .= '
'; $html .= ''; $html .= '
'; } $html .= '
'; $html .= '
'; $response = PMA_Response::getInstance(); $response->addHTML($html); $header = $response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('indexes.js'); ?>