/administrator/components/com_acymailing/views/subscriber/tmpl/choose.php

https://github.com/Shigaru/shigaru · PHP · 87 lines · 83 code · 0 blank · 4 comment · 1 complexity · 06234b599af57e49a01726bc3677dfed MD5 · raw file

  1. <?php
  2. /**
  3. * @copyright Copyright (C) 2009-2010 ACYBA SARL - All rights reserved.
  4. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
  5. */
  6. defined('_JEXEC') or die('Restricted access');
  7. ?>
  8. <div class="iframedoc" id="iframedoc"></div>
  9. <form action="index.php?option=<?php echo ACYMAILING_COMPONENT ?>&amp;ctrl=subscriber" method="post" name="adminForm">
  10. <table>
  11. <tr>
  12. <td width="100%">
  13. <?php echo JText::_( 'FILTER' ); ?>:
  14. <input type="text" name="search" id="search" value="<?php echo $this->pageInfo->search;?>" class="text_area" onchange="document.adminForm.submit();" />
  15. <button onclick="this.form.submit();"><?php echo JText::_( 'GO' ); ?></button>
  16. <button onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_( 'RESET' ); ?></button>
  17. </td>
  18. <td nowrap="nowrap">
  19. </td>
  20. </tr>
  21. </table>
  22. <table class="adminlist" cellpadding="1">
  23. <thead>
  24. <tr>
  25. <th class="title titlenum">
  26. <?php echo JText::_( 'NUM' ); ?>
  27. </th>
  28. <th class="title">
  29. <?php echo JHTML::_('grid.sort', JText::_('NAME'), 'a.name', $this->pageInfo->filter->order->dir,$this->pageInfo->filter->order->value ); ?>
  30. </th>
  31. <th class="title">
  32. <?php echo JHTML::_('grid.sort', JText::_('EMAIL'), 'a.email',$this->pageInfo->filter->order->dir, $this->pageInfo->filter->order->value ); ?>
  33. </th>
  34. <th class="title">
  35. <?php echo JHTML::_('grid.sort', JText::_('USERNAME'), 'a.username',$this->pageInfo->filter->order->dir, $this->pageInfo->filter->order->value ); ?>
  36. </th>
  37. <th class="title titleid">
  38. <?php echo JHTML::_('grid.sort', JText::_('ID'), 'a.id', $this->pageInfo->filter->order->dir, $this->pageInfo->filter->order->value ); ?>
  39. </th>
  40. </tr>
  41. </thead>
  42. <tfoot>
  43. <tr>
  44. <td colspan="5">
  45. <?php echo $this->pagination->getListFooter(); ?>
  46. <?php echo $this->pagination->getResultsCounter(); ?>
  47. </td>
  48. </tr>
  49. </tfoot>
  50. <tbody>
  51. <?php
  52. $k = 0;
  53. for($i = 0,$a = count($this->rows);$i<$a;$i++){
  54. $row =& $this->rows[$i];
  55. ?>
  56. <tr class="<?php echo "row$k"; ?>" style="cursor:pointer" onclick="window.top.affectUser(<?php echo strip_tags($row->id);?>,'<?php echo addslashes(strip_tags($row->name)); ?>'); window.top.document.getElementById('sbox-window').close();">
  57. <td align="center">
  58. <?php echo $this->pagination->getRowOffset($i); ?>
  59. </td>
  60. <td>
  61. <?php echo $row->name; ?>
  62. </td>
  63. <td>
  64. <?php echo $row->email; ?>
  65. </td>
  66. <td>
  67. <?php echo $row->username; ?>
  68. </td>
  69. <td align="center">
  70. <?php echo $row->id; ?>
  71. </td>
  72. </tr>
  73. <?php
  74. $k = 1-$k;
  75. }
  76. ?>
  77. </tbody>
  78. </table>
  79. <input type="hidden" name="option" value="<?php echo ACYMAILING_COMPONENT; ?>" />
  80. <input type="hidden" name="task" value="choose" />
  81. <input type="hidden" name="tmpl" value="component" />
  82. <input type="hidden" name="ctrl" value="<?php echo JRequest::getCmd('ctrl'); ?>" />
  83. <input type="hidden" name="boxchecked" value="0" />
  84. <input type="hidden" name="filter_order" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
  85. <input type="hidden" name="filter_order_Dir" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
  86. <?php echo JHTML::_( 'form.token' ); ?>
  87. </form>