⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uploadimg.aspx

📁 在线 图书网上购物系统
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="DotNetTextBox.UpLoad" %>
<%@ Import Namespace="DotNetTextBox" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<base target="_self" />
<script language="javascript" type="text/javascript">
var userAgent = navigator.userAgent.toLowerCase();
var is_ie = (userAgent.indexOf('msie') != -1);
var image = new Array;
var w,h;

function reloadClick()
{
var reload=document.getElementById ("reload");
reload.click();
}

function changeWaterMark(type)
{
if(type=='watermark')
{
if(document.getElementById("watermark").checked)
{
document.getElementById("watermarkText").checked=false;
document.getElementById("config_watermark").value="false";
document.getElementById("config_watermarkImages").value="true";
}
else
{
document.getElementById("config_watermarkImages").value="false";
}

}
else
{
if(document.getElementById("watermarkText").checked)
{
document.getElementById("watermark").checked=false;
document.getElementById("config_watermark").value="true";
document.getElementById("config_watermarkImages").value="false";
}
else
{
document.getElementById("config_watermark").value="false";
}

}

}

function loading() 
{
    document.getElementById("loading").style.visibility="visible";
    return true;
}

function checksize(str,type)
{
    if(type=="wedth"&document.getElementById("ImgWidth").value!=""&document.getElementById("ImgHeight").value!="")
    {
       if(w!=null&&h!=null)
       {
       document.getElementById("ImgHeight").value=Math.round((parseInt(str)*h)/w);
       }
       else
       {
       w=str;
       h=document.getElementById("ImgHeight").value;
       }
    }
    else if(document.getElementById("ImgWidth").value!=""&document.getElementById("ImgHeight").value!="")
    {
       if(w!=null&&h!=null)
       {
       document.getElementById("ImgWidth").value=Math.round((parseInt(str)*w)/h);
       }
       else
       {
       w=document.getElementById("ImgWidth").value;
       h=str;
       }
    }
}

function preview(name) 
{
    
    if(is_ie)
    {
    var path=document.getElementById("path").innerText;
    }
    else
    {
    var path=document.getElementById("path").textContent;
    }
    document.getElementById("file_path").value=path+name;
    document.getElementById("previewImg").innerHTML='<img src='+document.getElementById("file_path").value.replace(/\s/g,"\%20")+' align="middle" onload="ImgWidth.value=this.width;ImgHeight.value=this.height;w=this.width;h=this.height;if(this.width>300){this.width=300;this.height=Math.round(this.width*h/w);}if(this.height>225){this.height=225;this.width=Math.round(this.height*w/h);}" />';
    document.getElementById("file_path").focus();
}

function newImages() 
{
    if(document.getElementById("file_path").value!="")
    {
    var arr=new Array;
    arr[0]=document.getElementById("file_path").value.replace(/\s/g,"\%20")
    arr[1]=document.getElementById("ImgWidth").value;
    arr[2]=document.getElementById("ImgHeight").value;
    arr[3]=document.getElementById("ImgAlt").value;
    arr[4]=document.getElementById("Imgalign").value;
    if(is_ie)
    {
    window.returnValue = arr;
    }
    else
    {
    if(document.getElementById("insertImg").value!='<%=ResourceManager.GetString("mof")%>')
    {
    window.opener.inserObject(null,'img',arr);
    }
    else
    {
    window.opener.inserObject(null,'modimg',arr);
    }
    }
    }
    window.close();
}

var sTitle='<%=ResourceManager.GetString("insertimages")%>';
if(is_ie)
{
if (dialogArguments!=null)
sTitle='<%=ResourceManager.GetString("mofimages")%>';
}
else
{
image=window.opener.GetImg();
if(image[0]!=null)
{
sTitle='<%=ResourceManager.GetString("mofimages")%>';
}
window.focus();
}
document.write("<TITLE>" + sTitle + "</TITLE>");
</script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body topmargin="0">
    <form id="uploadFace" runat="server">
        <table border="0" align="center" style="word-break:break-all" width="100%">
            <tr>
                <td colspan="4" rowspan="1" valign="top" style="width: 840px">
                    <fieldset><legend><span style="color: gray"><%=ResourceManager.GetString("uploadface")%></span>&nbsp;</legend>
        <%=ResourceManager.GetString("uploadpath")%>:<asp:Label ID="path" runat="server" ForeColor="Black"></asp:Label><br />
        <%=ResourceManager.GetString("uploadimages")%>:<asp:FileUpload ID="FileUpload1" runat="server" Width="388px" Height="21px" TabIndex="2" Font-Size="10pt" /><asp:Button ID="uploadBtn" runat="server" OnClientClick="loading()" OnClick="UploadBtn_Click"/><asp:TextBox ID="remoteurl" runat="server" Visible="False" Text="http://" Width="350px"></asp:TextBox>
                        <asp:Button ID="remoteupload" runat="server" Visible="False" Width="49px" OnClientClick="loading()" OnClick="remoteupload_Click" /><br />
        <%=ResourceManager.GetString("filepath")%>:<asp:TextBox ID="file_path" runat="server" Width="316px" TabIndex="1"></asp:TextBox>
        <input language="javascript" onclick="javascript:newImages()" type="button" value='<%=ResourceManager.GetString("insertimage")%>' id="insertImg" /><br />
                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
                            <asp:ListItem Selected=True Value="local" />
                            <asp:ListItem Value="remote" />
                        </asp:RadioButtonList>[ <%=ResourceManager.GetString("uploaduse")%>:<asp:label ID="useSpace" ForeColor="Red" runat=server />,<%=ResourceManager.GetString("have")%>:<asp:label ID="space" ForeColor="Red" runat=server /><%=ResourceManager.GetString("singlesize")%>:<asp:Label ID="maxSingleUploadSize" runat="server" ForeColor="Red"></asp:Label>
    ]</fieldset>
                    <fieldset style="text-align: center"><legend><span style="color: gray"><%=ResourceManager.GetString("filelist")%></span>&nbsp;</legend>
        <div style="border-right: 1.5pt inset; border-top: 1.5pt inset; vertical-align: middle;
            overflow: auto; border-left: 1.5pt inset; width: 100%; border-bottom: 1.5pt inset;
            height: 240px; background-color: white">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -