<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="groupbuyactivityinfo_parameter.aspx.cs" Inherits="YXShop.Web.admin.templates.label.groupbuyactivityinfo_parameter" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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="../../style/admin.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function ReturnValue()
{
    var ShowType;//显示类型 
    var o=document.getElementsByName("rblRecommended");
    for (var i=0;i<o.length ;i++ )
    {
        if( o[i].checked==true )
        {
            ShowType=o[i].value;
        }
    }
    var ShowMode;
    o=document.getElementsByName("rdolstShowMode");
    for (var i=0;i<o.length ;i++ )
    {
        if( o[i].checked==true )
        {
            ShowMode=o[i].value;
        }
    }
    var CompositorType;//排序 
    o=document.getElementsByName("rblSort");
    for (var i=0;i<o.length ;i++ )
    {
        if( o[i].checked==true )
        {
            CompositorType=o[i].value;
        }
    }
    var ShowRows = document.getElementById("TextRow").value;//显示行
    var ShoeColumns = document.getElementById("TextOut").value;//显示列
    var NameCharacter = document.getElementById("TextNum").value;//名称不能超过字符数

    var WhetherOmit;//是否省略
    o=document.getElementsByName("WhetherOmit");
    for (var i=0;i<o.length ;i++ )
    {
        if( o[i].checked==true )
        {
            WhetherOmit=o[i].value;
        }
    }
    var WhetherPagination;//是否分页
    o=document.getElementsByName("rblWhetherPage");
    for (var i=0;i<o.length ;i++ )
    {
        if( o[i].checked==true )
        {
            WhetherPagination=o[i].value;
        }
    }

    var TempletLayout;//布局方式
    o=document.getElementsByName("rbl_TempletLayou");
    for (var i=0;i<o.length ;i++ )
    {
        if( o[i].checked==true )
        {
            TempletLayout=o[i].value;
        }
    }
    var Bewrite = document.getElementById("TextBewrite").value;//描述不能超过字符数
    var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");
    var mystyle = oEditor.GetXHTML(true);
    var cnm ="[YX:Loop,YX:LableType=SendGroupBuyInfo,YX:ShowType="+ShowType+",YX:ShowMode="+ShowMode+",YX:CompositorType="+CompositorType+",YX:CompositorField=id,YX:ShowRows="
    +ShowRows+",YX:ShowColumns="+ShoeColumns+",YX:NameCharacter="+NameCharacter+",YX:WhetherOmit="+WhetherOmit+",YX:WhetherPagination="+WhetherPagination+",YX:TempletLayout="+TempletLayout+",YX:BewriteCharacter="+Bewrite+"]"+mystyle+"[/YX:Loop]";
    parent.getValue(cnm);
    CloseDiv();
}
function CloseDiv()
{
    parent.document.getElementById("LabelDivid").style.display="none";
}



function getValue(value)
{
    if(value!="") 
    {
        var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");
        if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
        {
            oEditor.InsertHtml(value);
        }

        else
        {
            return false;
        }
    }
}

</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table style="width: 100%;" class="form_table_input" >
           <tr>
            <td style="width:15%">显示方式</td>
            <td colspan="3" align="left">
               <asp:RadioButtonList ID="rdolstShowMode" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0" Selected="True">所有活动信息</asp:ListItem>
                    <asp:ListItem Value="1">商品活动信息</asp:ListItem>
                </asp:RadioButtonList><span style="color:Red">注：所有活动信息是指活动信息不受限制，商品活动信息是针对某个商品显示活动信息。</span>
            </td>
        </tr>
        
        <tr>
            <td style="width:15%"  align="right">显示类型
               </td>
            <td  align="left">
               <asp:RadioButtonList ID="rblRecommended" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0" Selected="True">所有</asp:ListItem>
                    <asp:ListItem Value="1">审核</asp:ListItem>
                </asp:RadioButtonList>
            </td >
            
            <td style="width:15%" align="right">
             	名称最长字符数
            </td>
            <td  align="left">
                <asp:TextBox ID="TextNum" runat="server" Width="50px"></asp:TextBox>
                描述最长字符数
                <asp:TextBox ID="TextBewrite" runat="server" Width="50px"></asp:TextBox>
            </td>   
        </tr>
        
        <tr>
            <td style="width:15%"  align="right">显示</td>
            <td  align="left">
                行<asp:TextBox ID="TextRow" runat="server" Width="50px"></asp:TextBox>&nbsp;&nbsp;列<asp:TextBox
                    ID="TextOut" runat="server" Width="50px"></asp:TextBox>
            </td>
            <td style="width:15%" align="right">
            是否省略
            </td>
            <td  align="left">
                <asp:RadioButtonList ID="WhetherOmit" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="true" Selected="True">是</asp:ListItem>
                    <asp:ListItem Value="false">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>   
        </tr>
        
        <tr>
            <td style="width:15%"  align="right">
           
               排&nbsp;&nbsp;&nbsp; 序</td>
            
            <td  align="left">
                <asp:RadioButtonList ID="rblSort" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="desc" Selected="True">降序</asp:ListItem>
                    <asp:ListItem Value="asc">升序</asp:ListItem>
                </asp:RadioButtonList>
            </td>   
             <td style="width:15%"  align="right">
            是否分页
              </td>
            <td  align="left">
                <asp:RadioButtonList ID="rblWhetherPage" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="true" Selected="True">是</asp:ListItem>
                    <asp:ListItem Value="false">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        
        <tr>
            <td style="width:15%"  align="right">
             布局方式
              </td>
            <td  align="left">
             <asp:RadioButtonList ID="rbl_TempletLayou" runat="server" RepeatDirection="Horizontal"> 
                   
                    <asp:ListItem Value="0" Selected="True">Div</asp:ListItem>
                    <asp:ListItem Value="1">Table</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            
            <td style="width:15%" align="right">
             	显示属性</td>
            <td  align="left">
                <asp:DropDownList ID="LabelList1" runat="server" onchange="javascript:getValue(this.value);">
                    <asp:ListItem Value="">-团购信息标签-</asp:ListItem>
                    <asp:ListItem Value="[#ActivityNO]">活动编号</asp:ListItem>
                    <asp:ListItem Value="[#Title]">活动主题(标题)</asp:ListItem>
                    <asp:ListItem Value="[#Synopsis]">活动简介</asp:ListItem>
                    <asp:ListItem Value="[#Images]">图片链接</asp:ListItem>
                    <asp:ListItem Value="[#Starte]">活动状态</asp:ListItem>
                    <asp:ListItem Value="[#AcitvityInfoURL]">活动信息详细链接</asp:ListItem>
                    <asp:ListItem Value="[#SignUpNumber]">报名人数</asp:ListItem>
                    <asp:ListItem Value="[#SignUpUrl]">报名链接</asp:ListItem>
                    <asp:ListItem Value="[#GroupBuyQQ]">组团人QQ</asp:ListItem>
                    <asp:ListItem Value="[#ActivityAddress]">活动地址</asp:ListItem>
                    <asp:ListItem Value="[#ActivityStarteTime]">活动开始时间</asp:ListItem>
                    <asp:ListItem Value="[#ActivityEndTime]">活动开始时间</asp:ListItem>
                </asp:DropDownList>
            
            </td>   
        </tr>
        <tr>
            <td colspan="4"  align="left">
                 <FCKeditorV2:FCKeditor ID="fckLabelContent" runat="server"  BasePath="~/controls/fckeditor/"  Height="200px">
                 </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        </table>
    </div>
    </form>
    <table style="width: 100%;" class="form_table_input">
        <tr><td style="width: 100%;" align="center"><input type="button" id="bt_back" value="提交" onclick="ReturnValue()" />
            
        </td></tr>
    </table>
    </div>
    </form>
</body>
</html>
