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