315 lines
13 KiB
PHP
315 lines
13 KiB
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* theme test
|
|
*
|
|
* @uses libraries/common.inc.php global fnctions
|
|
* @package phpMyAdmin-test
|
|
*/
|
|
|
|
chdir('..');
|
|
|
|
/**
|
|
* Gets core libraries and defines some variables
|
|
*/
|
|
require_once './libraries/common.inc.php';
|
|
|
|
$lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][1];
|
|
|
|
// start output
|
|
header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xml:lang="<?php echo $lang_iso_code; ?>"
|
|
lang="<?php echo $lang_iso_code; ?>"
|
|
dir="<?php echo $GLOBALS['text_dir']; ?>">
|
|
<head>
|
|
<title>phpMyAdmin <?php echo PMA_VERSION; ?> -
|
|
<?php echo htmlspecialchars($HTTP_HOST); ?> - Theme Test</title>
|
|
<meta http-equiv="Content-Type"
|
|
content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
|
|
<link rel="stylesheet" type="text/css"
|
|
href="../phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&js_frame=right&nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
|
|
<link rel="stylesheet" type="text/css" media="print"
|
|
href="../print.css" />
|
|
<script src="../js/functions.js" type="text/javascript"></script>
|
|
</head>
|
|
<body>
|
|
<?php
|
|
|
|
|
|
$separator = '<span class="separator">'
|
|
.'<img class="icon" src=../"' . $GLOBALS['pmaThemeImage'] . 'item_ltr.png"'
|
|
.' width="5" height="9" alt="-" /></span>' . "\n";
|
|
$item = '<a href="%1$s?%2$s" class="item">'
|
|
.' <img class="icon" src="../' . $GLOBALS['pmaThemeImage'] . '%5$s"'
|
|
.' width="16" height="16" alt="" /> ' . "\n"
|
|
.'%4$s: %3$s</a>' . "\n";
|
|
|
|
echo '<div id="serverinfo">' . "\n";
|
|
printf($item,
|
|
$GLOBALS['cfg']['DefaultTabServer'],
|
|
PMA_generate_common_url(),
|
|
'Server',
|
|
__('Server'),
|
|
's_host.png');
|
|
|
|
echo $separator;
|
|
printf($item,
|
|
$GLOBALS['cfg']['DefaultTabDatabase'],
|
|
'',
|
|
'Database',
|
|
__('Database'),
|
|
's_db.png');
|
|
|
|
echo $separator;
|
|
printf($item,
|
|
$GLOBALS['cfg']['DefaultTabTable'],
|
|
'',
|
|
'Table',
|
|
(isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
|
|
? __('View')
|
|
: __('Table')),
|
|
(isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
|
|
? 'b_views'
|
|
: 's_tbl') . '.png');
|
|
|
|
echo '<span class="table_comment" id="span_table_comment">'
|
|
.'"Table comment"</span>' . "\n";
|
|
|
|
echo '</div>';
|
|
|
|
|
|
/**
|
|
* Displays tab links
|
|
*/
|
|
$tabs = array();
|
|
|
|
$tabs['databases']['icon'] = '../../../../' . $pmaThemeImage . 's_db.png';
|
|
$tabs['databases']['link'] = 'server_databases.php';
|
|
$tabs['databases']['text'] = __('Databases');
|
|
|
|
$tabs['sql']['icon'] = '../../../../' . $pmaThemeImage . 'b_sql.png';
|
|
$tabs['sql']['link'] = 'server_sql.php';
|
|
$tabs['sql']['text'] = __('SQL');
|
|
|
|
$tabs['status']['icon'] = '../../../../' . $pmaThemeImage . 's_status.png';
|
|
$tabs['status']['link'] = 'server_status.php';
|
|
$tabs['status']['text'] = __('Status');
|
|
|
|
$tabs['vars']['icon'] = '../../../../' . $pmaThemeImage . 's_vars.png';
|
|
$tabs['vars']['link'] = 'server_variables.php';
|
|
$tabs['vars']['text'] = __('Variables');
|
|
|
|
$tabs['charset']['icon'] = '../../../../' . $pmaThemeImage . 's_asci.png';
|
|
$tabs['charset']['link'] = 'server_collations.php';
|
|
$tabs['charset']['text'] = __('Charsets');
|
|
|
|
$tabs['engine']['icon'] = '../../../../' . $pmaThemeImage . 'b_engine.png';
|
|
$tabs['engine']['link'] = 'server_engines.php';
|
|
$tabs['engine']['text'] = __('Engines');
|
|
|
|
$tabs['rights']['icon'] = '../../../../' . $pmaThemeImage . 's_rights.png';
|
|
$tabs['rights']['link'] = 'server_privileges.php';
|
|
$tabs['rights']['text'] = __('Privileges');
|
|
|
|
$tabs['binlog']['icon'] = '../../../../' . $pmaThemeImage . 's_tbl.png';
|
|
$tabs['binlog']['link'] = 'server_binlog.php';
|
|
$tabs['binlog']['text'] = __('Binary log');
|
|
|
|
$tabs['process']['icon'] = '../../../../' . $pmaThemeImage . 's_process.png';
|
|
$tabs['process']['link'] = 'server_processlist.php';
|
|
$tabs['process']['text'] = 'caution';
|
|
$tabs['process']['class'] = 'caution';
|
|
|
|
$tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
|
|
$tabs['export']['text'] = 'disabled';
|
|
|
|
$tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
|
|
$tabs['export2']['text'] = 'disabled caution';
|
|
$tabs['export2']['class'] = 'caution';
|
|
|
|
$tabs['import']['icon'] = '../../../../' . $pmaThemeImage . 'b_import.png';
|
|
$tabs['import']['link'] = 'server_import.php';
|
|
$tabs['import']['text'] = 'active';
|
|
$tabs['import']['class'] = 'active';
|
|
|
|
echo PMA_generate_html_tabs($tabs, array());
|
|
unset($tabs);
|
|
|
|
if (@file_exists($pmaThemeImage . 'logo_right.png')) {
|
|
?>
|
|
<img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?>logo_right.png"
|
|
alt="phpMyAdmin" />
|
|
<?php
|
|
}
|
|
?>
|
|
<h1>
|
|
<?php
|
|
echo sprintf(__('Welcome to %s'),
|
|
'<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
|
|
?>
|
|
</h1>
|
|
|
|
<hr class="clearfloat" />
|
|
|
|
<form method="post" action="theme.php" target="_parent">
|
|
<fieldset>
|
|
<legend><?php echo __('Theme / Style'); ?></legend>
|
|
<?php
|
|
echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(false);
|
|
?>
|
|
<noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript>
|
|
</fieldset>
|
|
</form>
|
|
|
|
<hr />
|
|
|
|
<h1>H1 Header</h1>
|
|
<h2>H2 Header</h2>
|
|
<h3>H3 Header</h3>
|
|
<h4>H4 Header</h4>
|
|
|
|
<div class="success">
|
|
success message box content!
|
|
</div>
|
|
<div class="success">
|
|
<h1>Auccess message box header!</h1>
|
|
success message box content!
|
|
</div>
|
|
|
|
<div class="notice">
|
|
notice message box content!
|
|
</div>
|
|
<div class="notice">
|
|
<h1>Notice message box header!</h1>
|
|
notice message box content!
|
|
</div>
|
|
<div class="error">
|
|
error message box content!
|
|
</div>
|
|
<div class="error">
|
|
<h1>Error message box header!</h1>
|
|
error message box content!
|
|
</div>
|
|
|
|
<fieldset class="confirmation">
|
|
<legend>Confirmation fieldset</legend>
|
|
<tt>QUERY TO EXECUTE;</tt>
|
|
</fieldset>
|
|
<fieldset class="tblFooters">
|
|
<input type="submit" name="yes" value="YES" />
|
|
<input type="submit" name="no" value="NO" />
|
|
</fieldset>
|
|
|
|
<hr />
|
|
|
|
<div class="success">
|
|
success message box content!
|
|
</div>
|
|
<code class="sql">
|
|
<span class="syntax">
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">FROM</span> <span class="syntax_quote syntax_quote_backtick">`test`</span> <span class="syntax_white syntax_white_newline"></span><br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span> <span class="syntax_digit syntax_digit_integer">0</span><span class="syntax_punct syntax_punct_listsep">,</span> <span class="syntax_digit syntax_digit_integer">30</span>;<br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">FROM</span> <span class="syntax_quote syntax_quote_backtick">`test`</span> <span class="syntax_white syntax_white_newline"></span><br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span> <span class="syntax_digit syntax_digit_integer">0</span><span class="syntax_punct syntax_punct_listsep">,</span> <span class="syntax_digit syntax_digit_integer">30</span>;<br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">FROM</span> <span class="syntax_quote syntax_quote_backtick">`test`</span> <span class="syntax_white syntax_white_newline"></span><br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span> <span class="syntax_digit syntax_digit_integer">0</span><span class="syntax_punct syntax_punct_listsep">,</span> <span class="syntax_digit syntax_digit_integer">30</span>;<br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">FROM</span> <span class="syntax_quote syntax_quote_backtick">`test`</span> <span class="syntax_white syntax_white_newline"></span><br />
|
|
<span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span> <span class="syntax_digit syntax_digit_integer">0</span><span class="syntax_punct syntax_punct_listsep">,</span> <span class="syntax_digit syntax_digit_integer">30</span>;<br />
|
|
</span>
|
|
</code>
|
|
<div class="tools">
|
|
[
|
|
<a href="tbl_sql.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;token=266edabf70fa6368498d89b4054d01bf#querybox" onclick="window.parent.focus_querywindow('SELECT * FROM `test`'); return false;">Bearbeiten</a>
|
|
] [
|
|
<a href="import.php?db=test;table=test;sql_query=EXPLAIN+SELECT+%2A+FROM+%60test%60;token=266edabf70fa6368498d89b4054d01bf" >SQL erklären</a>
|
|
] [
|
|
<a href="import.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;show_as_php=1;token=266edabf70fa6368498d89b4054d01bf" >PHP-Code erzeugen</a>
|
|
] [
|
|
<a href="import.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;token=266edabf70fa6368498d89b4054d01bf" >Aktualisieren</a>
|
|
]</div>
|
|
|
|
<hr />
|
|
|
|
<table class="data">
|
|
<caption>table.data caption</caption>
|
|
<thead>
|
|
<tr><th></th>
|
|
<th>table.data thead tr th</th>
|
|
<th>table.data thead tr th</th>
|
|
<th colspan="3">action</th>
|
|
<th>table.data thead tr th</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr><th></th>
|
|
<th>table.data tfoot tr th</th>
|
|
<th class="value">table.data tfoot tr th</th>
|
|
<th colspan="3">action</th>
|
|
<th>table.data tfoot tr th</th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
<tr class="odd">
|
|
<td><input type="checkbox" id="checkbox_1" name="checkbox_1"
|
|
value="1" /></td>
|
|
<th><label for="checkbox_1">th label</label></th>
|
|
<td class="value">td.value</td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td>table.data tbody tr.odd td</td>
|
|
</tr>
|
|
<tr class="even">
|
|
<td><input type="checkbox" id="checkbox_2" name="checkbox_2"
|
|
value="1" /></td>
|
|
<th><label for="checkbox_2">th label</label></th>
|
|
<td class="value">td.value</td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td>table.data tbody tr.even td</td>
|
|
</tr>
|
|
<tr class="odd">
|
|
<td><input type="checkbox" id="checkbox_3" name="checkbox_3"
|
|
value="1" /></td>
|
|
<th><label for="checkbox_3">th label</label></th>
|
|
<td class="value">td.value</td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td>table.data tbody tr.odd td</td>
|
|
</tr>
|
|
<tr class="even">
|
|
<td><input type="checkbox" id="checkbox_4" name="checkbox_4"
|
|
value="1" /></td>
|
|
<th><label for="checkbox_4">th label</label></th>
|
|
<td class="value">td.value</td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
|
|
width="16" height="16" alt="drop" /></td>
|
|
<td>table.data tbody tr.even td</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|