19 # netid will expire today 20 if ($this->
data[
'daysleft'] == 0) {
21 $this->
data[
'header'] = $this->t(
'{expirycheck:expwarning:warning_header_today}', array(
22 '%NETID%' => htmlspecialchars($this->
data[
'netId'])
25 $warning = $this->t(
'{expirycheck:expwarning:warning_today}', array(
26 '%NETID%' => htmlspecialchars($this->
data[
'netId'])
30 # netid will expire in one day 31 elseif ($this->
data[
'daysleft'] == 1) {
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']),
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']),
46 # netid will expire in next <daysleft> days 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']),
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']),
63 $this->
data[
'autofocus'] =
'yesbutton';
65 $this->includeAtTemplateBase(
'includes/header.php');
69 <form
style=
"display: inline; margin: 0px; padding: 0px" action=
"<?php echo htmlspecialchars($this->data['yesTarget']); ?>">
73 foreach ($this->
data[
'yesData'] as
$name => $value) {
74 echo(
'<input type="hidden" name="' . htmlspecialchars(
$name) .
'" value="' . htmlspecialchars($value) .
'" />');
78 <
p><?
php echo $this->t(
'{expirycheck:expwarning:expiry_date_text}') .
" " . $this->
data[
'expireOnDate']; ?></
p>
80 <
input type=
"submit" name=
"yes" id=
"yesbutton" value=
"<?php echo htmlspecialchars($this->t('{expirycheck:expwarning:btn_continue}')) ?>" />
87 $this->includeAtTemplateBase(
'includes/footer.php');