MDL-7861 xhtml transient fixes for not closed input fields - I hope all of them except imported libs are now fixed

This commit is contained in:
skodak 2007-01-08 19:34:16 +00:00
parent c0fe837eeb
commit 60af27037b
44 changed files with 197 additions and 197 deletions

View file

@ -309,25 +309,25 @@
$maxuploadsize = get_max_upload_file_size();
echo '<div style="text-align:center">';
echo '<form enctype="multipart/form-data" action="import.php" method="post">';
echo '<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'">';
echo '<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'" />';
echo '<input name="d" value="'.$data->id.'" type="hidden" />';
echo '<input name="sesskey" value="'.sesskey().'" type="hidden" />';
echo '<table align="center" cellspacing="0" cellpadding="2" border="0">';
echo '<tr>';
echo '<td align="right">'.get_string('csvfile', 'data').':</td>';
echo '<td><input type="file" name="recordsfile" size="30">';
echo '<td><input type="file" name="recordsfile" size="30" />';
helpbutton('importcsv', get_string('csvimport', 'data'), 'data', true, false);
echo '</td><tr>';
echo '<td align="right">'.get_string('fielddelimiter', 'data').':</td>';
echo '<td><input type="text" name="fielddelimiter" size="6">';
echo '<td><input type="text" name="fielddelimiter" size="6" />';
echo get_string('defaultfielddelimiter', 'data').'</td>';
echo '</tr>';
echo '<td align="right">'.get_string('fieldenclosure', 'data').':</td>';
echo '<td><input type="text" name="fieldenclosure" size="6">';
echo '<td><input type="text" name="fieldenclosure" size="6" />';
echo get_string('defaultfieldenclosure', 'data').'</td>';
echo '</tr>';
echo '</table>';
echo '<input type="submit" value="'.get_string('uploadfile', 'data').'">';
echo '<input type="submit" value="'.get_string('uploadfile', 'data').'" />';
echo '</form>';
echo '</div>';
print_simple_box_end();

View file

@ -5,23 +5,23 @@
<form method="post" action="module.php" id="form">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>">
<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td colspan = 3 align=center><strong><?php print_string("glossaryleveldefaultsettings","glossary") ?></strong></td>
<table cellpadding="9" cellspacing="0" >
<tr valign="top">
<td colspan="3" align="center"><strong><?php print_string("glossaryleveldefaultsettings","glossary") ?></strong></td>
</tr>
<tr valign=top>
<td align=right>glossary_entbypage:</td>
<tr valign="top">
<td align="right">glossary_entbypage:</td>
<td>
<input name=glossary_entbypage type=text size=3 value="<?php p(isset($CFG->glossary_entbypage) ? $CFG->glossary_entbypage : 10) ?>" />
<input name="glossary_entbypage" type="text" size="3" value="<?php p(isset($CFG->glossary_entbypage) ? $CFG->glossary_entbypage : 10) ?>" />
</td>
<td>
<?php print_string("entbypage", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td align=right>glossary_dupentries:</td>
<tr valign="top">
<td align="right">glossary_dupentries:</td>
<td>
<select size=1 name=glossary_dupentries>
<select size="1" name="glossary_dupentries">
<?php
$yselected = "";
$nselected = "";
@ -31,18 +31,18 @@
$nselected = " selected=\"selected\" ";
}
?>
<option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
<option value=0 <?php p($nselected) ?>><?php p($no)?></option>
<option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
<option value="0" <?php p($nselected) ?>><?php p($no)?></option>
</select>
</td>
<td>
<?php print_string("cnfallowdupentries", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td align=right>glossary_allowcomments:</td>
<tr valign="top">
<td align="right">glossary_allowcomments:</td>
<td>
<select size=1 name=glossary_allowcomments>
<select size="1" name="glossary_allowcomments">
<?php
$yselected = "";
$nselected = "";
@ -52,18 +52,18 @@
$nselected = " selected=\"selected\" ";
}
?>
<option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
<option value=0 <?php p($nselected) ?>><?php p($no)?></option>
<option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
<option value="0" <?php p($nselected) ?>><?php p($no)?></option>
</select>
</td>
<td>
<?php print_string("cnfallowcomments", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td align=right>glossary_linkbydefault:</td>
<tr valign="top">
<td align="right">glossary_linkbydefault:</td>
<td>
<select size=1 name=glossary_linkbydefault>
<select size="1" name="glossary_linkbydefault">
<?php
$yselected = "";
$nselected = "";
@ -73,18 +73,18 @@
$nselected = " selected=\"selected\" ";
}
?>
<option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
<option value=0 <?php p($nselected) ?>><?php p($no)?></option>
<option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
<option value="0" <?php p($nselected) ?>><?php p($no)?></option>
</select>
</td>
<td>
<?php print_string("cnflinkglossaries", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td align=right>glossary_defaultapproval:</td>
<tr valign="top">
<td align="right">glossary_defaultapproval:</td>
<td>
<select size=1 name=glossary_defaultapproval>
<select size="1" name="glossary_defaultapproval">
<?php
$yselected = "";
$nselected = "";
@ -94,16 +94,16 @@
$nselected = " selected=\"selected\" ";
}
?>
<option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
<option value=0 <?php p($nselected) ?>><?php p($no)?></option>
<option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
<option value="0" <?php p($nselected) ?>><?php p($no)?></option>
</select>
</td>
<td>
<?php print_string("cnfapprovalstatus", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td align=right>glossary_enablerssfeeds:</td>
<tr valign="top">
<td align="right">glossary_enablerssfeeds:</td>
<td>
<?php
if (!isset($CFG->enablerssfeeds) || $CFG->enablerssfeeds == 0) {
@ -131,13 +131,13 @@
?>
</td>
</tr>
<tr valign=top>
<td colspan = 3 align=center><strong><?php print_string("entryleveldefaultsettings","glossary") ?></strong></td>
<tr valign="top">
<td colspan ="3" align="center"><strong><?php print_string("entryleveldefaultsettings","glossary") ?></strong></td>
</tr>
<tr valign=top>
<td align=right>glossary_linkentries:</td>
<tr valign="top">
<td align="right">glossary_linkentries:</td>
<td>
<select size=1 name=glossary_linkentries>
<select size="1" name="glossary_linkentries">
<?php
$yselected = "";
$nselected = "";
@ -147,18 +147,18 @@
$nselected = " selected=\"selected\" ";
}
?>
<option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
<option value=0 <?php p($nselected) ?>><?php p($no)?></option>
<option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
<option value="0" <?php p($nselected) ?>><?php p($no)?></option>
</select>
</td>
<td>
<?php print_string("cnflinkentry", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td align=right>glossary_casesensitive:</td>
<tr valign="top">
<td align="right">glossary_casesensitive:</td>
<td>
<select size=1 name=glossary_casesensitive>
<select size="1" name="glossary_casesensitive">
<?php
$yselected = "";
$nselected = "";
@ -168,18 +168,18 @@
$nselected = " selected=\"selected\" ";
}
?>
<option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
<option value=0 <?php p($nselected) ?>><?php p($no)?></option>
<option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
<option value="0" <?php p($nselected) ?>><?php p($no)?></option>
</select>
</td>
<td>
<?php print_string("cnfcasesensitive", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td align=right>glossary_fullmatch:</td>
<tr valign="top">
<td align="right">glossary_fullmatch:</td>
<td>
<select size=1 name=glossary_fullmatch>
<select size="1" name="glossary_fullmatch">
<?php
$yselected = "";
$nselected = "";
@ -189,19 +189,19 @@
$nselected = " selected=\"selected\" ";
}
?>
<option value=1 <?php p($yselected) ?>><?php p($yes)?></option>
<option value=0 <?php p($nselected) ?>><?php p($no)?></option>
<option value="1" <?php p($yselected) ?>><?php p($yes)?></option>
<option value="0" <?php p($nselected) ?>><?php p($no)?></option>
</select>
</td>
<td>
<?php print_string("cnffullmatch", "glossary") ?>
</td>
</tr>
<tr valign=top>
<td colspan = 3 align=center><a name=formats><strong><?php print_string("displayformatssetup","glossary") ?></strong></td>
<tr valign="top">
<td colspan ="3" align="center"><a name="formats"><strong><?php print_string("displayformatssetup","glossary") ?></strong></td>
</tr>
<tr>
<td colspan=3 align=center>
<td colspan="3" align="center">
<?php
//Update and get available formats
@ -240,7 +240,7 @@
</td>
</tr>
<tr>
<td colspan=3 align=center>
<td colspan="3" align="center">
<input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>

View file

@ -12,9 +12,9 @@
?></td>
<td><?PHP print_string("configshowtimes", "hotpot") ?></td>
</tr>
<tr valign=top>
<tr valign="top">
<td align="right"><p>hotpot_excelencodings:</p></td>
<td><input name=hotpot_excelencodings type=text size=30 value="<?PHP p($CFG->hotpot_excelencodings) ?>" /></td>
<td><input name="hotpot_excelencodings" type="text" size="30" value="<?PHP p($CFG->hotpot_excelencodings) ?>" /></td>
<td><?PHP print_string("configexcelencodings", "hotpot") ?></td>
</tr>
<tr>

View file

@ -518,11 +518,11 @@ function QuizLogin(LoginPrompt) {
if (Login[0]) { // user name
var v = getCookie(self, 'UserName');
html += '<tr>'
+ '<th align="right" nowrap scope="row">' + MSG[0] + ' :</th>'
+ '<th align="right" nowrap="nowrap" scope="row">' + MSG[0] + ' :</th>'
+ '<td>'
;
if (typeof(Login[0])=='boolean') { // text box
html += '<input type=text name=UserName value="' + v + '">';
html += '<input type="text" name="UserName" value="' + v + '" />';
} else { // drop down menu of names
// pattern to match commas and white space
var comma = (window.RegExp) ? new RegExp('\\s*,\\s*') : ',';
@ -530,7 +530,7 @@ function QuizLogin(LoginPrompt) {
if (typeof(Login[0])=='string') {
Login[0] = Login[0].split(comma);
}
html += '<select name=UserName size=1>'
html += '<select name="UserName" size="1">'
+ '<option value=""></option>'
;
for(var i=0; i<Login[0].length; i++) {
@ -548,20 +548,20 @@ function QuizLogin(LoginPrompt) {
}
if (Login[1]) { // user ID
var v = getCookie(self, 'UserID');
html += '<tr><th align="right" nowrap scope="row">' + MSG[1] + ' :</th><td><input type=text name=UserID value="' + v + '"></td></tr>';
html += '<tr><th align="right" nowrap="nowrap" scope="row">' + MSG[1] + ' :</th><td><input type="text" name="UserID" value="' + v + '" /></td></tr>';
}
if (Login[2]) { // user email
var v = getCookie(self, 'UserEmail');
html += '<tr><th align="right" nowrap scope="row">' + MSG[2] +' :</th><td><input type=text name=UserEmail value="' + v + '"></td></tr>';
html += '<tr><th align="right" nowrap="nowrap" scope="row">' + MSG[2] +' :</th><td><input type="text" name="UserEmail" value="' + v + '" /></td></tr>';
}
if (Login[3]) { // quiz password
var v = getCookie(self, 'Password');
html += '<tr><th align="right" nowrap scope="row">' + MSG[3] + ' :</th><td><input type=password name=Password value="' + v + '"></td></tr>';
html += '<tr><th align="right" nowrap="nowrap" scope="row">' + MSG[3] + ' :</th><td><input type="password" name="Password" value="' + v + '" /></td></tr>';
}
if (Login[4]) { // cookie lifespan
var v = getCookie(self, 'CookieExpiry');
html += '<tr>'
+ '<th align="right" nowrap scope="row">' + MSG[4] + ' :</th>'
+ '<th align="right" nowrap="nowrap" scope="row">' + MSG[4] + ' :</th>'
+ '<td>'
+ '<select name="CookieExpiry" size=1>'
+ makeOption('session', v, MSG[7])
@ -576,8 +576,8 @@ function QuizLogin(LoginPrompt) {
html += '<tr>'
+ '<th scope="row">&nbsp;</th>'
+ '<td nowrap>'
+ '<input type=submit value="' + MSG[5] + '"> '
+ '<input type=button value="' + MSG[6] + '" onClick="opener.goBack();self.close();">'
+ '<input type="submit" value="' + MSG[5] + '" /> '
+ '<input type="button" value="' + MSG[6] + '" onClick="opener.goBack();self.close();" />'
+ '</td>'
+ '</tr>'
+ '</table></form></body></html>'
@ -856,7 +856,7 @@ function AddStudentDetailsToResultForm() {
sDetails += hpHiddenField('email', window.UserEmail);
}
if (sDetails && window.RegExp) {
// insert sDetails before '<input...Score...></input>'
// insert sDetails before '<input...Score... /></input>'
var r = new RegExp('<input[^>]*Score[^>]*><\\/input>', 'i');
var m = r.exec(ResultForm);
if (m) {
@ -1928,7 +1928,7 @@ function hpHiddenField(name, value, comma, forceHTML) {
}
field = '<field><fieldname>' + name + '</fieldname><fielddata>' + value + '</fielddata></field>';
} else {
field = '<input type=hidden name="' + name + '" value="' + value + '">';
field = '<input type=hidden name="' + name + '" value="' + value + '" />';
}
return field;
}
@ -2121,7 +2121,7 @@ function hpFeedback() {
html += '</td></tr>'
+ '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[9] + ':</th>'
+ '<td><TEXTAREA name="message" rows="10" cols="40"></TEXTAREA></td></tr>'
+ '<tr><td>&nbsp;</td><td><input type="submit" value="' + FEEDBACK[6] + '">'
+ '<tr><td>&nbsp;</td><td><input type="submit" value="' + FEEDBACK[6] + '" />'
+ hpHiddenField('realname', FEEDBACK[2], ',', true)
+ hpHiddenField('email', FEEDBACK[3], ',', true)
+ hpHiddenField('subject', document.title, ',', true)
@ -2135,7 +2135,7 @@ function hpFeedback() {
var i_max = FEEDBACK[1].length;
if (i_max>1) { // several teachers
html += '<html><body>'
+ '<form action="' + FEEDBACK[0] + '" method="POST" onsubmit="this.action+=this.recipient.options[this.recipient.selectedIndex].value">'
+ '<form action="' + FEEDBACK[0] + '" method="post" onsubmit="this.action+=this.recipient.options[this.recipient.selectedIndex].value">'
+ '<table border="0">'
+ '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[7] + ':</th><td>' + document.title + '</td></tr>'
+ '<tr><th valign="top" align="right" scope="row">' + FEEDBACK[8] + ': </th><td>'
@ -2146,7 +2146,7 @@ function hpFeedback() {
}
html += '</select>';
html += '</td></tr>'
+ '<tr><td>&nbsp;</td><td><input type="submit" value="' + FEEDBACK[6] + '">'
+ '<tr><td>&nbsp;</td><td><input type="submit" value="' + FEEDBACK[6] + '" />'
+ '</td></tr></table></form></body></html>'
;
} else if (i_max==1) { // one teacher

View file

@ -71,7 +71,7 @@ $text_source_options = array(
"return hotpot_lockoptions('form', 'namesource', namelockitems, nameoffvalues)"
);
} else {
print '<input type="hidden" name="namesource" value="'.HOTPOT_TEXTSOURCE_SPECIFIC.'">';
print '<input type="hidden" name="namesource" value="'.HOTPOT_TEXTSOURCE_SPECIFIC.'" />';
}
print '<input type="text" name="name" size=40 value="'.$form->name.'">';
?></td>
@ -102,7 +102,7 @@ $text_source_options = array(
choose_from_menu($text_source_options, "summarysource", "$form->summarysource", "");
print '<br />';
} else {
print '<input type="hidden" name="summarysource" value="'.HOTPOT_TEXTSOURCE_SPECIFIC.'">';
print '<input type="hidden" name="summarysource" value="'.HOTPOT_TEXTSOURCE_SPECIFIC.'" />';
}
if (function_exists("print_textarea") && isset($usehtmleditor)) {
print_textarea($usehtmleditor, 10, 65, 680, 400, "summary", $form->summary);
@ -342,7 +342,7 @@ $text_source_options = array(
);
choose_from_menu($options, "displaynext", "$form->displaynext", "");
} else {
print '<input type="hidden" name="displaynext" value="'.HOTPOT_NO.'">'."\n";
print '<input type="hidden" name="displaynext" value="'.HOTPOT_NO.'" />'."\n";
}
?>
</table>

View file

@ -524,7 +524,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) {
$value = $formdata[$name];
print choose_from_menu($options, $name, $value, "", "", 0, true);
};
print '<input type="submit" value="'.get_string('reportbutton', 'hotpot').'"></td></tr>';
print '<input type="submit" value="'.get_string('reportbutton', 'hotpot').'" /></td></tr>';
$menus = array();

View file

@ -115,14 +115,14 @@ class hotpot_report extends hotpot_default_report {
$strdeletecheck = get_string('deleteattemptcheck','quiz');
$table->start = $this->deleteform_javascript();
$table->start .= '<form method="post" action="report.php" id="deleteform" onsubmit="'."return deletecheck('".$strdeletecheck."', 'selection')".'">'."\n";
$table->start .= '<input type="hidden" name="del" value="selection">'."\n";
$table->start .= '<input type="hidden" name="del" value="selection" />'."\n";
$table->start .= '<input type="hidden" name="id" value="'.$cm->id.'">'."\n";
$table->finish = '<center>'."\n";
$table->finish .= '<input type="submit" value="'.get_string("deleteselected").'">&nbsp;'."\n";
$table->finish .= '<input type="submit" value="'.get_string("deleteselected").'" />&nbsp;'."\n";
if ($abandoned) {
$table->finish .= '<input type=button value="'.get_string('deleteabandoned', 'hotpot').'" onClick="if(deletecheck('."'".addslashes(get_string('deleteabandonedcheck', 'hotpot', $abandoned))."', 'abandoned', true".')) getElementById(\'deleteform\').submit();">'."\n";
$table->finish .= '<input type=button value="'.get_string('deleteabandoned', 'hotpot').'" onClick="if(deletecheck('."'".addslashes(get_string('deleteabandonedcheck', 'hotpot', $abandoned))."', 'abandoned', true".')) getElementById(\'deleteform\').submit();" />'."\n";
}
$table->finish .= '<input type=button value="'.get_string("deleteall").'" onClick="if(deletecheck('."'".addslashes($strdeletecheck)."', 'all', true".'))getElementById(\'deleteform\').submit();">'."\n";
$table->finish .= '<input type=button value="'.get_string("deleteall").'" onClick="if(deletecheck('."'".addslashes($strdeletecheck)."', 'all', true".'))getElementById(\'deleteform\').submit();" />'."\n";
$table->finish .= '</center>'."\n";
$table->finish .= '</form>'."\n";
}

View file

@ -904,7 +904,7 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
$a++;
}
$gap .= '<input type="text" id="Gap'.$q.'" onfocus="TrackFocus('.$q.')" onblur="LeaveGap()" class="GapBox" size="'.$gapsize.'"></input>';
$gap .= '<input type="text" id="Gap'.$q.'" onfocus="TrackFocus('.$q.')" onblur="LeaveGap()" class="GapBox" size="'.$gapsize.'" /></input>';
}
if ($includeclues) {
$clue = $this->parent->xml_value($question_record, $question."['clue'][0]['#']");
@ -1255,7 +1255,7 @@ class hotpot_xml_quiz_template extends hotpot_xml_template_default {
$question_type==HOTPOT_JQUIZ_HYBRID
) {
$str .= '<div class="ShortAnswer" id="Q_'.$q.'_SA"><form method="post" action="" onsubmit="return false;"><div>';
$str .= '<input type="text" id="Q_'.$q.'_Guess" onfocus="TrackFocus('."'".'Q_'.$q.'_Guess'."'".')" onblur="LeaveGap()" class="ShortAnswerBox" size="9"></input><br /><br />';
$str .= '<input type="text" id="Q_'.$q.'_Guess" onfocus="TrackFocus('."'".'Q_'.$q.'_Guess'."'".')" onblur="LeaveGap()" class="ShortAnswerBox" size="9" /></input><br /><br />';
$caption = $this->v6_expand_CheckCaption();
$str .= $this->v6_expand_jquiz_button($caption, "CheckShortAnswer($q)");

View file

@ -6,17 +6,17 @@ var UserName = '';
var StartTime = (new Date()).toLocaleString();
var ResultForm = '<html><body><form name="Results" action="[strFormMailURL]" method="post" enctype="x-www-form-encoded">';
ResultForm += '<input type="hidden" name="recipient" value="[strEMail]"></input>';
ResultForm += '<input type="hidden" name="subject" value="[strEscapedExerciseTitle]"></input>';
ResultForm += '<input type="hidden" name="Exercise" value="[strEscapedExerciseTitle]"></input>';
ResultForm += '<input type="hidden" name="realname" value=""></input>';
ResultForm += '<input type="hidden" name="Score" value=""></input>';
ResultForm += '<input type="hidden" name="Start_Time" value=""></input>';
ResultForm += '<input type="hidden" name="End_Time" value=""></input>';
ResultForm += '<input type="hidden" name="title" value="Thanks!"></input>';
[inclPageBGColor]ResultForm += '<input type="hidden" name="bgcolor" value="[strPageBGColor]"></input>';[/inclPageBGColor]
ResultForm += '<input type="hidden" name="text_color" value="[strTitleColor]"></input>';
ResultForm += '<input type="hidden" name="sort" value="order:realname,Exercise,Score,Start_Time,End_Time"></input>';
ResultForm += '<input type="hidden" name="recipient" value="[strEMail]" /></input>';
ResultForm += '<input type="hidden" name="subject" value="[strEscapedExerciseTitle]" /></input>';
ResultForm += '<input type="hidden" name="Exercise" value="[strEscapedExerciseTitle]" /></input>';
ResultForm += '<input type="hidden" name="realname" value="" /></input>';
ResultForm += '<input type="hidden" name="Score" value="" /></input>';
ResultForm += '<input type="hidden" name="Start_Time" value="" /></input>';
ResultForm += '<input type="hidden" name="End_Time" value="" /></input>';
ResultForm += '<input type="hidden" name="title" value="Thanks!" /></input>';
[inclPageBGColor]ResultForm += '<input type="hidden" name="bgcolor" value="[strPageBGColor]" /></input>';[/inclPageBGColor]
ResultForm += '<input type="hidden" name="text_color" value="[strTitleColor]" /></input>';
ResultForm += '<input type="hidden" name="sort" value="order:realname,Exercise,Score,Start_Time,End_Time" /></input>';
ResultForm += '</form></body></html>';
function GetUserName(){

View file

@ -19,7 +19,7 @@ var Locked = false;
var TimeOver = false;
var InputStuff = '<form method="post" action="" onsubmit="return false;"><span class="ClueNum">[strClueNum]: </span>';
InputStuff += '[strClue] <input onfocus="CurrentBox=this;InTextBox=true;" onblur="InTextBox=false;" id="[strBoxId]" type="edit" size="[strEditSize]" maxlength="[strMaxLength]"></input>';
InputStuff += '[strClue] <input onfocus="CurrentBox=this;InTextBox=true;" onblur="InTextBox=false;" id="[strBoxId]" type="edit" size="[strEditSize]" maxlength="[strMaxLength]" /></input>';
InputStuff += '<button class="FuncButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOut(this)" onclick="EnterGuess([strParams])">[strEnterCaption]</button>';
InputStuff += '[inclHint]<button class="FuncButton" onfocus="FuncBtnOver(this)" onblur="FuncBtnOut(this)" onmouseover="FuncBtnOver(this)" onmouseout="FuncBtnOut(this)" onmousedown="FuncBtnDown(this)" onmouseup="FuncBtnOut(this)" onclick="ShowHint([strParams])">[strHintCaption]</button>[/inclHint]';
InputStuff += '</form>';

View file

@ -80,8 +80,8 @@
print '<div align="center">';
print get_string('requirepasswordmessage', 'quiz').'<br /><br />';
print '<b>'.get_string('password').':</b> ';
print '<input name="hppassword" type="password" value=""> ';
print '<input type="submit" value="'.get_string("ok").'"> ';
print '<input name="hppassword" type="password" value="" /> ';
print '<input type="submit" value="'.get_string("ok").'" /> ';
print "</div>\n";
print_simple_box_end();
print "</form>\n";

View file

@ -52,7 +52,7 @@ if (!isset($form->create_sequence_url)) {
<tr>
<td align="right"><b><?php print_string("name") ?>:</b></td>
<td>
<input type="text" id="name" name="name" size="30">
<input type="text" id="name" name="name" size="30" />
</td>
</tr>
<td align=right><p><b><?php print_string("introduction", "lams") ?>:</b></p>

View file

@ -144,7 +144,7 @@
<input type="hidden" name="mode" value="save" />
<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo get_string("entername", "lesson").": <input type=\"text\" name=\"name\" size=\"7\" maxlength=\"5\">\n<p>\n";
echo get_string("entername", "lesson").": <input type=\"text\" name=\"name\" size=\"7\" maxlength=\"5\" />\n<p>\n";
lesson_print_submit_link(get_string("submitname", "lesson"), 'nickname');
echo "</p>\n</form>\n</div>\n";
print_simple_box_end();

View file

@ -348,10 +348,10 @@ class quiz_report extends quiz_default_report {
// Display the form with one part for each selected attempt
echo '<form method="post" action="report.php">'.
'<input type="hidden" name="mode" value="grading">'.
'<input type="hidden" name="mode" value="grading" />'.
'<input type="hidden" name="q" value="'.$quiz->id.'">'.
'<input type="hidden" name="sesskey" value="'.sesskey().'">'.
'<input type="hidden" name="action" value="viewquestion">'.
'<input type="hidden" name="sesskey" value="'.sesskey().'" />'.
'<input type="hidden" name="action" value="viewquestion" />'.
'<input type="hidden" name="questionid" value="'.$question->id.'">';
foreach ($attempts as $attempt) {
@ -384,7 +384,7 @@ class quiz_report extends quiz_default_report {
echo '</div>';
}
echo '<div align="center"><input type="submit" value="'.get_string('savechanges').'"></div>'.
echo '<div align="center"><input type="submit" value="'.get_string('savechanges').'" /></div>'.
'</form>';
if ($usehtmleditor) {

View file

@ -37,7 +37,7 @@
<br />
<div align="center" class="form">
<form id="myform">
<input type="file" size="60" name="myfile"><br />
<input type="file" size="60" name="myfile" /><br />
<input type="button" value="<?php print_string('localfileselect','resource') ?>"
onClick="return set_value(getElementById('myform').myfile.value)">
<input type="button" value="<?php print_string('cancel') ?>"

View file

@ -42,8 +42,8 @@
<div align="center" class="form">
<form id="myform" action="localpath.php" method="post">
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>">
<input type="hidden" name="pathname" value="">
<input type="file" size="60" name="myfile"><br />
<input type="hidden" name="pathname" value="" />
<input type="file" size="60" name="myfile" /><br />
<input type="button" value="<?php print_string('localfileselect','resource') ?>"
onClick="return set_value(getElementById('myform').myfile.value)">
<input type="button" value="<?php print_string('cancel') ?>"

View file

@ -42,21 +42,21 @@ $query .= '&HIVE_SESSION='.$SESSION->HIVE_SESSION;
echo '<form id="OPEN_HIVE_FORM" action="'. $CFG->hiveprotocol .'://'. $CFG->hivehost .':'. $CFG->hiveport .''. $CFG->hivepath .'" method="post">';
echo '<input type="hidden" name="HISTORY" value="">';
echo '<input type="hidden" name="hiveLanguage" value="en_AU">';
echo '<input type="hidden" name="PUBCATEGORY_LIST" value="">';
echo '<input type="hidden" name="CATEGORY_LIST" value="">';
echo '<input type="hidden" name="HIDE_LOGOUT" value="Y">';
echo '<input type="hidden" name="HISTORY" value="" />';
echo '<input type="hidden" name="hiveLanguage" value="en_AU" />';
echo '<input type="hidden" name="PUBCATEGORY_LIST" value="" />';
echo '<input type="hidden" name="CATEGORY_LIST" value="" />';
echo '<input type="hidden" name="HIDE_LOGOUT" value="Y" />';
echo '<input type="hidden" name="mkurl" value="'.$CFG->wwwroot.'/mod/resource/type/repository/hive/makelink.php">';
echo '<input type="hidden" name="HIDE_CHANGEUSERDETAILS" value="Y">';
echo '<input type="hidden" name="HIVE_RET" value="ORG">';
echo '<input type="hidden" name="HIVE_PAGE" value="Lite Browse">';
echo '<input type="hidden" name="HIVE_REQ" value="2113">';
echo '<input type="hidden" name="HIVE_ERRCODE" value="0">';
echo '<input type="hidden" name="mklms" value="Moodle">';
echo '<input type="hidden" name="HIVE_PROD" value="0">';
echo '<input type="hidden" name="HIVE_REF" value="hin:hive@Hive Login HTML Template">';
echo '<input type="hidden" name="HIVE_LITEMODE" value="liteBrowse">';
echo '<input type="hidden" name="HIDE_CHANGEUSERDETAILS" value="Y" />';
echo '<input type="hidden" name="HIVE_RET" value="ORG" />';
echo '<input type="hidden" name="HIVE_PAGE" value="Lite Browse" />';
echo '<input type="hidden" name="HIVE_REQ" value="2113" />';
echo '<input type="hidden" name="HIVE_ERRCODE" value="0" />';
echo '<input type="hidden" name="mklms" value="Moodle" />';
echo '<input type="hidden" name="HIVE_PROD" value="0" />';
echo '<input type="hidden" name="HIVE_REF" value="hin:hive@Hive Login HTML Template" />';
echo '<input type="hidden" name="HIVE_LITEMODE" value="liteBrowse" />';
echo '<input type="hidden" name="HIVE_SEREF" value="'.$CFG->wwwroot.'/sso/hive/expired.php">';
echo '<input type="hidden" name="HIVE_SESSION" value="'.$SESSION->HIVE_SESSION.'">';
echo '</form>';

View file

@ -107,7 +107,7 @@ function ewiki_page_fileupload($id, $data, $action, $def_sec="") {
'" method="POST" enctype="multipart/form-data">' ;
require_once($CFG->dirroot.'/lib/uploadlib.php');
$o .= upload_print_form_fragment(1,array(EWIKI_UP_UPLOAD),array(ewiki_t("file")),false,null,0,0,true);
$o .= '<input type="submit" value="' . EWIKI_PAGE_UPLOAD . '"><br /><br />'
$o .= '<input type="submit" value="' . EWIKI_PAGE_UPLOAD . '" /><br /><br />'
.'<b>' . ewiki_t("comment") . '</b><br /><textarea name="comment" cols="35" rows="3"></textarea><br /><br />';
if (empty($ewiki_upload_sections[$def_sec])) {