<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PromoteAdd.aspx.cs" Inherits="LMN.Web.Admin.Promote.PromoteAdd" %>

<%@ Import Namespace="LMN.Common" %>
<!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 id="Head1" runat="server">
<title></title>
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
<script src="../../ckeditor/fckeditor.js" type="text/javascript"></script>
<script src="../Scripts/datepicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server" target="iframe">
    <div style="padding: 20px;">
        <h4 class="title">活动管理</h4>
        <div class="division">
            <table width="100%">
                <tr>
                    <th class="w120">活动内容：</th>
                    <td>
                        <asp:DropDownList ID="type" runat="server">
                            <asp:ListItem Selected="True" Value="0">请选择</asp:ListItem>
                            <asp:ListItem Value="1">免运费</asp:ListItem>
                            <asp:ListItem Value="2">打折扣</asp:ListItem>
                            <asp:ListItem Value="3">减现金</asp:ListItem>
                            <asp:ListItem Value="4">赠金币</asp:ListItem>
                            <asp:ListItem Value="5">赠积分</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;活动内容：<input name="num" type="text" runat="server" id="num" style="width: 50px" value="0" size="5" autocomplete="off" /> <a href="javascript:;" style="color: red;" title="免运费：请填写0&#13;打折扣：1-100，9折请填写90&#13;减现金：填写减去的金额&#13;赠金币：赠送金币数量&#13;赠积分：赠送积分数量">?</a> </td>
                </tr>
                <tr>
                    <th class="w120">活动名称：</th>
                    <td><input autocomplete="off" type="text" name="title" size="50" id="title" runat="server" /></td>
                </tr>
                <tr>
                    <th>活动设置：</th>
                    <td><label><input name="enable" type="checkbox" id="enable" value="1" runat="server" />启用</label> <label><input name="recom" type="checkbox" id="recom" value="1" runat="server" />推荐</label></td>
                </tr>
                <tr>
                    <th>满足条件：</th>
                    <td><input type="text" runat="server" id="sum" name="sum" value="0" style="width: 50px;" /> <b>&lt;= 订单金额</b> <i>订单金额大于或等于此值时活动有效</i></td>
                </tr>
                <tr>
                    <th>限时时代：</th>
                    <td><label><input name="istime" type="checkbox" id="istime" value="1" runat="server" />启用限时</label> <input name="starttime" type="text" value="" size="20" id="starttime" readonly="readonly" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" runat="server" /> - <input name="endtime" type="text" id="endtime" size="20" readonly="readonly" runat="server" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" /></td>
                </tr>
                <tr>
                    <th>活动介绍：</th>
                    <td>
                        <textarea autocomplete="off" type="text" name="remarks" id="remarks" cols="1" rows="4" style="width: 80%;" runat="server"></textarea></td>
                </tr>
                <tr>
                    <th>&nbsp;</th>
                    <td>
                        <button type="submit">
                            <span><span>完成</span></span></button></td>
                </tr>
            </table>
        </div>
    </div>
</form>
<iframe id="iframe" name="iframe" src="about:blank" style="display: ;"></iframe>
<script type="text/javascript">
<!--
    $(document).ready(function() {
        // ckeditor
        var oFcKeditor = new FCKeditor('remarks');
        oFcKeditor.Config['ToolbarStartExpanded'] = false;
        oFcKeditor.BasePath = "<%=Config.SitePath %>ckeditor/";
        oFcKeditor.Height = 80;
        oFcKeditor.ToolbarSet = 'Desc';
        oFcKeditor.ReplaceTextarea();
    });
    //    $("#type").change(function() {
    //        if ($(this).val() == "1") {
    //            $("#num").attr("readonly", true);
    //            $("#num").val("0");
    //        } else {
    //            $("#sum").attr("readonly", false);
    //            $("#num").attr("readonly", false);
    //        }
    //    });
//-->
</script>
</body>
</html>
