transformation_overview.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. *
  5. * @package PhpMyAdmin
  6. */
  7. /**
  8. * Gets some core libraries and displays a top message if required
  9. */
  10. require_once './libraries/common.inc.php';
  11. require_once './libraries/transformations.lib.php';
  12. $response = PMA_Response::getInstance();
  13. $header = $response->getHeader();
  14. $header->disableMenu();
  15. $types = PMA_getAvailableMIMEtypes();
  16. ?>
  17. <h2><?php echo __('Available MIME types'); ?></h2>
  18. <?php
  19. foreach ($types['mimetype'] as $key => $mimetype) {
  20. if (isset($types['empty_mimetype'][$mimetype])) {
  21. echo '<i>' . $mimetype . '</i><br />';
  22. } else {
  23. echo $mimetype . '<br />';
  24. }
  25. }
  26. ?>
  27. <br />
  28. <h2><?php echo __('Available transformations'); ?></h2>
  29. <table width="90%">
  30. <thead>
  31. <tr>
  32. <th><?php echo __('Browser transformation'); ?></th>
  33. <th><?php echo _pgettext('for MIME transformation', 'Description'); ?></th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <?php
  38. $odd_row = true;
  39. foreach ($types['transformation'] as $key => $transform) {
  40. $desc = PMA_getTransformationDescription($types['transformation_file'][$key]);
  41. ?>
  42. <tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
  43. <td><?php echo $transform; ?></td>
  44. <td><?php echo $desc; ?></td>
  45. </tr>
  46. <?php
  47. $odd_row = !$odd_row;
  48. }
  49. ?>
  50. </tbody>
  51. </table>