Remove unused variables
[phpmyadmin.git] / test / theme.php
blob0242e09e3f694553a3cf3ee40be421154fdaaf19
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * theme test
6 * @package phpMyAdmin-test
7 */
9 chdir('..');
11 /**
12 * Gets core libraries and defines some variables
14 require_once './libraries/common.inc.php';
16 $lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][1];
18 // start output
19 header('Content-Type: text/html; charset=utf-8');
21 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
22 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
23 <html xmlns="http://www.w3.org/1999/xhtml"
24 xml:lang="<?php echo $lang_iso_code; ?>"
25 lang="<?php echo $lang_iso_code; ?>"
26 dir="<?php echo $GLOBALS['text_dir']; ?>">
27 <head>
28 <title>phpMyAdmin <?php echo PMA_VERSION; ?> -
29 <?php echo htmlspecialchars($HTTP_HOST); ?> - Theme Test</title>
30 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
31 <link rel="stylesheet" type="text/css"
32 href="../phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=right&amp;nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
33 <link rel="stylesheet" type="text/css" media="print"
34 href="../print.css" />
35 <script src="../js/functions.js" type="text/javascript"></script>
36 </head>
37 <body>
38 <?php
41 $separator = '<span class="separator">'
42 .'<img class="icon" src=../"' . $GLOBALS['pmaThemeImage'] . 'item_ltr.png"'
43 .' width="5" height="9" alt="-" /></span>' . "\n";
44 $item = '<a href="%1$s?%2$s" class="item">'
45 .' <img class="icon" src="../' . $GLOBALS['pmaThemeImage'] . '%5$s"'
46 .' width="16" height="16" alt="" /> ' . "\n"
47 .'%4$s: %3$s</a>' . "\n";
49 echo '<div id="serverinfo">' . "\n";
50 printf($item,
51 $GLOBALS['cfg']['DefaultTabServer'],
52 PMA_generate_common_url(),
53 'Server',
54 __('Server'),
55 's_host.png');
57 echo $separator;
58 printf($item,
59 $GLOBALS['cfg']['DefaultTabDatabase'],
60 '',
61 'Database',
62 __('Database'),
63 's_db.png');
65 echo $separator;
66 printf($item,
67 $GLOBALS['cfg']['DefaultTabTable'],
68 '',
69 'Table',
70 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
71 ? __('View')
72 : __('Table')),
73 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
74 ? 'b_views'
75 : 's_tbl') . '.png');
77 echo '<span class="table_comment" id="span_table_comment">'
78 .'&quot;Table comment&quot</span>' . "\n";
80 echo '</div>';
83 /**
84 * Displays tab links
86 $tabs = array();
88 $tabs['databases']['icon'] = '../../../../' . $pmaThemeImage . 's_db.png';
89 $tabs['databases']['link'] = 'server_databases.php';
90 $tabs['databases']['text'] = __('Databases');
92 $tabs['sql']['icon'] = '../../../../' . $pmaThemeImage . 'b_sql.png';
93 $tabs['sql']['link'] = 'server_sql.php';
94 $tabs['sql']['text'] = __('SQL');
96 $tabs['status']['icon'] = '../../../../' . $pmaThemeImage . 's_status.png';
97 $tabs['status']['link'] = 'server_status.php';
98 $tabs['status']['text'] = __('Status');
100 $tabs['vars']['icon'] = '../../../../' . $pmaThemeImage . 's_vars.png';
101 $tabs['vars']['link'] = 'server_variables.php';
102 $tabs['vars']['text'] = __('Variables');
104 $tabs['charset']['icon'] = '../../../../' . $pmaThemeImage . 's_asci.png';
105 $tabs['charset']['link'] = 'server_collations.php';
106 $tabs['charset']['text'] = __('Charsets');
108 $tabs['engine']['icon'] = '../../../../' . $pmaThemeImage . 'b_engine.png';
109 $tabs['engine']['link'] = 'server_engines.php';
110 $tabs['engine']['text'] = __('Engines');
112 $tabs['rights']['icon'] = '../../../../' . $pmaThemeImage . 's_rights.png';
113 $tabs['rights']['link'] = 'server_privileges.php';
114 $tabs['rights']['text'] = __('Privileges');
116 $tabs['binlog']['icon'] = '../../../../' . $pmaThemeImage . 's_tbl.png';
117 $tabs['binlog']['link'] = 'server_binlog.php';
118 $tabs['binlog']['text'] = __('Binary log');
120 $tabs['process']['icon'] = '../../../../' . $pmaThemeImage . 's_process.png';
121 $tabs['process']['link'] = 'server_processlist.php';
122 $tabs['process']['text'] = 'caution';
123 $tabs['process']['class'] = 'caution';
125 $tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
126 $tabs['export']['text'] = 'disabled';
128 $tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
129 $tabs['export2']['text'] = 'disabled caution';
130 $tabs['export2']['class'] = 'caution';
132 $tabs['import']['icon'] = '../../../../' . $pmaThemeImage . 'b_import.png';
133 $tabs['import']['link'] = 'server_import.php';
134 $tabs['import']['text'] = 'active';
135 $tabs['import']['class'] = 'active';
137 echo PMA_generate_html_tabs($tabs, array());
138 unset($tabs);
140 if (@file_exists($pmaThemeImage . 'logo_right.png')) {
142 <img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?>logo_right.png"
143 alt="phpMyAdmin" />
144 <?php
147 <h1>
148 <?php
149 echo sprintf(__('Welcome to %s'),
150 '<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
152 </h1>
154 <hr class="clearfloat" />
156 <form method="post" action="theme.php" target="_parent">
157 <fieldset>
158 <legend><?php echo __('Theme'); ?></legend>
159 <?php
160 echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(false);
162 <noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript>
163 </fieldset>
164 </form>
166 <hr />
168 <h1>H1 Header</h1>
169 <h2>H2 Header</h2>
170 <h3>H3 Header</h3>
171 <h4>H4 Header</h4>
173 <div class="success">
174 success message box content!
175 </div>
176 <div class="success">
177 <h1>Auccess message box header!</h1>
178 success message box content!
179 </div>
181 <div class="notice">
182 notice message box content!
183 </div>
184 <div class="notice">
185 <h1>Notice message box header!</h1>
186 notice message box content!
187 </div>
188 <div class="error">
189 error message box content!
190 </div>
191 <div class="error">
192 <h1>Error message box header!</h1>
193 error message box content!
194 </div>
196 <fieldset class="confirmation">
197 <legend>Confirmation fieldset</legend>
198 <tt>QUERY TO EXECUTE;</tt>
199 </fieldset>
200 <fieldset class="tblFooters">
201 <input type="submit" name="yes" value="YES" />
202 <input type="submit" name="no" value="NO" />
203 </fieldset>
205 <hr />
207 <div class="success">
208 success message box content!
209 </div>
210 <code class="sql">
211 <span class="syntax">
212 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
213 <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 />
214 <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 />
215 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
216 <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 />
217 <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 />
218 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
219 <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 />
220 <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 />
221 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
222 <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 />
223 <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 />
224 </span>
225 </code>
226 <div class="tools">
228 <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>
230 <a href="import.php?db=test;table=test;sql_query=EXPLAIN+SELECT+%2A+FROM+%60test%60;token=266edabf70fa6368498d89b4054d01bf" >SQL erklären</a>
232 <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>
234 <a href="import.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;token=266edabf70fa6368498d89b4054d01bf" >Aktualisieren</a>
235 ]</div>
237 <hr />
239 <table class="data">
240 <caption>table.data caption</caption>
241 <thead>
242 <tr><th></th>
243 <th>table.data thead tr th</th>
244 <th>table.data thead tr th</th>
245 <th colspan="3">action</th>
246 <th>table.data thead tr th</th>
247 </tr>
248 </thead>
249 <tfoot>
250 <tr><th></th>
251 <th>table.data tfoot tr th</th>
252 <th class="value">table.data tfoot tr th</th>
253 <th colspan="3">action</th>
254 <th>table.data tfoot tr th</th>
255 </tr>
256 </tfoot>
257 <tbody>
258 <tr class="odd">
259 <td><input type="checkbox" id="checkbox_1" name="checkbox_1"
260 value="1" /></td>
261 <th><label for="checkbox_1">th label</label></th>
262 <td class="value">td.value</td>
263 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
264 width="16" height="16" alt="drop" /></td>
265 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
266 width="16" height="16" alt="drop" /></td>
267 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
268 width="16" height="16" alt="drop" /></td>
269 <td>table.data tbody tr.odd td</td>
270 </tr>
271 <tr class="even">
272 <td><input type="checkbox" id="checkbox_2" name="checkbox_2"
273 value="1" /></td>
274 <th><label for="checkbox_2">th label</label></th>
275 <td class="value">td.value</td>
276 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
277 width="16" height="16" alt="drop" /></td>
278 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
279 width="16" height="16" alt="drop" /></td>
280 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
281 width="16" height="16" alt="drop" /></td>
282 <td>table.data tbody tr.even td</td>
283 </tr>
284 <tr class="odd">
285 <td><input type="checkbox" id="checkbox_3" name="checkbox_3"
286 value="1" /></td>
287 <th><label for="checkbox_3">th label</label></th>
288 <td class="value">td.value</td>
289 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
290 width="16" height="16" alt="drop" /></td>
291 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
292 width="16" height="16" alt="drop" /></td>
293 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
294 width="16" height="16" alt="drop" /></td>
295 <td>table.data tbody tr.odd td</td>
296 </tr>
297 <tr class="even">
298 <td><input type="checkbox" id="checkbox_4" name="checkbox_4"
299 value="1" /></td>
300 <th><label for="checkbox_4">th label</label></th>
301 <td class="value">td.value</td>
302 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
303 width="16" height="16" alt="drop" /></td>
304 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
305 width="16" height="16" alt="drop" /></td>
306 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
307 width="16" height="16" alt="drop" /></td>
308 <td>table.data tbody tr.even td</td>
309 </tr>
310 </tbody>
311 </table>
312 </body>
313 </html>