File indexing completed on 2024-05-26 05:59:08
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 <?php if ($this->pageCount > 1): ?> 0024 <?php 0025 //Erzeuge Parameterstring fuer Link 0026 0027 if (count($this->attributes)) { 0028 0029 $attrStr = ""; 0030 0031 foreach ($this->attributes as $valName => $val) { 0032 $attrStr .= "/" . $valName . "/" . $val; 0033 } 0034 } 0035 ?> 0036 <div class="paginationControl"> 0037 <!-- Vorheriger Seitenlink --> 0038 <?php if (isset($this->previous)): ?> 0039 <a href="#" title="<?= $this->previous; ?>" id="dialog_link_l" class="ui-state-default ui-corner-all" 0040 style="float:left;"> 0041 <span class="ui-icon ui-icon-carat-1-w"></span>Vorher 0042 </a> 0043 <?php else: ?> 0044 <div id="dialog_link_l" class="ui-state-default ui-corner-all" style="float: left;"><span 0045 class="ui-icon ui-icon-carat-1-w"></span>Vorher 0046 </div> 0047 <?php endif; ?> 0048 0049 <!-- Anzahl an Seitenlinks --> 0050 <?php foreach ($this->pagesInRange as $page): ?> 0051 <?php if ($page != $this->current): ?> 0052 <a href="#" title="<?= $page; ?>" class="ui-state-default ui-corner-all pageButton" 0053 style="float: left;"><?php echo $page; ?></a> 0054 <?php else: ?> 0055 <div class="ui-state-default ui-corner-all pageButton ui-state-hover" 0056 style="float: left;"><?php echo $page; ?></div> 0057 <?php endif; ?> 0058 <?php endforeach; ?> 0059 0060 <!-- Nächster Seitenlink --> 0061 <?php if (isset($this->next)): ?> 0062 <a href="#" title="<?= $this->next; ?>" id="dialog_link_r" class="ui-state-default ui-corner-all" 0063 style="float: left;">Nächster <span class="ui-icon ui-icon-carat-1-e"></span></a> 0064 <?php else: ?> 0065 <div id="dialog_link_r" class="ui-state-default ui-corner-all" style="float: left;">Nächster<span 0066 class="ui-icon ui-icon-carat-1-e"></span></div> 0067 <?php endif; ?> 0068 <script type="text/javascript"> 0069 $(".paginationControl a").hover( 0070 function () { 0071 $(this).addClass("ui-state-hover"); 0072 }, 0073 function () { 0074 $(this).removeClass("ui-state-hover"); 0075 } 0076 ); 0077 0078 $(".paginationControl a").click(function () { 0079 var page = $(this).attr("title"); 0080 var attrStr = "<?= $attrStr; ?>"; 0081 //alert("Page: "+page+" Channel: "+channel); 0082 0083 var url = "/backend/content/indexajax/page/" + page + attrStr; 0084 0085 $.post(url, function (data) { 0086 $("#eventList").html(data); 0087 }); 0088 0089 }); 0090 0091 </script> 0092 </div> 0093 <?php endif; ?>