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

<!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 rel="Stylesheet" href="../Images/Admin.css" type="text/css" />
    <script type="text/javascript" src="../Images/ColorDialog.js"></script>
    <script type="text/javascript">
        function SheZhiShuiYinLeiXing(TuPian_WenZi)
        {
            if(TuPian_WenZi)
            {
                document.getElementById("TuPianYangShi").style.display='block';
                document.getElementById("WenZiYangShi").style.display='none';
            }
            else
            {
                document.getElementById("TuPianYangShi").style.display='none';
                document.getElementById("WenZiYangShi").style.display='block';
            }
        }
        function SheZhiWenJian(BiaoShi,DiZhi)
        {
            if(BiaoShi=="TuPian")
            {
                document.getElementById("TuPian").src=DiZhi;
                document.getElementById("TuPianDiZhi").value=DiZhi;
            }
        }
    </script>
</head>
<body onload="SheZhiShuiYinLeiXing(document.getElementById('ShuiYinLeiXing_F').checked)">
<div style="height:18px">
位置：内容设置 &gt; 图片水印设置
</div>
<form id="form1" runat="server" onkeydown="if(event.ctrlKey&&event.keyCode==13) this.submit();">
    <div>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TouMingDu"
            ErrorMessage="RegularExpressionValidator" SetFocusOnError="True" ValidationExpression="^\d+">透明度只能是数字组成</asp:RegularExpressionValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="WenZi"
            ErrorMessage="RequiredFieldValidator" SetFocusOnError="True">水印文字不能为空</asp:RequiredFieldValidator>
            <table class="tab1" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <table class="tab2" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="tab2_bt">
                                    水印设置
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table class="tab3" border="0" cellpadding="0" cellspacing="1">
                        <tr>
                            <td style="width:200px">
                                <span class="text_bt">&nbsp; &nbsp; 水印类型</span>
                            </td>
                            <td>
                                &nbsp; &nbsp;
                                <asp:RadioButton ID="ShuiYinLeiXing_T" runat="server" Checked="True" GroupName="ShuiYinLeiXing" Text="文字" onclick="SheZhiShuiYinLeiXing(false)" />
                                <asp:RadioButton ID="ShuiYinLeiXing_F" runat="server" GroupName="ShuiYinLeiXing" Text="图片" onclick="SheZhiShuiYinLeiXing(true)" />
                                &nbsp; &nbsp;<span class="text_pt">水印的类型，将文字或图片作为图片的水印。</span>
                                </td>
                        </tr>
                        <tr>
                            <td style="width: 200px">
                                &nbsp; &nbsp; <span class="text_bt">水印位置</span><br /><br />
                                &nbsp; &nbsp; <span class="text_pt">水印增加到的位置。</span>
                                </td>
                            <td>
                                <table style="background:#eeeeee" border="0" cellpadding="0" cellspacing="1">
                                    <tr>
                                        <td style="width: 45px;height:45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_1" runat="server" GroupName="ShuiYinWeiZhi" Text="左上" Checked="True" /></td>
                                        <td style="width: 45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_2" runat="server" GroupName="ShuiYinWeiZhi" Text="中上" /></td>
                                        <td style="width: 45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_3" runat="server" GroupName="ShuiYinWeiZhi" Text="右上" /></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 45px;height:45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_4" runat="server" GroupName="ShuiYinWeiZhi" Text="居左" /></td>
                                        <td style="width: 45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_5" runat="server" GroupName="ShuiYinWeiZhi" Text="居中" /></td>
                                        <td style="width: 45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_6" runat="server" GroupName="ShuiYinWeiZhi" Text="居右" /></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 45px;height:45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_7" runat="server" GroupName="ShuiYinWeiZhi" Text="左下" /></td>
                                        <td style="width: 45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_8" runat="server" GroupName="ShuiYinWeiZhi" Text="中下" /></td>
                                        <td style="width: 45px;background:#ffffff">
                                            <asp:RadioButton ID="ShuiYinWeiZhi_9" runat="server" GroupName="ShuiYinWeiZhi" Text="右下" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr id="TuPianYangShi">
                            <td style="width: 200px">
                                &nbsp; &nbsp; <span class="text_bt">图片样式</span></td>
                            <td>
                                图片：<asp:Image ID="TuPian" runat="server" />
                                <input type="button" value="选择水印图片" onclick="window.open('../XuanZheTuPian.aspx?b=TuPian','_blank','toolbar=no,scrollbars=yes,width=1000,height=600');" />
                                &nbsp;&nbsp; 透明度：<asp:TextBox ID="TouMingDu" runat="server" Width="40px">10</asp:TextBox>(数字1-10，10为不透明)</td>
                        </tr>
                        <tr id="WenZiYangShi">
                            <td style="width: 200px">
                                &nbsp; &nbsp; <span class="text_bt">文字样式</span></td>
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td style="width:200px">
                                            文字：<asp:TextBox ID="WenZi" runat="server" MaxLength="50"></asp:TextBox></td>
                                        <td style="width:111px">
                                            颜色：<asp:TextBox onfocus="colordialog()" ID="YanSe" runat="server" Width="60px" MaxLength="7"></asp:TextBox></td>
                                        <td style="width:300px">
                                            字体：<asp:DropDownList ID="ZiTi" runat="server">
                                            </asp:DropDownList></td>
                                    </tr>
                                    <tr>
                                        <td style="width:200px">
                                            大小：<asp:TextBox ID="DaXiao" runat="server" Width="40px">12</asp:TextBox>px</td>
                                        <td style="width:111px">
                                            <asp:CheckBox ID="ShiFouJiaChu" runat="server" Text="是否加粗" /></td>
                                        <td style="width:232px"></td>
                                    </tr>
                                </table>
                                </td>
                        </tr>
                        <tr>
                            <td style="width: 200px">
                            </td>
                            <td>
                                &nbsp; &nbsp;
                                <asp:Button ID="Button1" runat="Server" Text="保存设置" CssClass="but" />
                                &nbsp;&nbsp;
                                <input type="reset" value="重新填写" class="but" />
                                </td>
                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
    </div>
    <asp:HiddenField ID="TuPianDiZhi" runat="server" />
    </form>
    <object id="dlgHelper" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></object>
</body>
</html>
