?? adminuppic2_body.asp
字號:
<%
sub adminuppic2_body()
%>
<!--#include file="admintop.asp"-->
<table width="<%=tablewidth%>" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="205" bgcolor="#FFFFFF" valign="top" class="line">
<%call adminmenu()%>
</td>
<td width="565" align="center" valign="top" bgcolor="#FFFFFF" class="linee"> <table width="98%" border="0" cellspacing="1" cellpadding="0" class="linee" background="images/dh.gif">
<tr align="center">
<td width="50%" height="25"><a href="admin_uppic1.asp">圖片地址管理</a></td>
<td width="50%"><a href="admin_uppic2.asp?action=newuppic">新增圖片地址</a></td>
</tr>
</table>
<br>
<%if request.QueryString("action")="newuppic" then%>
<table width="98%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#09DD77" style="border-collapse: collapse">
<form name="form1" method="post" action="admin_uppic2.asp">
<tr bgcolor="#f7f7f7">
<td colspan="2" background="images/dh.gif"><B>新增圖片地址</B></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="14%">圖片名稱</td>
<td width="86%"> <input type="text" name="name" size="40" class="input">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="14%">圖片地址</td>
<td width="86%"> <input name="url" type="text" class="input" value="<%=uppic_url_part%>" size="60">
<br> <font color="#FF0000">注意:要么<font color="#0000FF">直接輸入圖片網(wǎng)址</font>,要么在下面<font color="#0000FF">選擇上傳</font>自動生成圖片地址。
</font><br> <iframe name="ad" frameborder=0 width=100% height=45 scrolling=no src=picupload.asp></iframe>
</td>
</tr>
<tr bgcolor="#E8E8E8">
<td colspan="2" class="chinese" align="center" height="30"> <input type="submit" name="Submit" value="確定新增" class="button">
<input type="reset" name="Reset" value="清空重填" class="button">
[<a href="admin_uppic1.asp">返回</a>] </td>
</tr>
<input type="hidden" name="action" value="newuppic">
<input type="hidden" name="MM_insert" value="true">
</form>
</table>
<%end if
if request.QueryString("action")="edituppic" then
if request.querystring("id")="" then
errmsg=errmsg+"<br>"+"<li>請指定操作的對象!"
call diserror()
response.end
else
if not isinteger(request.querystring("id")) then
errmsg=errmsg+"<br>"+"<li>非法的圖片地址ID參數(shù)!"
call diserror()
response.end
end if
end if
sql="select * from uppic where uppic_id="&cint(request.querystring("id"))
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1%>
<table width="98%" border="1" cellspacing="0" cellpadding="4" bordercolor="#09DD77" style="border-collapse: collapse">
<form name="form1" method="post" action="admin_uppic2.asp">
<tr bgcolor="#f7f7f7">
<td colspan="2" background="images/dh.gif"><B>編輯圖片地址</B></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="14%">圖片名稱</td>
<td width="86%"> <input type="text" name="name" size="40" class="input" value="<%=rs2("uppic_name")%>">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="14%">圖片地址</td>
<td width="86%"> <input type="text" name="url" size="60" class="input" value="<%=rs2("uppic_url")%>">
</td>
</tr>
<tr bgcolor="#E8E8E8">
<td colspan="2" align="center" height="30"> <input name="Submit" type="submit" id="Submit" value="確定修改" class="button">
<input type="reset" name="Reset2" value="清空重填" class="button">
[<a href="admin_uppic1.asp">返回</a>] </td>
</tr>
<input type="hidden" name="id" value="<%=request.QueryString("id")%>">
<input type="hidden" name="action" value="edituppic">
<input type="hidden" name="MM_insert" value="true">
</form>
</table>
<%end if
if request.QueryString("action")="deluppic" then
if request.querystring("id")="" then
errmsg=errmsg+"<br>"+"<li>請指定操作的對象!"
call diserror()
response.end
else
if not isinteger(request.querystring("id")) then
errmsg=errmsg+"<br>"+"<li>非法的圖片地址ID參數(shù)!"
call diserror()
response.end
end if
end if
sql="select * from uppic where uppic_id="&cint(request.querystring("id"))
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
%>
<table width="98%" border="1" cellspacing="0" cellpadding="4" bordercolor="#09DD77" style="border-collapse: collapse">
<form name="form1" method="post" action="admin_uppic2.asp">
<tr bgcolor="#f7f7f7">
<td colspan="2" background="images/dh.gif"><B>刪除圖片地址</B></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%">圖片名稱</td>
<td width="84%"><%=rs2("uppic_name")%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="16%">圖片地址</td>
<td width="84%"><%=rs2("uppic_url")%> </td>
</tr>
<tr bgcolor="#E8E8E8">
<td colspan="2" align="center" height="30"> <input name="Submit" type="submit" id="Submit" value="確定刪除" class="button">
[<a href="admin_uppic1.asp">返回</a>] </td>
</tr>
<input type="hidden" name="id" value="<%=request.QueryString("id")%>">
<input type="hidden" name="action" value="deluppic">
<input type="hidden" name="MM_insert" value="true">
</form>
</table>
<%end if%>
</td>
</tr>
</table>
<%
end sub
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -