indexSuccess.php 7.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <div class="content-add01">
  2. <div class="heading01"><h1>Liste des adhérents (<?php echo $pager->getNbResults() ?>)</h1></div>
  3. </div>
  4. <div class="filter" style="margin-bottom: 0px!important">
  5. <div class="filter-left">&nbsp;</div>
  6. <div class="filter-middle">
  7. <?php echo form_tag('@katao_member_filter') ?>
  8. <?php echo select_tag('filter_node', options_for_select(KataoNodePeer::getAllArray(), $filter_node, array('include_custom' => '&mdash;&nbsp;Noeud&nbsp;&mdash;'))) ?>
  9. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_referer', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_referer, array('include_custom' => '&mdash;&nbsp;Référent&nbsp;&mdash;'))) ?>
  10. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_delegate', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_delegate, array('include_custom' => '&mdash;&nbsp;Délégué&nbsp;&mdash;'))) ?>
  11. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_anonymous', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_anonymous, array('include_custom' => '&mdash;&nbsp;Anonyme&nbsp;&mdash;'))) ?>
  12. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_status', options_for_select(KataoUserPeer::getAllStatuses(), $filter_status, array('include_custom' => '&mdash;&nbsp;Etat&nbsp;&mdash;'))) ?>
  13. <?php echo image_tag('separator02.gif', array('alt' => '')) ?>&nbsp;<?php echo select_tag('filter_member', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_member, array('include_custom' => '&mdash;&nbsp;Adhérent&nbsp;&mdash;'))) ?>
  14. <?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Filtrer')) ?><div style="float:right"><a href="<?php echo url_for('@katao_member_filter_reset') ?>">[annuler]</a></div>
  15. </form>
  16. </div>
  17. <div class="filter-right">&nbsp;</div>
  18. </div>
  19. <div class="filter">
  20. <div class="filter-left">&nbsp;</div>
  21. <div class="filter-middle">
  22. <?php echo form_tag('@katao_member_search') ?>
  23. Rechercher : <?php echo input_tag('search', $search, array('style' => 'width: 250px')) ?>
  24. <?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Rechercher')) ?><div style="float:right"><a href="<?php echo url_for('@katao_member_search_reset') ?>">[annuler]</a></div>
  25. </form>
  26. </div>
  27. <div class="filter-right">&nbsp;</div>
  28. </div>
  29. <?php if (empty($katao_memberList)): ?>
  30. <p>Aucun adhérent.</p>
  31. <p><?php echo link_to('Ajouter un adhérent', '@katao_member_add', array('class' => 'add')) ?></p>
  32. <?php else : ?>
  33. <?php echo link_to('Ajouter un adhérent', '@katao_member_add', array('class' => 'add')) ?>
  34. <?php echo link_to('Exporter sur Zyvon', '@katao_member_export_zyvon', array('class' => 'zyvon')) ?>
  35. <?php if (!$is_just_delegate): ?>
  36. <?php echo link_to('Changer les adhérents sélectionnés (' . multiple_action_info_selected('katao_member') . ') de noeud', '@katao_member_change_next_node_multiple', array('class' => 'change-node')) ?>
  37. <?php endif ?>
  38. <?php echo link_to('Supprimer les adhérents sélectionnés (' . multiple_action_info_selected('katao_member') . ')', '@katao_member_delete_multiple', array('class' => 'delete', 'confirm' => 'Êtes-vous sûr de vouloir supprimer les adhérents sélectionnés ?')) ?>
  39. <table class="admin-list">
  40. <tr>
  41. <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_member') ?></th>
  42. <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoMember/index') ?></th>
  43. <th nowrap="nowrap">Noeud <?php echo sort_links($sf_request, 'node', 'kataoMember/index') ?></th>
  44. <th nowrap="nowrap">Réf. <?php echo sort_links($sf_request, 'referer', 'kataoMember/index') ?></th>
  45. <th nowrap="nowrap">Dél. <?php echo sort_links($sf_request, 'delegate', 'kataoMember/index') ?></th>
  46. <th nowrap="nowrap">Anon. <?php echo sort_links($sf_request, 'anonymous', 'kataoMember/index') ?></th>
  47. <th nowrap="nowrap">Solde € / <?php echo wpConfig::getAdditionalCurrencyName() ?></th>
  48. <th nowrap="nowrap">Etat <?php echo sort_links($sf_request, 'status', 'kataoMember/index') ?></th>
  49. <th nowrap="nowrap" width="1%">Actions</th>
  50. </tr>
  51. <?php foreach ($katao_memberList as/*(KataoMember)*/ $katao_member): ?>
  52. <?php $katao_user = $katao_member->getFirstKataoUser() ?>
  53. <tr valign="top" class="line">
  54. <td class="center">
  55. <?php if (!$is_just_delegate || $current_user_node_id == $katao_member->getKataoNodeId()): ?>
  56. <?php echo multiple_action_checkbox_line('katao_member', $katao_member->getId()) ?>
  57. <?php endif ?>
  58. </td>
  59. <td>
  60. <?php if ($katao_user->getEmail()): ?>
  61. <?php echo mail_to($katao_user->getEmail(), $katao_user->getFullName()) ?>
  62. <?php else: ?>
  63. <?php echo $katao_user->getFullName() ?>
  64. <?php endif ?>
  65. </td>
  66. <td nowrap="nowrap"><?php echo $katao_member->getNodeLink() ?></td>
  67. <td nowrap="nowrap"><?php echo $katao_member->getIsRefererStr() ?></td>
  68. <td nowrap="nowrap"><?php echo $katao_member->getIsDelegateStr() ?></td>
  69. <td nowrap="nowrap"><?php echo $katao_member->getIsAnonymousStr() ?></td>
  70. <td nowrap="nowrap"><?php echo $katao_member->getCurrentAmountStr() ?></td>
  71. <td nowrap="nowrap"><?php echo $katao_member->getStatusStr() ?></td>
  72. <td nowrap="nowrap">
  73. <?php echo catalyz_link_to_image_tag('@katao_member_show?id=' . $katao_member->getId(), 'actions/show.png', array('title' => 'Voir'), array('alt' => 'Voir')) ?>
  74. <?php echo catalyz_link_to_image_tag('@katao_member_print_sol_card?id=' . $katao_member->getId(), 'actions/printer_mono.png', array('title' => 'Télécharger le bulletin d\'adhésion Coop du Tilleul'), array('alt' => 'Télécharger le bulletin d\'adhésion Coop du Tilleul')) ?>
  75. <?php if (!$is_just_delegate || $current_user_node_id == $katao_member->getKataoNodeId()): ?>
  76. <?php echo catalyz_link_to_image_tag('@katao_member_send_login?id=' . $katao_member->getId(), 'actions/send.png', array('title' => 'Envoyer le login'), array('alt' => 'Envoyer le login')) ?>
  77. <?php echo catalyz_link_to_image_tag('@katao_member_edit?id=' . $katao_member->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
  78. <?php echo catalyz_link_to_image_tag('@katao_member_gmap?id=' . $katao_member->getId(), 'actions/gmap.png', array('title' => 'Positionner sur la carte'), array('alt' => 'Positionner sur la carte')) ?>
  79. <?php echo catalyz_link_to_image_tag(sprintf('%skatao/login/%s/%s', sfConfig::get('app_katao_frontend_url'), $katao_user->getLogin(), $katao_user->getPassword()), 'actions/login.png', array('title' => 'Se connecter sur la boutique en tant que cet adhérent', 'target' => '_blank'), array('alt' => 'Se connecter sur la boutique en tant que cet adhérent')) ?>
  80. <?php if ($katao_member->isDeletable()): ?>
  81. <?php echo catalyz_link_to_image_tag('@katao_member_delete?id=' . $katao_member->getId(), 'actions/delete.png', array('title' => 'Supprimer', 'confirm' => 'Êtes-vous sûr de vouloir supprimer ce adhérent ?'), array('alt' => 'Supprimer')) ?>
  82. <?php endif ?>
  83. <?php endif ?>
  84. </td>
  85. </tr>
  86. <?php endforeach ?>
  87. </table>
  88. <?php echo pager($pager, sprintf('kataoMember/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_member') ?>
  89. <?php endif ?>