mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Various cleanups for XHTML and so on
This commit is contained in:
parent
bcd4d06b2f
commit
210eddc7df
7 changed files with 92 additions and 59 deletions
|
@ -1,7 +1,7 @@
|
|||
<table cellspacing="0" cellpadding="5" border="0" align="center">
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><p>enrol_flatfilelocation:</p></td>
|
||||
<td align="right">enrol_flatfilelocation:</td>
|
||||
<td>
|
||||
<input type="text" size="20" name="enrol_flatfilelocation" value="<?php echo $frm->enrol_flatfilelocation ?>" />
|
||||
</td>
|
||||
|
@ -11,7 +11,7 @@
|
|||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><p>enrol_mailstudents:</p></td>
|
||||
<td align="right">enrol_mailstudents:</td>
|
||||
<td>
|
||||
<input type="checkbox" value="1" name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
|
||||
</td>
|
||||
|
@ -21,7 +21,7 @@
|
|||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><p>enrol_mailteachers:</p></td>
|
||||
<td align="right">enrol_mailteachers:</td>
|
||||
<td>
|
||||
<input type="checkbox" value="1" name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
|
||||
</td>
|
||||
|
@ -31,7 +31,7 @@
|
|||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><p>enrol_mailadmins:</p></td>
|
||||
<td align="right">enrol_mailadmins:</td>
|
||||
<td>
|
||||
<input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
|
||||
</td>
|
||||
|
@ -41,7 +41,7 @@
|
|||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><p>enrol_allowinternal:</p></td>
|
||||
<td align="right">enrol_allowinternal:</td>
|
||||
<td>
|
||||
<input type="checkbox" value="1" name="enrol_allowinternal" <?php if ($frm->enrol_allowinternal) echo "checked=\"true\"" ?> />
|
||||
</td>
|
||||
|
|
|
@ -40,6 +40,13 @@ function check_entry($form, $course) {
|
|||
/// Override the base config_form() function
|
||||
function config_form($frm) {
|
||||
global $CFG;
|
||||
|
||||
$vars = array('enrol_flatfilelocation', 'enrol_mailstudents', 'enrol_mailteachers', 'enrol_mailadmins');
|
||||
foreach ($vars as $var) {
|
||||
if (!isset($frm->$var)) {
|
||||
$frm->$var = '';
|
||||
}
|
||||
}
|
||||
include ("$CFG->dirroot/enrol/flatfile/config.html");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue