remove todo, after upgrade PHPExcel
[phpmyadmin/arisferyanto.git] / test / theme.php
blob26bb9b8364aee3f5684144407d094f488176d349
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 * @version $Id$
9 */
11 chdir('..');
13 /**
14 * Gets core libraries and defines some variables
16 require_once './libraries/common.inc.php';
18 $lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2];
20 // start output
21 header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
23 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
24 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
25 <html xmlns="http://www.w3.org/1999/xhtml"
26 xml:lang="<?php echo $lang_iso_code; ?>"
27 lang="<?php echo $lang_iso_code; ?>"
28 dir="<?php echo $GLOBALS['text_dir']; ?>">
29 <head>
30 <title>phpMyAdmin <?php echo PMA_VERSION; ?> -
31 <?php echo htmlspecialchars($HTTP_HOST); ?> - Theme Test</title>
32 <meta http-equiv="Content-Type"
33 content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
34 <link rel="stylesheet" type="text/css"
35 href="../phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=right&amp;nocache=<?php echo $_SESSION['PMA_Config']->getThemeUniqueValue(); ?>" />
36 <link rel="stylesheet" type="text/css" media="print"
37 href="../print.css" />
38 <script src="../js/functions.js" type="text/javascript"></script>
39 </head>
40 <body>
41 <?php
44 $separator = '<span class="separator">'
45 .'<img class="icon" src=../"' . $GLOBALS['pmaThemeImage'] . 'item_ltr.png"'
46 .' width="5" height="9" alt="-" /></span>' . "\n";
47 $item = '<a href="%1$s?%2$s" class="item">'
48 .' <img class="icon" src="../' . $GLOBALS['pmaThemeImage'] . '%5$s"'
49 .' width="16" height="16" alt="" /> ' . "\n"
50 .'%4$s: %3$s</a>' . "\n";
52 echo '<div id="serverinfo">' . "\n";
53 printf($item,
54 $GLOBALS['cfg']['DefaultTabServer'],
55 PMA_generate_common_url(),
56 'Server',
57 $GLOBALS['strServer'],
58 's_host.png');
60 echo $separator;
61 printf($item,
62 $GLOBALS['cfg']['DefaultTabDatabase'],
63 '',
64 'Database',
65 $GLOBALS['strDatabase'],
66 's_db.png');
68 echo $separator;
69 printf($item,
70 $GLOBALS['cfg']['DefaultTabTable'],
71 '',
72 'Table',
73 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
74 ? $GLOBALS['strView']
75 : $GLOBALS['strTable']),
76 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
77 ? 'b_views'
78 : 's_tbl') . '.png');
80 echo '<span class="table_comment" id="span_table_comment">'
81 .'&quot;Table comment&quot</span>' . "\n";
83 echo '</div>';
86 /**
87 * Displays tab links
89 $tabs = array();
91 $tabs['databases']['icon'] = '../../../../' . $pmaThemeImage . 's_db.png';
92 $tabs['databases']['link'] = 'server_databases.php';
93 $tabs['databases']['text'] = $strDatabases;
95 $tabs['sql']['icon'] = '../../../../' . $pmaThemeImage . 'b_sql.png';
96 $tabs['sql']['link'] = 'server_sql.php';
97 $tabs['sql']['text'] = $strSQL;
99 $tabs['status']['icon'] = '../../../../' . $pmaThemeImage . 's_status.png';
100 $tabs['status']['link'] = 'server_status.php';
101 $tabs['status']['text'] = $strStatus;
103 $tabs['vars']['icon'] = '../../../../' . $pmaThemeImage . 's_vars.png';
104 $tabs['vars']['link'] = 'server_variables.php';
105 $tabs['vars']['text'] = $strServerTabVariables;
107 $tabs['charset']['icon'] = '../../../../' . $pmaThemeImage . 's_asci.png';
108 $tabs['charset']['link'] = 'server_collations.php';
109 $tabs['charset']['text'] = $strCharsets;
111 $tabs['engine']['icon'] = '../../../../' . $pmaThemeImage . 'b_engine.png';
112 $tabs['engine']['link'] = 'server_engines.php';
113 $tabs['engine']['text'] = $strEngines;
115 $tabs['rights']['icon'] = '../../../../' . $pmaThemeImage . 's_rights.png';
116 $tabs['rights']['link'] = 'server_privileges.php';
117 $tabs['rights']['text'] = $strPrivileges;
119 $tabs['binlog']['icon'] = '../../../../' . $pmaThemeImage . 's_tbl.png';
120 $tabs['binlog']['link'] = 'server_binlog.php';
121 $tabs['binlog']['text'] = $strBinaryLog;
123 $tabs['process']['icon'] = '../../../../' . $pmaThemeImage . 's_process.png';
124 $tabs['process']['link'] = 'server_processlist.php';
125 $tabs['process']['text'] = 'caution';
126 $tabs['process']['class'] = 'caution';
128 $tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
129 $tabs['export']['text'] = 'disabled';
131 $tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png';
132 $tabs['export2']['text'] = 'disabled caution';
133 $tabs['export2']['class'] = 'caution';
135 $tabs['import']['icon'] = '../../../../' . $pmaThemeImage . 'b_import.png';
136 $tabs['import']['link'] = 'server_import.php';
137 $tabs['import']['text'] = 'active';
138 $tabs['import']['class'] = 'active';
140 echo PMA_generate_html_tabs($tabs, array());
141 unset($tabs);
143 if (@file_exists($pmaThemeImage . 'logo_right.png')) {
145 <img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?>logo_right.png"
146 alt="phpMyAdmin" />
147 <?php
150 <h1>
151 <?php
152 echo sprintf($strWelcome,
153 '<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>');
155 </h1>
157 <hr class="clearfloat" />
159 <form method="post" action="theme.php" target="_parent">
160 <fieldset>
161 <legend><?php echo $strTheme; ?></legend>
162 <?php
163 echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(false);
165 <noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript>
166 </fieldset>
167 </form>
169 <hr />
171 <h1>H1 Header</h1>
172 <h2>H2 Header</h2>
173 <h3>H3 Header</h3>
174 <h4>H4 Header</h4>
176 <div class="success">
177 success message box content!
178 </div>
179 <div class="success">
180 <h1>Auccess message box header!</h1>
181 success message box content!
182 </div>
184 <div class="notice">
185 notice message box content!
186 </div>
187 <div class="notice">
188 <h1>Notice message box header!</h1>
189 notice message box content!
190 </div>
192 <div class="warning">
193 warning message box content!
194 </div>
195 <div class="warning">
196 <h1>Warning message box header!</h1>
197 warning message box content!
198 </div>
200 <div class="error">
201 error message box content!
202 </div>
203 <div class="error">
204 <h1>Error message box header!</h1>
205 error message box content!
206 </div>
208 <fieldset class="confirmation">
209 <legend>Confirmation fieldset</legend>
210 <tt>QUERY TO EXECUTE;</tt>
211 </fieldset>
212 <fieldset class="tblFooters">
213 <input type="submit" name="yes" value="YES" />
214 <input type="submit" name="no" value="NO" />
215 </fieldset>
217 <hr />
219 <div class="success">
220 success message box content!
221 </div>
222 <code class="sql">
223 <span class="syntax">
224 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
225 <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 />
226 <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 />
227 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
228 <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 />
229 <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 />
230 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
231 <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 />
232 <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 />
233 <span class="syntax_alpha syntax_alpha_reservedWord">SELECT</span> <span class="syntax_punct">*</span> <br />
234 <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 />
235 <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 />
236 </span>
237 </code>
238 <div class="tools">
240 <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>
242 <a href="import.php?db=test;table=test;sql_query=EXPLAIN+SELECT+%2A+FROM+%60test%60;token=266edabf70fa6368498d89b4054d01bf" >SQL erklären</a>
244 <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>
246 <a href="import.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;token=266edabf70fa6368498d89b4054d01bf" >Aktualisieren</a>
247 ]</div>
249 <hr />
251 <table class="data">
252 <caption>table.data caption</caption>
253 <thead>
254 <tr><th></th>
255 <th>table.data thead tr th</th>
256 <th>table.data thead tr th</th>
257 <th colspan="3">action</th>
258 <th>table.data thead tr th</th>
259 </tr>
260 </thead>
261 <tfoot>
262 <tr><th></th>
263 <th>table.data tfoot tr th</th>
264 <th class="value">table.data tfoot tr th</th>
265 <th colspan="3">action</th>
266 <th>table.data tfoot tr th</th>
267 </tr>
268 </tfoot>
269 <tbody>
270 <tr class="odd">
271 <td><input type="checkbox" id="checkbox_1" name="checkbox_1"
272 value="1" /></td>
273 <th><label for="checkbox_1">th label</label></th>
274 <td class="value">td.value</td>
275 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
276 width="16" height="16" alt="drop" /></td>
277 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
278 width="16" height="16" alt="drop" /></td>
279 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
280 width="16" height="16" alt="drop" /></td>
281 <td>table.data tbody tr.odd td</td>
282 </tr>
283 <tr class="even">
284 <td><input type="checkbox" id="checkbox_2" name="checkbox_2"
285 value="1" /></td>
286 <th><label for="checkbox_2">th label</label></th>
287 <td class="value">td.value</td>
288 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
289 width="16" height="16" alt="drop" /></td>
290 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
291 width="16" height="16" alt="drop" /></td>
292 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
293 width="16" height="16" alt="drop" /></td>
294 <td>table.data tbody tr.even td</td>
295 </tr>
296 <tr class="odd">
297 <td><input type="checkbox" id="checkbox_3" name="checkbox_3"
298 value="1" /></td>
299 <th><label for="checkbox_3">th label</label></th>
300 <td class="value">td.value</td>
301 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
302 width="16" height="16" alt="drop" /></td>
303 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
304 width="16" height="16" alt="drop" /></td>
305 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
306 width="16" height="16" alt="drop" /></td>
307 <td>table.data tbody tr.odd td</td>
308 </tr>
309 <tr class="even">
310 <td><input type="checkbox" id="checkbox_4" name="checkbox_4"
311 value="1" /></td>
312 <th><label for="checkbox_4">th label</label></th>
313 <td class="value">td.value</td>
314 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
315 width="16" height="16" alt="drop" /></td>
316 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
317 width="16" height="16" alt="drop" /></td>
318 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
319 width="16" height="16" alt="drop" /></td>
320 <td>table.data tbody tr.even td</td>
321 </tr>
322 </tbody>
323 </table>
324 </body>
325 </html>