2 /* vim: set expandtab sw=4 ts=4 sts=4: */
9 * Don't display the page heading
12 define('PMA_DISPLAY_HEADING', 0);
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
>
26 foreach ($types['mimetype'] as $key => $mimetype) {
28 if (isset($types['empty_mimetype'][$mimetype])) {
29 echo '<i>' . $mimetype . '</i><br />';
31 echo $mimetype . '<br />';
37 <i
>(<?php
echo __('MIME types printed in italics do not have a separate transformation function'); ?
>)</i
>
42 <h2
><?php
echo __('Available transformations'); ?
></h2
>
43 <table border
="0" width
="90%">
46 <th
><?php
echo __('Browser transformation'); ?
></th
>
47 <th
><?php
echo _pgettext('for MIME transformation', 'Description'); ?
></th
>
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
>
80 require './libraries/footer.inc.php';