ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
consentform.php
Go to the documentation of this file.
1<?php
12assert(is_string($this->data['yesTarget']));
13assert(is_string($this->data['noTarget']));
14assert($this->data['sppp'] === false || is_string($this->data['sppp']));
15
16// Parse parameters
17$dstName = $this->data['dstName'];
18$srcName = $this->data['srcName'];
19
20
21$this->data['header'] = $this->t('{consent:consent:consent_header}');
22$this->data['head'] = '<link rel="stylesheet" type="text/css" href="/' .
23 $this->data['baseurlpath'] . 'module.php/consent/style.css" />' . "\n";
24
25$this->includeAtTemplateBase('includes/header.php');
26?>
27<p><?php echo $this->data['consent_accept']; ?></p>
28<?php
29if (isset($this->data['consent_purpose'])) {
30 echo '<p>'.$this->data['consent_purpose'].'</p>';
31}
32?>
33<form style="display: inline; margin: 0px; padding: 0px"
34 action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
35
36<?php
37if ($this->data['usestorage']) {
38 $checked = ($this->data['checked'] ? 'checked="checked"' : '');
39 echo '<input type="checkbox" name="saveconsent" '.$checked.
40 ' value="1" /> '.$this->t('{consent:consent:remember}');
41} // Embed hidden fields...}
42?>
43 <input type="hidden" name="StateId" value="<?php echo htmlspecialchars($this->data['stateId']); ?>" />
44 <button type="submit" name="yes" class="btn" id="yesbutton">
45 <?php echo htmlspecialchars($this->t('{consent:consent:yes}')) ?>
46 </button>
47</form>
48
49<form style="display: inline; margin-left: .5em;" action="<?php echo htmlspecialchars($this->data['noTarget']); ?>"
50 method="get">
51
52<?php
53foreach ($this->data['noData'] as $name => $value) {
54 echo('<input type="hidden" name="' . htmlspecialchars($name) .
55 '" value="' . htmlspecialchars($value) . '" />');
56}
57?>
58 <input type="hidden" name="StateId" value="<?php echo htmlspecialchars($this->data['stateId']); ?>" />
59 <button type="submit" class="btn" name="no" id="nobutton">
60 <?php echo htmlspecialchars($this->t('{consent:consent:no}')) ?>
61 </button>
62</form>
63
64<?php
65if ($this->data['sppp'] !== false) {
66 echo "<p>" . htmlspecialchars($this->t('{consent:consent:consent_privacypolicy}')) . " ";
67 echo '<a target="_blank" href="' . htmlspecialchars($this->data['sppp']) . '">' . $dstName . "</a>";
68 echo "</p>";
69}
70
71echo '<h3 id="attributeheader">' .
72 $this->t(
73 '{consent:consent:consent_attributes_header}',
74 array( 'SPNAME' => $dstName, 'IDPNAME' => $srcName)
75 ) .
76 '</h3>';
77
78echo $this->data['attributes_html'];
79
80$this->includeAtTemplateBase('includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.
$srcName
Definition: consentform.php:18
$this data['header']
Definition: consentform.php:21
$dstName
Definition: consentform.php:17
input
Definition: langcheck.php:166