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

<!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>
    <base target="_self"></base>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script type="text/javascript">
        var api = frameElement.api, W = api.opener;

        function SelectLength(Name, Id) {
            var TypeCount = document.getElementsByName(Name);
            var p = 0;
            if (navigator.appName == "Microsoft Internet Explorer") {
                p = 1;
            }
            for (var i = p; i < TypeCount.length; i++) {
                if (TypeCount[i].checked) {
                    switch (TypeCount[i].value) {
                        case "1":
                            DianCMS_$(Id).style.display = "";
                            DianCMS_$(Id).style.display = "none";
                            break;
                        case "2":
                            DianCMS_$(Id).style.display = "none";
                            DianCMS_$(Id).style.display = "";
                            break;
                    }
                    break;
                }
            }
        }
	</script>
</head>
<body>
    <form id="form1" runat="server">
    <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> >> 设置样式 >>
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tr runat="server" id="field">
            <td class="bqleft">
                选择字段：
            </td>
            <td class="bqright">
                <asp:DropDownList ID="DropField" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tbody id="len" runat="server">
            <tr>
                <td class="bqleft">
                    使用类型：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="RadioLength" runat="server" RepeatDirection="Horizontal" onclick="SelectLength('RadioLength','DivLength')">
                        <asp:ListItem Value="1" Selected="True">按标签设置截取</asp:ListItem>
                        <asp:ListItem Value="2">按样式设置截取</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr style="display:none" id="DivLength">
                <td class="bqleft">
                    截取字符长度：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtLength" runat="server" CssClass="in1" Columns="10" Text="23"></asp:TextBox>字符 一个中文占两个字符
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    多余字符显示：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtYu" runat="server" CssClass="in1" Columns="10" Text="..."></asp:TextBox>
                </td>
            </tr>
        </tbody>
        <tbody id="forattime" runat="server">
            <tr>
                <td class="bqleft">
                    使用类型：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="RadioTime" runat="server" RepeatDirection="Horizontal" onclick="SelectLength('RadioTime','DivTime')">
                        <asp:ListItem Value="1" Selected="True">按标签设置格式</asp:ListItem>
                        <asp:ListItem Value="2">按样式设置格式</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr style="display:none" id="DivTime">
                <td class="bqleft">
                    时间格式化效果：
                </td>
                <td class="bqright">
                    <asp:DropDownList ID="DropFormatTime" runat="server">
                        <asp:ListItem Selected="True" Value="yyyy-MM-dd">2009-06-19</asp:ListItem>
                        <asp:ListItem Value="yyyy/MM/dd">2009/06/19</asp:ListItem>
                        <asp:ListItem Value="yyyy-M-dd">2009-6-19</asp:ListItem>
                        <asp:ListItem Value="yyyy/M/dd">2009/6/19</asp:ListItem>
                        <asp:ListItem Value="MM-dd">06-19</asp:ListItem>
                        <asp:ListItem Value="M-dd">6-19</asp:ListItem>
                        <asp:ListItem Value="MM/dd">06/19</asp:ListItem>
                        <asp:ListItem Value="M/dd">6/19</asp:ListItem>
                        <asp:ListItem Value="HH:mm:ss">14:10:30</asp:ListItem>
                        <asp:ListItem Value="MM-dd-yyyy">06-19-2009</asp:ListItem>
                        <asp:ListItem Value="MM/dd/yyyy">06/19/2009</asp:ListItem>
                    </asp:DropDownList>
                    时间格式化效果可以任意设置
                </td>
            </tr>
        </tbody>
        <tbody id="imgWidth" runat="server">
            <tr>
                <td class="bqleft">
                    图片等比例设置：
                </td>
                <td class="bqright">
                  最大宽度：<asp:TextBox ID="txtImgWidth" runat="server" Columns="4" Text="220" CssClass="in1"></asp:TextBox>px 最大高度：<asp:TextBox ID="txtImgHeight" runat="server" Columns="4" Text="220" CssClass="in1"></asp:TextBox>px
                </td>
            </tr>
        </tbody>
        <tbody id="ImgHeight" runat="server">
            <tr>
                <td class="bqleft">
                    图片等比例设置：
                </td>
                <td class="bqright">
                  最大宽度：<asp:TextBox ID="txtImgWidth1" runat="server" Columns="4" Text="220" CssClass="in1"></asp:TextBox>px 最大高度：<asp:TextBox ID="txtImgHeight1" runat="server" Columns="4" Text="220" CssClass="in1"></asp:TextBox>px
                </td>
            </tr>
        </tbody>
        <tbody id="Replace" runat="server">
            <tr>
                <td class="bqleft">
                    需要替换的字符：
                </td>
                <td class="bqright">
                    <asp:TextBox ID="txtoldText" runat="server" CssClass="in1"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    新字符：
                </td>
                <td class="bqright">
                <asp:TextBox ID="txtnewText" runat="server" CssClass="in1"></asp:TextBox>
                </td>
            </tr>
        </tbody>
        <tbody id="Split" runat="server">
            <tr>
                <td class="bqleft">
                    拆分符号：
                </td>
                <td class="bqright">
                <asp:TextBox ID="txtChar" runat="server" CssClass="in1" Columns="10"></asp:TextBox> 如要拆分2009-6-19 拆分符号为 -
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    显示位置：
                </td>
                <td class="bqright">
                <asp:TextBox ID="txtWeiZhi" runat="server" CssClass="in1" Text="0" Columns="5"></asp:TextBox>如要显示19 这里填写2 位置从0开始
                </td>
            </tr>
        </tbody>
        <tbody id="InfoNew" runat="server">
            <tr>
                <td class="bqleft">
                    多少天以内：
                </td>
                <td class="bqright">
                <asp:TextBox ID="txtDayNum" runat="server" CssClass="in1" Columns="10" Text="3"></asp:TextBox> 天
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    符合天数显示符号：
                </td>
                <td class="bqright">
                <asp:TextBox ID="txtWhereone" runat="server" CssClass="in1" Columns="30" 
                        Text="&lt;img src=&quot;/images/new.gif&quot; /&gt;"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bqleft">
                    超出天数显示符号：
                </td>
                <td class="bqright">
                <asp:TextBox ID="txtWhereTwo" runat="server" CssClass="in1" Columns="30"></asp:TextBox>
                </td>
            </tr>
        </tbody>
        <tbody id="Encode" runat="server">
            <tr>
                <td class="bqleft">
                    编码/解码：
                </td>
                <td class="bqright">
                    <asp:RadioButtonList ID="RadEncode" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
                        <asp:ListItem Value="1" Selected="True">普通编码</asp:ListItem>
                        <asp:ListItem Value="3">HTML编码</asp:ListItem>
                        <asp:ListItem Value="5">URL编码</asp:ListItem>
                        <asp:ListItem Value="7">Base64解码</asp:ListItem>
                        <asp:ListItem Value="2">普通解码</asp:ListItem>
                        <asp:ListItem Value="4">HTML解码</asp:ListItem>
                        <asp:ListItem Value="6">URL解码</asp:ListItem>
                        <asp:ListItem Value="8">Base64解码</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
        </tbody>
        <tbody id="Comment" runat="server">        
        <tr>
            <td class="bqleft">显示方式：</td>
            <td class="bqright">
                <asp:RadioButtonList ID="RadiShowType" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1" Selected="True">静态</asp:ListItem>
                    <asp:ListItem Value="2">动态</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">数据筛选：</td>
            <td class="bqright">
                <asp:RadioButtonList ID="RadData" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1">所有评论</asp:ListItem>
                    <asp:ListItem Value="2" Selected="True">已审评论</asp:ListItem>
                    <asp:ListItem Value="3">未审评论</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        </tbody>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button1" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" 
                    onclick="Button1_Click" /><input id="Button2" type="button" value=" 取消 " class="btn radius30 pad_0_30" style="margin-left:20px;" onclick="frameElement.api.close();" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
