<%@ page language="C#" autoeventwireup="true" inherits="admin_storeConfig_WaterConfig, LebiMall" %>
<!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 id="Head1" runat="server">
<title>水印设置</title>
<link rel="stylesheet" type="text/css" href="css/css.css" media="screen"/>
<script type="text/javascript" language="javascript" src="js/topHead.js"></script>
<link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/tipswindown.js" type="text/javascript"></script>
<script type="text/javascript">
    var $=jQuery;
</script>
<script language='JavaScript' type="text/javascript">
            function SelectColor(sEL,form){
                var dEL = document.all(sEL);
                var url = 'selcolor.aspx?color='+encodeURIComponent(sEL);
                var arr = showModalDialog(url,window,'dialogWidth:280px;dialogHeight:250px;help:no;scroll:no;status:no');
                if (arr) {
                    form.value=arr;
                    form.style.backgroundColor=arr;
                    form.style.color=arr;
                }
            }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <!--顶部logo区域-->
        <script>header(6,7,"images/");</script>
        <div class="blank clearfix"></div>
        <!--功能区-->
        <div class="tab-mainbody3">
            <div class="tab-mainbody4">
                <div class="functionHandleArea clearfix">
                    <input type=button class="btn-app" runat=server id="button2" title="保存" onserverclick="button1_ServerClick"/>
                    <input type=button class="btn-res" onclick="reset();return false;" title="重置"/>
                </div>
                <div id="datalist">
                    <table cellspacing="0" border="0" id="list" style="width: 100%; border-collapse: collapse;">
                    <!-- table 导航 -->
                        <tr>
                            <th class="td_right td_left" colspan="2" align=left >水印设置</th>
                        </tr>
                        <tr>
                            <td width="15%">水印功能：
                            </td>
                            <td width="85%">
                                <asp:RadioButtonList ID="rb_NoAndOff" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                                    <asp:ListItem Value="true">开启实体水印</asp:ListItem>
                                    <asp:ListItem Value="true2">开启虚拟水印</asp:ListItem>
                                    <asp:ListItem Value="false">关闭水印</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td>水印类型：</td>
                            <td>
                                <asp:RadioButtonList ID="rb_PicAndText" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"
                                    RepeatLayout="Flow">
                                    <asp:ListItem Value="Logo">图片</asp:ListItem>
                                    <asp:ListItem Value="text">文字</asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr>
                            <td>水印的路径：</td>
                            <td><asp:TextBox ID="tb_picpath" runat="server" Width="193px" CssClass="input"></asp:TextBox>
                                <input id="File1" type="file" runat=server contenteditable="false" style="width: 0px; border: 0; height:18px; margin-bottom:1px;" />
                            </td>
                        </tr>
                        <tr>
                            <td>水印文字：</td>
                            <td><asp:TextBox ID="tb_WM_Text" runat="server" Width="145px" CssClass="input"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>水印位置：</td>
                            <td><asp:DropDownList ID="ddl_Location" runat="server">
                                    <asp:ListItem Value="LeftTop">左上角</asp:ListItem>
                                    <asp:ListItem Value="LeftBottom">左下角</asp:ListItem>
                                    <asp:ListItem Value="Center">居中</asp:ListItem>
                                    <asp:ListItem Value="RightTop">右上角</asp:ListItem>
                                    <asp:ListItem Value="RightBottom">右下角</asp:ListItem>
                                    <asp:ListItem Value="CenterTop">上居中</asp:ListItem>
                                    <asp:ListItem Value="CenterBottom">下居中</asp:ListItem>
                                    <asp:ListItem Value="CenterLeft">左居中</asp:ListItem>
                                    <asp:ListItem Value="CenterRight">右居中</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>水印透明度</td>
                            <td><asp:TextBox ID="tb_Transparence" runat="server" onkeypress="if (event.keyCode < 48 || event.keyCode >57) event.returnValue = false;"
                                Width="35px" MaxLength="3" CssClass="input"></asp:TextBox>％ <span style="color: #ff0000;
                                    font-size: 8pt">* 最大值为100</span></td>
                        </tr>
                        <tr>
                            <td>水印字体</td>
                            <td><asp:DropDownList ID="ddl_font" runat="server">
                            </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>文字大小</td>
                            <td> <asp:TextBox ID="tb_FontSize" runat="server" onkeypress="if (event.keyCode < 48 || event.keyCode >57) event.returnValue = false;"
                                Width="35px" MaxLength="3" CssClass="input"></asp:TextBox>号</td>
                        </tr>
                        <tr>
                            <td>文字颜色</td>
                            <td><asp:TextBox ID="tb_FontColor" runat="server" MaxLength="7" Style="cursor: default"
                                Width="57px" CssClass="input"></asp:TextBox>
                            <img id="Img2" src="images/color1.gif" border="0" title="选择颜色" onmouseover="src='images/color2.gif'"
                                onmouseout="src='images/color1.gif'" style="cursor: default; position: absolute;"
                                onclick='SelectColor(this,tb_FontColor)' /></td>
                        </tr>
                        <tr>
                            <td>文字形状</td>
                            <td><asp:DropDownList ID="ddl_Form" runat="server">
                            </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>阴影</td>
                            <td><asp:RadioButtonList ID="Rb_show" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Selected="True" Value="0">启用</asp:ListItem>
                                    <asp:ListItem Value="1">禁用</asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr>
                            <td>阴影颜色</td>
                            <td><asp:TextBox ID="tb_FontShadow" runat="server" MaxLength="7" Style="cursor: default"
                                CssClass="input" Width="57px"></asp:TextBox>
                            <img id="Img1" src="images/color1.gif" border="0" title="选择颜色" onmouseover="src='images/color2.gif'"
                                onmouseout="src='Images/color1.gif'" style="cursor: default; position: absolute;"
                                onclick='SelectColor(this,tb_FontShadow)' /></td>
                        </tr>
                        <tr>
                            <td>自定义水印位置<span style="color: #ff0000">X</span>轴</td>
                            <td>    <asp:TextBox ID="tb_PlaceX" runat="server" Width="45px" CssClass="input" onkeypress="if (event.keyCode < 48 || event.keyCode >57) event.returnValue = false;"></asp:TextBox>像素
                        </td>
                        </tr>
                        <tr>
                            <td>自定义水印位置<span style="color: #ff0000">Y</span>轴</td>
                            <td>    <asp:TextBox ID="tb_PlaceY" runat="server" Width="45px" CssClass="input" onkeypress="if (event.keyCode < 48 || event.keyCode >57) event.returnValue = false;"></asp:TextBox>像素
                        </td>
                        </tr>
                        <tr>
                            <td>自定义生成水印图片宽度</td>
                            <td>    <asp:TextBox ID="tb_ZipWidth" runat="server" Width="45px" CssClass="input" onkeypress="if (event.keyCode < 48 || event.keyCode >57) event.returnValue = false;"></asp:TextBox>像素
                        </td>
                        </tr>
                        <tr>
                            <td>自定义生成水印图片高度</td>
                            <td>   <asp:TextBox ID="tb_ZipHeight" runat="server" Width="45px" CssClass="input" onkeypress="if (event.keyCode < 48 || event.keyCode >57) event.returnValue = false;"></asp:TextBox>像素
                        </td>
                        </tr>
                        <tr>
                            <td>生成水印图片路径</td>
                            <td>   <asp:TextBox ID="tb_SavePath" runat="server" Width="170px" CssClass="input"></asp:TextBox>说明：相对路径
                        </td>
                        </tr>
                        <tr>
                            <td>水印文字纵横排列</td>
                            <td><asp:RadioButtonList ID="Rb_freely" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <asp:ListItem Selected="True" Value="0">横向</asp:ListItem>
                                    <asp:ListItem Value="1">纵向</asp:ListItem>
                                </asp:RadioButtonList></</td>
                        </tr>
                        <tr>
                            <td>去水印图片底色</td>
                            <td><asp:TextBox ID="tb_groundcolor" runat="server" MaxLength="7" Style="cursor: default"
                                Width="57px" CssClass="input"></asp:TextBox>
                            <img id="selectcolor" src="images/color1.gif" border="0" title="选择颜色" onmouseover="src='images/color2.gif'"
                                onmouseout="src='Images/color1.gif'" style="cursor: default; position: absolute;"
                                onclick='SelectColor(this,tb_groundcolor)' /></td>
                        </tr>
                        <tr>
                            <td colspan="2" class="list-foot">
                                <input type=button class="btn-app" runat=server id="button1" title="保存" onserverclick="button1_ServerClick" />
                                <input type=button class="btn-res" onclick="reset();return false;" title="重置"/>
                            </td>
                        </tr>
                    </table>
                    <script type="text/javascript">tdshowm("list");</script>
                    <script type="text/javascript">
                        var fc='<%=returnValue %>';
                        var i = 2;
                        if(fc=="true"){
                        
                            tipsWindown("提示","text:操作成功！","250","60","true","2000","true","");
                            
                        }
                        if(fc=="false"){
                            tipsWindown("提示","text:操作失败！","250","60","true","2000","true","");
                        }
                    </script>
                </div>
                </div>
            </div>
    </form>
</body>
</html>
