MDL-19817 Upgraded calls to choose_from_menu

This commit is contained in:
nicolasconnault
2009-08-18 00:13:15 +00:00
parent e6f33a04aa
commit 30721aaf6b
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$pagelist=wiki_admin_checklinks_list();
choose_from_menu($pagelist, "pagetocheck", $wikipage, "");
echo $OUTPUT->select(html_select::make($pagelist, "pagetocheck", $wikipage, false));
?>
<input type="submit" name="proceed" value="<?php print get_string("checklinks","wiki"); ?>" />
</fieldset>
@@ -41,7 +41,7 @@ $ewiki_t["c"]["EWIKIDUMPCSS"] = '
function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
global $userid, $groupid, $cm, $wikipage, $wiki, $course, $CFG;
global $userid, $groupid, $cm, $wikipage, $wiki, $course, $CFG, $OUTPUT;
#-- return legacy page
$cont = true;
$wikiexport = optional_param('wikiexport', '');
@@ -109,7 +109,9 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
' <TD align="right">'.get_string("exportformats","wiki").":</TD>\n".
" <TD>\n";
if($wiki->htmlmode!=2) {
$ret.= choose_from_menu($exportformats, "exportformats", $exportformatval, "", "", "", true)."\n";
$select = html_select::make($exportformats, "exportformats", $exportformatval, false);
$select->nothingvalue = '';
$ret.= $OUTPUT->select($select)."\n";
} else {
$ret.= '<INPUT type="hidden" name="exportformats" value="1" />'.
get_string("html","wiki");
@@ -133,7 +135,9 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
if(count($exportdestinations)==1) {
$ret.='<INPUT type="hidden" name="exportdestinations" value="0" />'.$exportdestinations[0]."\n";
} else {
$ret.=choose_from_menu($exportdestinations, "exportdestinations", $exportdestinationsval, "", "", "", true)."\n";
$select = html_select::make($exportdestinations, "exportdestinations", $exportdestinationsval, false);
$select->nothingvalue = '';
$ret.= $OUTPUT->select($select)."\n";
}
$ret.=" </TD>\n".
" </TR>\n".
+1 -1
View File
@@ -47,7 +47,7 @@ if($err->remark) {
$operations=array( "lastonly" => get_string("revertlastonly","wiki"),
"allsince" => get_string("revertallsince","wiki"),
"the" => get_string("revertthe","wiki"));
choose_from_menu($operations, "howtooperate", $form->howtooperate, "");
echo $OUTPUT->select(html_select::make($operations, "howtooperate", $form->howtooperate, false));
?>
</td>
</tr>