<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%Links::Newsletter::admin_browse%>
<html>
<head>
  <title>Newsletter</title>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<%include include_style.html%>
  <style type="text/css">
    /*<![CDATA[*/
td {
  font-size: 13px;
  font-family: Tahoma, Arial, Helvetica, sans-serif
}
.info {
  font-size: 9px;
  vertical-align: super;
  cursor: pointer;
  cursor: hand;
}
.category-data {
  font-size: 11px;
  padding-left: 20px;
  display: none;
}
.d1 {
  padding-left: 40px;
}
.d2 {
  padding-left: 80px;
}
.d3 {
  padding-left: 120px;
}
.d4 {
  padding-left: 160px;
}
.d5 {
  padding-left: 200px;
}
.d6 {
  padding-left: 240px;
}
.d7 {
  padding-left: 280px;
}
.d8 {
  padding-left: 320px;
}
.d9 {
  padding-left: 360px;
}
.d10 {
  padding-left: 400px;
}
    /*]]>*/
  </style>
  <script type="text/javascript">
    //<![CDATA[
    function expand(id, self) {
        var data = document.getElementById(id);
        if (data.style.display == 'none' || data.style.display == '') {
            data.style.display = 'block';
            self.firstChild.nodeValue = '[-]';
        }
        else {
            data.style.display = 'none';
            self.firstChild.nodeValue = '[+]';
        }
    }
    //]]>
  </script>
</head>
<body>
<%set header_title = 'Newsletter'%>
<%set header_details = "Click the [+] beside a desired category to see information on that category's subscribers.  You will have the option of sending a newsletter to that category's subscribers.  Direct subscribers are those who have signed up specifically for that category's newsletter.  The number of total subscribers represents all direct subscribers as well as those who have signed up for the parent category\'s newsletter.  Click on the number of either total or direct subscribers to see a list of those e-mail addresses.  Categories that match the maximum depth setting in the User Options Setup menu will be linked to lists of further sub-categories."%>
<%include include_header.html%>
<table>
  <tr>
    <td>
      <%if PPID ne ''%><a href="admin.cgi?page=email_newsletter_browse.html;root=<%PPID%>">Back to <%PPName%></a><br /><%endif%>
<%loop category%>
      <div class="category d<%CatDepth%>">
        <%if HasMoreChildren%><a href="admin.cgi?page=email_newsletter_browse.html;root=<%ID%>"><%endif%><%Name%><%if HasMoreChildren%></a><%endif%> <span onclick="expand('category-data-<%ID%>', this)" class="info">[+]</span><br />
        <div id="category-data-<%ID%>" class="category-data">
          Subscribers: <%if Subscribers%><a href="admin.cgi?page=email_newsletter_subscribers.html;ID=<%ID%>"><%endif%><%Subscribers%><%if Subscribers%></a><%endif%> / <%if DirectSubscribers%><a href="admin.cgi?page=email_newsletter_subscribers.html;ID=<%ID%>;direct=1"><%endif%><%DirectSubscribers%><%if DirectSubscribers%></a><%endif%> (Total/Direct)<br />
          <%if Subscribers%><a href="admin.cgi?action=email_newsletter;ID=<%ID%>">Send newsletter to this category</a><br /><%endif%>
        </div>
      </div>
<%endloop%>
    </td>
  </tr>
</table>
</body>
</html>
