Now all the blocks global config pages are valid XML. Related to MDL-7861

This commit is contained in:
stronk7 2007-01-13 20:14:40 +00:00
parent 73be66c7a8
commit bf63e03ebe
2 changed files with 6 additions and 6 deletions

View File

@ -5,13 +5,13 @@
<input name="block" type="hidden" value="<?php echo intval($_REQUEST['block']); ?>" />
<select name="block_course_list_adminview">
<option value="all" <?php if(isset($CFG->block_course_list_adminview)){
if($CFG->block_course_list_adminview == "all"){ p("selected");}
if($CFG->block_course_list_adminview == "all"){ echo "selected=\"selected\"";}
}else{
p("selected");
echo "selected=\"selected\"";
}?>
><?php p(get_string('allcourses', 'block_course_list')) ?></option>
<option value="own" <?php if(isset($CFG->block_course_list_adminview)){
if($CFG->block_course_list_adminview == "own"){ p("selected"); }
if($CFG->block_course_list_adminview == "own"){ echo "selected=\"selected\""; }
}?>
><?php p(get_string('owncourses', 'block_course_list')) ?></option>
</select>

View File

@ -62,14 +62,14 @@
<tr>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string('savechanges') ?>"></td>
<input type="submit" value="<?php print_string('savechanges') ?>" /></td>
</tr>
<tr>
<td colspan="3" align="center"><a href=" <?php echo $CFG->wwwroot; ?>/blocks/rss_client/block_rss_client_action.php?id=<?php
if (!isset($id)) {
$id = '';
}
echo $id; ?>"><?php print_string('feedsaddedit', 'block_rss_client')?></a></center><br /><br />
echo $id; ?>"><?php print_string('feedsaddedit', 'block_rss_client')?></a><br /><br />
</td>
</tr>
</table>
</table>