📄 admin_music.asp
字号:
<%
bg_id="1"
%>
<!--#include file="../main/conn.asp" -->
<!--#include file="admin_session.asp" -->
<!--#include file="../function/nextpage.asp" -->
<!--#include file="../function/function.asp" -->
<%
web_id1="../language/"
web_id=web_id1&l_id&"/ADMIN.ASP"
call include(web_id)
web_id1="../language/"
web_id=web_id1&l_id&"/CHECK.ASP"
call include(web_id)
%>
<head>
<SCRIPT src="../js/win_js.js"></SCRIPT>
</HEAD>
<center>
<SCRIPT>SL_open(735,480);</SCRIPT>
<table border="1" width="100%" bgcolor=<%=top_bg_color%> bordercolor=<%=top_borderbg_color%>>
<tr>
<td align="center" bgcolor=<%=tr_bg_color%> colspan="9">
<%=L_ADMIN_MU1%>
</td>
</tr>
<%
music_sql="select id,music_name,music_url,music_type from [music] where g_id='"&session_cookie_gid&"' order by id desc"
set music_rs=conn.execute(music_sql)
do while not music_rs.eof
%>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.music_name.value == "")
{
alert("<%=L_CHECK_MUSIC1%>");
theForm.music_name.focus();
return (false);
}
if (theForm.music_name.value.length > 20)
{
alert("<%=L_CHECK_MUSIC2%>");
theForm.music_name.focus();
return (false);
}
if (theForm.music_url.value == "")
{
alert("<%=L_CHECK_MUSIC3%>");
theForm.music_url.focus();
return (false);
}
if (theForm.music_url.value.length > 49)
{
alert("<%=L_CHECK_MUSIC4%>");
theForm.music_url.focus();
return (false);
}
return (true);
}
//-->
</script>
<form method="POST" action=add_music.asp?id=<%=music_rs("id")%>&s_id=edit onsubmit="return FrontPage_Form1_Validator(this)" name="FrontPage_Form1">
<tr>
<td align="center" bgcolor=<%=top_bg_color%>>
<%=L_ADMIN_MU2%>:
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="20"
-->
<input type="text" name="music_name" size="15" value='<%=music_rs("music_name")%>' style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="20">
</td>
<td align="center" bgcolor=<%=top_bg_color%> >
<%=L_ADMIN_MU3%>(URL):
</td>
<td align="center" bgcolor=<%=top_bg_color%> >
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="49"
-->
<input type="text" name="music_url" size="15" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="49" value="<%=music_rs("music_url")%>">
</td>
<td align="center" bgcolor=<%=top_bg_color%> >
<select name='music_type'>
<option value='点歌'
<%if music_rs("music_type")="点歌>" then
response.write "selected"
end if%>
>
<%=L_ADMIN_MU6%></option>
<option value='背景'
<%if music_rs("music_type")="背景" then
response.write "selected"
end if%>
>
<%=L_ADMIN_MU9%>
</option>
</select>
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<input style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" type="submit" value="<%=L_ADMIN_MU10%>">
<a href="add_music.asp?id=<%=music_rs("id")%>&s_id=del">
<img src=<%=web_background%>/del.gif border=0> </a>
</td>
</tr>
</form>
<%
music_rs.movenext
loop
music_rs.close
%>
</table>
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan -->
<script Language="JavaScript">
<!--
function FrontPage_Form2_Validator(theForm)
{
if (theForm.music_name.value == "")
{
alert("请在 music_name 域中输入值。");
theForm.music_name.focus();
return (false);
}
if (theForm.music_name.value.length > 20)
{
alert("在 music_name 域中,请最多输入 20 个字符。");
theForm.music_name.focus();
return (false);
}
if (theForm.music_url.value == "")
{
alert("请在 music_url 域中输入值。");
theForm.music_url.focus();
return (false);
}
if (theForm.music_url.value.length > 49)
{
alert("在 music_url 域中,请最多输入 49 个字符。");
theForm.music_url.focus();
return (false);
}
return (true);
}
//-->
</script>
<form method="POST" action='add_music.asp?s_id=add' onsubmit="return FrontPage_Form2_Validator(this)" name="FrontPage_Form2">
<table border="1" width="100%" bgcolor=<%=top_bg_color%> bordercolor=<%=top_borderbg_color%>>
<tr>
<td align="center" bgcolor=<%=tr_bg_color%> colspan="9">
<%=L_ADMIN_MU11%>
</td>
</tr>
<tr>
<td align="center" bgcolor=<%=top_bg_color%>>
<%=L_ADMIN_MU2%>
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="20"
--><input type="text" name="music_name" size="8" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="20">
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<%=L_ADMIN_MU3%>
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<!--webbot bot="Validation" B-Value-Required="TRUE" I-Maximum-Length="49"
--><input type="text" name="music_url" size="15" style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" maxlength="49">
</td> <td align="center" bgcolor=<%=top_bg_color%>>
<select name='music_type'>
<option value='点歌'><%=L_ADMIN_MU6%></option>
<option value='背景'><%=L_ADMIN_MU9%></option>
</select>
</td>
<td align="center" bgcolor=<%=top_bg_color%>>
<input style="background-color: <%=test_style_onMouseOut%>" onMouseOver = "this.style.backgroundColor = '<%=test_style_onMouseOver%>'" onMouseOut = "this.style.backgroundColor = '<%=test_style_onMouseOut%>'" type="submit" value="<%=L_ADMIN_MU11%>">
</td>
</tr>
</table>
</form>
<SCRIPT>SL_close();</SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -