Translation update done using Pootle.
[phpmyadmin.git] / test / theme.php
blob7dc63e0e2f04d2cf09d8073496db2bcf823b9890
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 ic_item_ltr" src="../themes/dot.gif"'
43 .' width="5" height="9" alt="-" /></span>' . "\n";
44 $item = '<a href="%1$s?%2$s" class="item">'
45 .' <img class="icon %5$s" src="../themes/dot.gif"'
46 .' width="16" height="16" alt="" /> ' . "\n"
47 .'%4$s: %3$s</a>' . "\n";
49 echo '<div id="serverinfo">' . "\n";
50 printf(
51 $item,
52 $GLOBALS['cfg']['DefaultTabServer'],
53 PMA_generate_common_url(),
54 'Server',
55 __('Server'),
56 'ic_s_host'
59 echo $separator;
60 printf(
61 $item,
62 $GLOBALS['cfg']['DefaultTabDatabase'],
63 '',
64 'Database',
65 __('Database'),
66 'ic_s_db'
69 echo $separator;
70 printf(
71 $item,
72 $GLOBALS['cfg']['DefaultTabTable'],
73 '',
74 'Table',
75 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
76 ? __('View')
77 : __('Table')),
78 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
79 ? 'ic_b_views'
80 : 'ic_s_tbl')
83 echo '<span class="table_comment" id="span_table_comment">'
84 .'&quot;Table comment&quot</span>' . "\n";
86 echo '</div>';
89 /**
90 * Displays tab links
92 $tabs = array();
94 $tabs['databases']['icon'] = 'ic_s_db';
95 $tabs['databases']['link'] = 'server_databases.php';
96 $tabs['databases']['text'] = __('Databases');
98 $tabs['sql']['icon'] = 'b_sql.png';
99 $tabs['sql']['link'] = 'server_sql.php';
100 $tabs['sql']['text'] = __('SQL');
102 $tabs['status']['icon'] = 'ic_s_status';
103 $tabs['status']['link'] = 'server_status.php';
104 $tabs['status']['text'] = __('Status');
106 $tabs['vars']['icon'] = 'ic_s_vars';
107 $tabs['vars']['link'] = 'server_variables.php';
108 $tabs['vars']['text'] = __('Variables');
110 $tabs['charset']['icon'] = 'ic_s_asci';
111 $tabs['charset']['link'] = 'server_collations.php';
112 $tabs['charset']['text'] = __('Charsets');
114 $tabs['engine']['icon'] = 'ic_b_engine';
115 $tabs['engine']['link'] = 'server_engines.php';
116 $tabs['engine']['text'] = __('Engines');
118 $tabs['rights']['icon'] = 'ic_s_rights';
119 $tabs['rights']['link'] = 'server_privileges.php';
120 $tabs['rights']['text'] = __('Privileges');
122 $tabs['binlog']['icon'] = 'ic_s_tbl';
123 $tabs['binlog']['link'] = 'server_binlog.php';
124 $tabs['binlog']['text'] = __('Binary log');
126 $tabs['process']['icon'] = 'ic_s_process';
127 $tabs['process']['link'] = 'server_processlist.php';
128 $tabs['process']['text'] = 'caution';
129 $tabs['process']['class'] = 'caution';
131 $tabs['export']['icon'] = 'ic_b_export';
132 $tabs['export']['text'] = 'disabled';
134 $tabs['export2']['icon'] = 'ic_b_export';
135 $tabs['export2']['text'] = 'disabled caution';
136 $tabs['export2']['class'] = 'caution';
138 $tabs['import']['icon'] = 'ic_b_import';
139 $tabs['import']['link'] = 'server_import.php';
140 $tabs['import']['text'] = 'active';
141 $tabs['import']['class'] = 'active';
143 echo PMA_generate_html_tabs($tabs, array(), '../../../../');
144 unset($tabs);
146 if (@file_exists($pmaThemeImage . 'logo_right.png')) {
148 <img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?>logo_right.png"
149 alt="phpMyAdmin" />
150 <?php
153 <h1>
154 <?php
155 echo sprintf(__('Welcome to %s'),
156 '<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
158 </h1>
160 <hr class="clearfloat" />
162 <form method="post" action="theme.php" target="_parent">
163 <fieldset>
164 <legend><?php echo __('Theme'); ?></legend>
165 <?php
166 echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(false);
168 <noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript>
169 </fieldset>
170 </form>
172 <hr />
174 <h1>H1 Header</h1>
175 <h2>H2 Header</h2>
176 <h3>H3 Header</h3>
177 <h4>H4 Header</h4>
179 <div class="success">
180 success message box content!
181 </div>
182 <div class="success">
183 <h1>Auccess message box header!</h1>
184 success message box content!
185 </div>
187 <div class="notice">
188 notice message box content!
189 </div>
190 <div class="notice">
191 <h1>Notice message box header!</h1>
192 notice message box content!
193 </div>
194 <div class="error">
195 error message box content!
196 </div>
197 <div class="error">
198 <h1>Error message box header!</h1>
199 error message box content!
200 </div>
202 <fieldset class="confirmation">
203 <legend>Confirmation fieldset</legend>
204 <tt>QUERY TO EXECUTE;</tt>
205 </fieldset>
206 <fieldset class="tblFooters">
207 <input type="submit" name="yes" value="YES" />
208 <input type="submit" name="no" value="NO" />
209 </fieldset>
211 <hr />
213 <div class="success">
214 success message box content!
215 </div>
216 <code class="sql">
217 <span class="syntax">
218 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span>
219 <span class="syntax_punct">*</span> <br />
220 <span class="syntax_alpha syntax_alpha_reservedWord">FROM</span>
221 <span class="syntax_quote syntax_quote_backtick">`test`</span>
222 <span class="syntax_white syntax_white_newline"></span><br />
223 <span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span>
224 <span class="syntax_digit syntax_digit_integer">0</span>
225 <span class="syntax_punct syntax_punct_listsep">,</span>
226 <span class="syntax_digit syntax_digit_integer">30</span>;<br />
227 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span>
228 <span class="syntax_punct">*</span> <br />
229 <span class="syntax_alpha syntax_alpha_reservedWord">FROM</span>
230 <span class="syntax_quote syntax_quote_backtick">`test`</span>
231 <span class="syntax_white syntax_white_newline"></span><br />
232 <span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span>
233 <span class="syntax_digit syntax_digit_integer">0</span>
234 <span class="syntax_punct syntax_punct_listsep">,</span>
235 <span class="syntax_digit syntax_digit_integer">30</span>;<br />
236 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span>
237 <span class="syntax_punct">*</span> <br />
238 <span class="syntax_alpha syntax_alpha_reservedWord">FROM</span>
239 <span class="syntax_quote syntax_quote_backtick">`test`</span>
240 <span class="syntax_white syntax_white_newline"></span><br />
241 <span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span>
242 <span class="syntax_digit syntax_digit_integer">0</span>
243 <span class="syntax_punct syntax_punct_listsep">,</span>
244 <span class="syntax_digit syntax_digit_integer">30</span>;<br />
245 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span>
246 <span class="syntax_punct">*</span> <br />
247 <span class="syntax_alpha syntax_alpha_reservedWord">FROM</span>
248 <span class="syntax_quote syntax_quote_backtick">`test`</span>
249 <span class="syntax_white syntax_white_newline"></span><br />
250 <span class="syntax_alpha syntax_alpha_reservedWord">LIMIT</span>
251 <span class="syntax_digit syntax_digit_integer">0</span>
252 <span class="syntax_punct syntax_punct_listsep">,</span>
253 <span class="syntax_digit syntax_digit_integer">30</span>;<br />
254 </span>
255 </code>
256 <div class="tools">
258 <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>
260 <a href="import.php?db=test;table=test;sql_query=EXPLAIN+SELECT+%2A+FROM+%60test%60;token=266edabf70fa6368498d89b4054d01bf" >SQL erklären</a>
262 <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>
264 <a href="import.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;token=266edabf70fa6368498d89b4054d01bf" >Aktualisieren</a>
265 ]</div>
267 <hr />
269 <table class="data">
270 <caption>table.data caption</caption>
271 <thead>
272 <tr><th></th>
273 <th>table.data thead tr th</th>
274 <th>table.data thead tr th</th>
275 <th colspan="3">action</th>
276 <th>table.data thead tr th</th>
277 </tr>
278 </thead>
279 <tfoot>
280 <tr><th></th>
281 <th>table.data tfoot tr th</th>
282 <th class="value">table.data tfoot tr th</th>
283 <th colspan="3">action</th>
284 <th>table.data tfoot tr th</th>
285 </tr>
286 </tfoot>
287 <tbody>
288 <tr class="odd">
289 <td><input type="checkbox" id="checkbox_1" name="checkbox_1"
290 value="1" /></td>
291 <th><label for="checkbox_1">th label</label></th>
292 <td class="value">td.value</td>
293 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
294 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
295 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
296 <td>table.data tbody tr.odd td</td>
297 </tr>
298 <tr class="even">
299 <td><input type="checkbox" id="checkbox_2" name="checkbox_2"
300 value="1" /></td>
301 <th><label for="checkbox_2">th label</label></th>
302 <td class="value">td.value</td>
303 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
304 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
305 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
306 <td>table.data tbody tr.even td</td>
307 </tr>
308 <tr class="odd">
309 <td><input type="checkbox" id="checkbox_3" name="checkbox_3"
310 value="1" /></td>
311 <th><label for="checkbox_3">th label</label></th>
312 <td class="value">td.value</td>
313 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
314 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
315 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
316 <td>table.data tbody tr.odd td</td>
317 </tr>
318 <tr class="even">
319 <td><input type="checkbox" id="checkbox_4" name="checkbox_4"
320 value="1" /></td>
321 <th><label for="checkbox_4">th label</label></th>
322 <td class="value">td.value</td>
323 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
324 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
325 <td><img class="icon ic_bd_drop" src="../themes/dot.gif" alt="drop" /></td>
326 <td>table.data tbody tr.even td</td>
327 </tr>
328 </tbody>
329 </table>
330 </body>
331 </html>