Bug fix: Check All and Clear All function in Patient Report. Reported by arnabnaha.
[openemr.git] / phpmyadmin / server_engines.php
blob02ee42713d0495818db53ba8923e93ed4efa423d
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * display list of server enignes and additonal information about them
6 * @version $Id$
7 * @todo falcon storage enginge is not listed under dev.mysql.com/doc/refman but dev.mysql.com/doc/falcon/
8 */
10 /**
13 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
14 define('PMA_NO_VARIABLES_IMPORT', true);
17 /**
18 * requirements
20 require_once './libraries/common.inc.php';
22 /**
23 * Does the common work
25 require './libraries/server_common.inc.php';
26 require './libraries/StorageEngine.class.php';
29 /**
30 * Displays the links
32 require './libraries/server_links.inc.php';
34 /**
35 * Did the user request information about a certain storage engine?
37 if (empty($_REQUEST['engine'])
38 || ! PMA_StorageEngine::isValid($_REQUEST['engine'])) {
40 /**
41 * Displays the sub-page heading
43 echo '<h2>' . "\n"
44 . ($GLOBALS['cfg']['MainPageIconic']
45 ? '<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
46 .' width="16" height="16" alt="" />' : '')
47 . "\n" . $strStorageEngines . "\n"
48 . '</h2>' . "\n";
51 /**
52 * Displays the table header
54 echo '<table>' . "\n"
55 . '<thead>' . "\n"
56 . '<tr><th>' . $strStorageEngine . '</th>' . "\n";
57 if (PMA_MYSQL_INT_VERSION >= 40102) {
58 echo ' <th>' . $strDescription . '</th>' . "\n";
60 echo '</tr>' . "\n"
61 . '</thead>' . "\n"
62 . '<tbody>' . "\n";
65 /**
66 * Listing the storage engines
68 $odd_row = true;
69 foreach (PMA_StorageEngine::getStorageEngines() as $engine => $details) {
70 echo '<tr class="'
71 . ($odd_row ? 'odd' : 'even')
72 . ($details['Support'] == 'NO' || $details['Support'] == 'DISABLED'
73 ? ' disabled'
74 : '')
75 . '">' . "\n"
76 . ' <td><a href="./server_engines.php'
77 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
78 . ' ' . htmlspecialchars($details['Engine']) . "\n"
79 . ' </a>' . "\n"
80 . ' </td>' . "\n";
81 if (PMA_MYSQL_INT_VERSION >= 40102) {
82 echo ' <td>' . htmlspecialchars($details['Comment']) . "\n"
83 . ' </td>' . "\n";
85 echo '</tr>' . "\n";
86 $odd_row = !$odd_row;
88 unset($odd_row, $engine, $details);
89 echo '</tbody>' . "\n"
90 . '</table>' . "\n";
92 } else {
94 /**
95 * Displays details about a given Storage Engine
98 $engine_plugin = PMA_StorageEngine::getEngine($_REQUEST['engine']);
99 echo '<h2>' . "\n"
100 . ($GLOBALS['cfg']['MainPageIconic']
101 ? '<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
102 .' width="16" height="16" alt="" />' : '')
103 . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
104 . ' ' . PMA_showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
105 . '</h2>' . "\n\n";
106 if (PMA_MYSQL_INT_VERSION >= 40102) {
107 echo '<p>' . "\n"
108 . ' <em>' . "\n"
109 . ' ' . htmlspecialchars($engine_plugin->getComment()) . "\n"
110 . ' </em>' . "\n"
111 . '</p>' . "\n\n";
113 $infoPages = $engine_plugin->getInfoPages();
114 if (!empty($infoPages) && is_array($infoPages)) {
115 echo '<p>' . "\n"
116 . ' <strong>[</strong>' . "\n";
117 if (empty($_REQUEST['page'])) {
118 echo ' <strong>' . $strServerTabVariables . '</strong>' . "\n";
119 } else {
120 echo ' <a href="./server_engines.php'
121 . PMA_generate_common_url(array('engine' => $_REQUEST['engine'])) . '">'
122 . $strServerTabVariables . '</a>' . "\n";
124 foreach ($infoPages as $current => $label) {
125 echo ' <strong>|</strong>' . "\n";
126 if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current) {
127 echo ' <strong>' . $label . '</strong>' . "\n";
128 } else {
129 echo ' <a href="./server_engines.php'
130 . PMA_generate_common_url(
131 array('engine' => $_REQUEST['engine'], 'page' => $current))
132 . '">' . htmlspecialchars($label) . '</a>' . "\n";
135 unset($current, $label);
136 echo ' <strong>]</strong>' . "\n"
137 . '</p>' . "\n\n";
139 unset($infoPages, $page_output);
140 if (!empty($_REQUEST['page'])) {
141 $page_output = $engine_plugin->getPage($_REQUEST['page']);
143 if (!empty($page_output)) {
144 echo $page_output;
145 } else {
146 echo '<p> ' . $engine_plugin->getSupportInformationMessage() . "\n"
147 . '</p>' . "\n"
148 . $engine_plugin->getHtmlVariables();
153 * Sends the footer
155 require_once './libraries/footer.inc.php';