File indexing completed on 2024-12-29 05:24:45
0001 <?php 0002 /** 0003 * ocs-webserver 0004 * 0005 * Copyright 2016 by pling GmbH. 0006 * 0007 * This file is part of ocs-webserver. 0008 * 0009 * This program is free software: you can redistribute it and/or modify 0010 * it under the terms of the GNU Affero General Public License as 0011 * published by the Free Software Foundation, either version 3 of the 0012 * License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU Affero General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Affero General Public License 0020 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 **/ 0022 $users = $this->newUsers($limit = 216,'created_at','DESC'); 0023 $buildMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0024 $helperImage = new Default_View_Helper_Image(); 0025 $this->inlineScript()->appendFile('/theme/flatui/js/lib/bootstrap-validator.min.js'); 0026 ?> 0027 0028 <!-- new code --> 0029 <main id="reg-page"> 0030 0031 <section class="wrapper" id="register-wrap"> 0032 <div id="register" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 clearfix"> 0033 <div id="register-box" class="col-lg-8 col-md-8 col-sm-8 col-xs-8"> 0034 0035 <div id="login-form-box" class="well" style="width:100%;"> 0036 <h3><?= $this->translate('Please type in your new password.') ?></h3> 0037 0038 <div id="help-block" class="help-block"> 0039 <?= $this->translate('') ?> 0040 </div> 0041 <div id="error" class="center text-error help-block"> 0042 <?php if ($this->error && isset($this->errorText)): ?> 0043 <p class="errors"> 0044 <?= $this->translate($this->errorText) ?> 0045 </p> 0046 <?php endif; ?> 0047 </div> 0048 <form id="passwordForm" class="standard-form row-fluid center" action="<?=$this->action?>" method="post" role="form" data-toggle="validator"> 0049 <?php 0050 if ($this->error) { 0051 $this->form->mail->class = $this->form->mail->class . ' has-error'; 0052 } 0053 ?> 0054 0055 <div class="form-group has-feedback"> 0056 <input name="password1" id="password1" value="" type="password" placeholder="Password" data-minlength="6" class="form-control" required data-minlength-error="Minimum of 6 characters"><div class="help-block with-errors"></div></div> 0057 <div class="form-group has-feedback"> 0058 <input name="password2" id="password2" value="" type="password" placeholder="Confirm Password" class="form-control" data-minlength="6" required data-match="#password1" data-minlength-error="Minimum of 6 characters" data-match-error="Passwords don't match"><div class="help-block with-errors"></div></div> 0059 0060 <button name="change_it" id="change_it" type="submit" class="btn btn-min-width btn-native">Change Password <i id="load-state" class="fa fa-spinner fa-pulse hidden" aria-hidden="true"></i></button> 0061 0062 </form> 0063 0064 </div> 0065 0066 </div> 0067 <!-- END #login-box --> 0068 <div id="social-register" class="col-lg-4 col-md-4 col-sm-4 col-xs-4"> 0069 <h3></h3> 0070 0071 <div class="bottom"> 0072 <div id="show-login-description" class="small light lightgrey">Already have an account?</div> 0073 <div class="login2"> 0074 <a href="/login/" 0075 id="show-login-form" 0076 class="btn btn-native btn-min-width" rel="nofollow"> 0077 <i class="icon-white icon-lock"></i> 0078 Login 0079 </a> 0080 </div> 0081 </div> 0082 </div> 0083 </div> 0084 </section> 0085 0086 <section id="thumbs"> 0087 0088 <?php foreach ($users as $key => $user) { ?> 0089 0090 <div class="thumb"> 0091 <a href="<?php echo $buildMemberUrl->buildMemberUrl($user['username']); ?>"> 0092 <span></span> 0093 <img src="<?php echo $helperImage->Image($user['profile_image_url'],array('width' => 110, 'height' => 110, 'crop' => 2)); ?>"/> 0094 </a> 0095 </div> 0096 0097 <?php } ?> 0098 0099 </section> 0100 0101 </main> 0102 <!-- /new code --> 0103 0104 <?php $this->inlineScript()->appendScript( 0105 ' $(document).ready(function(){ 0106 0107 }); 0108 ');