File indexing completed on 2024-06-23 05:51:20
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 0024 $modelCategory = new Default_Model_ProjectCategory(); 0025 $this->categories = $modelCategory->fetchTreeForView(); 0026 $jsonTree = json_encode($this->categories); 0027 $this->tab = 'payout-groupby-amount'; 0028 echo $this->render('statistics/headerTabs.phtml'); 0029 0030 0031 $modelData = new Statistics_Model_Data(Zend_Registry::get('config')->resources->toArray()); 0032 $products = $modelData->getPayoutgroupbyamountProduct(); 0033 $member = $modelData->getPayoutgroupbyamountMember(); 0034 ?> 0035 <h3>Statistics: Payout group by amount </h3> 0036 <style type="text/css"> 0037 .main-container{ 0038 display: flex; 0039 max-height: 500px; 0040 float: left; 0041 } 0042 .main-container .container{ 0043 width: 100%; 0044 list-style: none; 0045 } 0046 .main-container .container li{ 0047 border-bottom: 1px solid #ccc; 0048 } 0049 .main-container .container span.tier{ 0050 display: inline-block; 0051 width: 100px; 0052 } 0053 0054 </style> 0055 <div id="linePayoutGroupbyAmountTab" class="tab-pane"> 0056 <div class="main-container"> 0057 <div> 0058 <h3> Products 0059 </h3> 0060 <ul class="container"> 0061 0062 <?php 0063 echo '<li><span class="tier">$</span><span class="cnt"> # </li>'; 0064 foreach ($products as $p) { 0065 $tmp = $p['x'] ==0?1:$p['x']; 0066 echo '<li><span class="tier">'.$tmp.'->'.($p['x']+10).'</span><span class="cnt">'.$p['y'].'</li>'; 0067 } ?> 0068 </ul> 0069 </div> 0070 <div> 0071 <h3> Members 0072 </h3> 0073 <ul class="container"> 0074 <?php 0075 0076 echo '<li><span class="tier">$</span><span class="cnt"> # </li>'; 0077 foreach ($member as $p) { 0078 $tmp = $p['x'] ==0?1:$p['x']; 0079 echo '<li><span class="tier">'.$tmp.'->'.($p['x']+10).'</span><span class="cnt">'.$p['y'].'</li>'; 0080 } ?> 0081 </ul> 0082 </div> 0083 </div> 0084 0085 <div id="linePayoutGroupbyAmount" class="chart-wrapper" style="max-width: 1000px; height: 100%; display: block; float: left; "> 0086 </div> 0087 <div id="linePayoutGroupbyAmountMember" class="chart-wrapper" style="max-width: 1000px; height: 100%; display: block; float: left; "> 0088 </div> 0089 </div> 0090 0091 <script type="text/javascript"> 0092 $(document).ready(function () { 0093 $.getScript("/theme/flatui/js/stati/payoutGroupbyAmount.js"); 0094 0095 0096 0097 0098 0099 }); 0100 </script>