<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Site_Watermark" %>

<!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>
    <title>水印设置</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Eoyoo.FormControl.js"></script>
    <script type="text/javascript" src="Script/Site_Watermark.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>" method="post" enctype="multipart/form-data">
<div class="wrapper-div">
	<!-- 添加栏目 -->
    	<div class="title1">
        	<div class="right">
            	<span class="title-ico f_right titico3 X"> Ctrl + S 快捷保存</span>
            	<span class="title-ico titico6 F B f_left m_right16">水印设置</span>
                <ul id="watermark_Tab" class="tabs-2 f_left">
                    <li><a class="active" href="#tabDiv1">水印设置</a></li>
                    <li><a href="#tabDiv2">缩略图设置</a></li>
                </ul>
                <div class="clear-0"></div>
            </div>
        </div>
        
        <!-- 表单 -->
        <div class="tbox_form">
            <div id="tabDiv1">
            <p>
                <label class="name">是否开启水印:</label>
                <label class="checkbox">
                <input id="switch_chk" name="switch_chk" <%=_switch=="1"?"checked=checked":"" %> type="checkbox" value="0" />
                </label>
                <span class="point ico-remind V">是否开启水印设置</span>
            </p>
            <p>
                <label class="name">水印类型:</label>
                <select id="type_select" name="type_select" tabindex="1" class="select">
                  <option <%=_type=="0"?"selected=selected":"" %> value="0">文字</option>
                  <option <%=_type=="1"?"selected=selected":"" %> value="1">图片</option>
                </select>
                <span class="point ico-remind V">水印类型</span>
            </p>
            <p>
                <label class="name">水印文字:</label> <input value="<%=_text %>" class="isNull input200" name="text_txt" type="text" />
                <span  class="point ico-remind V">水印图片仅支持png格式</span>
            </p>
            <p>
                <label class="name">文字大小:</label>
                <select id="size_select" name="size_select" tabindex="1" class="select">
                  <option <%=_size=="12"?"selected=selected":"" %> value="12">12号</option>
                  <option <%=_size=="16"?"selected=selected":"" %> value="16">16号</option>
                  <option <%=_size=="20"?"selected=selected":"" %> value="20">20号</option>
                  <option <%=_size=="24"?"selected=selected":"" %> value="24">24号</option>
                  <option <%=_size=="28"?"selected=selected":"" %> value="28">28号</option>
                  <option <%=_size=="32"?"selected=selected":"" %> value="32">32号</option>
                  <option <%=_size=="36"?"selected=selected":"" %> value="36">36号</option>
                  <option <%=_size=="40"?"selected=selected":"" %> value="40">40号</option>
                  <option <%=_size=="44"?"selected=selected":"" %> value="44">44号</option>
                  <option <%=_size=="48"?"selected=selected":"" %> value="48">48号</option>
                  
                </select>
                <span class="point ico-remind V">水印文字大小</span>
            </p>
            <p>
                <label class="name">水印图片:</label> <input value="<%=_png %>" class="isNull input200" name="png_txt" type="text" />
                <span  class="point ico-remind V">水印图片仅支持png格式,直接填写根目录下的路径，前面不要带"/"</span>
            </p>
            <p>
                <label class="name">水印透明度:</label>
                <select id="alpha_select" name="alpha_select" tabindex="1" class="select">
                  <option <%=_alpha=="1"?"selected=selected":"" %> value="1">透明10%</option>
                  <option <%=_alpha=="2"?"selected=selected":"" %> value="2">透明20%</option>
                  <option <%=_alpha=="3"?"selected=selected":"" %> value="3">透明30%</option>
                  <option <%=_alpha=="4"?"selected=selected":"" %> value="4">透明40%</option>
                  <option <%=_alpha=="5"?"selected=selected":"" %> value="5">透明50%</option>
                  <option <%=_alpha=="6"?"selected=selected":"" %> value="6">透明60%</option>
                  <option <%=_alpha=="7"?"selected=selected":"" %> value="7">透明70%</option>
                  <option <%=_alpha=="8"?"selected=selected":"" %> value="8">透明80%</option>
                  <option <%=_alpha=="9"?"selected=selected":"" %> value="9">透明90%</option>
                  <option <%=_alpha=="10"?"selected=selected":"" %> value="10">透明100%</option>
                </select>
                <span class="point ico-remind V">水印透明度（1%-100%），100%为不透明</span>
            </p>
            <p>
                <label class="name">水印位置:</label>
                <label class="item">
                    <table class="table-1">
                        <tr>
                            <td><input name="location" <%=_location=="1"?"checked=checked":""%> class="radio" type="radio" value="1" /></td>
                            <td><input name="location" <%=_location=="2"?"checked=checked":""%> class="radio" type="radio" value="2" /></td>
                            <td><input name="location" <%=_location=="3"?"checked=checked":""%> class="radio" type="radio" value="3" /></td>
                        </tr>
                        <tr>
                            <td><input name="location" <%=_location=="4"?"checked=checked":""%> class="radio" type="radio" value="4" /></td>
                            <td><input name="location" <%=_location=="5"?"checked=checked":""%> class="radio" type="radio" value="5" /></td>
                            <td><input name="location" <%=_location=="6"?"checked=checked":""%> class="radio" type="radio" value="6" /></td>
                        </tr>
                        <tr>
                            <td><input name="location" <%=_location=="7"?"checked=checked":""%> class="radio" type="radio" value="7" /></td>
                            <td><input name="location" <%=_location=="8"?"checked=checked":""%> class="radio" type="radio" value="8" /></td>
                            <td><input name="location" <%=_location=="9"?"checked=checked":""%> class="radio" type="radio" value="9" /></td>
                        </tr>
                    </table>
                </label>
                <span  class="point ico-remind V">水印位置设置</span>
            </p>
            </div>
            <div id="tabDiv2">
                <p>
                    <label class="name">缩略图宽度:</label> <input value="<%=_sWidth %>" class="isNull isNumber input200" name="swidth_txt" type="text" />
                    <span  class="point ico-remind V">生成缩略图宽度</span>
                </p>
                <p>
                    <label class="name">缩略图高度:</label> <input value="<%=_sHeight %>" class="isNull isNumber input200" name="sheight_txt" type="text" />
                    <span  class="point ico-remind V">生成缩略图高度</span>
                </p>
                <p>
                    <label class="name">缩略图生成模式:</label>
                    <select id="stype_select" name="stype_select" tabindex="1" class="select">
                        <option <%=_sType=="W"?"selected=selected":"" %> value="W">指定宽,高则按比例</option>
                        <option <%=_sType=="HW"?"selected=selected":"" %> value="HW">指定高宽缩放(拉伸)</option>
                        <option <%=_sType=="H"?"selected=selected":"" %> value="H">指定高,宽则按比例</option>
                        <option <%=_sType=="Cut"?"selected=selected":"" %> value="Cut">指定高宽裁减</option>
                        <option <%=_sType=="Max"?"selected=selected":"" %> value="Max">按长宽最大者缩放</option>
                    </select>
                    <span  class="point ico-remind V">生成缩略图模式（推荐第一种）</span>
                </p>
                <p>
                    <label class="name">提示:</label>
                    <span style="width:400px;" class="info">更新设置之后，请到 <a href="Data_Update.aspx" class="R B">数据更新</a> 里重新生成缩略图</span>
                </p>
            </div>
            <hr />

            <label class="name">&nbsp;</label> <input type="submit" class="bule-btn W" value="确定保存" />
            <span></span>
        </div>
        <!-- end 表单 -->
    <!-- end 添加栏目 -->
</div>
    </form>
</body>
</html>
