edit.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Elgg Poll plugin
  4. * @package Elggpoll
  5. * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
  6. * @Original author John Mellberg
  7. * website http://www.syslogicinc.com
  8. * @Modified By Team Webgalli to work with ElggV1.5
  9. * www.webgalli.com or www.m4medicine.com
  10. */
  11. ?>
  12. <p>
  13. <?php echo elgg_echo('polls:widget:label:displaynum'); ?>
  14. <select name="params[limit]">
  15. <option value="1" <?php if($vars['entity']->num_display == 1) echo "SELECTED"; ?>>1</option>
  16. <option value="2" <?php if($vars['entity']->num_display == 2) echo "SELECTED"; ?>>2</option>
  17. <option value="3" <?php if($vars['entity']->num_display == 3) echo "SELECTED"; ?>>3</option>
  18. <option value="4" <?php if($vars['entity']->num_display == 4) echo "SELECTED"; ?>>4</option>
  19. <option value="5" <?php if($vars['entity']->num_display == 5) echo "SELECTED"; ?>>5</option>
  20. <option value="6" <?php if($vars['entity']->num_display == 6) echo "SELECTED"; ?>>6</option>
  21. <option value="7" <?php if($vars['entity']->num_display == 7) echo "SELECTED"; ?>>7</option>
  22. <option value="8" <?php if($vars['entity']->num_display == 8) echo "SELECTED"; ?>>8</option>
  23. <option value="9" <?php if($vars['entity']->num_display == 9) echo "SELECTED"; ?>>9</option>
  24. <option value="10" <?php if($vars['entity']->num_display == 10) echo "SELECTED"; ?>>10</option>
  25. <option value="15" <?php if($vars['entity']->num_display == 15) echo "SELECTED"; ?>>15</option>
  26. <option value="20" <?php if($vars['entity']->num_display == 20) echo "SELECTED"; ?>>20</option>
  27. <option value="30" <?php if($vars['entity']->num_display == 30) echo "SELECTED"; ?>>30</option>
  28. <option value="50" <?php if($vars['entity']->num_display == 50) echo "SELECTED"; ?>>50</option>
  29. <option value="100" <?php if($vars['entity']->num_display == 100) echo "SELECTED"; ?>>100</option>
  30. </select>
  31. </p>