paginator2 phtml


~/tmp/ZF/kbnext/paginator2.phtml.html 1 <div class="paginationControl"> 2 <?php if ($this->pageCount): ?> 3 <select id="paginationControl" size="1"> 4 <?php foreach ($this->pagesInRange as $page): ?> 5 <?php $selected = ($page == $this->current) ? ' selected="selected"' : ''; ?> 6 <option value="<?php 7 echo $this->url(array('page' => $page));?>"<?php echo $selected ?>> 8 <?php echo $page; ?> 9 </option> 10 <?php endforeach; ?> 11 </select> 12 <?php endif; ?> 13 <!-- 14 <script type="text/javascript" 15 src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js"> 16 </script> 17 --> 18 19 <script type="text/javascript" 20 src="<?php echo $this->baseUrl(); ?>/js/prototype.js" 21 </script> 22 23 24 <script type="text/javascript"> 25 $('paginationControl').observe('change', function() { 26 window.location = this.options[this.selectedIndex].value; 27 }) 28 </script> 29 </div>

Wyszukiwarka