HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
login.php
Go to the documentation of this file.
1 <?php
2 $this->pageTitle = Yii::app()->name.' - '.UserModule::t("Login");
3 $this->breadcrumbs = array(
4  UserModule::t("Login"),
5 );
6 ?>
7 
8 <h1><?php echo UserModule::t("Login"); ?></h1>
9 
10 <?php if (Yii::app()->user->hasFlash('loginMessage')): ?>
11 
12 <div class="success">
13  <?php echo Yii::app()->user->getFlash('loginMessage'); ?>
14 </div>
15 
16 <?php endif; ?>
17 
18 <p><?php echo UserModule::t("Please fill out the following form with your login credentials:"); ?></p>
19 
20 <div class="form">
21 <?php echo CHtml::beginForm(); ?>
22 
23  <p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
24 
25  <?php echo CHtml::errorSummary($model); ?>
26 
27  <div class="row">
28  <?php echo CHtml::activeLabelEx($model, 'username'); ?>
29  <?php echo CHtml::activeTextField($model, 'username') ?>
30  </div>
31 
32  <div class="row">
33  <?php echo CHtml::activeLabelEx($model, 'password'); ?>
34  <?php echo CHtml::activePasswordField($model, 'password') ?>
35  </div>
36 
37  <div class="row">
38  <p class="hint">
39  <?php echo CHtml::link(UserModule::t("Register"), Yii::app()->getModule('user')->registrationUrl); ?> | <?php echo CHtml::link(UserModule::t("Lost Password?"), Yii::app()->getModule('user')->recoveryUrl); ?>
40  </p>
41  </div>
42 
43  <div class="row rememberMe">
44  <?php echo CHtml::activeCheckBox($model, 'rememberMe'); ?>
45  <?php echo CHtml::activeLabelEx($model, 'rememberMe'); ?>
46  </div>
47 
48  <div class="row submit">
49  <?php echo CHtml::submitButton(UserModule::t("Login")); ?>
50  </div>
51 
52 <?php echo CHtml::endForm(); ?>
53 </div><!-- form -->
54 
55 
56 <?php
57 $form = new CForm(array(
58  'elements' => array(
59  'username' => array(
60  'type' => 'text',
61  'maxlength' => 32,
62  ),
63  'password' => array(
64  'type' => 'password',
65  'maxlength' => 32,
66  ),
67  'rememberMe' => array(
68  'type' => 'checkbox',
69  ),
70  ),
71 
72  'buttons' => array(
73  'login' => array(
74  'type' => 'submit',
75  'label' => 'Login',
76  ),
77  ),
78 ), $model);
79 ?>