File indexing completed on 2025-05-04 05:29:30
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 $helperHumanTiming = new Default_View_Helper_HumanTiming(); 0024 $helperImage = new Default_View_Helper_Image(); 0025 $helpMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0026 $helpProductUrl = new Default_View_Helper_BuildProductUrl(); 0027 ?> 0028 <div class="tab-content" id="my-earnings-tabs"> 0029 <div> 0030 <?php 0031 $inc = 1; 0032 $bufferDate = ''; 0033 $index = 0; 0034 $helperImage = new Default_View_Helper_Image(); 0035 foreach ($this->earnings as $element) { 0036 $loopProductId = 'loop' . $this->project_id . $inc++; 0037 $date = $helperHumanTiming->humanTiming($element->create_time); 0038 $plingDate = new DateTime($element->create_time); 0039 $printDate = $plingDate->format('Y'); 0040 $print_date = str_replace(' ', '_', $printDate); 0041 $index++; 0042 if ($printDate != $bufferDate) { 0043 $bufferDate = $printDate; 0044 echo '<div style="line-height: 0.1em;border-bottom:1px solid #f1f1f1; width:100%; text-align: right; margin-bottom:20px"><span style="font-size:24px; font-weight:bold; background-color: white; padding-left: 10px;">'.$printDate.'</span> </div>'; 0045 } ?> 0046 0047 <div class="row" id="<?= $loopProductId ?>" style="padding-bottom:10px;"> 0048 <div class="col-lg-3 col-md-2 col-sm-2 col-xs-2 "> 0049 <a href="<?= $helpMemberUrl->buildMemberUrl($element->username) ?>"> 0050 <img src="<?php echo $helperImage->Image($element->profile_image_url,array('width' => 50, 'height' => 50)); ?>" 0051 alt="profile-image" 0052 style="border-radius:50%; width: 50px; height: 50px; margin-right: 10px" 0053 > 0054 </a> 0055 0056 <span style="padding-top: 10px"><?= $element->username ?></span> 0057 0058 <h3 class="lightblue product-title" style="float: right; padding-right: 30px; padding-top: 10px" >$<?= $element->amount ?></h3> 0059 0060 </div> 0061 0062 0063 <div class="col-lg-7 col-md-2 col-sm-2 col-xs-2" > 0064 <div style="padding-left: 50px"> 0065 <a href="<?=$helpProductUrl->buildProductUrl($element->project_id, '', null, true)?>"><img src="<?php echo $helperImage->Image($element->image_small, array('width' => 80, 'height' => 80)); ?>" style="max-width: 80px; max-height: 80px"/></a> 0066 <a href="<?=$helpProductUrl->buildProductUrl($element->project_id, '', null, true)?>"> <span class="" style="padding-left: 20px"><?php echo $element->title; ?></span></a> 0067 </div> 0068 </div> 0069 0070 <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 " style=""> 0071 <?=$plingDate->format('d M Y')?> 0072 </div> 0073 0074 </div> 0075 0076 <?php } ?> 0077 </div> 0078 </div>