'; $html .= ''; if ($cfgRelation['pdfwork']) { $pages = PMA_getPageIdsAndNames($db); foreach ($pages as $nr => $desc) { $html .= ''; } } $html .= ''; return $html; } /** * Function to get html for displaying the page edit/delete form * * @param string $db database name * @param string $operation 'edit' or 'delete' depending on the operation * * @return string html content */ function PMA_getHtmlForEditOrDeletePages($db, $operation) { $cfgRelation = PMA_getRelationsParam(); $html = '
'; return $html; } /** * Function to get html for displaying the page save as form * * @param string $db database name * * @return string html content */ function PMA_getHtmlForPageSaveAs($db) { $cfgRelation = PMA_getRelationsParam(); $choices = array( 'same' => __('Save to selected page'), 'new' => __('Create a page and save to it') ); $html = ''; return $html; } /** * Retrieve IDs and names of schema pages * * @param string $db database name * * @return array array of schema page id and names */ function PMA_getPageIdsAndNames($db) { $cfgRelation = PMA_getRelationsParam(); $page_query = "SELECT `page_nr`, `page_descr` FROM " . PMA_Util::backquote($cfgRelation['db']) . "." . PMA_Util::backquote($cfgRelation['pdf_pages']) . " WHERE db_name = '" . PMA_Util::sqlAddSlashes($db) . "'" . " ORDER BY `page_nr`"; $page_rs = PMA_queryAsControlUser( $page_query, false, PMA_DatabaseInterface::QUERY_STORE ); $result = array(); while ($curr_page = $GLOBALS['dbi']->fetchAssoc($page_rs)) { $result[$curr_page['page_nr']] = $curr_page['page_descr']; } return $result; } /** * Function to get html for displaying the schema export * * @param string $db database name * @param int $page the page to be exported * * @return string */ function PMA_getHtmlForSchemaExport($db, $page) { /* Scan for schema plugins */ $export_list = PMA_getPlugins( "schema", 'libraries/plugins/schema/', null ); /* Fail if we didn't find any schema plugin */ if (empty($export_list)) { return PMA_Message::error( __('Could not load schema plugins, please check your installation!') )->getDisplay(); } $htmlString = ''; return $htmlString; } /** * Returns HTML for including some variable to be accessed by JavaScript * * @param array $script_tables array on foreign key support for each table * @param array $script_contr initialization data array * @param array $script_display_field display fields of each table * @param int $display_page page number of the selected page * * @return string html */ function PMA_getHtmlForJSFields( $script_tables, $script_contr, $script_display_field, $display_page ) { $cfgRelation = PMA_getRelationsParam(); $html = '| getImgPath('pmd/exec_small.png') . '" />'; $html .= ' | '; $html .= ''; } $html .= ' | ';
$html .= ' ';
if (isset($tables_pk_or_unique_keys[$t_n . "." . $tab_column[$t_n]["COLUMN_NAME"][$j]])) {
$html .= ' \n ';
} else {
$image = 'pmd/Field_small';
if (strstr($tab_column[$t_n]["TYPE"][$j], 'char')
|| strstr($tab_column[$t_n]["TYPE"][$j], 'text')
) {
$image .= '_char';
} elseif (strstr($tab_column[$t_n]["TYPE"][$j], 'int')
|| strstr($tab_column[$t_n]["TYPE"][$j], 'float')
|| strstr($tab_column[$t_n]["TYPE"][$j], 'double')
|| strstr($tab_column[$t_n]["TYPE"][$j], 'decimal')
) {
$image .= '_int';
} elseif (strstr($tab_column[$t_n]["TYPE"][$j], 'date')
|| strstr($tab_column[$t_n]["TYPE"][$j], 'time')
|| strstr($tab_column[$t_n]["TYPE"][$j], 'year')
) {
$image .= '_date';
}
$image .= '.png';
$html .= ' | \n";
if (isset($_REQUEST['query'])) {
$html .= '';
$html .= '![]() | ';
}
$html .= "";
}
$html .= "";
$html .= "