<!-- $Id: search_user.tt2 12726 2016-03-09 04:01:24Z sikeda $ -->
<div class="block">
<h2><i class="fa fa-search"></i> [%|loc%]User search result:[%END%]</h2>
<br />
[% IF which %] 
<table  class="responsive listOfItems">
<caption>[%|loc(email)%]Lists which %1 is subscribed [%END%]</caption>
  <tr>
   <th>[%|loc%]list[%END%]
   </th>
   <th>[%|loc%]role[%END%]</span>
   </th>
   <th>[%|loc%]reception[%END%]</span>
   </th>
   <th>[%|loc%]topics[%END%]</span>
   </th>
   <th>[%|loc%]bounce[%END%]</span>
   </th>
   <th colspan="2">	    
   </th>
  </tr>
 [% FOREACH l = which %]

	[% IF dark == '1' %]
         [% SET dark = 0 %]
	<tr class="color_light">
	[% ELSE %]
          [% SET dark = 1 %]
          <tr class="color0">
	[% END %]
        <td>
           <a href="[% 'info' | url_rel([l.key]) %]" ><strong>[%|obfuscate(conf.spam_protection) %][% l.key %]@[% l.value.host %][% END %]</strong></a>
        </td>
        <td>
	   [% IF l.value.is_member %][%|loc%]member[%END%] [% END %]
	   [% IF l.value.is_owner %][%|loc%]owner[%END%] [% END %]
           [% IF l.value.is_editor %][%|loc%]editor[%END%] [% END %]
        </td>
        <td>
	[%|optdesc('reception')%][% l.value.reception %][% END %]
        </td>
        <td>
        [% l.value.topic %]
        </td>
        <td>
	[% l.value.bounce %]
        </td>
	[% IF l.value.subscribed %]
        <td> 
           <form action="[% path_cgi %]" method="post">
	  <fieldset>
           <input type="hidden" name="previous_action" value="search_user" />
	   <input type="hidden" name="email" value="[% email %]" />
	   <input type="hidden" name="list" value="[% l.key %]" />
	   <input class="MainMenuLinks" type="submit" name="action_del" value="[%|loc%]delete[%END%]" />
	   <input id="quiet" type="checkbox" name="quiet" /> <label for="quiet">[%|loc%]quiet[%END%]</label>
	  </fieldset>
	  </form>
	</td>
	<td>
	   <form action="[% path_cgi %]" method="post">
	   <fieldset>
	   <input type="hidden" name="previous_action" value="search_user" />
	   <input type="hidden" name="email" value="[% email %]" />
	   <input type="hidden" name="list" value="[% l.key %]" />
	   <input class="MainMenuLinks" type="submit" name="action_editsubscriber" value="[%|loc%]edit[%END%]" />
	   </fieldset>
	   </form>
	</td>
	[% ELSE %]
	<td colspan="2"></td>
        [% END %]
        </tr>
 [% END %] 
</table>
[% ELSE %]
<p>[%|loc%]No mailing list available.[%END%]</p>
[% END %]

</div>
<!-- end search_user.tt2 (distrib) -->
