<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="replyinfo_parameter.aspx.cs" Inherits="YXShop.Web.admin.templates.label.replyinfo_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 ShowMode;//显示方式
   o=document.getElementsByName("rblShowMode");//布局方式
   var len=o.length;   
   for (var i=0;i<len ;i++ )       
   {
      if( o[i].checked==true )
      {
         ShowMode=o[i].value;
      }
   }
   var CommentLevel;//评论等级
   o=document.getElementsByName("rblCommentLevel");//布局方式
   var len=o.length;   
   for (var i=0;i<len ;i++ )       
   {
      if( o[i].checked==true )
      {
         CommentLevel=o[i].value;
      }
   }
   var CompositorType;//评论等级  
   o=document.getElementsByName("rbl_CompositorType");//布局方式
   var len=o.length;   
   for (var i=0;i<len ;i++ )       
   {
      if( o[i].checked==true )
      {
         CompositorType=o[i].value;
      }
   }
   var CompositorField =document.getElementById("ddl_filed").value; //排序字段
   var ShowRows = document.getElementById("Tb_rows").value;//显示行数
   var ShowColumns = document.getElementById("Tb_Columns").value;//显示列数
   var WhetherPagination;
   o=document.getElementsByName("rbl_page");//是否分页
   var len=o.length;   
   for (var i=0;i<len ;i++ )
   {
      if( o[i].checked==true )
      {
         WhetherPagination=o[i].value;
      }
   }
   var TempletLayout;      
   o=document.getElementsByName("Rbl_TempletLayout");//布局方式
   var len=o.length;   
   for (var i=0;i<len ;i++ )       
   {
      if( o[i].checked==true )
      {
         TempletLayout=o[i].value;
      }
   }
   var WhetherOmit;
   o=document.getElementsByName("rbl_WhetherOmit");//是否省略
   var len=o.length;   
   for (var i=0;i<len ;i++ )       
   {
      if( o[i].checked==true )
      {
          WhetherOmit=o[i].value;
      }
   }
   var ContentCharacter = document.getElementById("tb_ContentCharacter").value;//内容最大字符数
   //自定义内容
   var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");//读fck内容
   var mystyle = oEditor.GetXHTML(true);
   var cnm ="[YX:Loop,YX:LableType=CommentReplyInfo,YX:CompositorType="+CompositorType+",YX:CompositorField="
	+CompositorField+ ",YX:ShowRows="+ ShowRows+",YX:ShowColumns="+ShowColumns+",YX:WhetherPagination="+WhetherPagination+
	",YX:TempletLayout="+TempletLayout+
	",YX:ContentCharacter="+ContentCharacter+",YX:WhetherOmit="+WhetherOmit+"]"+mystyle+"[/YX:Loop]";
  parent.getValue(cnm);
  CloseDiv();

}

function getValue(value)
{
    if(value!="") 
    {
        var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");
        if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
        {
           oEditor.InsertHtml(value);
        }
        else
        {
            return false;
        }
    }
}
function CloseDiv()
{
    parent.document.getElementById("LabelDivid").style.display="none";
}

</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <table style="width: 100%;" class="form_table_input" >
            <tr>
             <td width="100">排序选择</td>
                <td width="200">
                    <asp:RadioButtonList ID="rbl_CompositorType" runat="server" RepeatDirection="Horizontal" Height="24px" Width="119px">
                        <asp:ListItem Value="0" Selected="True">升序</asp:ListItem>
                        <asp:ListItem Value="1">降序</asp:ListItem>
                    </asp:RadioButtonList></td>
                <td width="100"></td>
                <td width="200"></td>
            </tr>
            <tr>
                <td>
                   显示几行</td>
                <td>
                    <asp:TextBox ID="Tb_rows" runat="server" Width="147px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >2</asp:TextBox>
                </td>
                <td>
                   排列方式</td>
                <td>
                    <asp:DropDownList ID="ddl_filed" runat="server" Height="25px" Width="137px">
                    <asp:ListItem Value="" Selected="True">排列方式</asp:ListItem>
                    <asp:ListItem Value="ComID">自动编号</asp:ListItem>
                     <asp:ListItem Value="CreateDate">回复时间</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    显示几列</td>
                <td>
                    <asp:TextBox ID="Tb_Columns" runat="server" Width="147px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >2</asp:TextBox>
                </td>
                <td>
                  是否分页</td>
                <td>
                    <asp:RadioButtonList ID="rbl_page" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Value="0" Selected="True">分页</asp:ListItem>
                        <asp:ListItem Value="1">不分页</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>内容长度</td>
                <td>
                     <asp:TextBox ID="tb_ContentCharacter" runat="server" Width="150px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >20</asp:TextBox>
                </td>
                <td>显示省略号
                   </td>
                <td>
                   <asp:RadioButtonList ID="rbl_WhetherOmit" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="False">否</asp:ListItem>
                        <asp:ListItem Value="True">是</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>选择参数</td>
                <td>
                  <asp:DropDownList ID="ddl_Properties" runat="server" Height="18px" 
                        Width="150px" onchange="javascript:getValue(this.value);">
                     <asp:ListItem Value="">--请选择参数--</asp:ListItem>
                        <asp:ListItem Value="[#Reply_UserName]">回复人</asp:ListItem>
                        <asp:ListItem Value="[#Reply_LevelImage]">会员等级图片</asp:ListItem>
                        <asp:ListItem Value="[#Reply_Level]">会员等级</asp:ListItem>
                        <asp:ListItem Value="[#Reply_Conent]">回复内容</asp:ListItem>
                        <asp:ListItem Value="[#Reply_DateTime]">回复时间</asp:ListItem>
                        <asp:ListItem Value="[#Reply_Storey]">楼层</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    布局方式</td>
                <td>
                  
                    <asp:RadioButtonList ID="Rbl_TempletLayout" runat="server" Height="26px" 
                        RepeatDirection="Horizontal" Width="116px">
                        <asp:ListItem Value="0" Selected="True">Div</asp:ListItem>
                        <asp:ListItem Value="1">Table</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            
            <tr>
                
                <td colspan="4">
                      <FCKeditorV2:FCKeditor ID="fckLabelContent" runat="server"  BasePath="~/controls/fckeditor/"  Height="200px">
                    </FCKeditorV2:FCKeditor>
               </td>
            </tr>
            
            <tr>
                <td colspan="4" align="center" style="text-align:center">
                   <input id="bt_Exc" type="button" value="提交" onclick="ReturnValue()" />
                    &nbsp;<input class="form" type="button" value=" 关 闭 "  onclick="javascript:CloseDiv();" /></td>
            </tr>
            </table>
    </div>
    </form>
</body>
</html>
