%# $Cambridge: hermes/src/prayer/templates/old/abook_lookup.t,v 1.1 2008/09/16 10:52:48 dpc22 Exp $
%#
% CALL header
% CALL toolbar
% CALL status
% CALL abook_lookup_search
<form method="post" accept-charset="UTF-8"
 enctype="multipart/form-data" action="<% abook_lookup |s %>">
<table style="width: 100%" cellspacing="0" cellpadding="0">
<tr class="t_banner">
<td style="width: 33%">
% CALL abook_lookup_nav_1
</td>
% IFNEQ $count 1
<td style="width: 33%" align="center">
 <strong>Search Results (<% $count |h %> entries)</strong></td>
% ELSE
<td style="width: 33%" align="center">
 <strong>Search Results (1 entry)</strong></td>
% ENDIF
<td style="width: 34%" align="right">
 <table><tr><td>&nbsp;</td></tr></table>
</td>
</tr></table>
<table style="width: 100%">
<tr class="t_title">
<td style="width: 3%">#</td>
<td style="width: 5%">Userid</td>
<td style="width: 20%">Name (Registered Name)</td>
<td style="width: 42%">Primary Affiliation</td>
% IFDEF $have_cancelled
<td style="width: 10%">Cancelled?</td>
% ENDIF
% IFDEF $have_phone
<td style="width: 10%">Phone</td>
% ENDIF
<td style="width: 10%">Addressbook</td>
<td style="width: 10%" align="center">
% IFDEF $g_have_draft
<input type="submit" name="sub_add_address" value="Add marked to draft" />
% ELSE
&nbsp;
% ENDIF
</td></tr>
% FOREACH $i @list
%   IFDEF $i->even_row
<tr class="t_even_row">
%   ELSE
<tr class="t_odd_row">
%   ENDIF
<td valign="top"><strong><% $i->offset |h %>.</strong></td>
<td valign="top"><% $i->userid |h %></td>
%   IFDEF ${i->registered_name}
<td valign="top"><% $i->display_name |h %>
<br />(<% $i->registered_name |h %>)</td>
%   ELSE
<td valign="top"><% $i->display_name |h %></td>
%   ENDIF
<td valign="top"><% $i->affiliation |h %></td>
%   IFDEF $have_cancelled
<td valign="top"><% "CANCELLED" IFDEF ${i->cancelled} |h %></td>
%   ENDIF
%   IFDEF $have_phone
<td valign="top"><% $i->phone |h %></td>
%   ENDIF
<td valign="top"><a href="<% abook_take?alias=${i->alias|u}&name=${i->display_name|u}&comment=${i->comment|u}&email=${i->email|u} |s %>">Add</a></td>
%   IFDEF $g_have_draft
<td valign="top">
<input type="checkbox" name="to_<% $i->offset |h %>" />To
<input type="checkbox" name="cc_<% $i->offset |h %>" />Cc
<input type="checkbox" name="bcc_<% $i->offset |h %>" />Bcc
</td>
%   ELSE
<td valign="top"><a href="<% abook_compose/${i->display_name|c}/${i->email|c} |s %>">Compose</a></td>
%   ENDIF
</tr>
% ENDFOREACH
</table></form>
<form method="post" accept-charset="UTF-8"
 enctype="multipart/form-data" action="<% abook_lookup |s %>">
<table style="width: 100%" cellspacing="0" cellpadding="0">
<tr class="t_banner">
<td style="width: 33%">
% CALL abook_lookup_nav_1
</td>
<td style="width: 33%" align="center">
<table><tr><td>Page:</td>
<td><input name="page" size="4" value="<% $page_current |h %>" /></td>
<td>/<% $page_total |h %></td>
<td><input type="submit" name="sub_page" value="Go" /></td></tr></table></td>
<td style="width: 34%" align="right"><table><tr>
<td>&nbsp;</td></tr></table></td></tr></table>
</form>
% IFDEF $g_help
%   CALL abook_lookup_help
% ENDIF
% CALL footer
