?? manage_img_add.asp
字號(hào):
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<%if Request.QueryString("mark")="southidc" then%>
<%
title=server.htmlencode(Trim(Request("title")))
img=server.htmlencode(Trim(Request("img")))
%>
<%
If title="" Then
response.write "SORRY <br>"
response.write "請(qǐng)輸入更新內(nèi)容的標(biāo)題!!<a href=""javascript:history.go(-1)"">返回重輸</a>"
response.end
end if
If img="" Then
response.write "SORRY <br>"
response.write "內(nèi)容不能為空!!<a href=""javascript:history.go(-1)"">返回重輸</a>"
response.end
end if
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from img "
rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("img")=img
rs("Time")=Date()
rs.update
rs.close
response.redirect "Manage_Img.asp"
end if
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <br> <table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<tr>
<td class="back_southidc"> <div align="center"><strong>添加形象 <br>
</strong></div></td>
</tr>
<tr>
<form method="post" name="myform" action="Manage_Img_add.asp?mark=southidc">
<td><div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#ECF5FF">
<td width="8%">
<div align="center">形象名稱</div></td>
<td width="62%">
<input type="text" name="title" class="inputtext" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td>
<div align="center">形象圖片</div></td>
<td>
<input name="img" type="text" class="inputtext" id="img" size="30" maxlength="50">
<font color="#FF0000"> * 圖片地址</font></td>
</tr>
<tr bgcolor="#ECF5FF">
<td colspan="2">
<div align="center">
<input name="submit" type="submit" value="確定">
<input name="reset" type="reset" value="取消">
</div></td>
</tr>
<tr>
<td colspan="2">圖片上傳</td>
</tr>
<tr>
<td colspan="2"> <div align="left">
<iframe style="top:2px" ID="UploadFiles" src="../upload_Photo.asp?PhotoUrlID=3" frameborder=0 scrolling=no width="300" height="25"></iframe>
</div></td>
</tr>
</table>
</div></td>
</form>
</tr>
</table>
<br> </td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -