1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <div class="content-add01">
- <div class="heading01"><h1>Liste des adhérents (<?php echo $pager->getNbResults() ?>)</h1></div>
- </div>
- <div class="filter" style="margin-bottom: 0px!important">
- <div class="filter-left"> </div>
- <div class="filter-middle">
- <?php echo form_tag('@katao_member_filter') ?>
- <?php echo select_tag('filter_node', options_for_select(KataoNodePeer::getAllArray(), $filter_node, array('include_custom' => '— Noeud —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_referer', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_referer, array('include_custom' => '— Référent —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_delegate', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_delegate, array('include_custom' => '— Délégué —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_anonymous', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_anonymous, array('include_custom' => '— Anonyme —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_status', options_for_select(KataoUserPeer::getAllStatuses(), $filter_status, array('include_custom' => '— Etat —'))) ?>
- <?php echo image_tag('separator02.gif', array('alt' => '')) ?> <?php echo select_tag('filter_member', options_for_select(array(CONST_YES => 'Oui', CONST_NO => 'Non'), $filter_member, array('include_custom' => '— Adhérent —'))) ?>
- <?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>
- </form>
- </div>
- <div class="filter-right"> </div>
- </div>
- <div class="filter">
- <div class="filter-left"> </div>
- <div class="filter-middle">
- <?php echo form_tag('@katao_member_search') ?>
- Rechercher : <?php echo input_tag('search', $search, array('style' => 'width: 250px')) ?>
- <?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>
- </form>
- </div>
- <div class="filter-right"> </div>
- </div>
- <?php if (empty($katao_memberList)): ?>
- <p>Aucun adhérent.</p>
- <p><?php echo link_to('Ajouter un adhérent', '@katao_member_add', array('class' => 'add')) ?></p>
- <?php else : ?>
- <?php echo link_to('Ajouter un adhérent', '@katao_member_add', array('class' => 'add')) ?>
- <?php echo link_to('Exporter sur Zyvon', '@katao_member_export_zyvon', array('class' => 'zyvon')) ?>
- <?php if (!$is_just_delegate): ?>
- <?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')) ?>
- <?php endif ?>
- <?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 ?')) ?>
- <table class="admin-list">
- <tr>
- <th nowrap="nowrap" width="1%"><?php echo multiple_action_checkbox_all('katao_member') ?></th>
- <th nowrap="nowrap">Nom <?php echo sort_links($sf_request, 'name', 'kataoMember/index') ?></th>
- <th nowrap="nowrap">Noeud <?php echo sort_links($sf_request, 'node', 'kataoMember/index') ?></th>
- <th nowrap="nowrap">Réf. <?php echo sort_links($sf_request, 'referer', 'kataoMember/index') ?></th>
- <th nowrap="nowrap">Dél. <?php echo sort_links($sf_request, 'delegate', 'kataoMember/index') ?></th>
- <th nowrap="nowrap">Anon. <?php echo sort_links($sf_request, 'anonymous', 'kataoMember/index') ?></th>
- <th nowrap="nowrap">Solde € / <?php echo wpConfig::getAdditionalCurrencyName() ?></th>
- <th nowrap="nowrap">Etat <?php echo sort_links($sf_request, 'status', 'kataoMember/index') ?></th>
- <th nowrap="nowrap" width="1%">Actions</th>
- </tr>
- <?php foreach ($katao_memberList as/*(KataoMember)*/ $katao_member): ?>
- <?php $katao_user = $katao_member->getFirstKataoUser() ?>
- <tr valign="top" class="line">
- <td class="center">
- <?php if (!$is_just_delegate || $current_user_node_id == $katao_member->getKataoNodeId()): ?>
- <?php echo multiple_action_checkbox_line('katao_member', $katao_member->getId()) ?>
- <?php endif ?>
- </td>
- <td>
- <?php if ($katao_user->getEmail()): ?>
- <?php echo mail_to($katao_user->getEmail(), $katao_user->getFullName()) ?>
- <?php else: ?>
- <?php echo $katao_user->getFullName() ?>
- <?php endif ?>
- </td>
- <td nowrap="nowrap"><?php echo $katao_member->getNodeLink() ?></td>
- <td nowrap="nowrap"><?php echo $katao_member->getIsRefererStr() ?></td>
- <td nowrap="nowrap"><?php echo $katao_member->getIsDelegateStr() ?></td>
- <td nowrap="nowrap"><?php echo $katao_member->getIsAnonymousStr() ?></td>
- <td nowrap="nowrap"><?php echo $katao_member->getCurrentAmountStr() ?></td>
- <td nowrap="nowrap"><?php echo $katao_member->getStatusStr() ?></td>
- <td nowrap="nowrap">
- <?php echo catalyz_link_to_image_tag('@katao_member_show?id=' . $katao_member->getId(), 'actions/show.png', array('title' => 'Voir'), array('alt' => 'Voir')) ?>
- <?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')) ?>
- <?php if (!$is_just_delegate || $current_user_node_id == $katao_member->getKataoNodeId()): ?>
- <?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')) ?>
- <?php echo catalyz_link_to_image_tag('@katao_member_edit?id=' . $katao_member->getId(), 'actions/edit.png', array('title' => 'Modifier'), array('alt' => 'Modifier')) ?>
- <?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')) ?>
- <?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')) ?>
- <?php if ($katao_member->isDeletable()): ?>
- <?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')) ?>
- <?php endif ?>
- <?php endif ?>
- </td>
- </tr>
- <?php endforeach ?>
- </table>
- <?php echo pager($pager, sprintf('kataoMember/index?sort=%s%s', $sf_request->getParameter('sort', 'name'), $sf_request->hasParameter('desc')?'&desc=on':''), 'katao_member') ?>
- <?php endif ?>
|