Skip to content

Commit

Permalink
Adjust header tags for proper nesting levels
Browse files Browse the repository at this point in the history
  • Loading branch information
drlippman committed Jun 8, 2018
1 parent 8c3609c commit 81c7697
Show file tree
Hide file tree
Showing 176 changed files with 473 additions and 427 deletions.
16 changes: 8 additions & 8 deletions actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if ($gb == '') {
echo "<div class=breadcrumb><a href=\"index.php\">Home</a> &gt; New User Signup</div>\n";
}
echo '<div id="headerforms" class="pagetitle"><h2>New User Signup</h2></div>';
echo '<div id="headerforms" class="pagetitle"><h1>New User Signup</h1></div>';
echo $error;
echo '<p><a href="forms.php?action=newuser">Try Again</a></p>';
require("footer.php");
Expand Down Expand Up @@ -126,7 +126,7 @@
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $sendfrom\r\n";
$message = "<h4>This is an automated message from $installname. Do not respond to this email</h4>\r\n";
$message = "<h3>This is an automated message from $installname. Do not respond to this email</h3>\r\n";
$message .= "<p>To complete your $installname registration, please click on the following link, or copy ";
$message .= "and paste it into your webbrowser:</p>\r\n";
$message .= "<a href=\"" . $GLOBALS['basesiteurl'] . "/actions.php?action=confirm&id=$id\">";
Expand All @@ -136,7 +136,7 @@
if ($gb == '') {
echo "<div class=breadcrumb><a href=\"index.php\">Home</a> &gt; New User Signup</div>\n";
}
echo '<div id="headerforms" class="pagetitle"><h2>New User Signup</h2></div>';
echo '<div id="headerforms" class="pagetitle"><h1>New User Signup</h1></div>';
echo "Registration recorded. You should shortly receive an email with confirmation instructions.";
echo "<a href=\"$imasroot/index.php\">Back to main login page</a>\n";
require("footer.php");
Expand All @@ -146,7 +146,7 @@
$pagetitle = 'Account Created';
require("header.php");
echo "<div class=breadcrumb><a href=\"index.php\">Home</a> &gt; New User Signup</div>\n";
echo '<div id="headerforms" class="pagetitle"><h2>New User Signup</h2></div>';
echo '<div id="headerforms" class="pagetitle"><h1>New User Signup</h1></div>';
echo "<p>Your account with username <b>" . Sanitize::encodeStringForDisplay($_POST['SID']) . "</b> has been created. If you forget your password, you can ask your ";
echo "instructor to reset your password or use the forgotten password link on the login page.</p>\n";
if (trim($_POST['courseid'])!='') {
Expand Down Expand Up @@ -270,7 +270,7 @@
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From:".$sendfrom."\r\n";
$message = "<h4>This is an automated message from $installname. Do not respond to this email</h4>\r\n";
$message = "<h3>This is an automated message from $installname. Do not respond to this email</h3>\r\n";
$message .= "<p>Your username was entered in the Reset Password page. If you did not do this, you may ignore and delete this message. ";
$message .= "If you did request a password reset, click the link below, or copy and paste it into your browser's address bar. You ";
$message .= "will then be prompted to choose a new password.</p>";
Expand Down Expand Up @@ -351,7 +351,7 @@
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From: $sendfrom\r\n";
$message = "<h4>This is an automated message from $installname. Do not respond to this email</h4>\r\n";
$message = "<h3>This is an automated message from $installname. Do not respond to this email</h3>\r\n";
$message .= "<p>Your email was entered in the Username Lookup page on $installname. If you did not do this, you may ignore and delete this message. ";
$message .= "All usernames using this email address are listed below</p><p>";
//DB while ($row = mysql_fetch_row($result)) {
Expand Down Expand Up @@ -448,7 +448,7 @@
if ($gb == '') {
$pagetopper .= "<div class=breadcrumb><a href=\"index.php\">Home</a> &gt; Enroll in a Course</div>\n";
}
$pagetopper .= '<div id="headerforms" class="pagetitle"><h2>Enroll in a Course</h2></div>';
$pagetopper .= '<div id="headerforms" class="pagetitle"><h1>Enroll in a Course</h1></div>';
if ($_POST['cid']=="" || !is_numeric($_POST['cid'])) {
require("header.php");
echo $pagetopper;
Expand Down Expand Up @@ -653,7 +653,7 @@
if ($gb == '') {
$pagetopper .= "<div class=breadcrumb><a href=\"index.php\">Home</a> &gt; Modify User Profile</div>\n";
}
$pagetopper .= '<div id="headerforms" class="pagetitle"><h2>Modify User Profile</h2></div>';
$pagetopper .= '<div id="headerforms" class="pagetitle"><h1>Modify User Profile</h1></div>';
require('includes/userpics.php');
if (isset($_POST['msgnot'])) {
$msgnot = 1;
Expand Down
4 changes: 2 additions & 2 deletions admin/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ function updateoutcomes(&$arr) {

require("../header.php");
echo '<div class="breadcrumb">'.$breadcrumbbase.' Course Creation Confirmation</div>';
echo '<h2>Your course has been created!</h2>';
echo '<h1>Your course has been created!</h1>';
echo '<p>For students to enroll in this course, you will need to provide them two things:<ol>';
echo '<li>The course ID: <b>'.$cid.'</b></li>';
if (trim($_POST['ekey'])=='') {
Expand Down Expand Up @@ -1043,7 +1043,7 @@ function updateoutcomes(&$arr) {
} else if (strpos($buffer,"function")===0) {
$func = substr($buffer,9,strpos($buffer,"(")-9);
if ($comments!='') {
$outlines .= "<h3><a name=\"$func\">$func</a></h3>\n";
$outlines .= "<h2><a name=\"$func\">$func</a></h2>\n";
$funcs[] = $func;
$outlines .= $comments;
$comments = '';
Expand Down
6 changes: 3 additions & 3 deletions admin/addremoveteachers.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ function getTeachers($cid) {
echo '<a href="admin2.php">'._('Admin').'</a> &gt; <a href="'.$backloc.'">'._('Group Details').'</a> &gt; ';
}
echo "$pagetitle</div>\n";
echo '<div class="pagetitle"><h2>'.$pagetitle.' - '.Sanitize::encodeStringForDisplay($coursename).'</h2></div>';
echo '<div class="pagetitle"><h1>'.$pagetitle.' - '.Sanitize::encodeStringForDisplay($coursename).'</h1></div>';
?>

<div id="app" v-cloak>
<div id="currentteachers">
<h3>Current Teachers</h3>
<h2>Current Teachers</h2>
<p>With selected: <button @click="removeTeachers()">Remove as teacher</button>
<span v-if="processingRemove" class="noticetext">Saving Changes... <img src="../img/updating.gif"></span>
</p>
Expand All @@ -172,7 +172,7 @@ function getTeachers($cid) {
</transition-group>
</div>
<div id="potentialteachers">
<h3>Potential Teachers</h3>
<h2>Potential Teachers</h2>
<p><button @click="loadGroup()">List my group members</button>
or lookup a teacher: <input v-model="toLookup" size=30>
<button @click="searchTeacher()" :disabled="toLookup.length==0">Search</button>
Expand Down
10 changes: 5 additions & 5 deletions admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@

?>
<div class=breadcrumb><?php echo $curBreadcrumb ?></div>
<div id="headeradmin" class="pagetitle"><h2><?php echo $installname ?> Administration</h2></div>
<div id="headeradmin" class="pagetitle"><h1><?php echo $installname ?> Administration</h1></div>
<b>Hello <?php echo $username ?></b>

<?php //WRITE OUT COURSES BLOCK ?>
<h3>Courses</h3>
<h2>Courses</h2>
<div class=item>
<table class=gb border=0 width="90%">
<thead>
Expand Down Expand Up @@ -310,7 +310,7 @@

<?php //END COURSE BLOCK, BEGIN ADMINISTRATION BLOCK ?>

<h3>Administration</h3>
<h2>Administration</h2>
<div class=cp>
<A HREF="forms.php?action=chgpwd">Change my password</a><BR>
<A HREF="../help.php?section=administration">Help</a><BR>
Expand Down Expand Up @@ -370,7 +370,7 @@
// END OF ADMINISTRATION BLOCK, BEGIN DIAGNOSTICS BLOCK
if(($myspecialrights&4)==4 || $myrights == 100) {
?>
<h4>Diagnostics</h4>
<h3>Diagnostics</h3>
<div class=item>
<table class=gb width="90%" id="diagTable">
<thead>
Expand Down Expand Up @@ -406,7 +406,7 @@

if($myrights >= 75) {
?>
<h4><?php echo $page_userBlockTitle ?></h4>
<h3><?php echo $page_userBlockTitle ?></h3>
<div class=item>
<table class=gb width="90%" id="myTable">
<thead>
Expand Down
2 changes: 1 addition & 1 deletion admin/admin2.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function getRoleNameByRights($rights) {
echo $body;
} else {
echo '<div class=breadcrumb>',$curBreadcrumb,'</div>';
echo '<div id="headeradmin" class="pagetitle"><h2>',$pagetitle,'</h2></div>';
echo '<div id="headeradmin" class="pagetitle"><h1>',$pagetitle,'</h1></div>';
if ($page=='groupadmin') {
//group admin header top navigation
echo '<div class=cpmid>';
Expand Down
2 changes: 1 addition & 1 deletion admin/approvepending.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
$details = '';
}

echo '<h2>Account Approval</h2>';
echo '<h1>Account Approval</h1>';
echo '<form method="post" action="approvepending.php?go=true&amp;skipn='.$offset.'">';
echo '<input type="hidden" name="email" value="' . Sanitize::encodeStringForDisplay($row[4]) . '"/>';
echo '<input type="hidden" name="id" value="' . Sanitize::encodeStringForDisplay($row[0]) . '"/>';
Expand Down
4 changes: 2 additions & 2 deletions admin/approvepending2.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,15 @@ function getGroups() {

require("../header.php");
echo '<div class="breadcrumb">'. $curBreadcrumb . $pagetitle.'</div>';
echo '<div class="pagetitle"><h2>'.$pagetitle.'</h2></div>';
echo '<div class="pagetitle"><h1>'.$pagetitle.'</h1></div>';

?>

<div id="app" v-cloak>
<div style="float:right" class="noticetext">{{statusMsg}}</div>
<div v-if="toApprove.length==0">No requests to process</div>
<div v-for="(users,status) in toApprove" v-if="users.length>0">
<h4>{{ statusTitle[status] }}</h4>
<h3>{{ statusTitle[status] }}</h3>
<ul class="userlist">
<li v-for="(user,userindex) in users">
<span @click="toggleActiveUser(user.id, status, userindex)">
Expand Down
2 changes: 1 addition & 1 deletion admin/ccexport.php
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ function rrmdir($path) {
getsubinfo($items,'0','',false,'|- ');


echo '<h2>Common Cartridge Export</h2>';
echo '<h1>Common Cartridge Export</h1>';
echo '<p>This feature will allow you to export a v1.1 compliant IMS Common Cartridge export of your course, which can ';
echo 'then be loaded into other Learning Management Systems that support this standard. Inline text, web links, ';
echo 'course files, and forums will all transfer reasonably well, but be aware that any math exported will call back to this server for display.</p>';
Expand Down
2 changes: 1 addition & 1 deletion admin/coursebrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function getCourseBrowserJSON() {
if (!isset($_GET['embedded'])) {
$curBreadcrumb = $breadcrumbbase . _('Course Browser');
echo '<div class=breadcrumb>'.$curBreadcrumb.'</div>';
echo '<div id="headercoursebrowser" class="pagetitle"><h2>'.$pagetitle.'</h2></div>';
echo '<div id="headercoursebrowser" class="pagetitle"><h1>'.$pagetitle.'</h1></div>';
}
?>
<div id="app" v-cloak>
Expand Down
6 changes: 3 additions & 3 deletions admin/diagonetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@
echo $body;
} else {
echo $curBreadcrumb;
echo '<div id="headerdiagonetime" class="pagetitle"><h2>Diagnostic One-time Passwords</h2></div>';
echo '<div id="headerdiagonetime" class="pagetitle"><h1>Diagnostic One-time Passwords</h1></div>';
//DB $query = "SELECT name FROM imas_diags WHERE id='$diag'";
//DB $result = mysql_query($query) or die("Query failed : " . mysql_error());
//DB echo '<h4>'.mysql_result($result,0,0).'</h4>';
//DB echo '<h3>'.mysql_result($result,0,0).'</h3>';
$stm = $DBH->prepare("SELECT name FROM imas_diags WHERE id=:id");
$stm->execute(array(':id'=>$diag));
echo '<h4>' . Sanitize::encodeStringForDisplay($stm->fetchColumn(0)) . '</h4>';
echo '<h3>' . Sanitize::encodeStringForDisplay($stm->fetchColumn(0)) . '</h3>';
if (isset($_GET['generate'])) {
if (isset($_POST['n'])) {
echo "<b>Newly generated passwords</b> <a href=\"diagonetime.php?from=$from&id=" . Sanitize::encodeUrlParam($diag) . "&view=true\">View all</a>";
Expand Down
8 changes: 4 additions & 4 deletions admin/diagsetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@

if (isset($_GET['step']) && $_GET['step']==2) { //STEP 2 DISPLAY
?>
<div id="headerdiagsetup" class="pagetitle"><h2>Diagnostic Setup</h2></div>
<h4>Second-level Selector - extra information</h4>
<div id="headerdiagsetup" class="pagetitle"><h1>Diagnostic Setup</h1></div>
<h3>Second-level Selector - extra information</h3>
<form method=post action="diagsetup.php?step=3&amp;from=<?php echo $from;?>">

<input type=hidden name="sel1list" value="<?php echo Sanitize::encodeStringForDisplay($sel1list); ?>"/>
Expand Down Expand Up @@ -403,7 +403,7 @@
} else {
//STEP 1 DISPLAY
?>
<div id="headerdiagsetup" class="pagetitle"><h2>Diagnostic Setup</h2></div>
<div id="headerdiagsetup" class="pagetitle"><h1>Diagnostic Setup</h1></div>
<form method=post action=diagsetup.php?step=2&amp;from=<?php echo $from; ?>>

<?php echo (isset($_GET['id'])) ? " <input type=hidden name=id value=\"".Sanitize::encodeUrlParam($_GET['id'])."\"/>" : ""; ?>
Expand Down Expand Up @@ -567,7 +567,7 @@
?>
</p>

<h4>First-level selector - selects assessment to be delivered</h4>
<h3>First-level selector - selects assessment to be delivered</h3>
<p>Selector name: <input name="sel" type=text value="<?php echo Sanitize::encodeStringForDisplay($sel); ?>"/> "Please select your _______"</p>
<p>Alphabetize selectors on submit? <input type="checkbox" name="alpha" value="1" /></p>
<p>Enter new selector option:
Expand Down
2 changes: 1 addition & 1 deletion admin/exportitems.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function exportcopysub($items,$parent,&$addtoarr) {
<?php echo $curBreadcrumb; ?>
<div class="cpmid"><a href="ccexport.php?cid=<?php echo $cid ?>">Export for another Learning Management System</a></div>

<h2>Export Course Items</h2>
<h1>Export Course Items</h1>

<p>This page will let you export your course items for backup or transfer to
another server running this software.</p>
Expand Down
2 changes: 1 addition & 1 deletion admin/exportitems2.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ function exportcopysub($items,$parent,&$addtoarr) {
<?php echo $curBreadcrumb; ?>
<div class="cpmid"><a href="ccexport.php?cid=<?php echo $cid ?>">Export for another Learning Management System</a></div>

<h2>Export Course Items</h2>
<h1>Export Course Items</h1>

<p>This page will let you export your course items for backup or transfer to
another server running this software.</p>
Expand Down
2 changes: 1 addition & 1 deletion admin/exportlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function getchildlibs($lib) {
?>
<form method=post action="exportlib.php?cid=<?php echo $cid ?>">

<div id="headerexportlib" class="pagetitle"><h2>Library Export</h2></div>
<div id="headerexportlib" class="pagetitle"><h1>Library Export</h1></div>
<p>Note: If a parent library is selected, it's children libraries are included in the export,
and heirarchy will be maintained. If libraries from different trees are selected, the topmost
libraries in each branch selected will be exported at the same level.</p>
Expand Down
6 changes: 3 additions & 3 deletions admin/externaltools.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
if (isset($_GET['delete'])) {
echo " &gt; <a href=\"externaltools.php?cid=$cid$ltfrom\">External Tools</a> &gt; Delete Tool</div>";
echo "<h2>Delete Tool</h2>";
echo "<h1>Delete Tool</h1>";
//DB $query = "SELECT name FROM imas_external_tools WHERE id='{$_GET['id']}'";
//DB $result = mysql_query($query) or die("Query failed : " . mysql_error());
//DB $name = mysql_result($result,0,0);
Expand All @@ -144,7 +144,7 @@

} else if (isset($_GET['id'])) {
echo " &gt; <a href=\"externaltools.php?cid=$cid$ltfrom\">External Tools</a> &gt; Edit Tool</div>";
echo "<h2>Edit Tool</h2>";
echo "<h1>Edit Tool</h1>";
if ($_GET['id']=='new') {
$name = ''; $url = ''; $key = ''; $secret = ''; $custom = ''; $privacy = 3; $grp = 0;
} else {
Expand Down Expand Up @@ -215,7 +215,7 @@

} else {
echo " &gt; External Tools</div>";
echo "<h2>External Tools</h2>";
echo "<h1>External Tools</h1>";

if ($isadmin) {
echo '<p><b>System and Group Tools</b></p>';
Expand Down
16 changes: 8 additions & 8 deletions admin/federationpull.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function print_header() {
require("../header.php");
print_header();

echo '<h2>Updating Libraries</h2>';
echo '<h1>Updating Libraries</h1>';

$data = json_decode(file_get_contents(getfopenloc($pullstatus['fileurl'])), true);

Expand Down Expand Up @@ -180,7 +180,7 @@ function print_header() {
}
}

echo '<h3>Libraries to Add</h3>';
echo '<h2>Libraries to Add</h2>';
if (count($toadd)==0) {
echo '<p>No libraries to add</p>';
} else {
Expand Down Expand Up @@ -209,7 +209,7 @@ function print_header() {
echo '</tbody></table>';
}

echo '<h3>Libraries to Change</h3>';
echo '<h2>Libraries to Change</h2>';
if (count($tochg)==0) {
echo '<p>No libraries to change</p>';
} else {
Expand Down Expand Up @@ -498,7 +498,7 @@ function chknone2(n) {
require("../header.php");
print_header();

echo '<h2>Updating Questions Batch</h2>';
echo '<h1>Updating Questions Batch</h1>';

echo '<input type="hidden" name="nextoffset" value="'.Sanitize::onlyInt($data['nextoffset']).'"/>';

Expand Down Expand Up @@ -695,7 +695,7 @@ function chknone2(n) {
//handle any new questions
//we've unset any $quidref that were used, so loop over unused
if (count($quidref)>0) {
echo '<h3>Adding Questions</h3>';
echo '<h2>Adding Questions</h2>';
}
foreach ($quidref as $uqid=>$i) {
$remote = $data['data'][$i];
Expand All @@ -718,7 +718,7 @@ function chknone2(n) {
//is in. No point asking about questions where we didn't bring in the library
continue;
}
echo '<h4><b>Question UID '.$remote['uniqueid'].'</b>.</h4> ';
echo '<h3><b>Question UID '.$remote['uniqueid'].'</b>.</h3> ';
echo '<p>Description: '.Sanitize::encodeStringForDisplay($remote['description']);
echo '. Check <a href="#" onclick="chkall2('.$remote['uniqueid'].');return false;">All</a> ';
echo '<a href="#" onclick="chknone2('.$remote['uniqueid'].');return false;">None</a></p>';
Expand Down Expand Up @@ -1018,7 +1018,7 @@ function chknone2(n) {
$libdata[$row['uniqueid']] = array('id'=>$row['id'], 'name'=>$row['name']);
}

echo '<h2>Updating Library Assignments for Unchanged Questions</h2>';
echo '<h1>Updating Library Assignments for Unchanged Questions</h1>';
$lookups = array();
$qlookups = array();
foreach ($data['data']['libitems'] AS $i=>$rli) {
Expand Down Expand Up @@ -1103,7 +1103,7 @@ function chknone2(n) {
}
}

echo '<h2>Updating ReplaceBy Records</h2>';
echo '<h1>Updating ReplaceBy Records</h1>';
$lookups = array();
$qlookups = array();
foreach ($data['data']['replacebys'] AS $i=>$rb) {
Expand Down
Loading

0 comments on commit 81c7697

Please sign in to comment.