2 /* vim: set expandtab sw=4 ts=4 sts=4: */
6 * @package PhpMyAdmin-test
9 define('PMA_TEST_THEME', true);
14 * Gets core libraries and defines some variables
16 require_once './libraries/common.inc.php';
17 $GLOBALS['pmaThemeImage'] = '../' . $GLOBALS['pmaThemeImage'];
19 $lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][1];
22 header('Content-Type: text/html; charset=utf-8');
25 <html lang
="<?php echo $lang_iso_code; ?>" dir
="<?php echo $GLOBALS['text_dir']; ?>">
27 <title
>phpMyAdmin
<?php
echo PMA_VERSION
; ?
> -
28 <?php
echo htmlspecialchars($_SERVER['HTTP_HOST']); ?
> - Theme Test
</title
>
29 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8" />
30 <link rel
="stylesheet" type
="text/css"
31 href
="../phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&nocache=<?php echo $GLOBALS['PMA_Config']->getThemeUniqueValue(); ?>" />
32 <link rel
="stylesheet" type
="text/css" media
="print"
33 href
="../print.css" />
34 <script src
="../js/jquery/jquery-1.8.3.js" type
="text/javascript"></script
>
35 <script src
="../js/messages.php" type
="text/javascript"></script
>
36 <script type
="text/javascript">
37 var PMA_TEST_THEME
= true;
39 <script src
="../js/get_image.js.php" type
="text/javascript"></script
>
40 <script src
="../js/functions.js" type
="text/javascript"></script
>
46 $separator = '<span class=\'separator item\'> »</span>' . "\n";
47 $item = '<a href="%1$s?%2$s" class="item">'
48 .' <img class="icon %5$s" src="../themes/dot.gif"'
49 .' width="16" height="16" alt="" /> ' . "\n"
50 .'%4$s: %3$s</a>' . "\n";
52 echo '<div id="serverinfo">' . "\n";
55 $GLOBALS['cfg']['DefaultTabServer'],
56 PMA_generate_common_url(),
65 $GLOBALS['cfg']['DefaultTabDatabase'],
75 $GLOBALS['cfg']['DefaultTabTable'],
78 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
81 (isset($GLOBALS['tbl_is_view']) && $GLOBALS['tbl_is_view']
86 echo '<span class="table_comment" id="span_table_comment">'
87 .'"Table comment"</span>' . "\n";
97 $tabs['databases']['icon'] = 's_db.png';
98 $tabs['databases']['link'] = 'server_databases.php';
99 $tabs['databases']['text'] = __('Databases');
101 $tabs['sql']['icon'] = 'b_sql.png';
102 $tabs['sql']['link'] = 'server_sql.php';
103 $tabs['sql']['text'] = __('SQL');
105 $tabs['status']['icon'] = 's_status.png';
106 $tabs['status']['link'] = 'server_status.php';
107 $tabs['status']['text'] = __('Status');
109 $tabs['vars']['icon'] = 's_vars.png';
110 $tabs['vars']['link'] = 'server_variables.php';
111 $tabs['vars']['text'] = __('Variables');
113 $tabs['charset']['icon'] = 's_asci.png';
114 $tabs['charset']['link'] = 'server_collations.php';
115 $tabs['charset']['text'] = __('Charsets');
117 $tabs['engine']['icon'] = 'b_engine.png';
118 $tabs['engine']['link'] = 'server_engines.php';
119 $tabs['engine']['text'] = __('Engines');
121 $tabs['rights']['icon'] = 's_rights.png';
122 $tabs['rights']['link'] = 'server_privileges.php';
123 $tabs['rights']['text'] = __('Privileges');
125 $tabs['binlog']['icon'] = 's_tbl.png';
126 $tabs['binlog']['link'] = 'server_binlog.php';
127 $tabs['binlog']['text'] = __('Binary log');
129 $tabs['export']['icon'] = 'b_export.png';
130 $tabs['export']['text'] = 'disabled';
132 $tabs['export2']['icon'] = 'b_export.png';
133 $tabs['export2']['text'] = 'disabled caution';
134 $tabs['export2']['class'] = 'caution';
136 $tabs['import']['icon'] = 'b_import.png';
137 $tabs['import']['link'] = 'server_import.php';
138 $tabs['import']['text'] = 'active';
139 $tabs['import']['class'] = 'active';
141 echo PMA_Util
::getHtmlTabs($tabs, array(), 'topmenu');
144 if (@file_exists
($pmaThemeImage . 'logo_right.png')) {
146 <img id
="pmalogoright" src
="../<?php echo $pmaThemeImage; ?>logo_right.png"
155 '<bdo dir="ltr" lang="en">phpMyAdmin ' . PMA_VERSION
. '</bdo>'
160 <hr
class="clearfloat" />
162 <form method
="post" action
="theme.php">
164 <legend
><?php
echo __('Theme'); ?
></legend
>
166 echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(false);
178 <div
class="success">
179 success message box content
!
181 <div
class="success">
182 <h1
>Success message box header
!</h1
>
183 success message box content
!
187 notice message box content
!
190 <h1
>Notice message box header
!</h1
>
191 notice message box content
!
194 error message box content
!
197 <h1
>Error message box header
!</h1
>
198 error message box content
!
201 <fieldset
class="confirmation">
202 <legend
>Confirmation fieldset
</legend
>
203 <code
>QUERY TO EXECUTE
;</code
>
205 <fieldset
class="tblFooters">
206 <input type
="submit" name
="yes" value
="YES" />
207 <input type
="submit" name
="no" value
="NO" />
212 <div
class="success">
213 success message box content
!
216 <span
class="syntax">
217 <span
class="syntax_alpha syntax_alpha_reservedWord">SELECT
</span
>
218 <span
class="syntax_punct">*</span
> <br
/>
219 <span
class="syntax_alpha syntax_alpha_reservedWord">FROM
</span
>
220 <span
class="syntax_quote syntax_quote_backtick">`test`
</span
>
221 <span
class="syntax_white syntax_white_newline"></span
><br
/>
222 <span
class="syntax_alpha syntax_alpha_reservedWord">LIMIT
</span
>
223 <span
class="syntax_digit syntax_digit_integer">0</span
>
224 <span
class="syntax_punct syntax_punct_listsep">,</span
>
225 <span
class="syntax_digit syntax_digit_integer">30</span
>;<br
/>
226 <span
class="syntax_alpha syntax_alpha_reservedWord">SELECT
</span
>
227 <span
class="syntax_punct">*</span
> <br
/>
228 <span
class="syntax_alpha syntax_alpha_reservedWord">FROM
</span
>
229 <span
class="syntax_quote syntax_quote_backtick">`test`
</span
>
230 <span
class="syntax_white syntax_white_newline"></span
><br
/>
231 <span
class="syntax_alpha syntax_alpha_reservedWord">LIMIT
</span
>
232 <span
class="syntax_digit syntax_digit_integer">0</span
>
233 <span
class="syntax_punct syntax_punct_listsep">,</span
>
234 <span
class="syntax_digit syntax_digit_integer">30</span
>;<br
/>
235 <span
class="syntax_alpha syntax_alpha_reservedWord">SELECT
</span
>
236 <span
class="syntax_punct">*</span
> <br
/>
237 <span
class="syntax_alpha syntax_alpha_reservedWord">FROM
</span
>
238 <span
class="syntax_quote syntax_quote_backtick">`test`
</span
>
239 <span
class="syntax_white syntax_white_newline"></span
><br
/>
240 <span
class="syntax_alpha syntax_alpha_reservedWord">LIMIT
</span
>
241 <span
class="syntax_digit syntax_digit_integer">0</span
>
242 <span
class="syntax_punct syntax_punct_listsep">,</span
>
243 <span
class="syntax_digit syntax_digit_integer">30</span
>;<br
/>
244 <span
class="syntax_alpha syntax_alpha_reservedWord">SELECT
</span
>
245 <span
class="syntax_punct">*</span
> <br
/>
246 <span
class="syntax_alpha syntax_alpha_reservedWord">FROM
</span
>
247 <span
class="syntax_quote syntax_quote_backtick">`test`
</span
>
248 <span
class="syntax_white syntax_white_newline"></span
><br
/>
249 <span
class="syntax_alpha syntax_alpha_reservedWord">LIMIT
</span
>
250 <span
class="syntax_digit syntax_digit_integer">0</span
>
251 <span
class="syntax_punct syntax_punct_listsep">,</span
>
252 <span
class="syntax_digit syntax_digit_integer">30</span
>;<br
/>
257 <a href
="tbl_sql.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;token=266edabf70fa6368498d89b4054d01bf#querybox" onclick
="PMA_querywindow.focus('SELECT * FROM `test`'); return false;">Bearbeiten
</a
>
259 <a href
="import.php?db=test;table=test;sql_query=EXPLAIN+SELECT+%2A+FROM+%60test%60;token=266edabf70fa6368498d89b4054d01bf" >SQL erklären
</a
>
261 <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
>
263 <a href
="import.php?db=test;table=test;sql_query=SELECT+%2A+FROM+%60test%60;show_query=1;token=266edabf70fa6368498d89b4054d01bf" >Aktualisieren
</a
>
269 <caption
>table
.data caption
</caption
>
272 <th
>table
.data thead tr th
</th
>
273 <th
>table
.data thead tr th
</th
>
274 <th colspan
="3">action
</th
>
275 <th
>table
.data thead tr th
</th
>
280 <th
>table
.data tfoot tr th
</th
>
281 <th
class="value">table
.data tfoot tr th
</th
>
282 <th colspan
="3">action
</th
>
283 <th
>table
.data tfoot tr th
</th
>
288 <td
><input type
="checkbox" id
="checkbox_1" name
="checkbox_1"
290 <th
><label
for="checkbox_1">th label
</label
></th
>
291 <td
class="value">td
.value
</td
>
292 <td
><img
class="icon ic_bd_drop" src
="../themes/dot.gif" alt
="drop" /></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
>table
.data tbody tr
.odd td
</td
>
298 <td
><input type
="checkbox" id
="checkbox_2" name
="checkbox_2"
300 <th
><label
for="checkbox_2">th label
</label
></th
>
301 <td
class="value">td
.value
</td
>
302 <td
><img
class="icon ic_bd_drop" src
="../themes/dot.gif" alt
="drop" /></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
>table
.data tbody tr
.even td
</td
>
308 <td
><input type
="checkbox" id
="checkbox_3" name
="checkbox_3"
310 <th
><label
for="checkbox_3">th label
</label
></th
>
311 <td
class="value">td
.value
</td
>
312 <td
><img
class="icon ic_bd_drop" src
="../themes/dot.gif" alt
="drop" /></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
>table
.data tbody tr
.odd td
</td
>
318 <td
><input type
="checkbox" id
="checkbox_4" name
="checkbox_4"
320 <th
><label
for="checkbox_4">th label
</label
></th
>
321 <td
class="value">td
.value
</td
>
322 <td
><img
class="icon ic_bd_drop" src
="../themes/dot.gif" alt
="drop" /></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
>table
.data tbody tr
.even td
</td
>