' . "\n";
+ $html .= '' . "\n";
// print an empty div, which will be later filled with
// the sql query results by ajax
$html .= '';
@@ -150,17 +151,17 @@ function PMA_sqlQueryForm($query = true, $display_tab = false, $delimiter = ';')
}
/**
- * Prints querybox fieldset
+ * return HTML for Sql Query Form Insert
*
* @param string $query query to display in the textarea
* @param boolean $is_querywindow if inside querywindow or not
* @param string $delimiter default delimiter to use
*
- * @return void
+ * @return string
*
* @usedby PMA_sqlQueryForm()
*/
-function PMA_sqlQueryFormInsert(
+function PMA_getHtmlForSqlQueryFormInsert(
$query = '', $is_querywindow = false, $delimiter = ';'
) {
// enable auto select text in textarea
@@ -219,7 +220,9 @@ function PMA_sqlQueryFormInsert(
// Get the list and number of fields
// we do a try_query here, because we could be in the query window,
// trying to synchonize and the table has not yet been created
- $fields_list = $GLOBALS['dbi']->getColumns($db, $GLOBALS['table'], null, true);
+ $fields_list = $GLOBALS['dbi']->getColumns(
+ $db, $GLOBALS['table'], null, true
+ );
$tmp_db_link = '
-
- ';
}
- $html = '' . "\n";
+ $html .= '' . "\n";
$html .= '
';
if ($files === false) {
- $errors[] = PMA_Message::error(__('The directory you set for upload work cannot be reached.'));
+ $errors[] = PMA_Message::error(
+ __('The directory you set for upload work cannot be reached.')
+ );
} elseif (!empty($files)) {
- echo '