Czech translation update
[phpmyadmin-themes.git] / transformation_overview.php
blob81211d564a58f96741339b4eee3544f4e54d0b71
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @package phpMyAdmin
6 */
8 /**
9 * Don't display the page heading
10 * @ignore
12 define('PMA_DISPLAY_HEADING', 0);
14 /**
15 * Gets some core libraries and displays a top message if required
17 require_once './libraries/common.inc.php';
18 require_once './libraries/header.inc.php';
19 require_once './libraries/transformations.lib.php';
21 $types = PMA_getAvailableMIMEtypes();
24 <h2><?php echo __('Available MIME types'); ?></h2>
25 <?php
26 foreach ($types['mimetype'] as $key => $mimetype) {
28 if (isset($types['empty_mimetype'][$mimetype])) {
29 echo '<i>' . $mimetype . '</i><br />';
30 } else {
31 echo $mimetype . '<br />';
36 <br />
37 <i>(<?php echo __('MIME types printed in italics do not have a separate transformation function'); ?>)</i>
39 <br />
40 <br />
41 <br />
42 <h2><?php echo __('Available transformations'); ?></h2>
43 <table border="0" width="90%">
44 <thead>
45 <tr>
46 <th><?php echo __('Browser transformation'); ?></th>
47 <th><?php echo _pgettext('for MIME transformation', 'Description'); ?></th>
48 </tr>
49 </thead>
50 <tbody>
51 <?php
52 $odd_row = true;
53 foreach ($types['transformation'] as $key => $transform) {
54 $func = strtolower(str_ireplace('.inc.php', '', $types['transformation_file'][$key]));
55 require './libraries/transformations/' . $types['transformation_file'][$key];
56 $funcname = 'PMA_transformation_' . $func . '_info';
57 $desc = '<i>' . sprintf(__('No description is available for this transformation.<br />Please ask the author what %s does.'), 'PMA_transformation_' . $func . '()') . '</i>';
58 if (function_exists($funcname)) {
59 $desc_arr = $funcname();
60 if (isset($desc_arr['info'])) {
61 $desc = $desc_arr['info'];
65 <tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
66 <td><?php echo $transform; ?></td>
67 <td><?php echo $desc; ?></td>
68 </tr>
69 <?php
70 $odd_row = !$odd_row;
73 </tbody>
74 </table>
76 <?php
77 /**
78 * Displays the footer
80 require './libraries/footer.inc.php';