Skip to content

Commit

Permalink
MDL-7861 xhtml transient fixes for not closed input fields - I hope a…
Browse files Browse the repository at this point in the history
…ll of them except imported libs are now fixed
  • Loading branch information
skodak committed Jan 8, 2007
1 parent c0fe837 commit 60af270
Show file tree
Hide file tree
Showing 44 changed files with 197 additions and 197 deletions.
6 changes: 3 additions & 3 deletions admin/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@
if (in_array($auth, $authsenabled)) {
$hideshow = "<a href=\"$url&amp;action=disable&amp;auth=$auth\">";
$hideshow .= "<img src=\"{$CFG->pixpath}/i/hide.gif\" class=\"icon\" alt=\"disable\" /></a>";
// $hideshow = "<a href=\"$url&amp;action=disable&amp;auth=$auth\"><input type=\"checkbox\" checked></a>";
// $hideshow = "<a href=\"$url&amp;action=disable&amp;auth=$auth\"><input type=\"checkbox\" checked /></a>";
$enabled = true;
$displayname = "<span>$name</span>";
}
else {
$hideshow = "<a href=\"$url&amp;action=enable&amp;auth=$auth\">";
$hideshow .= "<img src=\"{$CFG->pixpath}/i/show.gif\" class=\"icon\" alt=\"enable\" /></a>";
// $hideshow = "<a href=\"$url&amp;action=enable&amp;auth=$auth\"><input type=\"checkbox\"></a>";
// $hideshow = "<a href=\"$url&amp;action=enable&amp;auth=$auth\"><input type=\"checkbox\" /></a>";
$enabled = false;
$displayname = "<span class=\"dimmed_text\">$name</span>";
}
Expand Down Expand Up @@ -272,7 +272,7 @@
////////////////////////////////////////////////////////////////////////////////


echo '<center><input type="submit" value="'.get_string('savechanges').'"></center>';
echo '<center><input type="submit" value="'.get_string('savechanges').'" /></center>';
echo '</form>';
admin_externalpage_print_footer($adminroot);

Expand Down
4 changes: 2 additions & 2 deletions admin/auth_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
// choose an authentication method
echo "<form $CFG->frametarget id=\"authmenu\" method=\"post\" action=\"auth_config.php\">\n";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\">\n";
echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\">\n";
echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\" />\n";

// auth plugin description
print_simple_box_start('center', '80%');
Expand All @@ -75,7 +75,7 @@
echo "<hr />\n";
$authplugin->config_form($frm, $err);
print_simple_box_end();
echo '<center><p><input type="submit" value="' . get_string("savechanges") . "\"></p></center>\n";
echo '<center><p><input type="submit" value="' . get_string("savechanges") . "\" /></p></center>\n";
echo "</form>\n";

admin_externalpage_print_footer($adminroot);
Expand Down
2 changes: 1 addition & 1 deletion admin/enrol_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

$enrolment->config_form($frm);

echo "<center><p><input type=\"submit\" value=\"".get_string("savechanges")."\"></p></center>\n";
echo "<center><p><input type=\"submit\" value=\"".get_string("savechanges")."\" /></p></center>\n";
echo "</form>";

print_simple_box_end();
Expand Down
4 changes: 2 additions & 2 deletions admin/mnet/access_control.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
if (!empty($formerror['username'])) {
echo '<span class="error"> * </span>';
}
echo '<input type="text" name="username" size="20" maxlength="100">';
echo '<input type="text" name="username" size="20" maxlength="100" />';

// choose a remote host
echo " " . get_string('remotehost', 'mnet') . ":\n";
Expand All @@ -200,7 +200,7 @@
choose_from_menu($accessmenu, 'access');

// submit button
echo '<input type="submit" value="' . get_string('addtoacl', 'mnet') . '">';
echo '<input type="submit" value="' . get_string('addtoacl', 'mnet') . '" />';
echo "</form></div>\n";

// print errors
Expand Down
22 changes: 11 additions & 11 deletions admin/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@

echo "<input type=\"hidden\" name=\"url\" value=\"$CFG->wwwroot\">\n";
echo "<input type=\"hidden\" name=\"secret\" value=\"$CFG->siteidentifier\">\n";
echo "<input type=\"hidden\" name=\"host\" value=\"".$_SERVER["HTTP_HOST"]."\">\n";
echo "<input type=\"hidden\" name=\"lang\" value=\"".current_language()."\">\n";
echo "<input type=\"hidden\" name=\"host\" value=\"".$_SERVER["HTTP_HOST"]."\" />\n";
echo "<input type=\"hidden\" name=\"lang\" value=\"".current_language()."\" />\n";
echo "</td></tr>\n";

echo "<tr valign=\"top\">\n";
Expand Down Expand Up @@ -114,18 +114,18 @@

$count = count_records('course')-1;
echo get_string("courses").": ".$count;
echo "<input type=\"hidden\" name=\"courses\" value=\"$count\">\n";
echo "<input type=\"hidden\" name=\"courses\" value=\"$count\" />\n";
echo '<br />';

$count = count_records('user', 'deleted', 0);
echo get_string("users").": ".$count;
echo "<input type=\"hidden\" name=\"users\" value=\"$count\">\n";
echo "<input type=\"hidden\" name=\"users\" value=\"$count\" />\n";
echo '<br />';

// total number of role assignments
$count = count_records('role_assignments');
echo get_string('roleassignments', 'role').": ".$count;
echo "<input type=\"hidden\" name=\"roleassignments\" value=\"$count\">\n";
echo "<input type=\"hidden\" name=\"roleassignments\" value=\"$count\" />\n";
echo '<br />';

// first find all distinct roles with mod/course:update
Expand All @@ -140,22 +140,22 @@

$count = count_records_sql($sql);
echo get_string("teachers").": ".$count;
echo "<input type=\"hidden\" name=\"courseupdaters\" value=\"$count\">\n";
echo "<input type=\"hidden\" name=\"courseupdaters\" value=\"$count\" />\n";
echo '<br />';

$count = count_records('forum_posts');
echo get_string("posts", 'forum').": ".$count;
echo "<input type=\"hidden\" name=\"posts\" value=\"$count\">\n";
echo "<input type=\"hidden\" name=\"posts\" value=\"$count\" />\n";
echo '<br />';

$count = count_records('question');
echo get_string("questions", 'quiz').": ".$count;
echo "<input type=\"hidden\" name=\"questions\" value=\"$count\">\n";
echo "<input type=\"hidden\" name=\"questions\" value=\"$count\" />\n";
echo '<br />';

$count = count_records('resource');
echo get_string("modulenameplural", "resource").": ".$count;
echo "<input type=\"hidden\" name=\"resources\" value=\"$count\">\n";
echo "<input type=\"hidden\" name=\"resources\" value=\"$count\" />\n";
echo '<br />';

echo "</td>\n";
Expand All @@ -167,7 +167,7 @@

echo "<tr valign=\"top\">\n";
echo "<td align=\"right\">".get_string("administrator").":</td>\n";
echo "<td><input size=\"50\" type=\"text\" name=\"adminname\" value=\"".fullname($admin, true)."\"></td>\n";
echo "<td><input size=\"50\" type=\"text\" name=\"adminname\" value=\"".fullname($admin, true)."\" /></td>\n";
echo "</tr>\n";

echo "<tr valign=\"top\">\n";
Expand All @@ -187,7 +187,7 @@

echo "<tr valign=\"top\">\n";
echo "<td align=\"right\">&nbsp;</td>\n";
echo "<td><input type=\"submit\" value=\"".get_string("registrationsend")."\"></td>\n";
echo "<td><input type=\"submit\" value=\"".get_string("registrationsend")."\" /></td>\n";
echo "</tr>\n";


Expand Down
2 changes: 1 addition & 1 deletion blocks/search_forums/block_search_forums.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function get_content() {

$advancedsearch = get_string('advancedsearch', 'block_search_forums');

//Accessibility: replaced <input value=">" type="submit"> with configurable text/'silent' character.
//Accessibility: replaced <input value=" />" type="submit"> with configurable text/'silent' character.
check_theme_arrows();
// Theme config, $CFG->block_search_button = $THEME->rarrow .'<span class="accesshide">'.get_string('search').'</span>';
$button = (isset($CFG->block_search_button)) ? $CFG->block_search_button : get_string('go');
Expand Down
2 changes: 1 addition & 1 deletion blog/TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ define('MAGPIE_CACHE_FRESH_ONLY', false); //should be exposed as an admin config
//below is a section removed from edit.php.
<?php
if($CFG->blog_useweblog_rpc) {
echo "<input type=checkbox name=weblogrpc value=\"1\">Send update notice to weblogs.com<br>(may cause longer load time)&nbsp;";
echo "<input type=checkbox name=weblogrpc value=\"1\" />Send update notice to weblogs.com<br>(may cause longer load time)&nbsp;";
}?>

� DH - RSS - All rss/atom scripts should use a blogFilter with arguments passed in to be used in loading correct blogEntries. Either the news page or a new function in BlogFilter should build the cache filename. Create a new page that has full drop down menu options to select a specific feed type (filter news feeds by category, user, date to start with)
Expand Down
6 changes: 3 additions & 3 deletions course/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@

echo "<form id=\"movecourses\" action=\"search.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"$USER->sesskey\">";
echo "<input type=\"hidden\" name=\"search\" value=\"".s($search, true)."\">";
echo "<input type=\"hidden\" name=\"page\" value=\"$page\">";
echo "<input type=\"hidden\" name=\"perpage\" value=\"$perpage\">";
echo "<input type=\"hidden\" name=\"search\" value=\"".s($search, true)."\" />";
echo "<input type=\"hidden\" name=\"page\" value=\"$page\" />";
echo "<input type=\"hidden\" name=\"perpage\" value=\"$perpage\" />";
echo "<table align=\"center\" border=0 cellspacing=2 cellpadding=4 class=\"generalbox\"><tr>";
echo "<th scope=\"col\">$strcourses</th>";
echo "<th scope=\"col\">$strcategory</th>";
Expand Down
24 changes: 12 additions & 12 deletions enrol/authorize/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function authorize_print_orders($courseid, $userid)
popup_form($baseurl.'&amp;status='.$status.'&amp;course=',$popupcrs,'coursesmenu',$courseid,'','','',false);echo"</td>\n";
if (has_capability('enrol/authorize:uploadcsv', get_context_instance(CONTEXT_USER, $USER->id))) {
echo "<form method='get' action='uploadcsv.php'>";
echo "<td rowspan=2 align='right' valign='middle' width='50%'><input type='submit' value='".get_string('uploadcsv', 'enrol_authorize')."'></td>";
echo "<td rowspan=2 align='right' valign='middle' width='50%'><input type='submit' value='".get_string('uploadcsv', 'enrol_authorize')."' /></td>";
echo "</form>";
}
else {
Expand Down Expand Up @@ -228,7 +228,7 @@ function authorize_print_order_details($orderno)
}

echo "<form action=\"index.php\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"order\" value=\"$orderno\">\n";
echo "<input type=\"hidden\" name=\"order\" value=\"$orderno\" />\n";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"" . sesskey() . "\" />";

$settled = authorize_settled($order);
Expand Down Expand Up @@ -266,7 +266,7 @@ function authorize_print_order_details($orderno)
$strcaptureyes = get_string('captureyes', 'enrol_authorize');
$table->data[] = array("<b>$strs->confirm:</b>",
"$strcaptureyes <br />
<input type='hidden' name='confirm' value='1'><input type='submit' name='". ORDER_CAPTURE ."' value='$authstrs->capture' />
<input type='hidden' name='confirm' value='1' /><input type='submit' name='". ORDER_CAPTURE ."' value='$authstrs->capture' />
&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
}
else {
Expand Down Expand Up @@ -328,8 +328,8 @@ function authorize_print_order_details($orderno)
$cbunenrol = print_checkbox('unenrol', '1', !empty($unenrol), '', '', '', true);
$table->data[] = array("<b>$authstrs->unenrolstudent</b>", $cbunenrol);
$table->data[] = array("<b>$strhowmuch</b>",
"<input type='hidden' name='confirm' value='1'>
<input type='text' size='5' name='amount' value='$amount'>
"<input type='hidden' name='confirm' value='1' />
<input type='text' size='5' name='amount' value='$amount' />
$strcanbecredit<br /><input type='submit' name='".ORDER_REFUND."' value='$authstrs->refund'>");
}
else {
Expand Down Expand Up @@ -371,8 +371,8 @@ function authorize_print_order_details($orderno)
if (empty($confirm)) {
$strvoidyes = get_string('voidyes', 'enrol_authorize');
$table->data[] = array("<b>$strs->confirm:</b>",
"$strvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'>
<input type='hidden' name='confirm' value='1'>
"$strvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y' />
<input type='hidden' name='confirm' value='1' />
<input type='submit' value='$authstrs->void'>
&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
}
Expand Down Expand Up @@ -418,9 +418,9 @@ function authorize_print_order_details($orderno)
$cbunenrol = print_checkbox('unenrol', '1', !empty($unenrol), '', '', '', true);
$table->data[] = array("<b>$authstrs->unenrolstudent</b>", $cbunenrol);
$table->data[] = array("<b>$strs->confirm:</b>",
"$strsubvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'>
<input type='hidden' name='confirm' value='1'>
<input type='hidden' name='suborder' value='$suborderno'>
"$strsubvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y' />
<input type='hidden' name='confirm' value='1' />
<input type='hidden' name='suborder' value='$suborderno' />
<input type='submit' value='$authstrs->void'>
&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
}
Expand Down Expand Up @@ -457,8 +457,8 @@ function authorize_print_order_details($orderno)
$cbunenrol = print_checkbox('unenrol', '1', !empty($unenrol), '', '', '', true);
$table->data[] = array("<b>$authstrs->unenrolstudent</b>", $cbunenrol);
$table->data[] = array("<b>$strs->confirm:</b>",
"<input type='hidden' name='".ORDER_DELETE."' value='y'>
<input type='hidden' name='confirm' value='1'>
"<input type='hidden' name='".ORDER_DELETE."' value='y' />
<input type='hidden' name='confirm' value='1' />
<input type='submit' value='$authstrs->delete'>
&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
}
Expand Down
4 changes: 2 additions & 2 deletions enrol/authorize/uploadcsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
/// Print submit form
$maxuploadsize = get_max_upload_file_size();
echo '<center><form method="post" enctype="multipart/form-data" action="uploadcsv.php">
<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'">
<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxuploadsize.'" />
<input type="hidden" name="sesskey" value="'.$USER->sesskey.'">';
upload_print_form_fragment(1, array('csvfile'), array(get_string('file')));
echo '<input type="submit" value="'.get_string('upload').'">';
echo '<input type="submit" value="'.get_string('upload').'" />';
echo '</form></center><br />';

/// Print footer
Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/enrol.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<td><?php print_string('allowguests') ?>:&nbsp; </td>
<td>
<input name="id" value="<?php p($course->id) ?>" type="hidden">
<input name="loginasguest" value="yes" type="hidden">
<input name="loginasguest" value="yes" type="hidden" />
<input value="<?php print_string('loginguest') ?>" type="submit">
</td>
</tr>
Expand Down
14 changes: 7 additions & 7 deletions filter/algebra/algebradebug.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,21 +332,21 @@ function slasharguments($texexp, $md5) {
target="inlineframe">
<center>
<input type="text" name="algebra" size="50"
value="sin(z)/(x^2+y^2)">
value="sin(z)/(x^2+y^2)" />
</center>
<ol>
<li>First click on this button <input type="submit" name="ShowDB" value="Show DB Entry">
<li>First click on this button <input type="submit" name="ShowDB" value="Show DB Entry" />
to see the cache_filters database entry for this expression.</li>
<li>If the database entry looks corrupt, click on this button to delete it:
<input type="submit" name="DeleteDB" value="Delete DB Entry"></li>
<li>Now click on this button <input type="submit" name="TeXStage1" value="First Stage Tex Translation">.
<input type="submit" name="DeleteDB" value="Delete DB Entry" /></li>
<li>Now click on this button <input type="submit" name="TeXStage1" value="First Stage Tex Translation" />.
A preliminary translation into TeX will appear in the box below.</li>
<li>Next click on this button <input type="submit" name="TeXStage2" value="Second Stage Tex Translation">.
<li>Next click on this button <input type="submit" name="TeXStage2" value="Second Stage Tex Translation" />.
A more refined translation into TeX will appear in the box below.</li>
<li>Then click on this button <input type="submit" name="ShowImage" value="Show Image">
<li>Then click on this button <input type="submit" name="ShowImage" value="Show Image" />
to show a graphic image of the algebraic expression.</li>
<li>Finally check your slash arguments setting
<input type="submit" name="SlashArguments" value="Check Slash Arguments"></li>
<input type="submit" name="SlashArguments" value="Check Slash Arguments" /></li>
</ol>
</form> <br /> <br />
<center>
Expand Down
10 changes: 5 additions & 5 deletions filter/tex/texdebug.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,17 @@ function slasharguments($texexp) {
target="inlineframe">
<center>
<input type="text" name="tex" size="50"
value="f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt">
value="f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt" />
</center>
<ol>
<li>First click on this button <input type="submit" name="ShowDB" value="Show DB Entry">
<li>First click on this button <input type="submit" name="ShowDB" value="Show DB Entry" />
to see the cache_filters database entry for this expression.</li>
<li>If the database entry looks corrupt, click on this button to delete it:
<input type="submit" name="DeleteDB" value="Delete DB Entry"></li>
<li>Then click on this button <input type="submit" name="ShowImage" value="Show Image">
<input type="submit" name="DeleteDB" value="Delete DB Entry" /></li>
<li>Then click on this button <input type="submit" name="ShowImage" value="Show Image" />
to show a graphic image of the algebraic expression.</li>
<li>Finally check your slash arguments setting
<input type="submit" name="SlashArguments" value="Check Slash Arguments"></li>
<input type="submit" name="SlashArguments" value="Check Slash Arguments" /></li>
</ol>
</form> <br /> <br />
<center>
Expand Down
4 changes: 2 additions & 2 deletions filter/tex/texed.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
<form action="texed.php" method="get"
target="inlineframe">
<input type="text" name="formdata" size="50"
value="\Large f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt">
<input type="submit">
value="\Large f(x)=\Bigint_{-\infty}^x~e^{-t^2}dt" />
<input type="submit" />
</form> <br /> <br />
<iframe name="inlineframe" align="middle" width="80%" height="100">
&lt;p&gt;Something is wrong...&lt;/p&gt;
Expand Down
10 changes: 5 additions & 5 deletions iplookup/ipatlas/ip-atlas_prefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@

} else {

print "<input type=\"hidden\" name=\"seldrawmode\" value=\"0\">";
print "<input type=\"hidden\" name=\"seldrawmode\" value=\"0\" />";

}

Expand All @@ -134,7 +134,7 @@
<?php
if($drawmode == "GD") {
print '
<input type="hidden" name="cssdot" value="reddot.gif">
<input type="hidden" name="cssdot" value="reddot.gif" />
<table><tr>
Expand Down Expand Up @@ -201,9 +201,9 @@
print "</select><br />";

print '
<input type="hidden" name="shape" value="Diamond">
<input type="hidden" name="color" value="Red">
<input type="hidden" name="size" value="3">
<input type="hidden" name="shape" value="Diamond" />
<input type="hidden" name="color" value="Red" />
<input type="hidden" name="size" value="3" />
';

}
Expand Down
Loading

0 comments on commit 60af270

Please sign in to comment.