Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php |
— | — | @@ -996,8 +996,7 @@ |
997 | 997 | } |
998 | 998 | } |
999 | 999 | |
1000 | | - $result[0] = "\n<p>" . wfMsg( 'smw_ask_format_as' ) . "\n" . |
1001 | | - '<select id="formatSelector" name="p[format]" onChange="JavaScript:updateOtherOptions(\'' . $url . '\')">' . "\n" . |
| 1000 | + $result[0] = "\n" . '<select id="formatSelector" name="p[format]" onChange="JavaScript:updateOtherOptions(\'' . $url . '\')">' . "\n" . |
1002 | 1001 | '<option value="' . $default_format . '">' . $printer->getName() . |
1003 | 1002 | ' (' . wfMsg( 'smw_ask_defaultformat' ) . ')</option>' . "\n"; |
1004 | 1003 | |
Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php |
— | — | @@ -64,11 +64,14 @@ |
65 | 65 | '<input type="hidden" name="title" value="' . $spectitle->getPrefixedText() . '"/>'; |
66 | 66 | $result .= '<br>'; |
67 | 67 | $result .= wfMsg( 'smw_qc_query_help' ); |
68 | | - // Main query and printouts. |
69 | | - $result .= '<p><strong>' . wfMsg( 'smw_ask_queryhead' ) . "</strong></p>\n"; |
70 | | - $result .= '<p>' . $this->getQueryFormBox() . '</p>'; |
71 | | - //format select |
72 | | - $result .= $formatBox[0]; |
| 68 | + // Main query and format options |
| 69 | + $result .= '<table style="width: 100%; ">'. |
| 70 | + '<tr><th>' . wfMsg( 'smw_ask_queryhead' ) . "</th>\n<th>" . wfMsg( 'smw_ask_format_as' ) . "</th></tr>". |
| 71 | + '<tr>'. |
| 72 | + '<td style="padding-right: 7px;">'.$this->getQueryFormBox()."</td>\n" . |
| 73 | + '<td style="padding-right: 7px; text-align:center;">'. $formatBox[0] .'</td>'. |
| 74 | + '</tr>'. |
| 75 | + "</table>\n"; |
73 | 76 | // sorting and prinouts |
74 | 77 | $result .= $this->getPoSortFormBox(); |
75 | 78 | // show|hide additional options and querying help |
— | — | @@ -284,7 +287,7 @@ |
285 | 288 | }); |
286 | 289 | }); |
287 | 290 | function smw_makeDialog(prop_id){ |
288 | | - \$j('#sort-label')[0].value=\$j('#property'+prop_id)[0].value; |
| 291 | + \$j('#tab-property')[0].value=\$j('#property'+prop_id)[0].value; |
289 | 292 | \$j('#dialog').dialog('open'); |
290 | 293 | } |
291 | 294 | |