<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="refercontent_parameter.aspx.cs" Inherits="YXShop.Web.admin.templates.label.refercontent_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 runat="server">
    <title>无标题页</title>
     <link href="../../style/admin.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript">
function ReturnValue()
{  
       //自定义内容
    var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");
    var mystyle = oEditor.GetXHTML(true);	
	
	var cnm ="[YX:unLoop,YX:LableType=ArticleContent]"+mystyle+"[/YX:unLoop]";	 
    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: 99%;" class="form_table_input">
            <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="[#Articles_Title]">标题</asp:ListItem>
                        <asp:ListItem Value="[#Articles_SubTitle]">副标题</asp:ListItem>
                        <asp:ListItem Value="[#Articles_Author]">作者</asp:ListItem>
                        <asp:ListItem Value="[#Articles_SouesURL]">标题链接地址(新闻来源链接地址)</asp:ListItem>
                        <asp:ListItem Value="[#Articles_Source]">文章来源</asp:ListItem>
                        <asp:ListItem Value="[#Articles_Synopsis]">文章简介</asp:ListItem>
                        <asp:ListItem Value="[#Articles_OnClick]">点击数</asp:ListItem>
                        <asp:ListItem Value="[#Articles_Content]">文章内容</asp:ListItem>
                        <asp:ListItem Value="[#Articles_UpdateTime]">更新时间</asp:ListItem>
                        <asp:ListItem Value="[#Articles_CreateTime]">添加时间</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>&nbsp;</td>
               <td >&nbsp;</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>
