Merge #15685 - Fix #15682 - Timestamp method not taking current time
[phpmyadmin.git] / transformation_overview.php
blob761e5db8111130ed65a29ffe06c533b38415d329
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Lists available transformation plugins
6 * @package PhpMyAdmin
7 */
9 use PhpMyAdmin\Response;
10 use PhpMyAdmin\Transformations;
12 /**
13 * Gets some core libraries and displays a top message if required
15 require_once './libraries/common.inc.php';
17 $response = Response::getInstance();
18 $header = $response->getHeader();
19 $header->disableMenuAndConsole();
21 $types = Transformations::getAvailableMIMEtypes();
24 <h2><?php echo __('Available MIME types'); ?></h2>
25 <?php
26 foreach ($types['mimetype'] as $key => $mimetype) {
28 if (isset($types['empty_mimetype'][$mimetype])) {
29 echo '<i>' , htmlspecialchars($mimetype) , '</i><br />';
30 } else {
31 echo htmlspecialchars($mimetype) , '<br />';
35 $transformation_types = array(
36 'transformation', 'input_transformation'
38 $label = array(
39 'transformation' => __('Available browser display transformations'),
40 'input_transformation' => __('Available input transformations')
42 $th = array(
43 'transformation' => __('Browser display transformation'),
44 'input_transformation' => __('Input transformation')
47 <br />
48 <?php foreach ($transformation_types as $ttype) { ?>
49 <a name="<?php echo $ttype; ?>"></a>
50 <h2><?php echo $label[$ttype] ?></h2>
51 <table width="90%">
52 <thead>
53 <tr>
54 <th><?php echo $th[$ttype] ?></th>
55 <th><?php echo _pgettext('for MIME transformation', 'Description'); ?></th>
56 </tr>
57 </thead>
58 <tbody>
59 <?php
60 foreach ($types[$ttype] as $key => $transform) {
61 $desc = Transformations::getDescription($types[$ttype . '_file'][$key]);
63 <tr>
64 <td><?php echo htmlspecialchars($transform); ?></td>
65 <td><?php echo htmlspecialchars($desc); ?></td>
66 </tr>
67 <?php
70 </tbody>
71 </table>
72 <?php
73 } // End of foreach ($transformation_types)