/** * setup HTML for server Engines information * * @return string */ function PMA_getHtmlForServerEngines() { /** * Did the user request information about a certain storage engine? */ $html = ''; if (empty($_REQUEST['engine']) || !PMA_StorageEngine::isValid($_REQUEST['engine'])) { $html .= PMA_getHtmlForAllServerEngines(); } else { $html .= PMA_getHtmlForSpecifiedServerEngines(); } return $html; }
* Does the common work */ require './libraries/server_common.inc.php'; require './libraries/StorageEngine.class.php'; /** * Displays the links */ require './libraries/server_links.inc.php'; /** * Did the user request information about a certain storage engine? */ if (empty($_REQUEST['engine']) || ! PMA_StorageEngine::isValid($_REQUEST['engine'])) { /** * Displays the sub-page heading */ echo '<h2>' . "\n" . ($GLOBALS['cfg']['MainPageIconic'] ? '<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"' .' width="16" height="16" alt="" />' : '') . "\n" . $strStorageEngines . "\n" . '</h2>' . "\n"; /** * Displays the table header */
/** * shows/displays the HTML FORM to create the page * * @param string $db name of the selected database * * @return void * @access public */ public function showCreatePageDialog($db) { ?> <form method="post" action="schema_edit.php" name="frm_create_page"> <fieldset> <legend> <?php echo __('Create a page') . "\n"; ?> </legend> <?php echo PMA_generate_common_hidden_inputs($db); ?> <input type="hidden" name="do" value="createpage" /> <table> <tr> <td><label for="id_newpage"><?php echo __('Page name'); ?> </label></td> <td><input type="text" name="newpage" id="id_newpage" size="20" maxlength="50" /></td> </tr> <tr> <td><?php echo __('Automatic layout based on'); ?> </td> <td> <input type="checkbox" name="auto_layout_internal" id="id_auto_layout_internal" /><label for="id_auto_layout_internal"> <?php echo __('Internal relations'); ?> </label><br /> <?php /* * Check to see whether INNODB and PBXT storage engines are Available in MYSQL PACKAGE * If available, then provide AutoLayout for Foreign Keys in Schema View */ if (PMA_StorageEngine::isValid('InnoDB') || PMA_StorageEngine::isValid('PBXT')) { ?> <input type="checkbox" name="auto_layout_foreign" id="id_auto_layout_foreign" /><label for="id_auto_layout_foreign"> <?php echo __('FOREIGN KEY'); ?> </label><br /> <?php } ?> </td></tr> </table> </fieldset> <fieldset class="tblFooters"> <input type="submit" value="<?php echo __('Go'); ?> " /> </fieldset> </form> <?php }
/** * shows/displays the HTML FORM to create the page * * @param string $db name of the selected database * * @return void * @access public */ public function showCreatePageDialog($db) { $htmlString = '<form method="post" action="schema_edit.php"' . ' name="frm_create_page">' . '<fieldset>' . '<legend>' . __('Create a page') . '</legend>' . PMA_URL_getHiddenInputs($db) . '<input type="hidden" name="do" value="createpage" />' . '<table>' . '<tr>' . '<td><label for="id_newpage">' . __('Page name') . '</label></td>' . '<td>' . '<input type="text" name="newpage" id="id_newpage"' . ' size="20" maxlength="50" />' . '</td>' . '</tr>' . '<tr>' . __('Automatic layout based on') . '</td>' . '<td>' . '<input type="checkbox" name="auto_layout_internal"' . ' id="id_auto_layout_internal" /><label for="id_auto_layout_internal">' . __('Internal relations') . '</label><br />'; /* * Check to see whether INNODB and PBXT storage engines * are Available in MYSQL PACKAGE * If available, then provide AutoLayout for Foreign Keys in Schema View */ if (PMA_StorageEngine::isValid('InnoDB') || PMA_StorageEngine::isValid('PBXT')) { $htmlString .= '<input type="checkbox" name="auto_layout_foreign"' . ' id="id_auto_layout_foreign" />' . '<label for="id_auto_layout_foreign">' . __('FOREIGN KEY') . '</label><br />'; } $htmlString .= '</td></tr>' . '</table>' . '</fieldset>' . '<fieldset class="tblFooters">' . '<input type="submit" value="' . __('Go') . '" />' . '</fieldset>' . '</form>'; echo $htmlString; }
<form method="post" action="pdf_pages.php" name="crpage"> <fieldset> <legend> <?php echo $strCreatePage . "\n"; ?> </legend> <?php echo PMA_generate_common_hidden_inputs($db, $table); ?> <input type="hidden" name="do" value="createpage" /> <input type="text" name="newpage" size="20" maxlength="50" /> <input type="checkbox" name="auto_layout_internal" /> <?php echo '(' . $strAutomaticLayout . ' / ' . $strInternalRelations . ')'; if (PMA_StorageEngine::isValid('InnoDB') || PMA_StorageEngine::isValid('PBXT')) { echo '<input type="checkbox" name="auto_layout_foreign" />' . '(' . $strAutomaticLayout . ' / FOREIGN KEY)'; } ?> <input type="submit" value="<?php echo $strGo; ?> " /> </fieldset> </form> <?php // Now if we already have chosen a page number then we should show the // tables involved if (isset($chpage) && $chpage > 0) { echo "\n"; ?>