File indexing completed on 2025-05-04 05:29:02
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 <div class="messages"> 0024 <?php foreach (Zend_Controller_Action_HelperBroker::getStaticHelper('flashMessenger') 0025 ->getCurrentMessages() as $message) : ?> 0026 <p><?php echo $this->escape($message); ?></p> 0027 <?php endforeach; ?> 0028 </div> 0029 <?php 0030 $lastMonth = date("Ym", strtotime("first day of previous month")); 0031 ?> 0032 0033 <div id="TableContainer"></div> 0034 <script type="text/javascript"> 0035 $(document).ready(function () { 0036 $('#TableContainer').jtable({ 0037 jqueryuiTheme: true, 0038 paging: true, 0039 sorting: true, 0040 defaultSorting: 'amount asc', 0041 title: 'Table of paypal valid stati', 0042 actions: { 0043 listAction: '/backend/paypalvalidstatus/list', 0044 createAction: '/backend/paypalvalidstatus/create', 0045 updateAction: '/backend/paypalvalidstatus/update', 0046 //deleteAction: '/backend/paypalvalidstatus/delete' 0047 }, 0048 fields: { 0049 id: { 0050 title: 'Id', 0051 key: true, 0052 create: true, 0053 edit: true, 0054 list: true 0055 }, 0056 title: { 0057 title: 'Title', 0058 list: true, 0059 create: true, 0060 edit: true 0061 }, 0062 description: { 0063 title: 'Description', 0064 list: true, 0065 create: true, 0066 edit: true 0067 }, 0068 color: { 0069 title: 'Color', 0070 list: true, 0071 create: true, 0072 edit: true 0073 }, 0074 is_active: { 0075 title: 'Active', 0076 width: '5%', 0077 list: true, 0078 edit: true, 0079 create: true, 0080 options: {'0': 'Inactive', '1': 'Active'}, 0081 optionsSorting: 'id' 0082 } 0083 }, 0084 recordsLoaded: function (event, data) { 0085 for (var i in data.records) { 0086 if (data.records[i].status == 100) { 0087 $('#TableContainer').find(".jtable tbody tr:eq(" + i + ")").css("cssText", "background-color:green !important; color:white !important;"); 0088 } 0089 if (data.records[i].status == 1) { 0090 $('#TableContainer').find(".jtable tbody tr:eq(" + i + ")").css("cssText", "background-color:yellow !important; color:black !important;"); 0091 } 0092 if (data.records[i].status > 100) { 0093 $('#TableContainer').find(".jtable tbody tr:eq(" + i + ")").css("cssText", "background-color:red !important; color:white !important;"); 0094 } 0095 } 0096 } 0097 }); 0098 0099 $('#TableContainer').jtable('load'); 0100 0101 0102 }); 0103 </script>