250 |
kaklik |
1 |
<?php |
|
|
2 |
/* $Id: theme.php,v 1.4.2.1 2006/04/12 11:18:30 cybot_tm Exp $ */ |
|
|
3 |
// vim: expandtab sw=4 ts=4 sts=4: |
|
|
4 |
/** |
|
|
5 |
* theme test |
|
|
6 |
* |
|
|
7 |
* @uses libraries/common.lib.php global fnctions |
|
|
8 |
*/ |
|
|
9 |
|
|
|
10 |
chdir( '..' ); |
|
|
11 |
|
|
|
12 |
/** |
|
|
13 |
* Gets core libraries and defines some variables |
|
|
14 |
*/ |
|
|
15 |
require_once('./libraries/common.lib.php'); |
|
|
16 |
|
|
|
17 |
$lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2]; |
|
|
18 |
|
|
|
19 |
// start output |
|
|
20 |
header('Content-Type: text/html; charset=' . $GLOBALS['charset']); |
|
|
21 |
?> |
|
|
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="../css/phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&js_frame=right" /> |
|
|
35 |
<link rel="stylesheet" type="text/css" media="print" |
|
|
36 |
href="../css/print.css?<?php echo PMA_generate_common_url(); ?>" /> |
|
|
37 |
<script src="../js/functions.js" type="text/javascript" |
|
|
38 |
language="javascript"></script> |
|
|
39 |
</head> |
|
|
40 |
<body> |
|
|
41 |
<?php |
|
|
42 |
|
|
|
43 |
|
|
|
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"; |
|
|
51 |
|
|
|
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' ); |
|
|
59 |
|
|
|
60 |
echo $separator; |
|
|
61 |
printf( $item, |
|
|
62 |
$GLOBALS['cfg']['DefaultTabDatabase'], |
|
|
63 |
'', |
|
|
64 |
'Database', |
|
|
65 |
$GLOBALS['strDatabase'], |
|
|
66 |
's_db.png' ); |
|
|
67 |
|
|
|
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' ); |
|
|
79 |
|
|
|
80 |
echo '<span class="table_comment" id="span_table_comment">' |
|
|
81 |
.'"Table comment"</span>' . "\n"; |
|
|
82 |
|
|
|
83 |
echo '</div>'; |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
/** |
|
|
87 |
* Displays tab links |
|
|
88 |
*/ |
|
|
89 |
$tabs = array(); |
|
|
90 |
|
|
|
91 |
$tabs['databases']['icon'] = '../../../../' . $pmaThemeImage . 's_db.png'; |
|
|
92 |
$tabs['databases']['link'] = 'server_databases.php'; |
|
|
93 |
$tabs['databases']['text'] = $strDatabases; |
|
|
94 |
|
|
|
95 |
$tabs['sql']['icon'] = '../../../../' . $pmaThemeImage . 'b_sql.png'; |
|
|
96 |
$tabs['sql']['link'] = 'server_sql.php'; |
|
|
97 |
$tabs['sql']['text'] = $strSQL; |
|
|
98 |
|
|
|
99 |
$tabs['status']['icon'] = '../../../../' . $pmaThemeImage . 's_status.png'; |
|
|
100 |
$tabs['status']['link'] = 'server_status.php'; |
|
|
101 |
$tabs['status']['text'] = $strStatus; |
|
|
102 |
|
|
|
103 |
$tabs['vars']['icon'] = '../../../../' . $pmaThemeImage . 's_vars.png'; |
|
|
104 |
$tabs['vars']['link'] = 'server_variables.php'; |
|
|
105 |
$tabs['vars']['text'] = $strServerTabVariables; |
|
|
106 |
|
|
|
107 |
$tabs['charset']['icon'] = '../../../../' . $pmaThemeImage . 's_asci.png'; |
|
|
108 |
$tabs['charset']['link'] = 'server_collations.php'; |
|
|
109 |
$tabs['charset']['text'] = $strCharsets; |
|
|
110 |
|
|
|
111 |
$tabs['engine']['icon'] = '../../../../' . $pmaThemeImage . 'b_engine.png'; |
|
|
112 |
$tabs['engine']['link'] = 'server_engines.php'; |
|
|
113 |
$tabs['engine']['text'] = $strEngines; |
|
|
114 |
|
|
|
115 |
$tabs['rights']['icon'] = '../../../../' . $pmaThemeImage . 's_rights.png'; |
|
|
116 |
$tabs['rights']['link'] = 'server_privileges.php'; |
|
|
117 |
$tabs['rights']['text'] = $strPrivileges; |
|
|
118 |
|
|
|
119 |
$tabs['binlog']['icon'] = '../../../../' . $pmaThemeImage . 's_tbl.png'; |
|
|
120 |
$tabs['binlog']['link'] = 'server_binlog.php'; |
|
|
121 |
$tabs['binlog']['text'] = $strBinaryLog; |
|
|
122 |
|
|
|
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'; |
|
|
127 |
|
|
|
128 |
$tabs['export']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; |
|
|
129 |
$tabs['export']['text'] = 'disabled'; |
|
|
130 |
|
|
|
131 |
$tabs['export2']['icon'] = '../../../../' . $pmaThemeImage . 'b_export.png'; |
|
|
132 |
$tabs['export2']['text'] = 'disabled caution'; |
|
|
133 |
$tabs['export2']['class'] = 'caution'; |
|
|
134 |
|
|
|
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'; |
|
|
139 |
|
|
|
140 |
echo PMA_getTabs( $tabs ); |
|
|
141 |
unset( $tabs ); |
|
|
142 |
|
|
|
143 |
if ( @file_exists( $pmaThemeImage . 'logo_right.png') ) { |
|
|
144 |
?> |
|
|
145 |
<img id="pmalogoright" src="../<?php echo $pmaThemeImage; ?>logo_right.png" |
|
|
146 |
alt="phpMyAdmin" /> |
|
|
147 |
<?php |
|
|
148 |
} |
|
|
149 |
?> |
|
|
150 |
<h1> |
|
|
151 |
<?php |
|
|
152 |
echo sprintf( $strWelcome, |
|
|
153 |
'<bdo dir="ltr" xml:lang="en">phpMyAdmin ' . PMA_VERSION . '</bdo>'); |
|
|
154 |
?> |
|
|
155 |
</h1> |
|
|
156 |
|
|
|
157 |
<hr class="clearfloat" /> |
|
|
158 |
|
|
|
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 ); |
|
|
164 |
?> |
|
|
165 |
<noscript><input type="submit" value="Go" style="vertical-align: middle" /></noscript> |
|
|
166 |
</fieldset> |
|
|
167 |
</form> |
|
|
168 |
|
|
|
169 |
<hr /> |
|
|
170 |
|
|
|
171 |
<h1>H1 Header</h1> |
|
|
172 |
<h2>H2 Header</h2> |
|
|
173 |
<h3>H3 Header</h3> |
|
|
174 |
<h4>H4 Header</h4> |
|
|
175 |
|
|
|
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> |
|
|
184 |
|
|
|
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> |
|
|
193 |
|
|
|
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> |
|
|
202 |
|
|
|
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> |
|
|
211 |
|
|
|
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> |