2 $this->
data[
'header'] = $this->t(
'{login:user_pass_header}');
4 if (strlen($this->
data[
'username']) > 0) {
5 $this->
data[
'autofocus'] =
'password';
7 $this->
data[
'autofocus'] =
'username';
9 $this->includeAtTemplateBase(
'includes/header.php');
14 if ($this->
data[
'errorcode'] !== null) {
16 <div
style=
"border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5">
17 <img src=
"/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" 18 class=
"float-l erroricon" style=
"margin: 15px" alt=
""/>
20 <h2><?php echo $this->t(
'{login:error_header}'); ?></h2>
23 echo htmlspecialchars($this->t($this->
data[
'errorcodes'][
'title'][$this->
data[
'errorcode']], $this->data[
'errorparams'])); ?></strong></p>
26 echo htmlspecialchars($this->t($this->data[
'errorcodes'][
'descr'][$this->data[
'errorcode']], $this->data[
'errorparams'])); ?></p>
32 <h2
style=
"break: both"><?php echo $this->t(
'{login:user_pass_header}'); ?></h2>
34 <p
class=
"logintext"><?php echo $this->t(
'{login:user_pass_text}'); ?></p>
36 <form action=
"?" method=
"post" name=
"f">
39 <td rowspan=
"2" class=
"loginicon">
41 src=
"/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-authentication.48x48.png" />
43 <td><label
for=
"username"><?php echo $this->t(
'{login:username}'); ?></label></td>
45 <input
id=
"username" <?php echo ($this->
data[
'forceUsername']) ?
'disabled="disabled"' :
''; ?>
46 type=
"text" name=
"username" 47 <?php
if (!$this->
data[
'forceUsername']) {
49 } ?> value=
"<?php echo htmlspecialchars($this->data['username']); ?>"/>
52 if ($this->
data[
'rememberUsernameEnabled'] && !$this->
data[
'forceUsername']) {
55 <td
id=
"regular_remember_username">
56 <input type=
"checkbox" id=
"remember_username" tabindex=
"4" 57 <?php echo ($this->
data[
'rememberUsernameChecked']) ?
'checked="checked"' :
''; ?>
58 name=
"remember_username" value=
"Yes"/>
59 <small><?php echo $this->t(
'{login:remember_username}'); ?></small>
66 if ($this->
data[
'rememberUsernameEnabled'] && !$this->
data[
'forceUsername']) {
69 <tr
id=
"mobile_remember_username">
72 <input type=
"checkbox" id=
"remember_username" tabindex=
"4" 73 <?php echo ($this->
data[
'rememberUsernameChecked']) ?
'checked="checked"' :
''; ?>
74 name=
"remember_username" value=
"Yes"/>
75 <small><?php echo $this->t(
'{login:remember_username}'); ?></small>
82 <td><label
for=
"password"><?php echo $this->t(
'{login:password}'); ?></label></td>
84 <input
id=
"password" type=
"password" tabindex=
"2" name=
"password"/>
87 if ($this->
data[
'rememberMeEnabled']) {
90 <td
id=
"regular_remember_me">
91 <input type=
"checkbox" id=
"remember_me" tabindex=
"5" 92 <?php echo ($this->
data[
'rememberMeChecked']) ?
'checked="checked"' :
''; ?>
93 name=
"remember_me" value=
"Yes"/>
94 <small><?php echo $this->t(
'{login:remember_me}'); ?></small>
101 if ($this->
data[
'rememberMeEnabled']) {
106 <td
id=
"mobile_remember_me">
107 <input type=
"checkbox" id=
"remember_me" tabindex=
"5" 108 <?php echo ($this->
data[
'rememberMeChecked']) ?
'checked="checked"' :
''; ?>
109 name=
"remember_me" value=
"Yes"/>
110 <small><?php echo $this->t(
'{login:remember_me}'); ?></small>
117 if (array_key_exists(
'organizations', $this->
data)) {
121 <td><label
for=
"organization"><?php echo $this->t(
'{login:organization}'); ?></label></td>
122 <td><select name=
"organization" tabindex=
"3">
124 if (array_key_exists(
'selectedOrg', $this->
data)) {
125 $selectedOrg = $this->
data[
'selectedOrg'];
130 foreach ($this->
data[
'organizations'] as $orgId => $orgDesc) {
131 if (is_array($orgDesc)) {
132 $orgDesc = $this->t($orgDesc);
135 if ($orgId === $selectedOrg) {
136 $selected =
'selected="selected" ';
141 echo
'<option '.$selected.
'value="'.htmlspecialchars($orgId).
'">'.htmlspecialchars($orgDesc).
'</option>';
150 <td
class=
"loginicon"></td><td></td>
153 onclick=
"this.value='<?php echo $this->t('{login:processing}'); ?>'; 154 this.disabled=true; this.form.submit(); return true;" tabindex=
"6">
155 <?php echo $this->t(
'{login:login_button}'); ?>
161 foreach ($this->
data[
'stateparams'] as
$name => $value) {
162 echo(
'<input type="hidden" name="'.htmlspecialchars(
$name).
'" value="'.htmlspecialchars($value).
'" />');
167 if (!empty($this->
data[
'links'])) {
168 echo
'<ul class="links" style="margin-top: 2em">';
169 foreach ($this->
data[
'links'] as
$l) {
170 echo
'<li><a href="'.htmlspecialchars($l[
'href']).
'">'.htmlspecialchars($this->t($l[
'text'])).
'</a></li>';
174 echo(
'<h2 class="logintext">'.$this->t(
'{login:help_header}').
'</h2>');
175 echo(
'<p class="logintext">'.$this->t(
'{login:help_text}').
'</p>');
177 $this->includeAtTemplateBase(
'includes/footer.php');
< span style="color:black;"> TC</span >< span style="color:white;"> PDF</span > & nbsp