CommunityID/modules/users/views/scripts/login/index.phtml

86 lines
3.7 KiB
PHTML
Raw Normal View History

2019-07-17 20:16:19 +00:00
<?php if ($this->user->role != Users_Model_User::ROLE_GUEST ): ?>
2019-07-17 20:08:50 +00:00
<h3>
2019-07-17 20:16:19 +00:00
<?php echo $this->translate('Hello, %s', $this->escape($this->user->username)) ?>
2019-07-17 20:08:50 +00:00
</h3>
<ul>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/users/profile"><?= $this->translate('Account') ?></a>
2019-07-17 20:08:50 +00:00
</li>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/users/personalinfo"><?= $this->translate('Personal Info') ?></a>
2019-07-17 20:08:50 +00:00
</li>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/sites"><?= $this->translate('Sites database') ?></a>
2019-07-17 20:08:50 +00:00
</li>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/history"><?= $this->translate('History Log') ?></a>
2019-07-17 20:08:50 +00:00
</li>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/users/login/logout"><?= $this->translate('Logout') ?></a>
2019-07-17 20:08:50 +00:00
</li>
</ul>
2019-07-17 20:16:19 +00:00
<?php if ($this->user->role == Users_Model_User::ROLE_ADMIN): ?>
2019-07-17 20:08:50 +00:00
<hr />
2019-07-17 20:16:19 +00:00
<h3><?php echo $this->translate('Admin options') ?></h3>
2019-07-17 20:08:50 +00:00
<ul>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/users/manageusers"><?= $this->translate('Manage Users') ?></a>
2019-07-17 20:08:50 +00:00
</li>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/messageusers"><?= $this->translate('Message Users') ?></a>
2019-07-17 20:08:50 +00:00
</li>
<li>
2019-07-17 20:16:19 +00:00
<?php if ($this->maintenanceEnabled): ?>
<a href="<?php echo $this->base ?>/maintenancemode/disable"><?= $this->translate('Disable Maintenance Mode') ?></a>
<?php else: ?>
<a href="<?php echo $this->base ?>/maintenancemode/enable"><?= $this->translate('Enable Maintenance Mode') ?></a>
<?php endif ?>
2019-07-17 20:08:50 +00:00
</li>
<li>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/stats"><?= $this->translate('Statistics') ?></a>
</li>
<li>
<a href="<?php echo $this->base ?>/cid"><?= $this->translate('About Community-ID') ?></a>
2019-07-17 20:08:50 +00:00
</li>
</ul>
2019-07-17 20:16:19 +00:00
<?php endif ?>
<?php else: ?>
<?php if ($this->underMaintenance): ?>
2019-07-17 20:08:50 +00:00
<div class="messages_small">
2019-07-17 20:16:19 +00:00
<?php echo $this->translate('User access is currently disabled for system maintenance.<br />Please try again later') ?>
2019-07-17 20:08:50 +00:00
</div>
2019-07-17 20:16:19 +00:00
<?php endif ?>
<form id="loginForm" action="<?php echo $this->loginTargetBase ?>/users/login/authenticate" method="post" class="formGrid">
<div id="credentials">
<?php echo $this->loginForm->username ?>
<?php echo $this->loginForm->password ?>
<?php if ($this->useCaptcha): ?>
<?php echo $this->loginForm->captcha ?>
<?php endif ?>
</div>
<div id="rememberMe">
2019-07-17 20:08:50 +00:00
<!-- to hard to do in the ZF -->
2019-07-17 20:16:19 +00:00
<input type="checkbox" name="rememberme" style="top:0; width:15px" />
<label><?php echo $this->translate('Remember me') ?></label>
</div>
2019-07-17 20:08:50 +00:00
<div id="loginButton">
2019-07-17 20:16:19 +00:00
<input type="submit" id="login" value="<?php echo $this->translate('Log in') ?>" />
2019-07-17 20:08:50 +00:00
<script type="text/javascript">
var oButton = new YAHOO.widget.Button("login");
</script>
</div>
<p>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/users/recoverpassword" class="panel_link"><?= $this->translate('Forgot you password?') ?></a>
2019-07-17 20:08:50 +00:00
</p>
</form>
<hr/>
<div id="registerNow">
<p>
2019-07-17 20:16:19 +00:00
<?php echo $this->translate('You don\'t have an account?') ?>
2019-07-17 20:08:50 +00:00
<div>
2019-07-17 20:16:19 +00:00
<a href="<?php echo $this->base ?>/users/register"><?= $this->translate('REGISTER NOW!') ?></a>
2019-07-17 20:08:50 +00:00
</div>
</p>&nbsp;<!-- safari bug workaround -->
</div>
2019-07-17 20:16:19 +00:00
<?php endif; ?>