⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 music_add.asp

📁 功能介绍: 文章管理
💻 ASP
字号:
<!--#include file="../function/tablefunction.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加音乐</title>
<style type="text/css">
fieldset{
	background: #EEF8FF;
	width:auto;
}
legend{color:#105096;width:auto;}
.input{
	border: 1px solid #3061AB;
}
.inputhover{
	border: 1px solid #1E3F8C;
}
.inputdown{	background-color: #EEF8F9;	border: 1px solid #0033CC;}
.STYLE2 {color: #FF0000}
</style>
<script>
	function butt(obj,state)
	{	
		if(state==1){
			obj.className="inputhover";}
		if(state==2){
			obj.className="input";}
		if(state==3){
			obj.className="inputdown";}	
	}
	function CheckForm()
{
       if (document.form1.MusicTitle.value=="")
  {
    alert("请填写歌曲标题!");
	form1.MusicTitle.focus();
	return false;
  }
  
  if (document.form1.URL.value=="")
  {
    alert("请填写音乐地址!");
	document.form1.URL.focus();
	return false;
  }
  if (document.form1.ClassName.value=="num")
  {
    alert("请选择音乐分类!");
	document.form1.ClassName.focus();
	return false;
  }

      if (document.form1.Lyric.value=="")
  {
   	return window.confirm('你不填写歌词吗?');
  }
  return true;  
}
</script>
</head>
<body style="font-size:12px;">
<!--#include file="../session.asp" -->
<%
	dim action,musicid
	action=request.QueryString("action")
	musicid=request.QueryString("musicid")
	if action="musicEdit" then
		dim msmax2
		set msmax2=new myclass
		set rs2=msmax2.viewRecord("select * from music where musicid="&musicid)
%>
当前位置:<span class="STYLE2">文章管理--->添加音乐</span>
<fieldset><br/>
    <legend><strong>添加音乐</strong></legend>
    <div align="left" style="width:auto;">
  	<form action="action.asp?action=MusicEdit&musicid=<%=musicid%>" method="post" name="form1"  onSubmit="return CheckForm();">
		<p>&nbsp;&nbsp;<strong>标题</strong>:
		  <input name="MusicTitle" type="text" class="input" size="40" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"  value="<%=rs2("MusicTitle")%>"/>
	      <strong>所属分类</strong>:
	<select name="ClassName" class="input">
   <%
	  	dim msmax1
		set msmax1=new myclass
		set rs1=msmax1.viewRecord("select * from MusicClass")
		do while not rs1.eof and not rs1.bof
	  %>
	  <option value="<%=rs1("classname")%>"><%=rs1("classname")%></option>
	  <%
	  rs1.movenext
	  loop
	  rs1.close
	  set rs1=nothing
	  %>
	  </select>
  	</p>
	  <p>&nbsp;&nbsp;<strong>地址:</strong>
	    <input name="URL" type="text" class="input" size="60" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" value="<%=rs2("URL")%>" />
	  </p>
	  <p><strong>&nbsp;&nbsp;歌词: </strong></p>
	  <p>
		  &nbsp;&nbsp;
		  <textarea name="Lyric" cols="74" rows="15" class="input" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"><%=rs2("Lyric")%></textarea>
	  </p>
		<p>
		  &nbsp;&nbsp;
		  <input name="Submit5" type="submit" class="input" value="保存更改" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"/>
&nbsp;&nbsp;
<input name="Submit6" type="reset" class="input" value="重新填写" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"/>
	  </p>
  	</form>
  </div>	
</fieldset>

<%
rs2.close
set rs2=nothing
else%>

当前位置:<span class="STYLE2">文章管理--->添加音乐</span>
<fieldset><br/>
    <legend><strong>添加音乐</strong></legend>
    <div align="left" style="width:auto;">
  	<form action="action.asp?action=MusicAdd" method="post" name="form1"  onSubmit="return CheckForm();">
		<p>&nbsp;&nbsp;<strong>标题</strong>:
		  <input name="MusicTitle" type="text" class="input" size="40" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" />
	      <strong>所属分类</strong>:
	<select name="ClassName" class="input">
	<option value="num">请选择所属分类</option>
	   <%
	  	dim msmax
		set msmax=new myclass
		set rs=msmax.viewRecord("select * from MusicClass")
		do while not rs.eof and not rs.bof
	  %>
	  <option value="<%=rs("classname")%>"><%=rs("classname")%></option>
	  <%
	  rs.movenext
	  loop
	  %>
	  </select>
  	</p>
	  <p>&nbsp;&nbsp;<strong>地址:</strong>
	    <input name="URL" type="text" class="input" size="60" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" />
	  </p>
	  <p><strong>&nbsp;&nbsp;歌词: </strong></p>
	  <p>
		  &nbsp;&nbsp;
		  <textarea name="Lyric" cols="74" rows="15" class="input" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"></textarea>
	  </p>
		<p>
		  &nbsp;&nbsp;
		  <input name="Submit5" type="submit" class="input" value="添加音乐" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"/>
&nbsp;&nbsp;
<input name="Submit6" type="reset" class="input" value="重新填写" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"/>
	  </p>
  	</form>
  </div>	
</fieldset>
<%end if%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -