<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%Links::Newsletter::list_subscribed%>
<html>
<head>
  <title><%site_title%>: Newsletter</title>
<%include include_common_head.html%>
  <script type="text/javascript" src="<%config.build_static_url%>/utils.js"></script>
  <script type="text/javascript">
    //<![CDATA[
registerEvent(window, 'onload', function () { checkAllInit('unsubscribe', 'ID', 'checkall') });
    //!]]>
  </script>
</head>
<body id="newsletter_list">
<%include include_accessibility.html%>
  <div id="wrapper">
<%include include_header.html%>
<%include include_contentheader.html%>
    <div id="ocwrapper" class="clear">
      <div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
        <div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
          <div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
          <div class="shadowright">
            <div id="content">
<%include include_content_top.html%>

<div class="crumb"><%Links::Utils::format_title($main_title_loop, separator => $crumb_separator, no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%></div>
<h2>Newsletter</h2>

<p>
  Check the boxes of categories you no longer wish to recieve updates about and
  click "Unsubscribe."  You can subscribe to categories using the Newsletter
  <a href="<%config.db_cgi_url%>/subscribe.cgi">Category Browser</a>.
</p>

<%~if subscribed.length%>
<form id="unsubscribe" action="<%config.db_cgi_url%>/subscribe.cgi" method="post">
  <input type="hidden" name="action" value="unsubscribe" />
  <input type="hidden" name="page" value="newsletter_list" />
  <%if subscribed.length > 1%><input type="checkbox" id="checkall" class="checkbox" /> <label for="checkall"><strong>Select All</strong></label><br /><%endif%>
<%loop subscribed~%>
  <input type="checkbox" id="ID-<%escape_html CategoryID%>" name="ID" value="<%escape_html CategoryID%>" class="checkbox" /> <label for="ID-<%escape_html CategoryID%>"><%Full_Name%></label><br />
<%~endloop%>
  <input type="submit" value="Unsubscribe" class="submit" />
</form>
<%~else%>
<p>
  <strong>You aren't subscribed to any categories.</strong>
</p>
<%~endif%>

<%include include_content_bottom.html%>
            </div>
          </div>
          <div class="shadowbottom"><div class="shadowbottomleft"></div><div class="shadowbottomright"></div></div>
<%include include_contentwrapper_bottom.html%>
        </div>
<%include include_rightsidebar.html%>
      </div>
    </div>
<%include include_contentfooter.html%>
<%include include_footer.html%>
  </div>
</body>
</html>
