Translated using Weblate (Danish)
[phpmyadmin.git] / transformation_overview.php
blob32da1979aa1439bd6dba5ce8dbb6974261cf963c
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Lists available transformation plugins
6 * @package PhpMyAdmin
7 */
8 use PMA\libraries\Response;
10 /**
11 * Gets some core libraries and displays a top message if required
13 require_once './libraries/common.inc.php';
14 require_once './libraries/transformations.lib.php';
16 $response = Response::getInstance();
17 $header = $response->getHeader();
18 $header->disableMenuAndConsole();
20 $types = PMA_getAvailableMIMEtypes();
23 <h2><?php echo __('Available MIME types'); ?></h2>
24 <?php
25 foreach ($types['mimetype'] as $key => $mimetype) {
27 if (isset($types['empty_mimetype'][$mimetype])) {
28 echo '<i>' , htmlspecialchars($mimetype) , '</i><br />';
29 } else {
30 echo htmlspecialchars($mimetype) , '<br />';
34 $transformation_types = array(
35 'transformation', 'input_transformation'
37 $label = array(
38 'transformation' => __('Available browser display transformations'),
39 'input_transformation' => __('Available input transformations')
41 $th = array(
42 'transformation' => __('Browser display transformation'),
43 'input_transformation' => __('Input transformation')
46 <br />
47 <?php foreach ($transformation_types as $ttype) { ?>
48 <a name="<?php echo $ttype; ?>"></a>
49 <h2><?php echo $label[$ttype] ?></h2>
50 <table width="90%">
51 <thead>
52 <tr>
53 <th><?php echo $th[$ttype] ?></th>
54 <th><?php echo _pgettext('for MIME transformation', 'Description'); ?></th>
55 </tr>
56 </thead>
57 <tbody>
58 <?php
59 foreach ($types[$ttype] as $key => $transform) {
60 $desc = PMA_getTransformationDescription($types[$ttype . '_file'][$key]);
62 <tr>
63 <td><?php echo htmlspecialchars($transform); ?></td>
64 <td><?php echo htmlspecialchars($desc); ?></td>
65 </tr>
66 <?php
69 </tbody>
70 </table>
71 <?php
72 } // End of foreach ($transformation_types)