/administrator/components/com_easysocial/themes/default/forms/types/pagination.php

https://gitlab.com/vnsoftdev/swc · PHP · 23 lines · 13 code · 0 blank · 10 comment · 3 complexity · aad64971ebaf8e47f892a32ca75f42aa MD5 · raw file

  1. <?php
  2. /**
  3. * @package EasySocial
  4. * @copyright Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
  5. * @license GNU/GPL, see LICENSE.php
  6. * EasySocial is free software. This version may have been modified pursuant
  7. * to the GNU General Public License, and as distributed it includes or
  8. * is derivative of works licensed under the GNU General Public License or
  9. * other free or open source software licenses.
  10. * See COPYRIGHT.php for copyright notices and details.
  11. */
  12. defined( '_JEXEC' ) or die( 'Unauthorized Access' );
  13. ?>
  14. <div class="row">
  15. <div class="col-sm-5">
  16. <select name="<?php echo $field->inputName;?>" class="form-control input-sm<?php echo isset( $field->class ) ? $field->class : '';?>">
  17. <?php for( $i = $field->start; $i <= $field->max; $i = ( $i + $field->increment ) ){ ?>
  18. <option value="<?php echo $i;?>"<?php echo $params->get( $field->name , $field->default ) == $i ? ' selected="selected"' : '';?>><?php echo $i;?></option>
  19. <?php } ?>
  20. <option value="0"<?php echo $params->get( $field->name , $field->default ) == 0 ? ' selected="selected"' : '';?>><?php echo JText::_( 'COM_EASYSOCIAL_FORM_ALL' ); ?></option>
  21. </select>
  22. </div>
  23. </div>