<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_BusinessActivityManage, App_Web_ubyenibr" enableEventValidation="false" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   <link href="/css/blitzer/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/data.js"></script>
    <script type="text/javascript" src="/js/jqueryui.js"></script>
    <script type="text/javascript" src="/js/ui.datepicker-zh-CN.js"></script>
    <script type="text/javascript">
        $(function() {
            jQuery.fx.off = true;

            $("#<%= txtstartdate.ClientID %>").datepicker({ showAnim: 'slideDown', showOn: 'button', buttonImage: '/images/calendar.gif', buttonImageOnly: true, changeMonth: true, changeYear: true });
            $("#<%= txtenddate.ClientID %>").datepicker({ showAnim: 'slideDown', showOn: 'button', buttonImage: '/images/calendar.gif', buttonImageOnly: true, changeMonth: true, changeYear: true });
        });
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="rightbody">
        <div class="menutit">
            <%= PageTitle %>
        </div>
        <div class="bodycotent">
            <div class="menutab">
                <div class="menuitem">
                    <a href="BusinessActivityList.aspx" >所有<%= PageTitle %></a>
                    <a class="chk"><%= PageTitle %></a>
                </div>
                <div class="menusub">
                    <a href="BusinessActivityList.aspx">查看我所有预约列表</a> 
                </div>
            </div>
            <div class="body">
                <div class="descr"></div>
                <div class="list inputs">
                    <table width="100%" cellpadding="5" cellspacing="0" border="0">
		                <tr><td width="100">&nbsp;&nbsp;活动主题 <label>*</label></td><td>
                            <asp:TextBox ID="txtactivityname" runat="server" Width="300" MaxLength="100"></asp:TextBox>
		                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入活动主题" ControlToValidate="txtactivityname"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator></td></tr>
		                <tr><td width="100">&nbsp;&nbsp;开始日期</td><td><asp:TextBox ID="txtstartdate" runat="server"></asp:TextBox></td></tr>
		                <tr><td width="100">&nbsp;&nbsp;截至日期</td><td><asp:TextBox ID="txtenddate" runat="server"></asp:TextBox> 注意：间隔时间不得大于31天。</td></tr>
		                <tr><td width="100">&nbsp;&nbsp;活动描述 <label>*</label></td><td>
		                    <FCKeditorV2:FCKeditor ID="txtdescrfile" runat="server" ToolbarSet="my" Height="300">
                            </FCKeditorV2:FCKeditor>
		                </td></tr>
		                <tr>
		                    <td>
		                        &nbsp;&nbsp;代表图片 <label>*</label></td>
		                    <td>
		                    <% if (_Mry_businessactivityDetails.picurl != "" && _Mry_businessactivityDetails.picurl !=null)
                         { %>
                            <img src="/uploadfiles/<%= _Mry_businessactivityDetails.picurl %>" /><br />
		                    <%} %>
		                    <asp:FileUpload ID="FileUpload1" runat="server" width="300"/>
		                    <% if (_Mry_businessactivityDetails.picurl == "" || _Mry_businessactivityDetails.picurl == null)
                         { %>
		                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="请选择代表图片" ControlToValidate="FileUpload1"  ForeColor="#404040" CssClass="err" Display="Dynamic"></asp:RequiredFieldValidator><br />
		                    <%} %>
		                    <span class="cap1">请上传500x200像素的图片</span>
		                    </td>
		                </tr>
                	</table>
                </div>
                <div class="submits">
                    <asp:LinkButton ID="btnOK" runat="server" CssClass="okbtn" onclick="btnOK_Click" >确定</asp:LinkButton>
                    <a href="BusinessActivityList.aspx" class="okbtn">取消</a> 
                </div>
            </div>
        </div>
    </div>
</asp:Content>

