<%set set_focus = 'myform.sub_list_id_fk'%>
<%set book_mark = 'search_subscriber'%>
<%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 lst_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">
      <form name=myform action="glist.cgi" method=post>
      <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>
                <td class="bold_white" height="20"><img src="<%image_url%>/icons/search.gif" width="16" align="texttop" hspace="2" vspace="0">Find Subscriber</td>
                <td class="body" align="right">
                  <%set mn_subscriber = 1%>
                  <%set isub_add = 1%>
                  <%set isub_import = 1%>
                  <%set iremove_sub = 1%>
                  <%set iclose = 1%>
                  <%include lst_include_icons.html%>
                </td>
              </tr>
            </table>
            <br/>
            <%if msg%><p align=center class=body><%msg%></p><%endif%><br/>
            <table border="0" cellspacing="0" cellpadding="0" align=center height=80%>
                <tr>
                  <td height=60% valign=bottom><ul>
                    <table border="0" cellspacing="1" cellpadding="4" width="500">
                      <tr class=body>
                        <td class=body>List</td>
                        <td colspan="2">
                          <select name="sub_list_id_fk" class='object'>
                            <option value="">All Lists</option>
                            <%GList::Tools::generate_list('sub_list_id_fk')%>
                          </select>
                          <input name="sub_list_id_fk-opt" type=hidden value="=" />&nbsp;&nbsp;
                          <select name="sub_validated" class='object'>
                            <option value="">-----</option>
                            <option value="1">Validated</option>
                            <option value="0">Not Validated</option>
                          </select>
                        </td>
                      </tr>
                      <tr class="body">
                        <td valign="top" class="body">Subscribed</td>
                        <td colspan="2">
                          <table cellpadding="0" cellspacing="0">
                            <tr>
                              <td class="body">From:<br /><input class="object" type="text" name="sub_created-ge" maxlength=30  size="<%if is_ie or is_mozilla%>12<%else%>10<%endif%>" value="<%if sub_created-ge%><%sub_created-ge%><%endif%>" /></td>
                              <td class="body">&nbsp;To:<br />&nbsp;<input class="object" type="text" name="sub_created-le" size="<%if is_ie or is_mozilla%>12<%else%>10<%endif%>" maxlength=30 value="<%if sub_created-le%><%sub_created-le%><%endif%>" /> <font size=1><%GList::language('SYS_DATE_FORMAT')%></font></td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                      <tr class=body>
                        <td class=body nowrap>Subscriber Email</td>
                        <td colspan=2><input class="object" type="text" name="sub_email" size="<%if is_ie or is_mozilla%>45<%else%>30<%endif%>" value="<%if lst_From_Name%><%sub_email%><%endif%>" /></td>
                      </tr>
                      <tr class=body>
                        <td class=body nowrap>Subscriber Name</td>
                        <td colspan=2><input class="object" type="text" name="sub_name" size="<%if is_ie or is_mozilla%>45<%else%>30<%endif%>" value="<%if lst_From_Name%><%sub_name%><%endif%>" /></td>
                      </tr>
                      <%if usr_type%>
                      <tr class=body>
                        <td class=body>Username</td>
                        <td colspan="2">
                          <input type="text" class="object" name="lst_user_id_fk" size="<%if is_ie or is_mozilla%>30<%else%>21<%endif%>" value="" />
                          <select name="lst_user_id_fk-opt" class="object">
                            <option value="=">Exact Match</option>
                            <option value="<>">Not Equal</option>
                          </select>
                        </td>
                      </tr>
                      <%endif%>
                      <tr class=body>
                        <td class=body>Sort by</td>
                        <td colspan=2>
                          <select name="sb" class='object'>
                            <option value="sub_email">Subscriber Email</option>
                            <option value="sub_name">Subscriber Name</option>
                            <option value="lst_title">List Name</option>
                            <option value="sub_validated">Validated</option>
                            <option value="sub_bounced">Bounced</option>
                          </select>
                          <select name="so" class='object'>
                            <option value="">---</option>
                            <option value="DESC">Descending</option>
                            <option value="ASC">Ascending</option>
                          </select>
                        </td>
                      </tr>
                    </table></ul>
                  </td>
                </tr>
                <tr>
                  <td align=center valign=top><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="lst_subscribers" />
      <input type=hidden name="search_form" value="1" />
      <%hidden_objects%>
      </form>
    </td>
  </tr>
</table>
<%include include_footer.html%>

