<%@ Page Language="C#" MasterPageFile="~/admin/admin_page.master" AutoEventWireup="true" CodeBehind="thumbnails_setting.aspx.cs" Inherits="YXShop.Web.admin.systeminfo.thumbnails_setting" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script type="text/javascript" src="../scripts/public.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">缩略图
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">缩略图参数配置
    <asp:Button ID="Button2" runat="server" CssClass="inputbutton" onclick="btnSave_Click" Text="保存设置" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">

<asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
     <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
		    <td class="form_table_input_info">缩略图默认宽度：<asp:HiddenField ID="txtId" runat="server" />
            </td>
		    <td>
                <asp:TextBox ID="txtThumbnailsWidth" runat="server"></asp:TextBox> 像素
            </td>
		    <td>
                <asp:Panel ID="txtThumbnailsWidthTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">缩略图默认高度：</td>
		    <td>
                <asp:TextBox ID="txtThumbnailsHeight"  runat="server"></asp:TextBox> 像素
            </td>
		    <td>
                <asp:Panel ID="txtThumbnailsHeightTip" runat="server"> 
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">商品图默认宽度：</td>
		    <td>
                <asp:TextBox ID="txtImageWidth"  runat="server"></asp:TextBox> 像素
            </td>
		    <td>
                <asp:Panel ID="txtImageWidthTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">商品图默认高度：</td>
		    <td>
                <asp:TextBox ID="txtImageHeight" runat="server"></asp:TextBox> 像素
            </td>
		    <td>
                <asp:Panel ID="txtImageHeightTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">水印类型：</td>
		    <td>
                <asp:RadioButtonList ID="ckbType" runat="server" RepeatDirection="Horizontal" 
                    RepeatLayout="Flow">
                    <asp:ListItem Value="0" Selected="True">图片水印</asp:ListItem>
                    <asp:ListItem Value="1">文字水印</asp:ListItem>
                </asp:RadioButtonList>
            </td>
		    <td>
                <div class="msgNormal">请选择本网站生成水印的类型，图片水印是指，在上传的图片中添加一副新的图片，作为新图片，文字水印是指在图片上添加上相关文字。</div>
            </td>
	    </tr>
	    
	    <tr>
		    <td class="form_table_input_info">图片水印透明度：</td>
		    <td>
                <asp:TextBox ID="txtImgTransparent" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtImgTransparentTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">文字水印透明度：</td>
		    <td>
                <asp:TextBox ID="txtCharTransparent" CssClass="short_input" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtCharTransparentTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">水印图片：</td>
		    <td>
                <asp:Image ID="txtWatermarkPicturePathImg" runat="server" /><br/>
                <asp:HiddenField ID="txtWatermarkPicturePathUrl" runat="server" />
                <asp:FileUpload ID="txtWatermarkPicturePath" runat="server" />
            </td>
		    <td>
                <asp:Panel runat="server" ID="txtWatermarkPicturePathTip" CssClass="msgNormal">如果选择水银类型为图片水印，则请选择您要添加水印的图片，上传水印图片高与宽超过生成水印图片的高与宽,则水印将自动忽略. </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">水印文字：</td>
		    <td>
                <asp:TextBox ID="txtCharacters" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
		    <td>
                <asp:Panel ID="txtCharactersTip" runat="server">
                </asp:Panel>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">水印位置：
            </td>
		    <td>
                <asp:DropDownList ID="ddlWatermarkPosition" runat="server">
                    <asp:ListItem Value="1">左上</asp:ListItem>
                    <asp:ListItem Value="2">左中</asp:ListItem>
                    <asp:ListItem Value="3">左下</asp:ListItem>
                    <asp:ListItem Value="4">中上</asp:ListItem>
                    <asp:ListItem Value="5">中中</asp:ListItem>
                    <asp:ListItem Value="6">中下</asp:ListItem>
                    <asp:ListItem Value="7">右上</asp:ListItem>
                    <asp:ListItem Value="8">右中</asp:ListItem>
                    <asp:ListItem Value="9">右下</asp:ListItem>
                </asp:DropDownList>
            </td>
		    <td>
                <div class="msgNormal">如果将一张图片划分为九宫格图片，则水印显示的位置</div>
            </td>
	    </tr>
        
    </table>
    </asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    <asp:Button ID="Button1" runat="server" CssClass="inputbutton" onclick="btnSave_Click" Text="保存设置" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
</asp:Content>