<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 bgcolor="#7a9f54">
    <td>
      <table width="100%" border="0" cellspacing="1" cellpadding="1" align=center>
       <tr>
         <td class=body_bold bgcolor="#256A19" width="49%">
           <a href="glist.cgi?do=lst_home&sb=lst_title&so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%hidden_query%>"><font color="#FFFFFF">List Name</font></a>
           <%if sb eq 'lst_title' or not $sb%>
           <img src="<%image_url%>/icons/<%if so eq 'DESC'%>down.gif<%else%>up.gif<%endif%>" border=0>
           <%endif%>
         </td>
         <td class=body_bold bgcolor="#256A19" width="12%" align="center">
           <a href="glist.cgi?do=lst_home;sb=lst_date_created;so=<%if so eq 'DESC'%>ASC<%else%>DESC<%endif%><%hidden_query%>"><font color="#FFFFFF">Created</font></a>
           <%if sb eq 'lst_date_created'%>
           <img src="<%image_url%>/icons/<%if so eq 'DESC'%>down.gif<%else%>up.gif<%endif%>" border=0>
           <%endif%>
         </td>
         <td class=body_white bgcolor="#256A19" width="12%" align="center">
           <a href="glist.cgi?do=lst_home;sb=subscribers;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%>;select_all=1<%hidden_query%>"><font color="#FFFFFF"><b>Subscribers</b></font></a>
           <%if sb eq 'subscribers'%>
           <img src="<%image_url%>/icons/<%if so eq 'DESC'%>down.gif<%else%>up.gif<%endif%>" border=0>
           <%endif%>
         </td>
         <td class=body_white bgcolor="#256A19" width="12%" align="center">
           <a href="glist.cgi?do=lst_home;sb=validateds;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%>;select_all=1<%hidden_query%>"><font color="#FFFFFF"><b>Validated</b></font></a>
           <%if sb eq 'validateds'%>
           <img src="<%image_url%>/icons/<%if so eq 'DESC'%>down.gif<%else%>up.gif<%endif%>" border=0>
           <%endif%>
         </td>
         <td class=body_white bgcolor="#256A19" width="12%" align="center">
           <a href="glist.cgi?do=lst_home;sb=bounceds;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%>;select_all=1<%hidden_query%>"><font color="#FFFFFF"><b>Bounced</b></font></a>
           <%if sb eq 'bounceds'%>
           <img src="<%image_url%>/icons/<%if so eq 'DESC'%>down.gif<%else%>up.gif<%endif%>" border=0>
           <%endif%>
         </td>
         <td class=body_white bgcolor="#256A19" width="3%" align="center"><input name=c_all type=checkbox onclick="check_all()" /></td>
       </tr>
      <%loop results%>
      <%if bounced_emails%><%set bounced = 1%><%endif%>
       <tr class=body bgcolor="<%if even%>#d9e4f2<%else%>#FFFFFF<%endif%>">
         <td class=body><img src="<%image_url%>/icons/list.gif" hspace=2>
            <%if lst_user_id_fk and lst_user_id_fk ne $usr_username%>
              <%set user_search = 1%>
            <%elsif lst_user_id_fk eq $usr_username and lst_user_id_fk-opt eq '<>'%>
              <%set user_search = 1%>
            <%endif%>
           <a href="glist.cgi?do=lst_modify_form&lst_id=<%lst_id%><%hidden_query%>"><%lst_title%></a>
         </td>
         <td class=body align="center"><%if lst_date_created%><%GList::HTML::date_get('lst_date_created')%><%endif%></td>
         <td class=body align=center><%if subscribers%><a href="glist.cgi?do=lst_subscribers;sub_list_id_fk=<%lst_id%><%hidden_query%>"><%subscribers%></a><%else%>0<%endif%></td>
         <td class=body align=center><%if validateds%><a href="glist.cgi?do=lst_subscribers;sub_list_id_fk=<%lst_id%>&sub_validated=1<%hidden_query%>"><%validateds%></a><%else%>0<%endif%></td>
         <td class=body align=center><%if bounceds%><a href="glist.cgi?do=lst_unsub_bounced;sub_list_id_fk=<%lst_id%><%hidden_query%>"><%bounceds%></a><%else%>0<%endif%></td>
         <td class=body align=center>
           <input type="checkbox" name="modify" value="<%row_num%>" onclick="check_item(this)" />
           <input type="hidden" name="<%row_num%>-lst_id" value="<%lst_id%>" />
         </td>
       </tr>
      <%endloop%>
     </table>
      <%if hits%>
      <table width="100%" border="0" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" height="30" align=center>
        <%if hits > $mh and $mh != -1%>
        <tr class=body>
          <td colspan=2><%include include_toolbar.html%></td>
        </tr>
        <%endif%>
        <tr class=body>
          <td class=body><%if msg%><%msg%><%else%>&nbsp;<%endif%>
          <td align=right>
            <%if bounced%>
            <input type="button" name="bounced" value="Remove Bounced Emails" class="button" onclick="open_url('do=lst_unsub_bounced<%hidden_query%>')" class="button" />
            <%endif%>
            <input type="button" name="bdelete" value="Delete Lists" class="button" onclick="init_do('myform', 'lst_delete', '', '', 'lst_')" class="button" />
          </td>
        </tr>
      </table>
      <%endif%>
    </td>
  </tr>
</table>

