Refactored ConfigFile class so that it is no longer a singleton
[phpmyadmin.git] / transformation_overview.php
blob807c818be672924b24428ef36c57786766408c80
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Lists available transformation plugins
6 * @package PhpMyAdmin
7 */
9 /**
10 * Gets some core libraries and displays a top message if required
12 require_once './libraries/common.inc.php';
13 require_once './libraries/transformations.lib.php';
15 $response = PMA_Response::getInstance();
16 $header = $response->getHeader();
17 $header->disableMenu();
19 $types = PMA_getAvailableMIMEtypes();
22 <h2><?php echo __('Available MIME types'); ?></h2>
23 <?php
24 foreach ($types['mimetype'] as $key => $mimetype) {
26 if (isset($types['empty_mimetype'][$mimetype])) {
27 echo '<i>' . $mimetype . '</i><br />';
28 } else {
29 echo $mimetype . '<br />';
34 <br />
35 <h2><?php echo __('Available transformations'); ?></h2>
36 <table width="90%">
37 <thead>
38 <tr>
39 <th><?php echo __('Browser transformation'); ?></th>
40 <th><?php echo _pgettext('for MIME transformation', 'Description'); ?></th>
41 </tr>
42 </thead>
43 <tbody>
44 <?php
45 $odd_row = true;
46 foreach ($types['transformation'] as $key => $transform) {
47 $desc = PMA_getTransformationDescription($types['transformation_file'][$key]);
49 <tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
50 <td><?php echo $transform; ?></td>
51 <td><?php echo $desc; ?></td>
52 </tr>
53 <?php
54 $odd_row = !$odd_row;
57 </tbody>
58 </table>