includeAtTemplateBase('includes/header.php'); ?>
includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary
?>
t('consentadmin_header') ?>
t('consentadmin_description1') ?>
t('service_provider_header') ?> |
t('status_header') ?> |
data['spList'];
$show_spid = 0;
//$show_hide_attributes= $this->t('show_hide_attributes');
$show_text = $this->t('show');
$hide_text = $this->t('hide');
$attributes_text = $this->t('attributes_text');
foreach ($spList AS $spName => $spValues) {
$this->includeInlineTranslation('spname', $spValues['name']);
$this->includeInlineTranslation('spdescription', $spValues['description']);
if (!is_null($spValues['serviceurl'])) {
$htmlSpName = '' . htmlspecialchars($this->t('spname', array(), false, true)) . '';
} else {
$htmlSpName = htmlspecialchars($this->t('spname', array(), false, true));
}
$spDescription = htmlspecialchars($this->t('spdescription',array(), false, true));
$checkedAttr = $spValues['consentStatus'] == 'ok' ? 'checked="checked"' : '';
$consentValue = $spValues['consentValue'];
$consentText = $spValues['consentStatus'] == 'changed' ? "attributes has changed" : "";
$row_class = ($show_spid % 2) ? "row0" : "row1";
echo <<
$htmlSpName $show_text$hide_text $attributes_text |
TRSTART;
$attributes = $spValues['attributes_by_sp'];
if ($this->data['showDescription']) {
echo ' ' . $this->t('consentadmin_purpose') . ' ' . $spDescription . ' ';
}
echo "\n \n";
foreach ($attributes AS $name => $value) {
if (isset($this->data['attribute_' . htmlspecialchars(strtolower($name)) ])) {
$name = $this->data['attribute_' . htmlspecialchars(strtolower($name))];
}
$name = $this->getAttributeTranslation($name); // translate
if (sizeof($value) > 1) {
echo "- " . htmlspecialchars($name) . ":\n
\n";
foreach ($value AS $v) {
echo '- ' . htmlspecialchars($v) . "
\n";
}
echo " \n \n";
} else {
echo "- " . htmlspecialchars($name) . ": " . htmlspecialchars($value[0]) . "
\n";
}
}
echo " ";
echo << |
|
$consentText |
TRSTART;
echo "\n";
$show_spid++;
}
?>
t('consentadmin_description2') ?>
Logout
Logout
includeAtTemplateBase('includes/footer.php'); ?>