📄 photoup.asp
字号:
<!--插入html头部分以及数据库接口-->
<!--#include file="in_conn.asp"-->
<!--获取照片限制大小-->
<!--#include file="in_phsize.asp"-->
<body>
<script language="javascript">
function okpress(){
document.fmph.cmdup.disabled=true;
document.fmph.submit();
}
</script>
<!--插入网站置顶-->
<% if u_name="" then
Response.Redirect "log_err.asp"
else
%>
<!--#include file="in_topmb.asp"-->
<% end if %>
<%
'判断用户权限
IF u_power=0 THEN
Response.Redirect "resp.asp?cmd=id_wait"
ELSEIF u_power<0 THEN
Response.Redirect "resp.asp?cmd=id_forbid&time="&u_fobdate
END IF
'判断上传方式
DEF_fjsa=INT(conn.execute("SELECT fj_sa FROM tblsys",0,1)(0))
dim str_act
IF DEF_fjsa=2 THEN
str_act="photo_pe.asp"
ELSE
str_act="photo_upload.asp"
END IF
%>
<table align="center" width="700" height="25" border="0" cellspacing="0" cellpadding="0" class="rdbar"><tr>
<td width="100%" height="100%">
<a href="index.asp">[首页]</a>-<a href="phbook.asp">[班级相册]</a>-<font class="ft1">[上传照片]</font>
</td>
</tr></table>
<table align="center" width="700" height="101" border="0" cellspacing="0" cellpadding="6" class="rdd">
<form name="fmph" action="<% =str_act %>" enctype="multipart/form-data" method="post">
<tr><td valign="top" width="100%" height="35" style="padding:0px;">
<table width="100%" height="100%" cellspacing="0" cellpadding="6" border="0"><tr>
<td width="50%">
选择你的照片文件路径
<br> <input type="file" name="fphoto"><br>
图片限制大小:<font class="ft1"><% =DEF_phsize %>kb以内</font> <br> 允许格式:<font class="ft1">gif、jpg</font>
</td>
<td width="50%" valign="top">
照片注语: (记录一下该照片的人和事)<br>
<input type="text" name="txttip" size="45" maxlength="50">
</td>
</tr></table>
</td></tr>
<tr><th width="100%" height="25">
<input type="button" name="cmdup" value=" 上 传 " class="an" onClick="javascript:okpress();">
</th></tr>
</form>
</table>
<br>
<!--插入在线统计-->
<!--#include file="in_online.asp"-->
<!--插入网站置底-->
<!--#include file="in_bottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -