<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="new.aspx.cs" Inherits="Maticsoft.Web.forum._new" %>

<%@ Register src="../UserControls/CHeaderControl.ascx" tagname="CHeaderControl" tagprefix="uc1" %>
<%@ Register src="../UserControls/CFooterControl.ascx" tagname="CFooterControl" tagprefix="uc2" %>

<%@ Register src="../UserControls/blocksubscribe.ascx" tagname="blocksubscribe" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=city%>讨论区</title>
   
</head>
<body>
    <form id="form1" runat="server"  >
   

    <uc1:CHeaderControl ID="CHeaderControl1" runat="server" />

    <div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="forum">
	<div class="dashboard" id="dashboard">
		<ul>
        <li class="current"><a href="/forum/index.aspx">所有</a><span></span></li>
          <li><a href="/forum/city.aspx">
        <%if (CurrentCity != null)
          { %>
        
        <%=CurrentCity.Name%>讨论区
      
        <% }
          else
          {%>
          全部城市讨论区
        <% }%>
          </a><span></span></li>
        <li><a href="/forum/aspublic.aspx">公共讨论区</a><span></span></li></ul>
	</div>
    <div id="content" class="coupons-box clear">
		<div class="box clear">
            
            <div class="box-content">
                <div class="head">
                    <h2>发表新话题</h2>
				</div>
                <div class="sect">
                  
                        <div class="field">
                            <label>讨论区</label>
							<select name='category' style="margin-top:3px;">
                               <OPTGROUP label="本地讨论区">
                                <option value="0" selected=selected>全部城市讨论区</option> 
                        <%foreach (Maticsoft.Model.Category catemodel in Categorylist)
                          { %>
                         <option value="<%=catemodel.Id %>"><%=catemodel.Name%>讨论区</option> 
                        <% }%>
                        </OPTGROUP>
                            <%if (falg)
                              { %>
                              
                          <OPTGROUP label="公共讨论区">
                        <%foreach (Maticsoft.Model.Category catemodel in catelist)
                          { %>
                          <%if (Request["ASNzY"] == catemodel.Id.ToString())
                            { %>
                         <option value="<%=catemodel.Id %>" selected=selected><%=catemodel.Name%>讨论区</option>
                         <% }
                            else
                            {%>
                              <option value="<%=catemodel.Id %>"><%=catemodel.Name%>讨论区</option>
                         <% }%>
                        <% }%>
                            <%}
                              else
                              { %>
                         

                          <OPTGROUP label="公共讨论区">
                        <%foreach (Maticsoft.Model.Category catemodel in catelist)
                          { %>
                         <option value="<%=catemodel.Id %>"><%=catemodel.Name%>讨论区</option> 
                        <% }%>
                        <% }%>
                        </OPTGROUP>

							</select>
                        </div>
						<div class="field">
							<label>标题</label>
							<input type="text" size="10" name="title" id="team-create-style" class="f-input"  group="a" datatype="require" require="true" maxlength="50"/>
						</div>
						<div class="field">
							<label>内容</label>
							<textarea style="width:480px;height:240px;" name="content" id="forum-new-content" group="a" class="f-textarea" datatype="require" maxlen="500" require="true"  lastvalue=""></textarea>
						</div>
						<div class="act">
                            <input type="submit" value="成立" name="commit" id="leader-submit"  group="a"  class="formbutton validator"/>
                        </div>
               
				</div>
            </div>
            
        </div>
    </div>
    <div id="sidebar">

        
        <uc3:blocksubscribe ID="blocksubscribe1" runat="server" />
        
    </div>
</div>

</div> <!-- bd end -->
</div> <!-- bdw end -->

    <uc2:CFooterControl ID="CFooterControl1" runat="server" />
   

    </form>
</body>
</html>
