File indexing completed on 2025-05-04 05:29:29
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 <ul class="nav nav-tabs well"> 0024 <?php 0025 $inc = 1; 0026 $bufferDate = ''; 0027 $index = 0; 0028 foreach ($this->hits as $element) { 0029 $loopProductId = 'loop' . $this->project_id . $inc++; 0030 $date = $this->humanTiming($element->create_time); 0031 $plingDate = new DateTime($element->create_time); 0032 $printDate = $plingDate->format('M Y'); 0033 $print_date = str_replace(' ', '_', $printDate); 0034 $index++; 0035 if ($printDate != $bufferDate) { 0036 $bufferDate = $printDate; 0037 if ($index == 1) { ?> 0038 <li class="active"><a href="#<?= $print_date ?>" data-toggle="tab"><?= $printDate ?></a></li> 0039 <?php } else { ?> 0040 <li><a href="#<?= $print_date ?>" data-toggle="tab"><?= $printDate ?></a></li> 0041 <?php } ?> 0042 <?php } ?> 0043 <?php } ?> 0044 </ul> 0045 0046 <div class="tab-content" id="my-earnings-tabs"> 0047 <div> 0048 <?php 0049 $inc = 1; 0050 $bufferDate = ''; 0051 $index = 0; 0052 foreach ($this->hits as $element) { 0053 $loopProductId = 'loop' . $this->project_id . $inc++; 0054 $date = $this->humanTiming($element->create_time); 0055 $plingDate = new DateTime($element->create_time); 0056 $printDate = $plingDate->format('M Y'); 0057 $print_date = str_replace(' ', '_', $printDate); 0058 $index++; 0059 if ($printDate != $bufferDate) { 0060 $bufferDate = $printDate; 0061 if ($index == 1) { ?> 0062 </div> 0063 <div class="tab-pane active" id="<?= $print_date ?>"> 0064 <?php } else { ?> 0065 </div> 0066 <div class="tab-pane" id="<?= $print_date ?>"> 0067 <?php } ?> 0068 <?php } ?> 0069 0070 <div class="row" id="<?= $loopProductId ?>"> 0071 0072 <div class="col-lg-1 col-md-2 col-sm-2 col-xs-2"> 0073 <img src="<?php echo $this->Image($element->image_small, array('width' => 80, 'height' => 80)); ?>"/> 0074 </div> 0075 <div class="col-lg-7 col-md-6 col-sm-6 col-xs-6"> 0076 <h3><?php echo $element->title; ?></h3> 0077 </div> 0078 <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2"> 0079 <h3 class="lightblue product-title">$<?= $element->amount ?></h3> 0080 </div> 0081 <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 " style="line-height: 65px;"> 0082 <?= $date['age'] ?> <?= $date['unit'] ?> <?= $this->translate('ago') ?> 0083 </div> 0084 0085 </div> 0086 0087 <?php } ?> 0088 </div> 0089 </div>