';
+
+ return $table_navigation_html;
+ }
+
+ /**
+ * function generate and return the table header for central columns page
+ *
+ * @param string $class styling class of 'th' elements
+ * @param string $title title of the 'th' elements
+ * @param integer $actionCount number of actions
+ *
+ * @return string html for table header in central columns view/edit page
+ */
+ public static function getTableHeader($class='', $title='', $actionCount=0)
+ {
+ $action = '';
+ if ($actionCount > 0) {
+ $action .= '
'
+ . __('Action') . '
';
+ }
+ $tableheader = '';
+ $tableheader .= '
'
+ . '
'
+ . '
'
+ . $action
+ . '
'
+ . __('Name') . '
'
+ . '
'
+ . __('Type') . '
'
+ . '
'
+ . __('Length/Values') . '
'
+ . '
'
+ . __('Default') . '
'
+ . '
' . __('Collation') . '
'
+ . '
'
+ . __('Attribute') . '
'
+ . '
'
+ . __('Null') . '
'
+ . '
'
+ . __('A_I') . '
'
+ . '
';
+ $tableheader .= '';
+ return $tableheader;
+ }
+
+ /**
+ * Function generate and return the table header for
+ * multiple edit central columns page
+ *
+ * @param array $header_cells headers list
+ *
+ * @return string html for table header in central columns multi edit page
+ */
+ public static function getEditTableHeader($header_cells)
+ {
+ $html = '
';
+ return $html;
+ }
+
+ /**
+ * build the dropdown select html for tables of given database
+ *
+ * @param string $db current database
+ *
+ * @return string html dropdown for selecting table
+ */
+ public static function getHtmlForTableDropdown($db)
+ {
+ $GLOBALS['dbi']->selectDb($db, $GLOBALS['userlink']);
+ $tables = $GLOBALS['dbi']->getTables($db, $GLOBALS['userlink']);
+ $selectHtml = '';
+ return $selectHtml;
+ }
+
+ /**
+ * build dropdown select html to select column in selected table,
+ * include only columns which are not already in central list
+ *
+ * @param string $db current database to which selected table belongs
+ * @param string $selected_tbl selected table
+ *
+ * @return string html to select column
+ */
+ public static function getHtmlForColumnDropdown($db, $selected_tbl)
+ {
+ $existing_cols = self::getFromTable($db, $selected_tbl);
+ $GLOBALS['dbi']->selectDb($db, $GLOBALS['userlink']);
+ $columns = (array) $GLOBALS['dbi']->getColumnNames(
+ $db, $selected_tbl, $GLOBALS['userlink']
+ );
+ $selectColHtml = "";
+ foreach ($columns as $column) {
+ if (!in_array($column, $existing_cols)) {
+ $selectColHtml .= '';
+ }
+ }
+ return $selectColHtml;
+ }
+
+ /**
+ * html to display the form that let user to add a column on Central columns page
+ *
+ * @param int $total_rows total number of rows in complete result set
+ * @param int $pos offset of first result with complete result set
+ * @param string $db current database
+ *
+ * @return string html to add a column in the central list
+ */
+ public static function getHtmlForAddCentralColumn($total_rows, $pos, $db)
+ {
+ $columnAdd = '
';
+
+ return $columnAdd;
+ }
+
+ /**
+ * build html for a row in central columns table
+ *
+ * @param array $row array contains complete information of a particular row of central list table
+ * @param int $row_num position the row in the table
+ * @param string $db current database
+ *
+ * @return string html of a particular row in the central columns table.
+ */
+ public static function getHtmlForCentralColumnsTableRow($row, $row_num, $db)
+ {
+ $tableHtml = '
';
+
+ return $tableHtml;
+ }
+
+ /**
+ * build html for editing a row in central columns table
+ *
+ * @param array $row array contains complete information of a particular row of central list table
+ * @param int $row_num position the row in the table
+ *
+ * @return string html of a particular row in the central columns table.
+ */
+ public static function getHtmlForCentralColumnsEditTableRow($row, $row_num)
+ {
+ $tableHtml = '
';
+ return $addNewColumn;
+ }
+
+ /**
+ * Get HTML for editing page central columns
+ *
+ * @param array $selected_fld Array containing the selected fields
+ * @param string $selected_db String containing the name of database
+ *
+ * @return string HTML for complete editing page for central columns
+ */
+ public static function getHtmlForEditingPage($selected_fld,$selected_db)
+ {
+ $html = '