'
+ . ' '
+ . ''
+ . PMA_getHtmlForColumnName(
+ $row_num, 0, 0, array('Field'=>$row['col_name']),
+ array('central_columnswork'=>false)
+ )
+ . ' ';
+ $tableHtml .=
+ ''
+ . PMA_getHtmlForColumnType(
+ $row_num, 1, 0, /*overload*/mb_strtoupper($row['col_type']), array()
+ )
+ . ' ';
+ $tableHtml .=
+ ''
+ . PMA_getHtmlForColumnLength($row_num, 2, 0, 8, $row['col_length'])
+ . ' ';
+
+ $tableHtml .=
+ ''
+ . PMA_getHtmlForColumnCollation(
+ $row_num, 3, 0, array('Collation'=>$row['col_collation'])
+ )
+ . ' ';
+ $tableHtml .=
+ ''
+ . PMA_getHtmlForColumnAttribute(
+ $row_num, 4, 0, array("attribute"=>$row['col_attribute']),
+ array(), false, null
+ )
+ . ' ';
+ $tableHtml .=
+ ''
+ . PMA_getHtmlForColumnNull($row_num, 5, 0, array('Null'=>$row['col_isNull']))
+ . ' ';
+ $extra_val = $row['col_extra'];
+ $tableHtml .=
+ ''
+ . ''
+ . ' '
+ . '' . __('auto_increment') . ' '
+ . ' '
+ . ' ';
+ $meta = array();
+ if (!isset($row['col_default']) || $row['col_default'] == '') {
+ $meta['DefaultType'] = 'NONE';
+ } else {
+ if ($row['col_default'] == 'CURRENT_TIMESTAMP'
+ || $row['col_default'] == 'NULL'
+ ) {
+ $meta['DefaultType'] = $row['col_default'];
+ } else {
+ $meta['DefaultType'] = 'USER_DEFINED';
+ $meta['DefaultValue'] = $row['col_default'];
+ }
+ }
+ $tableHtml .=
+ ''
+ . PMA_getHtmlForColumnDefault(
+ $row_num, 6, 0, /*overload*/mb_strtoupper($row['col_type']), '', $meta
+ )
+ . ' ';
+ $tableHtml .= ' ';
+ return $tableHtml;
+}
+
/**
* get the list of columns in given database excluding
* the columns present in current table
@@ -910,6 +1054,47 @@ function PMA_getCentralColumnsListRaw($db, $table)
return json_encode($columns_list);
}
+/**
+ * Get HTML for "check all" check box with "with selected" dropdown
+ *
+ * @param string $pmaThemeImage pma theme image url
+ * @param string $text_dir url for text directory
+ *
+ * @return string $html_output
+ */
+function PMA_getCentralColumnsTableFooter($pmaThemeImage, $text_dir)
+{
+ $html_output = PMA_Util::getWithSelected(
+ $pmaThemeImage, $text_dir, "tableslistcontainer"
+ );
+ $html_output .= PMA_Util::getButtonOrImage(
+ 'edit_central_columns', 'mult_submit change_central_columns',
+ 'submit_mult_change', __('Edit'), 'b_edit.png', 'edit central columns'
+ );
+ $html_output .= PMA_Util::getButtonOrImage(
+ 'delete_central_columns', 'mult_submit', 'submit_mult_central_columns_remove',
+ __('Delete'), 'centralColumns_delete.png',
+ 'remove_from_central_columns'
+ );
+ return $html_output;
+}
+
+/**
+ * function generate and return the table footer for
+ * multiple edit central columns page
+ *
+ * @return html for table footer in central columns multi edit page
+ */
+function PMA_getCentralColumnsEditTableFooter()
+{
+ $html_output = '