Fixed many xhtml errors

This commit is contained in:
nicolasconnault 2007-04-20 07:54:42 +00:00
parent 109463e480
commit 77a297d274
47 changed files with 143 additions and 140 deletions

View File

@ -63,6 +63,7 @@ admin_externalpage_print_header($adminroot);
// choose an authentication method
echo "<form $CFG->frametarget id=\"authmenu\" method=\"post\" action=\"auth_config.php\">\n";
echo "<div>\n";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\" />\n";
echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\" />\n";
@ -75,7 +76,8 @@ print_simple_box_end();
echo "<hr />\n";
$authplugin->config_form($frm, $err, $user_fields);
print_simple_box_end();
echo '<center><p><input type="submit" value="' . get_string("savechanges") . "\" /></p></center>\n";
echo '<p style="text-align: center"><input type="submit" value="' . get_string("savechanges") . "\" /></p>\n";
echo "</div>\n";
echo "</form>\n";
admin_externalpage_print_footer($adminroot);
@ -146,7 +148,7 @@ function print_auth_lock_options ($auth, $user_fields, $helptext, $retrieveopts,
echo '</td><td>';
echo "<input id=\"lockconfig_{$varname}\" name=\"lockconfig_{$varname}\" type=\"text\" size=\"30\" value=\"{$pluginconfig->$varname}\" />";
echo '<div align="right">';
echo '<div style="text-align: right">';
echo '<label for="menulockconfig_field_updatelocal_'.$field.'">'.get_string('auth_updatelocal', 'auth') . '</label>&nbsp;';
choose_from_menu($updatelocaloptions, "lockconfig_field_updatelocal_{$field}", $pluginconfig->{"field_updatelocal_$field"}, "");
echo '<br />';

View File

@ -59,7 +59,7 @@
print_heading($strblockname);
print_simple_box('<center>'.get_string('configwarning', 'admin').'</center>', 'center', '50%');
print_simple_box(get_string('configwarning', 'admin'), 'center', '50%');
echo '<br />';
echo '<form method="post" action="block.php">';

View File

@ -74,21 +74,21 @@
admin_externalpage_print_header($adminroot);
print_heading( $filtername );
print_simple_box("<center>".get_string("configwarning", "admin")."</center>", "center", "50%");
print_simple_box(get_string("configwarning", "admin"), "center", "50%");
echo "<br />";
print_simple_box_start("center",'');
?>
<form action="filter.php?filter=<?php echo urlencode($param->filter); ?>" method="post">
<div style="text-align: center">
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<?php include "$CFG->dirroot/$param->filter/filterconfig.html"; ?>
<center>
<input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" />
<input type="submit" name="reset" value="<?php echo print_string('resettodefaults'); ?>" />
</center>
</div>
</form>
<?php

View File

@ -112,8 +112,8 @@
<tr valign="top">
<td align="right"><?php print_string('net', 'mnet'); ?>:</td>
<td><input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="radio" name="mode" value="off" <?php echo ("off" == $CFG->mnet_dispatcher_mode)? 'checked="true"' : '' ?> /> <?php print_string('off', 'mnet'); ?> <br />
<input type="radio" name="mode" value="strict" <?php echo ("strict" == $CFG->mnet_dispatcher_mode)? 'checked="true"' : '' ?> /> <?php print_string('on', 'mnet'); ?><br />
<input type="radio" name="mode" value="off" <?php echo ("off" == $CFG->mnet_dispatcher_mode)? 'checked="checked"' : '' ?> /> <?php print_string('off', 'mnet'); ?> <br />
<input type="radio" name="mode" value="strict" <?php echo ("strict" == $CFG->mnet_dispatcher_mode)? 'checked="checked"' : '' ?> /> <?php print_string('on', 'mnet'); ?><br />
<input type="submit" name="submit" value="<?php print_string('savechanges'); ?>" />
</td>
</tr>

View File

@ -102,7 +102,7 @@ if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0){
<tr>
<td align="right" valign="top"><?php print_string('deleted'); ?>:</td>
<td valign="top">
<input type="radio" name="deleted" value="0" checked="true" /> <?php print_string('reenableserver','mnet'); ?><br />
<input type="radio" name="deleted" value="0" checked="checked" /> <?php print_string('reenableserver','mnet'); ?><br />
<input type="radio" name="deleted" value="1" /> <?php print_string('yes'); ?><br />
</td>
</tr>

View File

@ -55,7 +55,7 @@
print_heading($strmodulename);
print_simple_box("<center>".get_string("configwarning", 'admin')."</center>", "center", "60%");
print_simple_box(get_string("configwarning", 'admin'), "center", "60%");
echo "<br />";
print_simple_box_start("center", "");

View File

@ -80,9 +80,9 @@
echo '<form action="allowassign.php" method="post">';
print_table($table);
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/></div>';
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/>';
echo '<input type="hidden" name="dummy" value="1" />'; // this is needed otherwise we do not know a form has been submitted
echo '</form>';
echo '</div></form>';
admin_externalpage_print_footer($adminroot);

View File

@ -78,9 +78,9 @@
echo '<form action="allowoverride.php" method="post">';
print_table($table);
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/></div>';
echo '<div class="buttons"><input type="submit" value="'.get_string('savechanges').'"/>';
echo '<input type="hidden" name="dummy" value="1" />'; // this is needed otherwise we do not know a form has been submitted
echo '</form>';
echo '</div></form>';
admin_externalpage_print_footer($adminroot);

View File

@ -36,7 +36,7 @@
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr>
<td colspan="2">

View File

@ -1,11 +1,11 @@
<table width="90%" border="0" cellspacing="10" cellpadding="5" align="center">
<table width="90%" border="0" cellspacing="10" cellpadding="5" >
<tr>
<?php if ($show_instructions) { ?>
<td width="50%" class="headingblock">
<p align="center"><b><font size="3"><?php print_string("returningtosite") ?></font></b></p>
<p><b><?php print_string("returningtosite") ?></b></p>
</td>
<td width="50%" class="headingblock">
<p align="center"><b><font size="3"><?php print_string("firsttime") ?></font></b></p>
<p><b><?php print_string("firsttime") ?></b></p>
</td>
<?php } ?>
</tr>
@ -16,7 +16,8 @@
<?php helpbutton("cookies", get_string("cookiesenabled"))?><br /><?php formerr($errormsg) ?>
</p>
<form action="index.php" method="post" id="login">
<table border="0" align="center" style="font-size: small">
<div>
<table border="0" style="font-size: small">
<tr>
<td width="100%">
<input type="hidden" name="username" id="username" value="cas" />
@ -25,14 +26,17 @@
</td>
</tr>
</table>
</div>
</form>
<?php if ($CFG->guestloginbutton) { ?>
<hr width="80%" />
<p><?php print_string("someallowguest") ?>:</p>
<form action="index.php" method="post" id="guestlogin">
<div>
<input type="hidden" name="username" value="guest" />
<input type="hidden" name="password" value="guest" />
<input type="submit" value="<?php print_string("loginguest") ?>" />
</div>
</form>
<?php } ?>
@ -43,7 +47,7 @@
<hr width="80%" />
<p><?php print_string("forgotten") ?></p>
<form action="<?php p($changepassword) ?>" method="get" id="changepassword">
<input type="submit" value="<?php p($changebuttonname) ?>" />
<div><input type="submit" value="<?php p($changebuttonname) ?>" /></div>
</form>
<?php } ?>
@ -55,11 +59,9 @@
case "email":
print_string("loginsteps", "", "signup.php");
?>
<div align="center">
<form action="signup.php" method="get" id="signup">
<input type="submit" value="<?php print_string("startsignup") ?>" />
<div><input type="submit" value="<?php print_string("startsignup") ?>" /></div>
</form>
</div>
<?php break;
case "none":
print_string("loginstepsnone");
@ -70,11 +72,9 @@
if (!empty($authplugin->config->user_create) and method_exists($authplugin, 'user_create')) {
?>
<div align="center">
<form action="signup.php" method="get" id="signup">
<input type="submit" value="<?php print_string("startsignup") ?>" />
<div><input type="submit" value="<?php print_string("startsignup") ?>" /></div>
</form>
</div>
<?php }
}

View File

@ -50,7 +50,7 @@
$yesno = array( get_string('no'), get_string('yes') );
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><label for="host"><?php print_string("auth_dbhost_key", "auth") ?></label></td>

View File

@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align: center"><?php print_string('none'); ?></div>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php
print_auth_lock_options('email', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);

View File

@ -24,7 +24,7 @@
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string("auth_fchost_key", "auth") ?>:</td>

View File

@ -15,7 +15,7 @@ if (!isset($config->changepasswordurl)) {
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_imaphost_key', 'auth') ?>: </td>

View File

@ -63,7 +63,7 @@ if (!function_exists('ldap_connect')) { // Is php4-ldap really there?
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr>
<td colspan="2">

View File

@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align:center"><?php print_string('none'); ?></div>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php
print_auth_lock_options('manual', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);

View File

@ -12,7 +12,7 @@ if (!isset($config->changepasswordurl)) {
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_nntphost_key', 'auth') ?>: </td>

View File

@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align: center"><?php print_string('none'); ?></div>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php
print_auth_lock_options('none', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);

View File

@ -1,7 +1,7 @@
<!-- No config needed -->
<div align="center"><?php print_string('none'); ?></div>
<div style="text-align: center"><?php print_string('none'); ?></div>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<?php
print_auth_lock_options('pam', $user_fields, get_string('auth_fieldlocks_help', 'auth'), false, false);

View File

@ -18,7 +18,7 @@ if (!isset($config->changepasswordurl)) {
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string('auth_pop3host_key', 'auth') ?>: </td>

View File

@ -3,8 +3,8 @@
// TODO: this generates broken file errors, needs safer test -JH
// Is Auth/RADIUS really there?
if ((!include_once('Auth/RADIUS.php')) or (!class_exists(Auth_RADIUS_PAP))) {
print '<p align="center"><font color="red"><strong>Warning: The Auth_RADIUS module does not seem to be present. Please ensure it is installed and enabled.</strong></font></p>';
if (!defined('Auth_RADIUS_PAP') or !class_exists(Auth_RADIUS_PAP) or !include_once('Auth/RADIUS.php')) {
print '<p style="text-align:center; color: red"><strong>Warning: The Auth_RADIUS module does not seem to be present. Please ensure it is installed and enabled.</strong></p>';
}
// set to defaults if undefined
@ -22,7 +22,7 @@ if (!isset($config->changepasswordurl)) {
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top">
<td align="right"><?php print_string('auth_radiushost_key', 'auth') ?>: </td>

View File

@ -17,7 +17,7 @@
}
?>
<table cellspacing="0" cellpadding="5" border="0" align="center">
<table cellspacing="0" cellpadding="5" border="0">
<tr valign="top" class="required">
<td align="right"><?php print_string("username") ?>:</td>

View File

@ -13,30 +13,30 @@
}
?>
<table cellpadding="9" cellspacing="0">
<table cellpadding="9" cellspacing="0" class="blockconfigtable">
<tr valign=top>
<td align=right><?php print_string("blocktitle","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("blocktitle","blog") ?>:</td>
<td><input type="text" name="title" size="50" value="<?php p($this->config->title) ?>" /></td>
</tr>
<tr valign=top>
<td align=right><?php print_string("numberoftags","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("numberoftags","blog") ?>:</td>
<td><?php choose_from_menu($numberoftags,"numberoftags",$this->config->numberoftags) ?></td>
</tr>
<tr valign=top>
<td align=right><?php print_string("timewithin","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("timewithin","blog") ?>:</td>
<td><?php choose_from_menu($timewithin,"timewithin",$this->config->timewithin) ?></td>
</tr>
<tr valign=top>
<td align=right><?php print_string("tagsort","blog") ?>:</td>
<tr valign="top">
<td align="right"><?php print_string("tagsort","blog") ?>:</td>
<td><?php choose_from_menu($sort,"sort",$this->config->sort) ?></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="<?php print_string("savechanges") ?>"></td>
<td colspan="2" align="center"><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>

View File

@ -1,4 +1,4 @@
<table cellpadding="9" cellspacing="0">
<table cellpadding="9" cellspacing="0" class="blockconfigtable">
<tr valign="top">
<td align="right"><?php print_string('configtitle', 'block_mentees'); ?>:</td>
<td><input type="text" name="title" size="30" value="<?php echo isset($this->config->title)?p($this->config->title):''; ?>" /> (<?php print_string('leaveblanktohide', 'block_mentees'); ?>)</td>

View File

@ -1,6 +1,6 @@
<div style="text-align:center;">
<label for="block_search_text">Search label</label>
<input type="text" name="block_search_text" value="<?php
<input id="block_search_text" type="text" name="block_search_text" value="<?php
if(isset($CFG->block_search_text)) {
p($CFG->block_search_text);
} else {
@ -8,7 +8,7 @@
} ?>"/><br/>
<label for="block_search_button">Button label</label>
<input type="text" name="block_search_button" value="<?php
<input id="block_search_button" type="text" name="block_search_button" value="<?php
if(isset($CFG->block_search_button)) {
p($CFG->block_search_button);
} else {
@ -16,4 +16,4 @@
} ?>"/><br/><br/>
<input type="submit" value="<?php print_string('savechanges'); ?>" />
</div>
</div>

View File

@ -13,7 +13,7 @@
<tr valign="top">
<td align="right">enrol_mailstudents:</td>
<td>
<input type="checkbox" value="1" name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php print_string("mailstudents") ?>
@ -23,7 +23,7 @@
<tr valign="top">
<td align="right">enrol_mailteachers:</td>
<td>
<input type="checkbox" value="1" name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php print_string("mailteachers") ?>
@ -33,7 +33,7 @@
<tr valign="top">
<td align="right">enrol_mailadmins:</td>
<td>
<input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php print_string("mailadmins") ?>

View File

@ -21,7 +21,7 @@
<tr valign="top">
<td align="right"><?php print_string('mailadmins', 'enrol_imsenterprise') ?>:</td>
<td style="width:10px">
<input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"checked\"" ?> />
</td>
<td>
@ -35,7 +35,7 @@
<tr valign="top">
<td align="right"><?php print_string('createnewusers', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_createnewusers" <?php if ($frm->enrol_createnewusers) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_createnewusers" <?php if ($frm->enrol_createnewusers) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php helpbutton('createnewusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
@ -45,7 +45,7 @@
<tr valign="top">
<td align="right"><?php print_string('deleteusers', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_imsdeleteusers" <?php if ($frm->enrol_imsdeleteusers) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_imsdeleteusers" <?php if ($frm->enrol_imsdeleteusers) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php helpbutton('deleteusers', 'More detail about this option', 'enrol/imsenterprise'); ?>
@ -55,7 +55,7 @@
<tr valign="top">
<td align="right"><?php print_string('fixcaseusernames', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_fixcaseusernames" <?php if ($frm->enrol_fixcaseusernames) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_fixcaseusernames" <?php if ($frm->enrol_fixcaseusernames) echo "checked=\"checked\"" ?> />
</td>
<td>
@ -65,7 +65,7 @@
<tr valign="top">
<td align="right"><?php print_string('fixcasepersonalnames', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_fixcasepersonalnames" <?php if ($frm->enrol_fixcasepersonalnames) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_fixcasepersonalnames" <?php if ($frm->enrol_fixcasepersonalnames) echo "checked=\"checked\"" ?> />
</td>
<td>
@ -75,7 +75,7 @@
<tr valign="top">
<td align="right"><?php print_string('sourcedidfallback', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_imssourcedidfallback" <?php if ($frm->enrol_imssourcedidfallback) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_imssourcedidfallback" <?php if ($frm->enrol_imssourcedidfallback) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php helpbutton('sourceddidfallback', 'More detail about this option', 'enrol/imsenterprise'); ?>
@ -87,7 +87,7 @@ Photo processing is deactivated until we hear from Moodle dev forum about modifi
<tr valign="top">
<td align="right"><?php print_string('processphoto', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_processphoto" <?php if ($frm->enrol_processphoto) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_processphoto" <?php if ($frm->enrol_processphoto) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php print_string('processphotowarning', 'enrol_imsenterprise') ?>
@ -145,7 +145,7 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){
<tr valign="top">
<td align="right"><?php print_string('createnewcourses', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_createnewcourses" <?php if ($frm->enrol_createnewcourses) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_createnewcourses" <?php if ($frm->enrol_createnewcourses) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php helpbutton('createnewcourses', 'More detail about this option', 'enrol/imsenterprise'); ?>
@ -155,7 +155,7 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){
<tr valign="top">
<td align="right"><?php print_string('createnewcategories', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_createnewcategories" <?php if ($frm->enrol_createnewcategories) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_createnewcategories" <?php if ($frm->enrol_createnewcategories) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php helpbutton('categorisation', 'More detail about this option', 'enrol/imsenterprise'); ?>
@ -165,7 +165,7 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){
<tr valign="top">
<td align="right"><?php print_string('allowunenrol', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_imsunenrol" <?php if ($frm->enrol_imsunenrol) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_imsunenrol" <?php if ($frm->enrol_imsunenrol) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php helpbutton('unenrol', 'More detail about this option', 'enrol/imsenterprise'); ?>
@ -187,7 +187,7 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){
<tr valign="top">
<td align="right"><?php print_string('usecapitafix', 'enrol_imsenterprise') ?>:</td>
<td>
<input type="checkbox" value="1" name="enrol_imscapitafix" <?php if ($frm->enrol_imscapitafix) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_imscapitafix" <?php if ($frm->enrol_imscapitafix) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php helpbutton('capita', 'More detail about this option', 'enrol/imsenterprise'); ?>
@ -196,4 +196,4 @@ foreach($this->imsroles as $imsrolenum=>$imsrolename){
</table>
<p><i><?php print_string('aftersaving...', 'enrol_imsenterprise') ?> <a href="../enrol/imsenterprise/importnow.php"><?php print_string('doitnow', 'enrol_imsenterprise') ?></a>.</i></p>
<p><i><?php print_string('aftersaving...', 'enrol_imsenterprise') ?> <a href="../enrol/imsenterprise/importnow.php"><?php print_string('doitnow', 'enrol_imsenterprise') ?></a>.</i></p>

View File

@ -33,7 +33,7 @@
<tr valign="top">
<td align="right">enrol_mailstudents:</td>
<td>
<input type="checkbox" value="1" name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_mailstudents" <?php if ($frm->enrol_mailstudents) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php print_string("mailstudents") ?>
@ -43,7 +43,7 @@
<tr valign="top">
<td align="right">enrol_mailteachers:</td>
<td>
<input type="checkbox" value="1" name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_mailteachers" <?php if ($frm->enrol_mailteachers) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php print_string("mailteachers") ?>
@ -53,7 +53,7 @@
<tr valign="top">
<td align="right">enrol_mailadmins:</td>
<td>
<input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"true\"" ?> />
<input type="checkbox" value="1" name="enrol_mailadmins" <?php if ($frm->enrol_mailadmins) echo "checked=\"checked\"" ?> />
</td>
<td>
<?php print_string("mailadmins") ?>

View File

@ -18,7 +18,7 @@
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right"><?php echo $txt->badwordslist; ?></td>
<td><textarea type="text" name="filter_censor_badwords" cols="60" rows="10"><?php echo "$CFG->filter_censor_badwords"; ?></textarea></td>
<td><textarea name="filter_censor_badwords" cols="60" rows="10"><?php echo "$CFG->filter_censor_badwords"; ?></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>

View File

@ -244,7 +244,7 @@ $string['auth_nonedescription'] = 'Users can sign in and create valid accounts i
$string['auth_nonetitle'] = 'No authentication';
// PAM plugin
$string['auth_pamdescription'] = 'This method uses PAM to access the native usernames on this server. You have to install <a href=\"http://www.math.ohio-state.edu/~ccunning/pam_auth/\" target=\"_blank\">PHP4 PAM Authentication</a> in order to use this module.';
$string['auth_pamdescription'] = 'This method uses PAM to access the native usernames on this server. You have to install <a href=\"http://www.math.ohio-state.edu/~ccunning/pam_auth/\">PHP4 PAM Authentication</a> in order to use this module.';
$string['auth_pamtitle'] = 'PAM (Pluggable Authentication Modules)';
$string['auth_passwordisexpired'] = 'Your password is expired. Do you want change your password now?';
@ -266,7 +266,7 @@ $string['auth_pop3host_key'] = 'Host';
// RADIUS plugin
$string['auth_radiustitle'] = 'RADIUS server';
$string['auth_radiusdescription'] = 'This method uses a <a href=\"http://en.wikipedia.org/wiki/RADIUS\" target=\"_blank\">RADIUS</a> server to check whether a given username and password is valid.';
$string['auth_radiusdescription'] = 'This method uses a <a href=\"http://en.wikipedia.org/wiki/RADIUS\">RADIUS</a> server to check whether a given username and password is valid.';
$string['auth_radiushost'] = 'Address of the RADIUS server';
$string['auth_radiusnasport'] = 'Port to use to connect';
$string['auth_radiussecret'] = 'Shared secret';
@ -276,7 +276,7 @@ $string['auth_radiushost_key'] = 'Host';
$string['auth_radiussecret_key'] = 'Secret';
// Shibboleth plugin
$string['auth_shibbolethdescription'] = 'Using this method users are created and authenticated using <a href=\"http://shibboleth.internet2.edu/\" target=\"_blank\">Shibboleth</a>.<br/>Be sure to read the <a href=\"../auth/shibboleth/README.txt\" target=\"_blank\">README</a> for Shibboleth on how to set up your Moodle with Shibboleth';
$string['auth_shibbolethdescription'] = 'Using this method users are created and authenticated using <a href=\"http://shibboleth.internet2.edu/\">Shibboleth</a>.<br/>Be sure to read the <a href=\"../auth/shibboleth/README.txt\">README</a> for Shibboleth on how to set up your Moodle with Shibboleth';
$string['auth_shibbolethtitle'] = 'Shibboleth';
$string['auth_shibboleth_login'] = 'Shibboleth Login';
$string['auth_shibboleth_manual_login'] = 'Manual Login';
@ -285,7 +285,7 @@ $string['auth_shib_only_description'] = 'Check this option if a Shibboleth authe
$string['auth_shib_username_description'] = 'Name of the webserver Shibboleth environment variable that shall be used as Moodle username';
$string['auth_shib_instructions'] = 'Use the <a href=\"$a\">Shibboleth login</a> to get access via Shibboleth, if your institution supports it.<br />Otherwise, use the normal login form shown here.';
$string['auth_shib_convert_data'] = 'Data modification API';
$string['auth_shib_convert_data_description'] = 'You can use this API to further modify the data provided by Shibboleth. Read the <a href=\"../auth/shibboleth/README.txt\" target=\"_blank\">README</a> for further instructions.';
$string['auth_shib_convert_data_description'] = 'You can use this API to further modify the data provided by Shibboleth. Read the <a href=\"../auth/shibboleth/README.txt\">README</a> for further instructions.';
$string['auth_shib_instructions_help'] = 'Here you should provide custom instructions for your users to explain Shibboleth. It will be shown on the login page in the instructions section. The instructions must include a link to \"<b>$a</b>\" that users click when they want to log in.';
$string['auth_shib_convert_data_warning'] = 'The file does not exist or is not readable by the webserver process!';
$string['auth_shib_changepasswordurl'] = 'Password-change URL';

View File

@ -9,13 +9,13 @@ in that role, for the current context and all
<p>
Contexts:
</p>
<ol>
<li>Site/System</li>
<li>Course Categories</li>
<li>Courses</li>
<li>Blocks and Activities</li>
</ol>
</p>
<p>
So for example, if you grant a Student role to a

View File

@ -1,12 +1,12 @@
<h1>Installing Moodle</h1>
<h2>Dont panic! <img src="http://moodle.org/pix/s/smiley.gif" /></h2>
<h2>Don't panic! <img src="http://moodle.org/pix/s/smiley.gif" alt="don't panic!" /></h2>
<blockquote>
<p>This guide explains how to install Moodle for the first time. For some of these steps it goes into a lot of detail to try and cover the majority of possible
web server setups, so this document may look long and complicated. Don't panic, once you know how to do it you can install Moodle in minutes!</p>
<p>If you have problems please read this document carefully - most common issues are answered in here.
If you still have trouble, you can seek help from
<a target="_blank" href="http://moodle.org/help">Moodle Help</a></p>
<p>Another option is to contact a <a target="_blank" href="http://moodle.com/hosting/">web hosting company</a>
<a href="http://moodle.org/help">Moodle Help</a></p>
<p>Another option is to contact a <a href="http://moodle.com/hosting/">web hosting company</a>
who can completely maintain Moodle for you, so that you can ignore all this and get straight into educating!
</p>
<p>&nbsp; </p>
@ -34,13 +34,13 @@
and on Windows XP, Mac OS X and Netware 6 operating systems</p>
<p>The requirements for Moodle are as follows:</p>
<ol>
<li>Web server software. Most people use <a href="http://www.apache.org/" target="_blank">Apache</a>,
<li>Web server software. Most people use <a href="http://www.apache.org/" >Apache</a>,
but Moodle should work fine under any web server that supports PHP, such
as IIS on Windows platforms.</li>
<li><a href="http://www.php.net/" target="_blank">PHP</a> scripting language (version 4.1.0
<li><a href="http://www.php.net/">PHP</a> scripting language (version 4.1.0
or later). PHP 5 is supported as of Moodle 1.4. </li>
<li>a working database server: <a href="http://www.mysql.com/" target="_blank">MySQL</a>
or <a href="http://www.postgresql.org/" target="_blank">PostgreSQL</a> are
<li>a working database server: <a href="http://www.mysql.com/">MySQL</a>
or <a href="http://www.postgresql.org/">PostgreSQL</a> are
completely supported and recommended for use with Moodle. </li>
</ol>
<p>Most web hosts support all of this by default. If you are signed up with
@ -53,7 +53,7 @@
<h3 class="sectionheading"><a name="downloading"></a>2. Download and copy files into place </h3>
<blockquote>
<p>There are two ways to get Moodle, as a compressed package and via CVS. These
are explained in detail on the download page: <a href="http://moodle.org/download/" target="_blank">http://moodle.org/download/</a></p>
are explained in detail on the download page: <a href="http://moodle.org/download/">http://moodle.org/download/</a></p>
<p>After downloading and unpacking the archive, or checking out the files via
CVS, you will be left with a directory called &quot;moodle&quot;, containing
a number of files and folders.</p>
@ -70,7 +70,7 @@
you oriented:</p>
<blockquote>
<table><tr>
<td width="130" valign="top">config.php</td>
<td valign="top">config.php</td>
<td valign="top">-</td>
<td valign="top">
contains basic settings. This file does not come with Moodle - you will create it. </td>
@ -264,10 +264,10 @@ php_value post_max_size 2M
unsigned NOT NULL default '0', enddate int(10) unsigned NOT NULL default
'0', timemodified int(10) unsigned NOT NULL default '0', PRIMARY KEY (id))
TYPE=MyISAM</p>
<p><font color="#006600">SUCCESS</font></p>
<p style="color: #006600">SUCCESS</p>
</blockquote>
<p>...and so on, followed by: <font color="#006600">Main databases set up
successfully.</font> </p>
<p>...and so on, followed by: <span style="color: #006600">Main databases set up
successfully.</span> </p>
<blockquote>
<p class="style3">If you don't see these, then there must have been some problem with the database
or the configuration settings you defined in config.php. Check that PHP isn't
@ -288,7 +288,7 @@ php_value post_max_size 2M
This is easy to fix: just turn off the &quot;secureforms&quot; setting, then
try to continue again.</p>
</blockquote>
<p>Next you will see more pages that print lots of status messages as they set up all the tables required by the various Moodle module. As before, they should all be <font color="#006600">green</font>.</p>
<p>Next you will see more pages that print lots of status messages as they set up all the tables required by the various Moodle module. As before, they should all be <span style="color:#006600">green</span>.</p>
<p>Scroll down the very bottom of the page and press the &quot;Continue&quot; link.</p>
<p>The next page is a form where you can define parameters for your Moodle site
and the front page, such as the name, format, description and so on. Fill
@ -357,7 +357,7 @@ php_value post_max_size 2M
regularly.</p>
<p><b>On Windows systems</b></p>
<blockquote>
<p>The simplest way is to use this little package <a href="http://moodle.org/download/modules/moodle-cron-for-windows.zip" title="Click to download this package (150k)" target="_blank"><strong>moodle-cron-for-windows.zip</strong></a> which makes this whole thing very easy by installing a small Windows service. Run it and forget about it!</p>
<p>The simplest way is to use this little package <a href="http://moodle.org/download/modules/moodle-cron-for-windows.zip" title="Click to download this package (150k)"><strong>moodle-cron-for-windows.zip</strong></a> which makes this whole thing very easy by installing a small Windows service. Run it and forget about it!</p>
</blockquote>
<p><strong>On web hosting services</strong></p>
<blockquote>
@ -419,6 +419,6 @@ php_value post_max_size 2M
<p>See the &quot;<a href="http://docs.moodle.org/en/Teacher_documentation">Teacher Documentation</a>&quot; for more details
on course-building.</p>
<p>&nbsp;</p>
<p align="center"><strong>Happy exploring and happy Moodling!</strong></p>
<p align="center"><strong>If you like Moodle, please consider <a href="http://moodle.org/donations/" target="_blank">donating</a> to help us cover our costs! </strong></p>
<p style="text-align:center"><strong>Happy exploring and happy Moodling!</strong></p>
<p style="test-align:center"><strong>If you like Moodle, please consider <a href="http://moodle.org/donations/">donating</a> to help us cover our costs! </strong></p>
</blockquote>

View File

@ -5,8 +5,8 @@
<p>This mode also allows adaptive questions that can change themselves in response to a student's answer. Here is how the IMS QTI specification defines adaptive questions (items):</p>
<blockquote>
An adaptive item is an item that adapts either its appearance, its scoring (Response Processing) or both in response to each of the candidate's attempts. For example, an adaptive item may start by prompting the candidate with a box for free-text entry but, on receiving an unsatisfactory answer, present a simple choice interaction instead and award fewer marks for subsequently identifying the correct response. Adaptivity allows authors to create items for use in formative situations which both help to guide candidates through a given task while also providing an outcome that takes into consideration their path
</blockquote>
<p>An adaptive item is an item that adapts either its appearance, its scoring (Response Processing) or both in response to each of the candidate's attempts. For example, an adaptive item may start by prompting the candidate with a box for free-text entry but, on receiving an unsatisfactory answer, present a simple choice interaction instead and award fewer marks for subsequently identifying the correct response. Adaptivity allows authors to create items for use in formative situations which both help to guide candidates through a given task while also providing an outcome that takes into consideration their path
</p></blockquote>
<p>In adaptive mode an additional <?php print_string('mark', 'quiz') ?> button is shown for each question.
If the student presses this button then the response to that particular question is submitted to be scored and the mark achieved
@ -14,4 +14,4 @@ is displayed to the student. If the question is an adaptive question then it is
student's answer into account and will in many cases ask the student for another input. In the simplest adaptive questions
this new state may differ only in the feedback text and prompt the student to try again; in more
complicated question also the question text and even the interaction elements can change.
</p>
</p>

View File

@ -4,22 +4,14 @@
you can use the grades to calculate the student's final
grade for the quiz.</p>
<p><b>Highest grade</b><p>
<ul>
<h2>Highest grade</h2>
<p>The final grade is the highest (best) grade in any attempt.</p>
</ul>
<p><b>Average grade</b><p>
<ul>
<h2>Average grade</h2>
<p>The final grade is the average (simple mean) grade of all attempts.</p>
</ul>
<p><b>First grade</b><p>
<ul>
<h2>First grade</h2>
<p>The final grade is the grade gained on the first attempt (other attempts are ignored).</p>
</ul>
<p><b>Last grade</b><p>
<ul>
<h2>Last grade</h2>
<p>The final grade is the grade gained on the most recent attempt only.</p>
</ul>

View File

@ -4,14 +4,13 @@
(making copying and cheating more difficult) by restricting some of the things
that students can do with their browsers.</p>
<p>What happens is that:
<p>What happens is that:</p>
<ul>
<li>Javascript is made a requirement.</li>
<li>The quiz appears in a new fullscreen window.</li>
<li>Some mouse actions on the text are prevented.</li>
<li>Some keyboard commands are prevented.</li>
</ul>
</p>
<p>NOTE: <b>This security is NOT watertight</b>. Do NOT rely on these protections
as your sole strategy. It is impossible to implement complete protection

View File

@ -13,7 +13,7 @@ for that course. You could also assign the role to a user in the
course category to make them a "Teacher" for all the courses under that
category, or assign the role to a user just in a single forum, giving
that user those capabilities just in that forum.
<p>
</p>
<p>
A role must have a <strong>name</strong>. If you need to name the role for multiple
@ -27,12 +27,12 @@ languages you can use multilang syntax if you wish, such as <pre>
The <strong>shortname</strong> is necessary for other plugins in Moodle that may need
to refer to your Roles (eg when uploading users from a file or setting
enrolments via an enrolment plugin).
<p>
</p>
<p>
The <strong>description</strong> is simply to describe the role in your own words, so
that everyone has a common understanding about the role.
<p>
</p>
<p>
See also

View File

@ -1,4 +1,5 @@
<form method="post" action="module.php" id="form">
<div>
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<table cellpadding="9" cellspacing="0" >
@ -33,5 +34,5 @@
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
</div>
</form>

View File

@ -1,4 +1,5 @@
<form method="post" action="module.php" id="form">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<table cellpadding="9" cellspacing="0" >
@ -125,5 +126,5 @@
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
</div>
</form>

View File

@ -1,4 +1,5 @@
<form method="post" action="module.php" id="form">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<table cellpadding="9" cellspacing="0" >
@ -39,5 +40,5 @@
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
</div>
</form>

View File

@ -1,4 +1,5 @@
<form method="post" action="module.php" id="form">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<table cellpadding="9" cellspacing="0" >
@ -174,5 +175,5 @@
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
</div>
</form>

View File

@ -3,6 +3,7 @@
$no = get_string("no");
?>
<form method="post" action="module.php" id="form">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<table cellpadding="9" cellspacing="0" >
@ -230,7 +231,7 @@
}
$vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&amp;mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
echo '<td align="center" nowrap="nowrap">' . $eicon . '&nbsp;&nbsp;' . $vicon . '</td>';
echo '<td align="center">' . $eicon . '&nbsp;&nbsp;' . $vicon . '</td>';
echo '</tr>';
}
print_simple_box_end();
@ -244,5 +245,5 @@
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
</div>
</form>

View File

@ -1,6 +1,6 @@
<form method="post" action="module.php" id="form">
<input type="hidden" name="sesskey" value="<?PHP print isset($USER->sesskey) ? $USER->sesskey : '' ?>" />
<div>
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right">hotpot_showtimes:</td>
@ -21,5 +21,5 @@
<td colspan="3" align="center"><input type="submit" value="<?PHP print_string("savechanges") ?>" /></td>
</tr>
</table>
</div>
</form>

View File

@ -1,23 +1,24 @@
<form method="post" action="module.php" id="form">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<td align="right">server_url:</td>
<th>server_url:</th>
<td> <input name="lams_serverurl" type="text" size="50" value="<?php if (isset($CFG->lams_serverurl)) p($CFG->lams_serverurl) ?>" /></td>
<td>
<?php print_string('serverurl', 'lams') ?>
</td>
</tr>
<tr valign="top">
<td align="right">server_id:</td>
<th>server_id:</th>
<td> <input name="lams_serverid" type="text" size="50" value="<?php if (isset($CFG->lams_serverid)) p($CFG->lams_serverid) ?>" /> </td>
<td>
<?php print_string('serverid', 'lams') ?>
</td>
</tr>
<tr valign="top">
<td align="right">server_key:</td>
<th>server_key:</th>
<td> <input name="lams_serverkey" type="text" size="50" value="<?php if (isset($CFG->lams_serverkey)) p($CFG->lams_serverkey) ?>" /> </td>
<td>
<?php print_string('serverkey', 'lams') ?>
@ -25,9 +26,9 @@
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
<td colspan="3">
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
</div>
</form>

View File

@ -88,6 +88,7 @@
</script>
<form method="post" action="module.php" id="form">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<!-- Table of default values -->
@ -108,7 +109,7 @@
?>
<table cellpadding="9" cellspacing="0" align="center">
<table cellpadding="9" cellspacing="0">
<tr valign="top">
<th align="right" scope="col">&nbsp;</th>
@ -385,7 +386,7 @@
</tr>
</table>
</div>
</form>
<script type="text/javascript">

View File

@ -8,6 +8,7 @@
?>
<form method="post" action="module.php" id="form">
<div>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<table cellpadding="9" cellspacing="0" >
@ -35,5 +36,5 @@
</td>
</tr>
</table>
</div>
</form>

View File

@ -97,10 +97,10 @@
if (!$USER->screenreader) {
echo "<td align=\"center\">";
if ($screenshotpath) {
$screenshot = "<li><a target=\"$theme\" href=\"$theme/screenshot.jpg\">$strscreenshot</a></li>";
echo "<iframe name=\"$theme\" src=\"$screenshotpath\" height=\"200\" width=\"400\"></iframe></td>";
$screenshot = "<li><a href=\"$theme/screenshot.jpg\">$strscreenshot</a></li>";
echo "<object type=\"text/html\" data=\"$screenshotpath\" height=\"200\" width=\"400\">$theme</object></td>";
} else {
echo "<iframe name=\"$theme\" src=\"preview.php?preview=$theme\" height=\"200\" width=\"400\"></iframe></td>";
echo "<object type=\"text/html\" data=\"preview.php?preview=$theme\" height=\"200\" width=\"400\">$theme</object></td>";
}
}
@ -119,7 +119,7 @@
if ($screenshot or $readme) {
echo '<ul>';
if (!$USER->screenreader) {
echo "<li><a target=\"$theme\" href=\"preview.php?preview=$theme\">$strpreview</a></li>";
echo "<li><a href=\"preview.php?preview=$theme\">$strpreview</a></li>";
}
echo $screenshot.$readme;
echo '</ul>';

View File

@ -1219,6 +1219,8 @@ a.skip-block, .skip-block {
.blockconfigtable {
margin-top: 0;
margin-right: auto;
margin-left: auto;
}
.blockconfigtable td.label {