ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
about2expire.php
Go to the documentation of this file.
1<?php
2
19# netid will expire today
20if ($this->data['daysleft'] == 0) {
21 $this->data['header'] = $this->t('{expirycheck:expwarning:warning_header_today}', array(
22 '%NETID%' => htmlspecialchars($this->data['netId'])
23 ));
24
25 $warning = $this->t('{expirycheck:expwarning:warning_today}', array(
26 '%NETID%' => htmlspecialchars($this->data['netId'])
27 ));
28
29}
30# netid will expire in one day
31elseif ($this->data['daysleft'] == 1) {
32
33 $this->data['header'] = $this->t('{expirycheck:expwarning:warning_header}', array(
34 '%NETID%' => htmlspecialchars($this->data['netId']),
35 '%DAYS%' => $this->t('{expirycheck:expwarning:day}'),
36 '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']),
37 ));
38
39 $warning = $this->t('{expirycheck:expwarning:warning}', array(
40 '%NETID%' => htmlspecialchars($this->data['netId']),
41 '%DAYS%' => $this->t('{expirycheck:expwarning:day}'),
42 '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']),
43 ));
44
45}
46# netid will expire in next <daysleft> days
47else {
48 $this->data['header'] = $this->t('{expirycheck:expwarning:warning_header}', array(
49 '%NETID%' => htmlspecialchars($this->data['netId']),
50 '%DAYS%' => $this->t('{expirycheck:expwarning:days}'),
51 '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']),
52 ));
53
54 $warning = $this->t('{expirycheck:expwarning:warning}', array(
55 '%NETID%' => htmlspecialchars($this->data['netId']),
56 '%DAYS%' => $this->t('{expirycheck:expwarning:days}'),
57 '%DAYSLEFT%' => htmlspecialchars($this->data['daysleft']),
58 ));
59
60
61}
62
63$this->data['autofocus'] = 'yesbutton';
64
65$this->includeAtTemplateBase('includes/header.php');
66
67?>
68
69<form style="display: inline; margin: 0px; padding: 0px" action="<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
70
71 <?php
72 // Embed hidden fields...
73 foreach ($this->data['yesData'] as $name => $value) {
74 echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
75 }
76 ?>
77 <h3><?php echo $warning; ?></h3>
78 <p><?php echo $this->t('{expirycheck:expwarning:expiry_date_text}') . " " . $this->data['expireOnDate']; ?></p>
79
80 <input type="submit" name="yes" id="yesbutton" value="<?php echo htmlspecialchars($this->t('{expirycheck:expwarning:btn_continue}')) ?>" />
81
82</form>
83
84
85<?php
86
87$this->includeAtTemplateBase('includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.
input
Definition: langcheck.php:166
$warning
$this data['autofocus']