<html>
  <script>
    function confirm_rmall(args) {
        if (confirm("Are you sure you want permanently delete all bounced email results?")) {
          var url = "<%cgi_url%>/glist.cgi?do=lst_sub_unbounced;all=1<%hidden_query%>" + args;
          window.location = url;
        }
    }
  </script>
<body>
  <%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">
      <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/list.gif" hspace="2" vspace="0">Bounced Emails</td>
                  <td class="body" align="right">
                    <%set mn_subscriber = 1%>
                    <%set isub_add = 1%>
                    <%set isub_import = 1%>
                    <%set isub_search = 1%>
                    <%set iclose = 1%>
                    <%include lst_include_icons.html%>
                  </td>
                </tr>
              </table><br />
              <form name="sub_search" action="glist.cgi" method=post>
              <table border="0" cellspacing="2" cellpadding="3" align="center">
                <tr>
                  <td class="body">
                    Number of bounces:<br>
                    <select name="sub_bounced-opt" class="object">
                      <option value="="<%if sub_bounced-opt eq '='%> selected<%endif%>>Exactly</option>
                      <option value=">"<%if sub_bounced-opt eq '>'%> selected<%endif%>>More than</option>
                      <option value="<"<%if sub_bounced-opt eq '<'%> selected<%endif%>>Less than</option>
                      <option value=">="<%if sub_bounced-opt eq '>=' or not sub_bounced-opt%> selected<%endif%>>At least</option>
                      <option value="<="<%if sub_bounced-opt eq '<='%> selected<%endif%>>At most</option>
                    </select>
                    <input type="text" name="sub_bounced" value="<%if sub_bounced%><%sub_bounced%><%endif%>" class="object" size="15" maxlength="10" >
                    in&nbsp;
                    <select name="sub_list_id_fk" class="object">
                      <option value="" <%ifnot sub_list_id_fk%>selected<%endif%>>All Lists</option>
                      <%GList::Tools::generate_list('sub_list_id_fk')%>
                    </select>
                    <input type="submit" class="button" name="sub_search" value="Search">
                  </td>
                </tr>
              </table>
              <input type="hidden" name="do" value="lst_unsub_bounced" />
              <%hidden_objects%>
              </form>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <%if msg%><tr class="body"><td class="body"><%msg%></td></tr><%endif%>
                <%if hits > $mh and $mh != -1%>
                <tr class="body">
                  <td  class="body"><%include include_toolbar.html%></td>
                <tr>
                <%endif%>
              </table>
              <form name=myform action="glist.cgi" method=post>
              <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#007BA4">
                <tr>
                  <td bgcolor="#7a9f54">
                    <table width="100%" border="0" cellspacing="1" cellpadding="1">
                      <tr class="body_bold">
                        <td width="30%" bgcolor="#256A19" class="body_bold">
                          <%ifnot hits%>Email
                          <%else%>
                          <a href="glist.cgi?do=lst_subscribers;<%if query%><%query%><%endif%>;so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%if mn_disable%>;mn_disable=1<%endif%><%hidden_query%>"><font color="#FFFFFF">Email</font></a>
                          <%ifnot sb%>
                              <img src="<%image_url%>/icons/<%if so eq 'ASC' or so eq ''%>down.gif<%else%>up.gif<%endif%>" border=0>
                            <%endif%>
                          <%endif%>
                        </td>
                        <td width="24%" bgcolor="#256A19" class="body_bold">
                          <%ifnot hits%>Name
                          <%else%>
                          <a href="glist.cgi?do=lst_subscribers;<%if query%><%query%><%endif%>;sb=sub_name&so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%if mn_disable%>;mn_disable=1<%endif%><%hidden_query%>"><font color="#FFFFFF">Name</font></a>
                          <%if sb eq 'sub_name'%>
                              <img src="<%image_url%>/icons/<%if so eq 'ASC'%>down.gif<%else%>up.gif<%endif%>" border=0>
                            <%endif%>
                          <%endif%>
                        </td>
                        <td width="25%" bgcolor="#256A19" class="body_bold">
                          <%ifnot hits%>List
                          <%else%>
                          <a href="glist.cgi?do=lst_subscribers;<%if query%><%query%><%endif%>;sb=sub_list_id_fk;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%><%hidden_query%>"><font color="#FFFFFF">List</font></a>
                          <%if sb eq 'sub_list_id_fk'%>
                              <img src="<%image_url%>/icons/<%if so eq 'DESC'%>down.gif<%else%>up.gif<%endif%>" border=0>
                            <%endif%>
                          <%endif%>
                        </td>
                        <td width="10%" bgcolor="#256A19" class="body_bold" align="center">
                          <%ifnot hits%>Bounced
                          <%else%>
                            <a href="glist.cgi?do=lst_subscribers&<%if mn_disable%>;mn_disable=1<%endif%><%if query%><%query%><%endif%>;sb=sub_bounced&so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%hidden_query%>"><font color="#FFFFFF">Bounced</font></a>
                            <%if sb eq 'sub_bounced'%>
                              <img src="<%image_url%>/icons/<%if so eq 'ASC'%>down.gif<%else%>up.gif<%endif%>" border=0>
                            <%endif%>
                          <%endif%>
                        </td>
                        <td bgcolor="#256A19" align="center" width="1%"><input type=checkbox name=c_all value='1' onclick="check_all()" /></td>
                      </tr>
                      <%loop results%>
                      <input type="hidden" name="<%row_num%>-sub_id" value="<%sub_id%>" />
                      <tr bgcolor="<%if even%>#d9e4f2<%else%>#FFFFFF<%endif%>" class="body">
                        <td class="body"><a href="glist.cgi?do=lst_sub_modify;form=1;subid=<%sub_id%><%if users%>;users=1<%elsif user_search%>;users=1<%endif%>"><%sub_email%></a></td>
                        <td class="body"><%if sub_name%><%sub_name%><%else%>&nbsp;<%endif%></td>
                        <td class="body"><%GList::Tools::list_title($sub_list_id_fk)%></td>
                        <td align="center" class="body"><%if sub_bounced%><%sub_bounced%><%else%>0<%endif%></td>
                        <td align="center"><input type="checkbox" name="modify" value='<%row_num%>'  onclick="check_item(this)"/></td>
                      </tr>
                      <%endloop%>
                    </table>
                  </td>
                </tr>
              </table>
              <%if hits%>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <%if hits > $mh and $mh != -1%>
                <tr class="body">
                  <td  class="body"><%include include_toolbar.html%></td>
                <tr>
                <%endif%>
                <tr>
                  <td align=right>
                    <input name="bdelete" type="button" value="Reset Bounced Emails" class="button" onclick="init_do('myform', 'lst_sub_unbounced', null, null, 'lst_', null, 1)" />
                    <input name="bdelete" type="button" value="Delete Subcribers" class="button" onclick="init_do('myform', 'lst_sub_delete', null, null, 'lst_', null, 1)" />
                    <input name="bdelete" type="button" value="Delete All" class="button" onclick="confirm_rmall('<%if conditions%><%conditions%><%endif%>')" />
                  </td>
                </tr>
              </table>
              <%endif%>
              <input type="hidden" name="do" value="lst_sub_delete" />
              <input type="hidden" name="sub_list_id_fk" value="<%if sub_list_id_fk%><%sub_list_id_fk%><%endif%>" />
              <input type="hidden" name="users" value="<%if users%>1<%endif%>" />
              <input type="hidden" name="unbounced_form" value="1" />
              <%hidden_objects%>
              </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<%include include_footer.html%>


