📄 upload_image.aspx
字号:
<%@ Page language="c#" Codebehind="UpLoad_Image.aspx.cs" AutoEventWireup="false" Inherits="HTMS.Web.CompanySysMange.PublicPage.UpLoad_Image" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>UpLoad</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../../WebStyle/Style/admin.css" type="text/css" rel="stylesheet">
<LINK href="../../WebStyle/Style/web.css" type="text/css" rel="stylesheet">
<script language="javascript">
function checkAll1()
{
if(document.getElementById("file").value==null || trim(document.getElementById("file").value)=="")
{
window.alert("选择上传的文件");return false;
}
else
return true;
}
function trim(str)
{
return str.replace(/(^[\\s]*)|([\\s]*$)/g, "");
}
function checkAll2()
{
if(document.getElementById("image").value==null || trim(document.getElementById("image").value)=="")
{
window.alert("选择上传的图片");return false;
}
else
return true;
}
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<DIV style="Z-INDEX: 101; LEFT: 1px; WIDTH: 100%; POSITION: absolute; TOP: 0px; HEIGHT: 16px; BACKGROUND-COLOR: #d7eae3">上传图片:<br>
<INPUT id="image" style="WIDTH: 376px; HEIGHT: 18px" type="file" size="43" name="fileimage"
runat="server">
<DIV style="WIDTH: 100%; BACKGROUND-COLOR: #d7eae3" align="center">
<P><INPUT id="Submit1" onclick="return checkAll2();" type="submit" value="点击上传" name="Submit1"
runat="server"> <INPUT onclick="window.close();" type="button" value="关 闭">
</P>
</DIV>
</DIV>
<INPUT id="myvalue" value="" style="WIDTH: 139px; HEIGHT: 18px" type="hidden" size="17" runat="server"
NAME="myvalue">
</form>
<script language="javascript" defer type="text/javascript">
//window.alert(document.form1.myvalue.value);
if (document.Form1.myvalue.value!="")
top.window.returnValue=document.Form1.myvalue.value;
</script>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -