Skip to content
Snippets Groups Projects
Commit 9f6e4660 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Added support for presenting jpegPhoto in consent module...

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1118 44740490-163a-0410-bde0-09ae8108e29a
parent 447d5052
No related branches found
No related tags found
No related merge requests found
...@@ -206,7 +206,12 @@ foreach ($this->data['noData'] as $name => $value) { ...@@ -206,7 +206,12 @@ foreach ($this->data['noData'] as $name => $value) {
} }
$str .= '</ul></td></tr>'; $str .= '</ul></td></tr>';
} elseif(isset($value[0])) { } elseif(isset($value[0])) {
$str .= '<tr class="' . $alternate[($i++ % 2)] . '"><td class="attrname">' . htmlspecialchars($name) . '</td><td class="attrvalue">' . htmlspecialchars($value[0]) . '</td></tr>'; $str .= '<tr class="' . $alternate[($i++ % 2)] . '"><td class="attrname">' . htmlspecialchars($name) . '</td>';
if ($nameraw === 'jpegPhoto') {
$str .= '<td class="attrvalue"><img src="data:image/jpeg;base64,' . htmlspecialchars($value[0]) . '" /></td></tr>';
} else {
$str .= '<td class="attrvalue">' . htmlspecialchars($value[0]) . '</td></tr>';
}
} }
} }
$str .= "\n"; $str .= "\n";
......
...@@ -54,4 +54,7 @@ table.attributes tr td { ...@@ -54,4 +54,7 @@ table.attributes tr td {
table#table_with_attributes tr:last-child td { table#table_with_attributes tr:last-child td {
border-bottom: none; border-bottom: none;
} }
td.attrvalue img {
border: 1px solid #777;
margin: 4px;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment