ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
loginuserpass.php
Go to the documentation of this file.
1 <?php
2 $this->data['header'] = $this->t('{login:user_pass_header}');
3 
4 if (strlen($this->data['username']) > 0) {
5  $this->data['autofocus'] = 'password';
6 } else {
7  $this->data['autofocus'] = 'username';
8 }
9 $this->includeAtTemplateBase('includes/header.php');
10 
11 ?>
12 
13 <?php
14 if ($this->data['errorcode'] !== null) {
15  ?>
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=""/>
19 
20  <h2><?php echo $this->t('{login:error_header}'); ?></h2>
21 
22  <p><strong><?php
23  echo htmlspecialchars($this->t($this->data['errorcodes']['title'][$this->data['errorcode']], $this->data['errorparams'])); ?></strong></p>
24 
25  <p><?php
26  echo htmlspecialchars($this->t($this->data['errorcodes']['descr'][$this->data['errorcode']], $this->data['errorparams'])); ?></p>
27  </div>
28 <?php
29 }
30 
31 ?>
32  <h2 style="break: both"><?php echo $this->t('{login:user_pass_header}'); ?></h2>
33 
34  <p class="logintext"><?php echo $this->t('{login:user_pass_text}'); ?></p>
35 
36  <form action="?" method="post" name="f">
37  <table>
38  <tr>
39  <td rowspan="2" class="loginicon">
40  <img alt=""
41  src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-authentication.48x48.png" />
42  </td>
43  <td><label for="username"><?php echo $this->t('{login:username}'); ?></label></td>
44  <td>
45  <input id="username" <?php echo ($this->data['forceUsername']) ? 'disabled="disabled"' : ''; ?>
46  type="text" name="username"
47 <?php if (!$this->data['forceUsername']) {
48  echo 'tabindex="1"';
49 } ?> value="<?php echo htmlspecialchars($this->data['username']); ?>"/>
50  </td>
51  <?php
52  if ($this->data['rememberUsernameEnabled'] && !$this->data['forceUsername']) {
53  // display the "remember my username" checkbox
54  ?>
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>
60  </td>
61  <?php
62  }
63  ?>
64  </tr>
65  <?php
66  if ($this->data['rememberUsernameEnabled'] && !$this->data['forceUsername']) {
67  // display the "remember my username" checkbox
68  ?>
69  <tr id="mobile_remember_username">
70  <td>&nbsp;</td>
71  <td>
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>
76  </td>
77  </tr>
78  <?php
79  }
80  ?>
81  <tr>
82  <td><label for="password"><?php echo $this->t('{login:password}'); ?></label></td>
83  <td>
84  <input id="password" type="password" tabindex="2" name="password"/>
85  </td>
86  <?php
87  if ($this->data['rememberMeEnabled']) {
88  // display the remember me checkbox (keep me logged in)
89  ?>
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>
95  </td>
96  <?php
97  }
98  ?>
99  </tr>
100  <?php
101  if ($this->data['rememberMeEnabled']) {
102  // display the remember me checkbox (keep me logged in)
103  ?>
104  <tr>
105  <td></td>
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>
111  </td>
112  </tr>
113  <?php
114  }
115  ?>
116  <?php
117  if (array_key_exists('organizations', $this->data)) {
118  ?>
119  <tr>
120  <td></td>
121  <td><label for="organization"><?php echo $this->t('{login:organization}'); ?></label></td>
122  <td><select name="organization" tabindex="3">
123  <?php
124  if (array_key_exists('selectedOrg', $this->data)) {
125  $selectedOrg = $this->data['selectedOrg'];
126  } else {
127  $selectedOrg = null;
128  }
129 
130  foreach ($this->data['organizations'] as $orgId => $orgDesc) {
131  if (is_array($orgDesc)) {
132  $orgDesc = $this->t($orgDesc);
133  }
134 
135  if ($orgId === $selectedOrg) {
136  $selected = 'selected="selected" ';
137  } else {
138  $selected = '';
139  }
140 
141  echo '<option '.$selected.'value="'.htmlspecialchars($orgId).'">'.htmlspecialchars($orgDesc).'</option>';
142  }
143  ?>
144  </select></td>
145  </tr>
146  <?php
147  }
148  ?>
149  <tr id="submit">
150  <td class="loginicon"></td><td></td>
151  <td>
152  <button class="btn"
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}'); ?>
156  </button>
157  </td>
158  </tr>
159  </table>
160  <?php
161  foreach ($this->data['stateparams'] as $name => $value) {
162  echo('<input type="hidden" name="'.htmlspecialchars($name).'" value="'.htmlspecialchars($value).'" />');
163  }
164  ?>
165  </form>
166 <?php
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>';
171  }
172  echo '</ul>';
173 }
174 echo('<h2 class="logintext">'.$this->t('{login:help_header}').'</h2>');
175 echo('<p class="logintext">'.$this->t('{login:help_text}').'</p>');
176 
177 $this->includeAtTemplateBase('includes/footer.php');
$this data['header']
"color:#CC0000 style
Definition: example_001.php:92
< span style="color:black;"> TC</span >< span style="color:white;"> PDF</span > & nbsp
Definition: example_001.php:88
if($format !==null) $name
Definition: metadata.php:146
global $l
Definition: afr.php:30