/** * Get HTML output for database comment * * @param string $db database name * * @return string $html_output */ function PMA_getHtmlForDatabaseComment($db) { $html_output = '<div class="operations_half_width">' . '<form method="post" action="db_operations.php" id="formDatabaseComment">' . PMA_URL_getHiddenInputs($db) . '<fieldset>' . '<legend>'; if (PMA\libraries\Util::showIcons('ActionLinksMode')) { $html_output .= PMA\libraries\Util::getImage('b_comment.png') . ' '; } $html_output .= __('Database comment'); $html_output .= '</legend>'; $html_output .= '<input type="text" name="comment" ' . 'class="textfield" size="30"' . 'value="' . htmlspecialchars(PMA_getDBComment($db)) . '" />' . '</fieldset>'; $html_output .= '<fieldset class="tblFooters">' . '<input type="submit" value="' . __('Go') . '" />' . '</fieldset>' . '</form>' . '</div>'; return $html_output; }
/** * Get HTML output for database comment * * @param string $db database name * * @return string $html_output */ function PMA_getHtmlForDatabaseComment($db) { $html_output = '<div class="operations_half_width">' . '<form method="post" action="db_operations.php">' . PMA_generate_common_hidden_inputs($db) . '<fieldset>' . '<legend>'; if (in_array($GLOBALS['cfg']['ActionLinksMode'], array('icons', 'both'))) { $html_output .= '<img class="icon ic_b_comment" ' . 'src="themes/dot.gif" alt="" />'; } $html_output .= __('Database comment: '); $html_output .= '</legend>'; $html_output .= '<input type="text" name="comment" ' . 'class="textfield" size="30"' . 'value="' . htmlspecialchars(PMA_getDBComment($db)) . '" />' . '</fieldset>'; $html_output .= '<fieldset class="tblFooters">' . '<input type="submit" value="' . __('Go') . '" />' . '</fieldset>' . '</form>' . '</div>'; return $html_output; }
* database comment */ ?> <form method="post" action="db_operations.php"> <?php echo PMA_generate_common_hidden_inputs($db); ?> <fieldset> <legend> <?php echo PMA_getIcon('b_comment.png', $strDBComment, false, true); ?> </legend> <input type="text" name="comment" class="textfield" size="30" value="<?php echo htmlspecialchars(PMA_getDBComment($db)); ?> " /> <input type="submit" value="<?php echo $strGo; ?> " /> </fieldset> </form> <?php } /** * rename database */ ?> <form method="post" action="db_operations.php"