<%@ page language="C#" autoeventwireup="true" inherits="admin_ad_setpurpose, 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 src="../../js/Common.js" type="text/javascript"></script>

    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
	<script type="text/javascript" language="javascript" src="../../js/<%=B_Lang.getLang() %>/listbox.js"></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> >> <a href="purposelist.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" Columns="30" CssClass="in1"></asp:TextBox><asp:TextBox
                    ID="FilePicPath" runat="server" Style="display: none">ad|0</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                特效图片：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtPic" runat="server" Rows="10" Columns="40" CssClass="in1" style="float:left"></asp:TextBox><input
                        type="button" value="上传图片" class="btn" onclick="WinOpenLhgDialog('上传图片','../common/uploadpic.aspx?ControlId=txtPic',620,280,'')"  style="float:left"/><input
                            type="button" value="从服务器上选择" class="btn" onclick="SelectFile('../common/SelectUploadFile2.aspx?filetype=image&ControlId=txtPic','')"  style="float:left"/>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                特效组：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtImage" runat="server" Rows="10" Width="99%" TextMode="MultiLine"></asp:TextBox><br />任意内容|任意内容|任意内容，任意内容包含地址，请使用绝对根路径，如：<br /><font color=green>图片名称</font><font color="red">|</font><font color=green>/upload/ad/2010/diancms.gif</font><font color="red">|</font><font color=green>http://www.diancms.com</font>，一行一组
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                特效网页：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtPage" runat="server" Columns="40" CssClass="in1"></asp:TextBox> *不带虚拟名录的绝对根路径：/html/index.html
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                文件编码：
            </td>
            <td class="bqright">
                <asp:RadioButtonList ID="RadEncoding" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="Default" Selected="True">Default</asp:ListItem>
                    <asp:ListItem Value="UTF8">UTF8</asp:ListItem>
                    <asp:ListItem Value="ASCII">ASCII</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr> 
        <tr>
            <td class="bqleft">
                特效代码：
            </td>
            <td class="bqright">
                <input id="Button1" type="button" value=" 读入特效模板 " class="btn" onclick="WinOpenLhgDialog('选择模板','../template/SelectTemplate.aspx?ControlId=txtColumnTemplate',650,450,'')" style="display:none"/><br />
                <asp:TextBox ID="txtjsCode" runat="server" Width="99%" Height="300" TextMode="MultiLine"></asp:TextBox><table
                    width="99%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td bgcolor="#e0dfe3" align="right">
                            <a href="javascript:" onclick="runEx('txtjsCode')">
                                <img src="../images/PreView.gif" border="0" title="预览录入界面" /></a> <a href="javascript:"
                                    onclick="copyToClipboard(document.form1.txtjsCode.value)">
                                    <img src="../images/copy.gif" border="0" title="复制录入界面" style="margin-left: 20px" /></a>
                            <a href="javascript:" onclick="SizePlus('txtjsCode')" title="增加编辑高度">
                                <img src="../images/sizeplus.gif" border="0" style="margin-left: 20px;" /></a>
                            <a href="javascript:" onclick="SizeMinus('txtjsCode')">
                                <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">
                <asp:TextBox ID="txthtmlCode" runat="server" Width="99%" TextMode="MultiLine" Rows="10"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button2" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" 
                    onclick="Button2_Click" /><asp:Button ID="Button3" runat="server"  
                    Text=" 确认并生成 " CssClass="btn radius30 pad_0_30" style="margin-left:20px;" 
                    onclick="Button2_Click" />
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                使用方法：
            </td>
            <td class="bqright">
                特效图片：{D_Pic}<br />
                特效组：以 <font color=green>图片名称</font><font color="red">|</font><font color=green>/upload/ad/2010/diancms.gif</font><font color="red">|</font><font color=green>http://www.diancms.com</font>为例：<br />获得第一个图片的名称：{D_Image(0,0)} 图片路径：{D_Image(0,1)} 连接地址：{D_Image(0,2)}<br />获得第二个图片的名称：{D_Image(1,0)} 图片路径：{D_Image(1,1)} 连接地址：{D_Image(1,2)}
                <br />依次类推... ...<br />
                特效网页：{D_Page}
            </td>            
        </tr>
    </table>
    </form>
</body>
</html>
