<table width="100%" 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%" align=center border="0" cellspacing="1" cellpadding="1">
        <tr class=body>
          <td class=body_bold bgcolor="#256A19" width=20%>
            <a href="glist.cgi?do=pro_report;sb=usr_username;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%><%hidden_query%>"><font color="#FFFFFF">Username</font></a>
            <%if sb eq 'usr_username' or $sb eq ''%>
              <img src="<%image_url%>/icons/<%if so eq 'DESC'%>up.gif<%else%>down.gif<%endif%>" border=0>
            <%endif%>
          </td>
          <td class=body_bold bgcolor="#256A19" width=30%>
            <a href="glist.cgi?do=pro_report;sb=usr_email;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%><%hidden_query%>"><font color="#FFFFFF">Email</font></a>
            <%if sb eq 'usr_email'%>
              <img src="<%image_url%>/icons/<%if so eq 'ASC'%>down.gif<%else%>up.gif<%endif%>" border=0>
            <%endif%>
          </td>
          <td class=body_bold bgcolor="#256A19" width=30%>
            <a href="glist.cgi?do=pro_report;sb=pro_first_name;so=<%if so eq 'ASC'%>DESC<%else%>ASC<%endif%><%hidden_query%>"><font color="#FFFFFF">Full Name</font></a>
            <%if sb eq 'pro_first_name'%>
              <img src="<%image_url%>/icons/<%if so eq 'ASC'%>down.gif<%else%>down.gif<%endif%>" border=0>
            <%endif%>
          </td>
          <td class=body_white bgcolor="#256A19" align=center width=15%><b>Total Mailings</b></td>
        </tr>
        <%set logged_user = $usr_username%>
        <%loop results%>
        <tr class=body bgcolor="<%if even%>#d9e4f2<%else%>#FFFFFF<%endif%>">
          <td  class=body>
            <img src="<%image_url%>/icons/user.gif" hspace=2 width=15 height=15>
            <%if usr_username eq $logged_user%><b><%endif%>
            <%if sent%><a href="glist.cgi?do=pro_report;id=<%usr_username%>;d=1<%if url%><%url%><%endif%><%hidden_query%>"><%usr_username%></a><%else%><%usr_username%><%endif%>
          </td>
          <td  class=body>
            <%if usr_username eq $logged_user%><b><%endif%><%usr_email%>
          </td>
          <td class=body><%if usr_username eq $logged_user%><b><%endif%><%pro_first_name%> <%pro_last_name%></td>
          <td class=body align=center width=6%><%if usr_email eq $logged_user%><b><%endif%>
            <%if sent%><%sent%></a><%else%>0<%endif%>
          </td>
        </tr>
        <%endloop%>
      </table>
    </td>
  </tr>
</table>
<%if hits%>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <%if hits > $mh%>
  <tr  class=body>
    <td colspan="3"><%include include_toolbar.html%></td>
  </tr>
  <%endif%>
</table>
<%endif%>
