<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WenZhang_ShangChuanTuPian.aspx.cs" Inherits="Admin_NeiRong_WenZhang_ShangChuanTuPian" %>

<!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 rel="Stylesheet" href="../Images/Admin.css" type="text/css" />
    <script type="text/javascript">
        function SZWJ()
        {
            var sls=document.getElementById("sl").value;
            
            if(document.getElementById("HuoQuLeiXing_T").checked)
            {
            var WJHTM="";
            for(var i=0;i<sls;i++)
                WJHTM+="文件"+(i+1)+"：<input type=\"file\" name=\"f"+(i+1)+"\" /><br/>";
            document.getElementById("fis").innerHTML=WJHTM;
            }
            else
            {
                var WJHTM="";
                for(var i=0;i<sls;i++)
                    WJHTM+="文件"+(i+1)+"：<input type=\"text\" name=\"d"+(i+1)+"\" /><br/>";
                document.getElementById("tis").innerHTML=WJHTM;
            }
        }
        function LOAD()
        {
            <%=执行代码 %>
        }
    </script>
</head>
<body onload="LOAD()">
    <form id="form1" runat="server" enctype="multipart/form-data">
    <div>
    图片数量：<input type="text" id="sl" value="1" /><input type="button" value="设置" onclick="SZWJ()" />
    <hr />
    <table class="tab1" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table class="tab2" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="tab2_bt">
                            上传图片
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table class="tab3" border="0" cellpadding="0" cellspacing="1">
                                <tr id="tr_w">
                                    <td style="width:150px">
                                    图片文件
                                    </td>
                                    <td>
    <div id="fis">
    文件1：<input type="file" name="f1" /><br />
    </div>
                                    </td>
                                </tr>
                                <tr id="tr_d" style="display:none">
                                    <td style="width: 150px">
                                        图片地址</td>
                                    <td>
                                    
                                    <div id="tis">
                                    文件1：<input type="text" name="d1" /><br />
                                    </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:150px">
                                        获取类型</td>
                                    <td>
                                        <asp:RadioButton ID="HuoQuLeiXing_T" runat="server" Checked="True" GroupName="HuoQuLeiXing"
                                            Text="上传图片" onclick="document.getElementById('tr_w').style.display='block';document.getElementById('tr_d').style.display='none';" />
                                        <asp:RadioButton ID="HuoQuLeiXing_F" runat="server" GroupName="HuoQuLeiXing" Text="远程获取"
                                         onclick="document.getElementById('tr_w').style.display='none';document.getElementById('tr_d').style.display='block';" /></td>
                                </tr>
                                <tr>
                                    <td style="width:150px">
                                    
                                    </td>
                                    <td>
    <input type="submit" name="submit" value="上传" />
    
    &nbsp; &nbsp;
    <input type="submit" name="submit" value="上传(增加水印)" />
    
    &nbsp; &nbsp;
    <input type="button" value="关闭" onclick="window.close();" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
