2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Lists available transformation plugins
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->disableMenuAndConsole();
19 $types = PMA_getAvailableMIMEtypes();
22 <h2
><?php
echo __('Available MIME types'); ?
></h2
>
24 foreach ($types['mimetype'] as $key => $mimetype) {
26 if (isset($types['empty_mimetype'][$mimetype])) {
27 echo '<i>' . $mimetype . '</i><br />';
29 echo $mimetype . '<br />';
33 $transformation_types = array(
34 'transformation', 'input_transformation'
37 'transformation' => __('Available browser display transformations'),
38 'input_transformation' => __('Available input transformations')
41 'transformation' => __('Browser display transformation'),
42 'input_transformation' => __('Input transformation')
46 <?php
foreach ($transformation_types as $ttype) { ?
>
47 <a name
="<?php echo $ttype; ?>"></a
>
48 <h2
><?php
echo $label[$ttype] ?
></h2
>
52 <th
><?php
echo $th[$ttype] ?
></th
>
53 <th
><?php
echo _pgettext('for MIME transformation', 'Description'); ?
></th
>
59 foreach ($types[$ttype] as $key => $transform) {
60 $desc = PMA_getTransformationDescription($types[$ttype . '_file'][$key]);
62 <tr
class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
63 <td
><?php
echo $transform; ?
></td
>
64 <td
><?php
echo $desc; ?
></td
>
73 } // End of foreach ($transformation_types)