?? 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 + -