File indexing completed on 2025-12-14 05:52:56

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 
0023 if($this->users->getTotalItemCount()>0)
0024 {
0025 ?>
0026 <span class="commentTitle" style="margin:auto;display:table;padding:5px"> Community </span>
0027 <div class="prod-widget-box right newusers" style=" background-color: #fff" id="activeuserscontainer">
0028 <?php 
0029 $pageCount = $this->users->count();
0030 ?>
0031     <div id="active-users-content">
0032 
0033     <div class="row" style="padding-bottom: 10px;">
0034       <div class="col-lg-1">
0035         
0036       </div>
0037       <div class="col-lg-7">
0038         <b>User</b>
0039       </div>
0040       <div class="col-lg-3">
0041         <span style="float: right; font-weight: bold;">Items</span>
0042       </div>
0043     </div>  
0044 
0045     <?php 
0046     $this->rownum = (1 + (($this->page - 1) * 10));
0047     $helpImage = new Default_View_Helper_Image();
0048     $helpMemberUrl = new Default_View_Helper_BuildMemberUrl();
0049     foreach ($this->users as $this->user): ?>
0050             <div class="row" style="padding-bottom: 5px;">
0051               <div class="col-lg-1">
0052                     <?=$this->rownum?>.
0053               </div>
0054         <div class="col-lg-7" >
0055                     <img src="<?php echo $helpImage->Image($this->user['profile_image_url'], array('width' => '50', 'height' => '50', 'crop' => 2)); ?>" style="max-width: 22px; max-height:22px;margin-right: 10px; border-radius: 50%;float: left"/>
0056             <a href="<?php echo $helpMemberUrl->buildMemberUrl($this->user['username']); ?>" style="vertical-align:middle;">
0057                         <?php echo  $this->user['username']; ?>
0058                     </a>
0059         </div>
0060         <div class="col-lg-3">
0061           <span style="float: right">
0062           <?=$this->user['cnt']?>
0063           </span>
0064         </div>
0065       </div>
0066       <?php
0067         $this->rownum++;
0068       ?>
0069     <?php endforeach;?>
0070 
0071     <small class="pull-right">        
0072         <?php if ($pageCount > 1) echo $this->paginationControl($this->users, 'Sliding', '/partials/paginationControlBootstrap.phtml',
0073             array('params' => array(), 'dom_target' => 'div#active-users-content')); ?>
0074     </small>  
0075     </div>
0076 
0077 </div>
0078 
0079 <?php } ?>