<%@ page language="C#" autoeventwireup="true" inherits="shop_shop_photo_upload, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/s/include/meta.ascx" %>
<!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">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>上传</title>
    <UC:meta ID="meta1" runat="server" />
    <style type="text/css">body{background-image: none;}</style>
    <script type="text/javascript">
        function check(){
            if(document.getElementById("title").value==""){alert("描述文字不能为空！");return false;}
        }
    </script>
</head>
<body><form id="form1" runat="server" autocomplete="off"><div style="position:absolute; right:0;"><img alt="点击关闭" src="/s/skin/close.gif" style="cursor:pointer" onclick="top.location=top.location.href.replace('&act=upload','').replace('act=upload','')" /></div>
    <div class="do1">    
        <table border="0" cellpadding="0" cellspacing="0" class="table1">
            <tr>
                <td class="tt"><b>图片描述：</b><asp:HiddenField ID="HiddenField_AddSwitch" runat="server" Value="0" /></td>
                <td>
                    <asp:TextBox ID="title" runat="server" MaxLength="60" CssClass="inp4" Width="328"></asp:TextBox><span style="margin-left: 10px"><span class="msgon">请填写店铺展示图片描述！</span></span>
                </td>
            </tr>
            <tr>
                <td class="tt">上传图片：</td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" style="cursor: default">
                        <tr>
                            <td>
                                <div class="abs" style="*display: none">
                                    <table width="400" border="0" cellspacing="0" cellpadding="0" height="24">
                                        <tr>
                                            <td id="upimg1_txt" width="322" style="border: solid 1px #ccc">&nbsp;</td>
                                            <td>&nbsp;</td>
                                            <td width="72" style="border: solid 1px #ccc" class="ce" style="color: #333">浏览...</td>
                                        </tr>
                                    </table>
                                </div>
                                <asp:FileUpload ID="upimg1" runat="server" size="55" CssClass="inp4 self_inp4" ToolTip="jpg,jpeg,gif,bmp,png" />
                            </td>
                            <td style="padding-left: 8px">
                                <div id="thumbnailviewbox"><asp:Literal ID="thumbnailview" runat="server"></asp:Literal></div><asp:HiddenField ID="thumbnail" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <style type="text/css">
                        .self_inp4{width: 393px; *width:400px;height:20px;*height:24px;filter:-moz-opacity:0;opacity:0;font-size:12px;}
                        #CustomArea td{padding-top: 5px;}
                        #CustomArea .self_custom_inp{font-size: 12px;padding-left: 6px;}
                    </style>
                    <script type="text/javascript">
                        if (navigator.userAgent.indexOf('Firefox') >= 0){document.getElementById("upimg1").style.width="400px";  document.getElementById("upimg1").style.height="24px";}
                    </script>
                </td>
            </tr>
            <tr>
                <td class="tt"><asp:HiddenField ID="HiddenField1" runat="server" Value="0" />&nbsp;</td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td><asp:Button ID="ButtonSubmit" runat="server" CssClass="but4" Text="确定上传" OnClick="ButtonSubmit_Click" OnClientClick="return check()" /></td>
                            <td>
                                <div style="padding-left: 10px" class="red"><asp:Literal ID="msg" runat="server"></asp:Literal></div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
