Commit c274c0cd authored by Chenu Denis's avatar Chenu Denis

Fixed issue #07992: Assessments are centered in HTML

Dev: just remove inline center
parent 747a741a
......@@ -2271,13 +2271,13 @@ function doAssessment($surveyid, $returndataonly=false)
if ($val >= $assessed['min'] && $val <= $assessed['max'] && $returndataonly===false)
{
$assessments .= "\t<!-- GROUP ASSESSMENT: Score: $val Min: ".$assessed['min']." Max: ".$assessed['max']."-->
<table class='assessments' align='center'>
<table class='assessments'>
<tr>
<th>".str_replace(array("{PERC}", "{TOTAL}"), array($val, $total), $assessed['name'])."
</th>
</tr>
<tr>
<td align='center'>".str_replace(array("{PERC}", "{TOTAL}"), array($val, $total), $assessed['message'])."
<td>".str_replace(array("{PERC}", "{TOTAL}"), array($val, $total), $assessed['message'])."
</td>
</tr>
</table><br />\n";
......@@ -2294,10 +2294,13 @@ function doAssessment($surveyid, $returndataonly=false)
if ($total >= $assessed['min'] && $total <= $assessed['max'] && $returndataonly===false)
{
$assessments .= "\t\t\t<!-- TOTAL ASSESSMENT: Score: $total Min: ".$assessed['min']." Max: ".$assessed['max']."-->
<table class='assessments' align='center'><tr><th>".str_replace(array("{PERC}", "{TOTAL}"), array($val, $total), stripslashes($assessed['name']))."
</th></tr>
<table class='assessments' align='center'>
<tr>
<td align='center'>".str_replace(array("{PERC}", "{TOTAL}"), array($val, $total), stripslashes($assessed['message']))."
<th>".str_replace(array("{PERC}", "{TOTAL}"), array($val, $total), stripslashes($assessed['name']))."
</th>
</tr>
<tr>
<td>".str_replace(array("{PERC}", "{TOTAL}"), array($val, $total), stripslashes($assessed['message']))."
</td>
</tr>
</table>\n";
......
......@@ -316,7 +316,9 @@ table.question tr.array1:hover,table.question tr.array2:hover {
.assessments-container {
}
.assessments td{
text-align: center;
}
.clearall-result {
font-size: small;
font-family:Arial, Helvetica, sans-serif;
......
......@@ -535,7 +535,9 @@ td.answertext {
.assessments-container {
background-color: #FFFFFF;
}
.assessments td{
text-align: center;
}
td.clearall-result {
text-align: center;
}
......
......@@ -413,7 +413,9 @@ table.question tr.array1:hover,table.question tr.array2:hover {
.assessments-container {
}
.assessments td{
text-align: center;
}
.completed-table {
margin: 0 auto;
width: 75%;
......
......@@ -596,7 +596,9 @@ table.group {
.assessments-container {
}
.assessments td{
text-align: center;
}
.completed-table {
margin: 0 auto;
width: 90%;
......
......@@ -472,7 +472,9 @@ table.group {
.assessments-container {
}
.assessments td{
text-align: center;
}
.completed-table {
margin: 0 auto;
width: 75%;
......
......@@ -646,7 +646,9 @@ table.question tr.array2:hover {
.survey-assessment {
font-weight: bold;
}
.assessments td{
text-align: center;
}
A:link,A:visited,A:active {
text-decoration: none;
color: #00677d;
......
......@@ -356,7 +356,9 @@ div.clear-all {
div.assessment-heading {
font-weight: bold;
}
.assessments td{
text-align: center;
}
/* paragraphs -------------------------------------------------------------------- */
p {
margin: 15px 0;
......
......@@ -229,7 +229,9 @@ select.select {
div.assessment-heading {
font-weight: bold;
}
.assessments td{
text-align: center;
}
.assessment-heading,
.survey-completed {
text-align: center;
......
......@@ -297,7 +297,9 @@ table.assessment-table {
.assessments td {
border: 0 none;
}
.assessments td{
text-align: center;
}
.completed-table {
margin: 0 auto;
width: 75%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment