<%@ page language="C#" autoeventwireup="true" inherits="admin_style_CommonageStyle, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!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 id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script type="text/javascript" src="../../js/Dragdrop.js"></script>
    <script src="../../js/Common.js" type="text/javascript"></script>

    <asp:Literal ID="LitTableJs" runat="server"></asp:Literal>

    <script type="text/javascript" src="../../js/<%=B_Lang.getLang() %>/Copy.js"></script>

</head>
<body>
    <form id="form1" runat="server" onkeydown="Save()">
        <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
            <tr>
                <td>
                    <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                    您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="StyleList.aspx">样式管理</a> >> 设置通用样式
                </td>
            </tr>
        </table>
        <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
            <tr>
                <td class="bqleft">样式名称：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtName" runat="server" CssClass="in1" Columns="50"></asp:TextBox><asp:DropDownList
                        ID="StyleClass" runat="server">
                        <asp:ListItem Value="0">选择分类</asp:ListItem>
                    </asp:DropDownList>
                    <font color="#ff0066">*</font>
                </td>
            </tr>
            <tr>
                <td class="bqleft">通用字段：
                </td>
                <td class="bqright">
                    <table width="100%" cellpadding="1" cellspacing="0" border="0">
                        <tr>
                            <td width="13%">
                                <div onclick="CreateRange('txtHtml','{D_F_AddTime}')" class="fieldstyle" title="点击选择该字段">
                                    添加时间
                                </div>
                            </td>
                            <td width="13%">
                                <div onclick="CreateRange('txtHtml','{D_F_UpdateTime}')" class="fieldstyle" title="点击选择该字段">
                                    更新时间
                                </div>
                            </td>
                            <td width="13%">
                                <div onclick="CreateRange('txtHtml','{D_F_Click}')" class="fieldstyle" title="点击选择该字段">
                                    访问次数
                                </div>
                            </td>
                            <td width="13%">
                                <div onclick="CreateRange('txtHtml','{D_F_For#for(1,10)}')" class="fieldstyle" title="点击选择该字段{D_F_For#for(开始循环数,循环次数)}">
                                    行编号（m......n）
                                </div>
                            </td>
                            <td width="13%">
                                <div onclick="CreateRange('txtHtml','{D_F_InfoUrl}')" class="fieldstyle" title="点击选择该字段">
                                    内容URL
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="bqleft">相关内容字段：
                </td>
                <td class="bqright">
                    <table width="100%" cellpadding="1" cellspacing="0" border="0">
                        <tr>
                            <td width="20%">
                                <div onclick="CreateRange('txtHtml','{D_F_Mutuality}')" class="fieldstyle" title="点击选择该字段">
                                    相关内容链接字段
                                </div>
                            </td>
                            <td width="20%">
                                <div onclick="CreateRange('txtHtml','{D_F_MutualityUrl}')" class="fieldstyle" title="点击选择该字段">
                                    相关内容链接地址
                                </div>
                            </td>
                            <td></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="bqleft">备用代码：
                </td>
                <td class="bqright">
                    <input id="Button1" type="button" value="<table>" class="btn" onclick="Win_Open('../common/table.aspx?Control=txtHtml', '', '550', '415')" />
                    <input id="Button2" type="button" value="<tr></tr>" class="btn" onclick="CreateRange('txtHtml', '<tr></tr>')" />
                    <input id="Button3" type="button" value="<td></td>" class="btn" onclick="CreateRange('txtHtml', '<td></td>')" />
                    <input id="Button4" type="button" value="<div>" class="btn" onclick="Win_Open('../common/div.aspx?Control=txtHtml', '', '550', '150')" />
                </td>
            </tr>
            <tr>
                <td class="bqleft">样式内容：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtHtml" runat="server" Height="220px" TextMode="MultiLine" Width="99%" Style="word-break: break-all; word-wrap: break-word;"></asp:TextBox><br />
                    <table width="99%" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td bgcolor="#e0dfe3" align="right">
                                <a href="javascript:" onclick="runEx('txtHtml')">
                                    <img src="../images/PreView.gif" border="0" title="预览录入界面" /></a> <a href="javascript:"
                                        onclick="copyToClipboard(document.form1.txtHtml.value)">
                                        <img src="../images/copy.gif" border="0" title="复制录入界面" style="margin-left: 20px" /></a>
                                <a href="javascript:" onclick="SizePlus('txtHtml')" title="增加编辑高度">
                                    <img src="../images/sizeplus.gif" border="0" style="margin-left: 20px;" /></a>
                                <a href="javascript:" onclick="SizeMinus('txtHtml')">
                                    <img src="../images/sizeminus.gif" border="0" title="减少编辑高度" style="margin-left: 20px; margin-right: 20px" /></a>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="bqleft"></td>
                <td class="bqright" height="40">
                    <asp:Button ID="DianCMS_Submit" runat="server" Text=" 确认(Ctrl+s) " CssClass="btn radius30 pad_0_30"
                        OnClick="Button5_Click" />
                    <input id="Button6" type="button" value=" 取消 " onclick="window.location.href = 'StyleList.aspx'"
                        class="btn radius30 pad_0_30" style="margin-left: 20px" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
