<%set set_focus = 'myform.usr_username'%>
<%set book_mark = 'search_user'%>
<%include include_header.html%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="82%">
  <tr>
    <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
    <td colspan="3" height="3%" bgcolor="#E8EAD0" valign="top"><%include admin_user_include_menu.html%></td>
    <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td height="97%" colspan="3" valign="top">
      <table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>
          <td><img src="<%image_url%>/pics/1pixel.gif" width="1" height="3"></td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#336600" style="border: 1px solid #C5E1A3">
              <tr class="bold_white">
                <td height="20"><img src="<%image_url%>/icons/list.gif" hspace="2" vspace="0">Search User</td>
                <td align="right"><a href="glist.cgi?do=admin_user<%hidden_query%>"><img src="<%image_url%>/icons/close.gif" width="17" height="16" border=0></a></td>
              </tr>
            </table>
            <form name="myform" action="glist.cgi" method="post">
            <table width=100% cellspacing="0" cellpadding="0">
                <tr>
                  <td valign=middle>
                    <%if msg%><p align=center class="body"><br /><%msg%></p><%endif%><br />
                    <table align=center border="0" cellspacing="0" cellpadding="3">
                      <tr class="body">
                        <td colspan="3"><li><b>Search Info</b></li></td>
                      </tr>
                       <tr class="body">
                         <td><ul/>Type</td>
                         <td colspan=2>
                            <select class="object" name="usr_type">
                              <option value="1">Administrator</option>
                              <option value="2">Limited User</option>
                              <option value="3">Unlimited User</option>
                              <option value="4">Unvalidated User</option>
                            </select>
                          </td>
                        </tr>
                       <tr class="body">
                         <td><ul/>Username</td>
                         <td colspan=2>
                            <input class="object" name="usr_username" type=text size=17 value="" />
                            <input class="object" name="usr_username-opt" type=hidden size=40 value="=" />
                          </td>
                        </tr>
                        <tr class="body">
                          <td><ul/>Email</td>
                          <td colspan=2>
                            <input class="object" name="usr_email" type=text size=35 value="" />
                          </td>
                        </tr>
                        <tr class="body">
                          <td><ul/>Reply-to Email</td>
                          <td colspan=2><input class="object" type="text" name="usr_reply_email" size="35" /></td>
                        </tr>
                        <tr class="body">
                          <td><ul/>Bounce Email</td>
                          <td colspan=2><input class="object" type="text" name="usr_bounce_email" size="35" /></td>
                        </tr>
                        <%GList::GUI::gui_profile_form(
                              td_l => 'class="body" align="left"', 
                              td_r => 'class="body" colspan="2" align="left"',
                              mode => 'search',
                              required => ''
                        )%>
                       <tr class="body">
                         <td colspan="3"><li><b>Search Options</b></li></td>
                       </tr>
                       <tr class="body">
                         <td><ul/>Maximum hits</td>
                         <td><input class="object" name=mh value="<%if mh%><%mh%><%else%>25<%endif%>" size=1 maxlength=2 /></td>
                         <td>Match Any: <input name="ma" value=1 type=checkbox /></td>
                       </tr>
                       <tr class="body">
                        <td><ul/>Sort by</td>
                        <td colspan=2>
                          <select class="object" name=sb>
                            <option value="usr_username">Username   </option>
                            <option value="usr_email">Email</option>
                            <option value="pro_first_name">First Name</option>
                            <option value="pro_last_name">Last Name</option>
                            <option value="usr_reply_email">Reply to Email</option>
                            <option value="usr_type">User Type</option>
                          </select>
                          <select class="object"  name="so">
                            <option value="">---</option>
                            <option value="DESC">Descending</option>
                            <option value="ASC">Ascending</option>
                          </select>
                        </td>
                      </tr>
                      <tr>
                        <td align=center colspan="3"><BR />
                          <input name="bsearch" type=submit value=" Search " class="button" />
                          <input name="breset" type=reset value=" Reset " class="button" />
                        </td>
                      </tr>
                    </table><BR />
                  </td>
                </tr>
            </table>
            <input type=hidden name="do" value="admin_user_search" />
            <%hidden_objects%>
            </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<%include include_footer.html%>
