Translated using Weblate (Slovenian)
[phpmyadmin.git] / transformation_overview.php
blob8a3450d2ba3688576ff695b16e8bcb8fbc3a762c
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->disableMenuAndConsole();
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 />';
33 $transformation_types = array(
34 'transformation', 'input_transformation'
36 $label = array(
37 'transformation' => __('Available browser display transformations'),
38 'input_transformation' => __('Available input transformations')
40 $th = array(
41 'transformation' => __('Browser display transformation'),
42 'input_transformation' => __('Input transformation')
45 <br />
46 <?php foreach ($transformation_types as $ttype) { ?>
47 <a name="<?php echo $ttype; ?>"></a>
48 <h2><?php echo $label[$ttype] ?></h2>
49 <table width="90%">
50 <thead>
51 <tr>
52 <th><?php echo $th[$ttype] ?></th>
53 <th><?php echo _pgettext('for MIME transformation', 'Description'); ?></th>
54 </tr>
55 </thead>
56 <tbody>
57 <?php
58 $odd_row = true;
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>
65 </tr>
66 <?php
67 $odd_row = !$odd_row;
70 </tbody>
71 </table>
72 <?php
73 } // End of foreach ($transformation_types)