63 lines
2.1 KiB
Plaintext
63 lines
2.1 KiB
Plaintext
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Member_Photo_upload.aspx.cs" Inherits="Mtxfw.shop.Member_Photo_upload" %>
|
|||
|
|
<!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>
|
|||
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|||
|
|
<title>无标题文档</title>
|
|||
|
|
<link href="css/style.css" rel="stylesheet" type="text/css" />
|
|||
|
|
<link href="css/Burgundy.css" rel="stylesheet" type="text/css" />
|
|||
|
|
<script src="/scripts/jquery-1.7.2.js" type="text/javascript"></script>
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
|
|||
|
|
|
|||
|
|
function imgUploading() {
|
|||
|
|
var d = $(window.parent.document);
|
|||
|
|
var tips = d.find("#inputTips2");
|
|||
|
|
tips.html(tips.html() + "<li id='ajaxLoaderpic'><img src='/images/ajaxLoader.gif' /></li>");
|
|||
|
|
d.find("#IFUpload2").val(1);
|
|||
|
|
document.getElementsByTagName("form")[0].submit();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
var imgurl = "<%=imgurl %>";
|
|||
|
|
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
</head>
|
|||
|
|
|
|||
|
|
<body>
|
|||
|
|
<p>
|
|||
|
|
<div id="uploadForm"><form method="post" enctype="multipart/form-data" id="Form1" target="_self" action='/Member_Photo_upload.aspx?yanse=<%=Request.QueryString["yanse"]%>'>
|
|||
|
|
<input name="Photo" id="Photo" size="30" onChange="imgUploading();" type="file" />
|
|||
|
|
</form></div>
|
|||
|
|
</p>
|
|||
|
|
|
|||
|
|
<script type="text/javascript">
|
|||
|
|
|
|||
|
|
if (imgurl != "") {
|
|||
|
|
var d = $(window.parent.document);
|
|||
|
|
var tips = d.find("#inputTips2");
|
|||
|
|
var IFUpload = d.find("#IFUpload2");
|
|||
|
|
if (imgurl == "0") {
|
|||
|
|
alert("上传格式不正确,只能上传图片文件");
|
|||
|
|
tips.find("#ajaxLoaderpic").hide(300);
|
|||
|
|
}
|
|||
|
|
else if (imgurl == "1") {
|
|||
|
|
alert("上传文件太大,只能上传小于2M的文件!");
|
|||
|
|
tips.find("#ajaxLoaderpic").hide(300);
|
|||
|
|
}
|
|||
|
|
else if (imgurl == "2") {
|
|||
|
|
alert("最多只能上传100张图片!");
|
|||
|
|
tips.find("#ajaxLoaderpic").hide(300);
|
|||
|
|
}
|
|||
|
|
else {
|
|||
|
|
tips.html(imgurl);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
IFUpload.val(0);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
</body>
|
|||
|
|
</html>
|