' . "pma_token = '" . $_SESSION[' PMA_token '] . "';" . "url_query = '" . $url_query . "';" . ''; return $htmlString; } /** * Function to get html for the chart type options * * @return string */ function PMA_getHtmlForChartTypeOptions() { $html = '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '' . '

'; return $html; } /** * Function to get html for the bar stacked option * * @return string */ function PMA_getHtmlForStackedOption() { $html = '' . '' . '' . '' . '

'; return $html; } /** * Function to get html for the chart x axis options * * @param array $keys keys * @param int &$yaxis y axis * * @return string */ function PMA_getHtmlForChartXAxisOptions($keys, &$yaxis) { $htmlString = '
' . '' . ''; return $htmlString; } /** * Function to get html for chart series options * * @param array $keys keys * @param array $fields_meta fields meta * @param array $numeric_types numeric types * @param int $yaxis y axis * @param int $numeric_column_count numeric column count * * @return string */ function PMA_getHtmlForChartSeriesOptions($keys, $fields_meta, $numeric_types, $yaxis, $numeric_column_count ) { $htmlString = '
' . '' . ''; return $htmlString; } /** * Function to get html for date time columns * * @param array $keys keys * @param array $fields_meta fields meta * * @return string */ function PMA_getHtmlForDateTimeCols($keys, $fields_meta) { $htmlString = '' . __('X-Axis label:') . '' . '
' . '' . '
' . '
'; return $htmlString; } /** * Function to get html for the start row and number of rows options * * @param string $sql_query sql query * * @return string */ function PMA_getHtmlForStartAndNumberOfRowsOptions($sql_query) { $htmlString = '

 

' . '
' . '
' . '' . '' . '' . '' . '' . '' . '
' . '
'; return $htmlString; } /** * Function to get html for the chart area div * * @return string */ function PMA_getHtmlForChartAreaDiv() { $htmlString = '

 

' . '
' . '
' . '
' . '
'; return $htmlString; } /** * Function to get html for displaying table chart * * @param string $url_query url query * @param array $url_params url parameters * @param array $keys keys * @param array $fields_meta fields meta * @param array $numeric_types numeric types * @param int $numeric_column_count numeric column count * @param string $sql_query sql query * * @return string */ function PMA_getHtmlForTableChartDisplay($url_query, $url_params, $keys, $fields_meta, $numeric_types, $numeric_column_count, $sql_query ) { // pma_token/url_query needed for chart export $htmlString = PMA_getHtmlForPmaTokenAndUrlQuery($url_query); $htmlString .= '' . '
' . '
' . PMA_URL_getHiddenInputs($url_params) . '
' . '' . __('Display chart') . '' . '
'; $htmlString .= PMA_getHtmlForChartTypeOptions(); $htmlString .= PMA_getHtmlForStackedOption(); $htmlString .= '' . '
'; $yaxis = null; $htmlString .= PMA_getHtmlForChartXAxisOptions($keys, $yaxis); $htmlString .= PMA_getHtmlForChartSeriesOptions( $keys, $fields_meta, $numeric_types, $yaxis, $numeric_column_count ); $htmlString .= PMA_getHtmlForDateTimeCols($keys, $fields_meta); $htmlString .= '
'; $htmlString .= PMA_getHtmlForTableAxisLabelOptions($yaxis, $keys); $htmlString .= PMA_getHtmlForStartAndNumberOfRowsOptions($sql_query); $htmlString .= PMA_getHtmlForChartAreaDiv(); $htmlString .= '' . '' . ''; return $htmlString; } ?>