<%@ Page Language="C#" AutoEventWireup="true" CodeFile="art_set.aspx.cs" Inherits="Admin_art_set" %>

<!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="../Admin/skin/css.css" rel="stylesheet" type="text/css" />
     <link href="/images/css/inbox.css" rel="stylesheet" type="text/css" />
     <script language=javascript>
     function GetColor()
     {
        var items=document.getElementById("DropColor");
        var txt=document.getElementById("txtcolor");
        var preview=document.getElementById("fontpreview");
        var value=items.options[items.options.selectedIndex].value;
        if(value!="Null")
        {
            txt.value=value;
            preview.color=value;
        }
     }
     </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 98%" class=Ibx_gTable_Con>
            <tr>
                <td colspan="2" align=center class="bg">
                    附件上传设置</td>
            </tr>
            <tr>
                <td width="20%">
                    上传路径:</td>
                <td>
                    <asp:TextBox ID="txt_path" Enabled=false runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td width="20%">
                    图片附件类型:</td>
                <td>
                    <asp:TextBox ID="txt_type" runat="server" Width="300px"></asp:TextBox>
                    每个类型请用 | 来分隔</td>
            </tr>
            <tr>
                <td width="20%">
                    图片大小:</td>
                <td style="font-size:15px">
                    <asp:TextBox ID="txt_size" runat="server"></asp:TextBox>
                    KB</td>
            </tr>
           
            <tr>
                <td width="20%">
                    缩略图:</td>
                <td style="font-size: 15px">
                    高:<asp:TextBox ID="txt_height" runat="server" Width="75px"></asp:TextBox>
                    &nbsp;&nbsp;宽:<asp:TextBox ID="txt_width" runat="server" Width="75px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" style="font-size: 15px">
                    图片水印设置</td>
            </tr>
            <tr>
                <td>
                    是否启用图片水印:</td>
                 <td>
                     <input id="Radio8" name="tr_fs" runat=server type="radio" value="true" />是
                     <input id="Radio9" name="tr_fs" runat=server type="radio" value="false" />否</td>
            </tr>
            <tr>
                <td>
                    水印类型:</td>
                <td>
                    <input id="Radio6" name="wz_tp" runat=server type="radio" value="文字" />文字&nbsp;<input id="Radio7" name="wz_tp" runat=server type="radio" value="图片" />图片</td>
            </tr>
            <tr>
                <td>
                    文字大小:</td>
                <td>
                    <asp:TextBox ID="txtfontsize" runat="server" Width="60px">12</asp:TextBox>PX (当上面的选项为文字时,此设置有效,下同)</td>
            </tr>
            <tr>
                <td>
                    文字颜色:</td>
                <td style="height: 17px">
                    <asp:TextBox ID="txtcolor" runat="server" Enabled="False"></asp:TextBox>
                    <asp:DropDownList ID="DropColor" runat="server" onchange="GetColor()">
                    </asp:DropDownList>&nbsp;<font color="" id="fontpreview">此为颜色效果预览</font></td>
            </tr>
            <tr>
                <td>
                    水印文字:</td>
                <td>
                    <asp:TextBox ID="txt_wenzi" runat="server" Width="214px"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    水印图片路径:</td>
                <td>
                <script language=javascript type="text/javascript">
                function Browse()
			    {
				    window.open("/admin/tupian_select.aspx","","width=520,height=410,left=200,top=200");
			    }
			    function GetPath(path)
			    {
				    //接收返回的图片路径
				    document.getElementById("txt_img").value=path;
			    }
                </script>
                    <asp:TextBox ID="txt_img" runat="server" Width="214px"></asp:TextBox>(提示:仅支持.jpg格式)&nbsp;&nbsp;<a href="#" onclick="Browse()" class="bt_css">选择图片..</a></td>
            </tr>
            <tr>
                <td>
                    添加位置:</td>
                <td>
                    <asp:RadioButtonList ID="RadioWz" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                        <asp:ListItem Value="LT">左上</asp:ListItem>
                        <asp:ListItem Value="T">顶部</asp:ListItem>
                        <asp:ListItem Value="RT">右上</asp:ListItem>
                        <asp:ListItem Value="LC">左中</asp:ListItem>
                        <asp:ListItem Value="C">正中</asp:ListItem>
                        <asp:ListItem Value="RC">右中</asp:ListItem>
                        <asp:ListItem Value="LB">左下</asp:ListItem>
                        <asp:ListItem Value="B">底部</asp:ListItem>
                        <asp:ListItem Value="RB">右下</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Admin/skin/images/button_save.gif"
                        OnClick="ImageButton1_Click" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
