<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Editproduct.aspx.cs" Inherits="manage_Editproduct" validateRequest="false"%>
<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<!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="../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <table class="9" style="width: 550px; border-top-style: groove; border-right-style: groove;
            border-left-style: groove; background-color: #ffffff; border-bottom-style: groove">
            <tr>
                <td colspan="3" style="border-top-style: double; border-right-style: double; border-left-style: double;
                    height: 28px; background-color: cornflowerblue; border-bottom-style: double">
                    <strong><span style="color: black">修改编辑产品</span></strong></td>
            </tr>
            <tr>
                <td colspan="3" rowspan="2" style="text-align: left">
                    <table class="9" frame="vsides" style="height: 145px" width="100%">
                        <tr>
                            <td style="border-right: gray 1px solid; border-top: gray 1px solid; border-left: gray 1px solid;
                                border-bottom: gray 1px solid">
                                &nbsp;产品名称：</td>
                            <td colspan="2" style="border-right: gray 1px solid; border-top: gray 1px solid;
                                border-left: gray 1px solid; border-bottom: gray 1px solid">
                                <asp:TextBox ID="txtName" runat="server" MaxLength="20" Width="221px"></asp:TextBox>(20字以内)</td>
                        </tr>
                        <tr>
                            <td style="border-right: gray 1px solid; border-top: gray 1px solid; border-left: gray 1px solid;
                                border-bottom: gray 1px solid">
                                产品排序：</td>
                            <td colspan="2" style="border-right: gray 1px solid; border-top: gray 1px solid;
                                border-left: gray 1px solid; border-bottom: gray 1px solid">
                                <asp:TextBox ID="txtXuhao" runat="server" Width="65px"></asp:TextBox>（0-9的数字）</td>
                        </tr>
                        <tr style="color: #0000ff">
                            <td style="border-right: gray 1px solid; border-top: gray 1px solid; border-left: gray 1px solid;
                                border-bottom: gray 1px solid; height: 113px">
                                &nbsp;产品图片：</td>
                            <td colspan="2" style="border-right: gray 1px solid; border-top: gray 1px solid;
                                border-left: gray 1px solid; border-bottom: gray 1px solid; height: 113px">
                                <table style="width: 507px">
                                    <tr>
                                        <td colspan="2" style="border-right: silver 1px dashed; border-top: silver 1px dashed;
                                            border-left: silver 1px dashed; width: 189px; border-bottom: silver 1px dashed">
                                            <asp:FileUpload ID="imageUpload" runat="server" /></td>
                                        <td rowspan="2" style="width: 47px">
                                            <asp:Label ID="lblImage" runat="server" BorderStyle="Groove" Height="85px" Width="120px"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="border-right: silver 1px dashed; border-top: silver 1px dashed;
                                            border-left: silver 1px dashed; width: 189px; border-bottom: silver 1px dashed">
                                            <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="上传图像" />
                                            <asp:Label ID="lblImgurl" runat="server"></asp:Label></td>
                                    </tr>
                                </table>
                                <span style="color: #0000ff">图片大小不能超超过2M</span></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td colspan="3" rowspan="1" style="text-align: center">
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Text="产品详细介绍"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 301px" valign="top">
                    <ftb:freetextbox id="FreeTextBox1" runat="server" allowhtmlmode="True" autoconfigure="Default"
                        autohidetoolbar="False" backcolor="LightGray" breakmode="LineBreak" buttondownimage="False"
                        buttonpath="images/ftb/office2003/" buttontitlemode="None" buttontype="Image"
                        downlevelmode="BasicEditor" gutterbackcolor="224, 224, 224" height="300px" htmlmodedefaultstomonospacefont="True"
                        imagegallerypath="Uploadpics/productpics" pastemode="Default" readonly="False"
                        scrollbarmode="Style" showstatusarea="True" startmode="DesignMode" toolbarlayout=""
                        toolbartype="Office2003" width="750px"></ftb:freetextbox>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: center">
                    &nbsp;<asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="3" style="background-color: cornflowerblue; text-align: center">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="确认输入" />
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
