Warning, file /webapps/ocs-webserver/application/modules/backend/views/scripts/paginationAjax_2.phtml was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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     <div class="paginationControl">
0025         <!-- Vorheriger Seitenlink -->
0026         <?php if (isset($this->previous)): ?>
0027             <a href="#" title="<?= $this->previous; ?>" id="dialog_link_l" class="ui-state-default ui-corner-all"
0028                style="float:left;">
0029                 <span class="ui-icon ui-icon-carat-1-w"></span>Vorher
0030             </a>
0031         <?php else: ?>
0032             <div id="dialog_link_l" class="ui-state-default ui-corner-all" style="float: left;"><span
0033                     class="ui-icon ui-icon-carat-1-w"></span>Vorher
0034             </div>
0035         <?php endif; ?>
0036 
0037         <!-- Anzahl an Seitenlinks -->
0038         <?php foreach ($this->pagesInRange as $page): ?>
0039             <?php if ($page != $this->current): ?>
0040                 <a href="#" title="<?= $page; ?>" class="ui-state-default ui-corner-all pageButton"
0041                    style="float: left;"><?php echo $page; ?></a>
0042             <?php else: ?>
0043                 <div class="ui-state-default ui-corner-all pageButton" style="float: left;"><?php echo $page; ?></div>
0044             <?php endif; ?>
0045         <?php endforeach; ?>
0046 
0047         <!-- Nächster Seitenlink -->
0048         <?php if (isset($this->next)): ?>
0049             <a href="#" title="<?= $this->next; ?>" id="dialog_link_r" class="ui-state-default ui-corner-all"
0050                style="float: left;">Nächster <span class="ui-icon ui-icon-carat-1-e"></span></a>
0051         <?php else: ?>
0052             <div id="dialog_link_r" class="ui-state-default ui-corner-all" style="float: left;">Nächster<span
0053                     class="ui-icon ui-icon-carat-1-e"></span></div>
0054         <?php endif; ?>
0055         <script type="text/javascript">
0056             $(".paginationControl a").hover(
0057                 function () {
0058                     $(this).addClass("ui-state-hover");
0059                 },
0060                 function () {
0061                     $(this).removeClass("ui-state-hover");
0062                 }
0063             );
0064 
0065             $(".paginationControl a").click(function () {
0066                 var page = $(this).attr("title");
0067                 var ajaxUrl = '<?= $this->ajaxUrl; ?>';
0068                 //alert("Page: "+page+" Channel: "+channel);
0069 
0070                 var url = ajaxUrl + "/page/" + page;
0071                 $.post(url, function (data) {
0072                     $("#<?= $this->showDiv; ?>").html(data);
0073                 });
0074 
0075             });
0076 
0077         </script>
0078     </div>
0079 <?php endif; ?>