<form method="post" id="contacts" action="<tag:action />">
<input type="hidden" name="searched" value="1" />
<input type="hidden" name="to_only" id="to_only" value="<tag:to_only />" />
<input type="hidden" id="sa" name="sa" />
<tag:formInput />

<h1 class="header">
 <gettext>Address Book</gettext>
</h1>

<div id="contactstable" class="headerbox item">
 <p class="control">
  <label for="search"><strong><gettext>Find:</gettext></strong></label>
  <input value="<tag:search />" id="search" name="search" />
<if:multiple_source>
  <strong><label for="source"><gettext>from</gettext></label></strong>
  <select id="source" name="source">
<loop:source_list>
   <option value="<tag:source_list.val />"<if:source_list.selected> selected="selected"</if:source_list.selected>><tag:source_list.label /></option>
</loop:source_list>
  </select>
<else:multiple_source>
  <input name="source" type="hidden" value="<tag:source_list />" />
</else:multiple_source></if:multiple_source>
  <input type="submit" class="button" value="<gettext>Search</gettext>" />
  <input id="btn_clear" type="submit" class="button" style="display:none" value="<gettext>Reset</gettext>" />
 </p>

 <table width="100%" cellspacing="2">
  <tr>
   <td width="33%">
    <label for="search_results" class="hidden"><gettext>Search Results</gettext></label>
    <select id="search_results" name="search_results" multiple="multiple" size="10">
     <option disabled="disabled" value=""><gettext>* Please select address(es) *</gettext></option>
<loop:a_list>
     <option title="<tag:a_list />" value="<tag:a_list />"><tag:a_list /></option>
</loop:a_list>
    </select>
   </td>
   <td width="33%" class="contactsButtons">
    <input id="btn_add_to" type="button" class="button" value="<gettext>To</gettext> &gt;&gt;" /><br />&nbsp;<br />
<if:to_only><else:to_only>
    <input id="btn_add_cc" type="button" class="button" value="<gettext>Cc</gettext> &gt;&gt;" /><br />&nbsp;<br />
    <input id="btn_add_bcc" type="button" class="button" value="<gettext>Bcc</gettext> &gt;&gt;" />
</else:to_only></if:to_only>
   </td>
   <td width="33%">
    <label for="selected_addresses" class="hidden"><gettext>Selected Addresses</gettext></label>
    <select id="selected_addresses" name="selected_addresses" multiple="multiple" size="10">
     <option disabled="disabled" value=""><gettext>* Add these by clicking OK *</gettext></option>
<loop:sa>
     <option value="<tag:sa />"><tag:sa /></option>
</loop:sa>
    </select>
   </td>
  </tr>
  <tr>
   <td colspan="2">&nbsp;</td>
   <td>
    <input id="btn_delete" type="button" class="button" value="<gettext>Delete</gettext>" />
   </td>
  </tr>
 </table>
</div>

<br class="spacer" />

<div>
 <input id="btn_update" type="button" class="button" value="<gettext>OK</gettext>" />
 <input id="btn_cancel" type="button" class="button" value="<gettext>Cancel</gettext>" />
</div>

</form>
