<!DOCTYPE html >
<html lang="en">
<head>
  <title><%cat_full_name%>: Messages: Delete All</title>
  <%include include_common_head.html%>
</head>

<body class="page-<%page_id%> confirmation-page">
  <div class="container-b">
    <%include include_header.html%>

    <div class="main">
      <div class="contentwrapper clearfix">
        <div class="sidebar">
            <%include include_sidebar.html%>
        </div>

        <%~set content_header_title = "Delete All Messages"%>
        <%~init array breadcrumbs%><%init hash breadcrumbs.0%><%init hash breadcrumbs.1%>
        <%~set breadcrumbs.0.name = 'Private Messages'%>
        <%~set breadcrumbs.0.url  = GForum::SEO::url(params => "do=message_list")%>
        <%~set breadcrumbs.1.name = 'Delete All Messages'%>

        <%include include_breadcrumb.html%>

        <div class="content"><%-- start content--%>
          <%include include_content_header.html%>

          <form action="<%GForum::SEO::url()%>" method="post">
            <%hidden_form%>
            <input type="hidden" name="do" value="message_delete_all" />
            <input type="hidden" name="<%if in.skip_recd%>skip_recd<%else%>skip_sent<%endif%>" value="1" />
            <div class="description">
              <p>
              You have chosen to delete all your <%if in.skip_recd%>sent<%else%>received<%endif%>
              private messages.  Note that messages which you have selected to keep
              <%unless in.skip_recd%>and any unread messages <%endunless%>will not be deleted.
              </p>

              <p class="confirm">
              Are you sure you wish to permanently delete
              <%if in.skip_recd%><%sent_messages_to_delete%> sent message<%if sent_messages_to_delete != 1%>s<%endif%>?
              <%~else%><%messages_to_delete%> received message<%if messages_to_delete != 1%>s<%endif%>?
              <%~endif%>
              </p>
            </div>

            <input type="submit" value="Delete messages" class="submit" />
          </form>

        </div><%-- end content --%>
      </div>
    </div>
  </div>

  <%include include_footer.html%>

</body>
<%~include include_global_js.html%>
</html>
