| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | * @access public |
| 64 | 64 | */ |
| 65 | 65 | public static function _renderDbQuery( $args ) { |
| 66 | 66 | $query = $args[1]; |
| 67 | - ?> | |
| 67 | + ?> | |
| 68 | 68 | <div id='visualizer-db-query' style="display: none"> |
| 69 | 69 | <div class="visualizer-db-query-form"> |
| 70 | 70 | <div> |
| 71 | 71 | <form id='db-query-form'> |
| @@ -85,9 +85,9 @@ | ||
| 85 | 85 | </div> |
| 86 | 86 | <div class='db-wizard-results'></div> |
| 87 | 87 | |
| 88 | 88 | </div> |
| 89 | - <?php | |
| 89 | + <?php | |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * Show the DB wizard's results table. |
| @@ -97,33 +97,33 @@ | ||
| 97 | 97 | public static function _renderDbWizardResults( $args ) { |
| 98 | 98 | $headers = $args[1]; |
| 99 | 99 | $results = $args[2]; |
| 100 | 100 | ob_start(); |
| 101 | - ?> | |
| 101 | + ?> | |
| 102 | 102 | <table cellspacing="0" width="100%" id="results"> |
| 103 | 103 | <thead> |
| 104 | 104 | <tr> |
| 105 | - <?php | |
| 106 | - foreach ( $headers as $header ) { | |
| 107 | - echo '<th>' . $header['label'] . '</th>'; | |
| 108 | - } | |
| 109 | - ?> | |
| 105 | + <?php | |
| 106 | + foreach ( $headers as $header ) { | |
| 107 | + echo '<th>' . $header['label'] . '</th>'; | |
| 108 | + } | |
| 109 | + ?> | |
| 110 | 110 | </tr> |
| 111 | 111 | </thead> |
| 112 | 112 | <tfoot> |
| 113 | 113 | </tfoot> |
| 114 | 114 | <tbody> |
| 115 | - <?php | |
| 116 | - foreach ( $results as $result ) { | |
| 117 | - echo '<tr>'; | |
| 118 | - foreach ( $result as $r ) { | |
| 119 | - echo '<td>' . $r . '</td>'; | |
| 115 | + <?php | |
| 116 | + foreach ( $results as $result ) { | |
| 117 | + echo '<tr>'; | |
| 118 | + foreach ( $result as $r ) { | |
| 119 | + echo '<td>' . $r . '</td>'; | |
| 120 | + } | |
| 121 | + echo '</tr>'; | |
| 120 | 122 | } |
| 121 | - echo '</tr>'; | |
| 122 | - } | |
| 123 | - ?> | |
| 123 | + ?> | |
| 124 | 124 | </tbody> |
| 125 | 125 | </table> |
| 126 | - <?php | |
| 126 | + <?php | |
| 127 | 127 | return ob_get_clean(); |
| 128 | 128 | } |
| 129 | 129 | } |