📄 admindj_body.asp
字号:
<td colspan="4" height="22" align="center">当前没有影音!</td>
</tr>
<%end if
end if%>
<form name="form1" method="post" action="admin_dj.asp?action=dj&djcat_id=<%=request.querystring("djcat_id")%>">
<tr class="a4">
<td align="right" colspan="4"> <%=currentpage%> /<%=totalpages%>页,<%=totaldj%>条记录/<%=djperpage%>篇每页.
<%
i=1
showye=totalpages
if showye>10 then
showye=10
end if
for i=1 to showye
if i=currentpage then
%>
<%=i%>
<%else%>
<a href="admin_dj.asp?action=dj&page=<%=i%>&djcat_id=<%=request.querystring("djcat_id")%>"><%=i%></a>
<%end if
next
if totalpages>currentpage then
if request("page")="" then
page=1
else
page=request("page")+1
end if%>
<a href="admin_dj.asp?action=dj&page=<%=page%>&djcat_id=<%=request.querystring("djcat_id")%>" title="下一页">>></a>
<%end if%>
<input type="text" name="page" size="4">
<input type="submit" name="Submit" value="Go">
</td>
</tr>
</form>
</table>
<br>
<%end if
if request.querystring("action")="newdj" then%>
<table cellpadding="2" cellspacing="1" border="0" width="760" cellpadding="4" align=center class="a2">
<form name="form2" method="post" action="">
<tr class="a1">
<td colspan="2">新增影音</td>
</tr>
<tr class="a4">
<td width="17%">影音名称</td>
<td width="83%">
<input type="text" name="name" size="40">
</td>
</tr>
<tr class="a3">
<td width="17%">影音选项</td>
<td width="83%">
<select name="djcatid">
<option value="">影音分类</option>
<%
sql="select * from djcat"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof%><option value="<%=rs("djcat_id")%>"><%=rs("djcat_name")%></option>
<%rs.movenext
loop
if rs.eof and rs.bof then%><option value="0">当前没有影音分类</option>
<%end if%>
</select>
<select name="pic">
<option value="">播放类型</option>
<option value="asf">ASF音乐</option>
<option value="asfmtv">ASF影视</option>
<option value="rm">RAM音乐</option>
<option value="rmmtv">RAM影视</option>
<option value="flash">FLASH动画</option>
</select>
<select name="desc">
<option value="☆☆★★★">推荐等级</option>
<option value="☆☆☆☆★">☆☆☆☆★</option>
<option value="☆☆☆★★">☆☆☆★★</option>
<option value="☆☆★★★" selected>☆☆★★★</option>
<option value="☆★★★★">☆★★★★</option>
<option value="★★★★★">★★★★★</option>
</select>
</td>
</tr>
<tr class="a4">
<td width="17%">视听地址</td>
<td width="83%">
<input type="text" name="url" size="60">
</td>
</tr>
<tr class="a3" align="center">
<td colspan="2" height="30">
<input type="checkbox" name="isbest" value="1">
推荐
<input type="submit" name="Submit" value="确定新增">
<input type="reset" name="Reset" value="清空重填">
[<a href="admin_dj.asp?action=dj">返回</a>] </td>
</tr>
<input type="hidden" name="action" value="newdj">
<input type="hidden" name="MM_insert" value="true">
</form>
</table><br><br>
<table cellpadding="2" cellspacing="1" border="0" width="760" cellpadding="4" align=center class="a2">
<tr class="a1">
<td>类型说明</td>
</tr>
<tr class="a3">
<td>1."<FONT COLOR="#FF0000">.mp3.mid.wma.asf</FONT>"纯音乐文件请选择<FONT COLOR="#0000FF">ASF音乐</FONT>类型<br>2."<FONT COLOR="#FF0000">.wmv.asf.mpg.avi</FONT>"影视文件选择<FONT COLOR="#0000FF">ASF影视</FONT>类型.<br>3."<FONT COLOR="#FF0000">.ram.rm</FONT>"纯音乐文件请选择<FONT COLOR="#0000FF">RAM音乐</FONT>类型<br>4."<FONT COLOR="#FF0000">.ram.rm</FONT>"影视文件请选择<FONT COLOR="#0000FF">RAM影视</FONT>类型<br>5."<FONT COLOR="#FF0000">.swf</FONT>"动画文件请选择<FONT COLOR="#0000FF">FLASH动画</FONT>类型
</td></tr></table>
<%end if
if request.QueryString("action")="editdj" 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参数!"
call diserror()
response.end
end if
end if
sql="select * from dj where dj_id="&cint(request.querystring("id"))
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1%>
<table cellpadding="2" cellspacing="1" border="0" width="760" cellpadding="4" align=center class="a2">
<form name="form2" method="post" action="">
<tr class="a1">
<td colspan="2">修改影音</td>
</tr>
<tr class="a4">
<td width="17%">影音名称</td>
<td width="83%">
<input name="name" type="text" id="name" size="40" value="<%=rs("dj_name")%>">
</td>
</tr>
<tr class="a3">
<td width="17%">影音分类</td>
<td width="83%">
<select name="djcatid" id="djcatid">
<%
sql="select * from djcat"
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
do while not rs2.eof%>
<option value="<%=rs2("djcat_id")%>" <%if rs2("djcat_id")=rs("djcat_id") then response.write "selected" end if%>><%=rs2("djcat_name")%></option>
<%rs2.movenext
loop
if rs2.eof and rs2.bof then%>
<option value="0">当前没有影音分类</option>
<%end if%>
</select>
<select name="pic">
<option value="asf" <%if rs("dj_pic")="asf" then response.write "selected" end if%>>ASF音乐</option>
<option value="asfmtv" <%if rs("dj_pic")="asfmtv" then response.write "selected" end if%>>ASF影视</option>
<option value="rm" <%if rs("dj_pic")="rm" then response.write "selected" end if%>>RAM音乐</option>
<option value="rmmtv" <%if rs("dj_pic")="rmmtv" then response.write "selected" end if%>>RAM影视</option>
<option value="flash" <%if rs("dj_pic")="flash" then response.write "selected" end if%>>FLASH动画</option>
</select>
<select name="desc">
<option value="☆☆☆☆★">☆☆☆☆★</option>
<option value="☆☆☆★★">☆☆☆★★</option>
<option value="☆☆★★★" selected>☆☆★★★</option>
<option value="☆★★★★">☆★★★★</option>
<option value="★★★★★">★★★★★</option>
</select>
</td>
</tr>
<tr class="a4">
<td width="17%">视听地址</td>
<td width="83%">
<input name="url" type="text" id="url" size="60" value="<%=rs("dj_url")%>">
</td>
</tr>
<tr class="a3" align="center">
<td colspan="2" height="30"> <input name="isbest" type="checkbox" id="isbest" value="1" <%if rs("isbest")=1 then response.write "checked" end if%>>
推荐
<input name="Submit" type="submit" id="Submit" value="确定修改">
<input type="reset" name="Reset" value="清空重填" >
[<a href="admin_dj.asp?action=dj">返回</a>] </td>
</tr>
<input type="hidden" name="id" value="<%=rs("dj_id")%>">
<input type="hidden" name="action" value="editdj">
<input type="hidden" name="MM_insert" value="true">
</form>
</table>
<%end if
if request.QueryString("action")="deldj" 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参数!"
call diserror()
response.end
end if
end if
sql="select * from dj where dj_id="&cint(request.querystring("id"))
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1%>
<table cellpadding="2" cellspacing="1" border="0" width="760" cellpadding="4" align=center class="a2">
<form name="form2" method="post" action="">
<tr class="a1">
<td colspan="2">删除影音</td>
</tr>
<tr class="a4">
<td width="17%">影音名称</td>
<td width="83%"> <%=rs("dj_name")%> </td>
</tr>
<tr class="a3">
<td width="17%">影音分类</td>
<td width="83%">
<%
sql="select * from djcat where djcat_id="&rs("djcat_id")
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
%><%=rs2("djcat_name")%> </td>
</tr>
<tr class="a4">
<td width="17%">视听地址</td>
<td width="83%"><%=rs("dj_url")%> </td>
</tr>
<tr class="a3" align="center">
<td colspan="2" height="30">
<input name="isbest" type="checkbox" id="isbest" value="1" <%if rs("isbest")=1 then response.write "checked" end if%>>
推荐
<input name="Submit" type="submit" id="Submit" value="确定删除">
[<a href="admin_dj.asp?action=dj">返回</a>] </td>
</tr>
<input type="hidden" name="id" value="<%=rs("dj_id")%>">
<input type="hidden" name="action" value="deldj">
<input type="hidden" name="MM_insert" value="true">
</form>
</table>
<%end if%>
<br>
</td>
</tr>
</table>
<%
end sub%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -