Fix for the Open in New Window in Patient/Client->Patients search gui, take 2.
[openemr.git] / phpmyadmin / test / theme.php
blob2a1ea53fc950e894711f9c847927f0d45f059318
1 <?php
2 /* vim: 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']->getMtime(); ?>" />
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_getTabs($tabs);
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 <h1 class="notice">Notice header!</h1>
177 <div class="notice">
178 notice message box content!
179 </div>
180 <div class="notice">
181 <h1>Notice message box header!</h1>
182 notice message box content!
183 </div>
185 <h1 class="warning">Warning header!</h1>
186 <div class="warning">
187 warning message box content!
188 </div>
189 <div class="warning">
190 <h1>Warning message box header!</h1>
191 warning message box content!
192 </div>
194 <h1 class="error">Error header!</h1>
195 <div class="error">
196 error message box content!
197 </div>
198 <div class="error">
199 <h1>Error message box header!</h1>
200 error message box content!
201 </div>
203 <fieldset class="confirmation">
204 <legend>Confirmation fieldset</legend>
205 <tt>QUERY TO EXECUTE;</tt>
206 </fieldset>
207 <fieldset class="tblFooters">
208 <input type="submit" name="yes" value="YES" />
209 <input type="submit" name="no" value="NO" />
210 </fieldset>
212 <table class="data">
213 <caption>table.data caption</caption>
214 <thead>
215 <tr><th></th>
216 <th>table.data thead tr th</th>
217 <th>table.data thead tr th</th>
218 <th colspan="3">action</th>
219 <th>table.data thead tr th</th>
220 </tr>
221 </thead>
222 <tfoot>
223 <tr><th></th>
224 <th>table.data tfoot tr th</th>
225 <th class="value">table.data tfoot tr th</th>
226 <th colspan="3">action</th>
227 <th>table.data tfoot tr th</th>
228 </tr>
229 </tfoot>
230 <tbody>
231 <tr class="odd">
232 <td><input type="checkbox" id="checkbox_1" name="checkbox_1"
233 value="1" /></td>
234 <th><label for="checkbox_1">th label</label</th>
235 <td class="value">td.value</td>
236 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
237 width="16" height="16" alt="drop" /></td>
238 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
239 width="16" height="16" alt="drop" /></td>
240 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
241 width="16" height="16" alt="drop" /></td>
242 <td>table.data tbody tr.odd td</td>
243 </tr>
244 <tr class="even">
245 <td><input type="checkbox" id="checkbox_2" name="checkbox_2"
246 value="1" /></td>
247 <th><label for="checkbox_2">th label</label</th>
248 <td class="value">td.value</td>
249 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
250 width="16" height="16" alt="drop" /></td>
251 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
252 width="16" height="16" alt="drop" /></td>
253 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
254 width="16" height="16" alt="drop" /></td>
255 <td>table.data tbody tr.even td</td>
256 </tr>
257 <tr class="odd">
258 <td><input type="checkbox" id="checkbox_3" name="checkbox_3"
259 value="1" /></td>
260 <th><label for="checkbox_3">th label</label</th>
261 <td class="value">td.value</td>
262 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
263 width="16" height="16" alt="drop" /></td>
264 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
265 width="16" height="16" alt="drop" /></td>
266 <td><img class="icon" src="../<?php echo $GLOBALS['cfg']['ThemePath']; ?>/original/img/bd_drop.png"
267 width="16" height="16" alt="drop" /></td>
268 <td>table.data tbody tr.odd td</td>
269 </tr>
270 <tr class="even">
271 <td><input type="checkbox" id="checkbox_4" name="checkbox_4"
272 value="1" /></td>
273 <th><label for="checkbox_4">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.even td</td>
282 </tr>
283 </tbody>
284 </table>
285 </body>
286 </html>