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

📄 songsend.asp

📁 网佳网络办公系统(以下简称OA)是一套基于B/S模式的无纸化办公系统。[显著特点:无须安装客户端] 主要功能模块:管理 公文 车辆 通知 档案 值班 人事 审批 仓库 主界面 软件下载 个
💻 ASP
字号:
<%@ LANGUAGE=VBScript.Encode%>
<!--#include file="../config/config.asp"-->
<%Response.Expires=0
useronlinename=Application("hxf_c_useronlinename")
nickname=Session("hxf_u_nickname")
if nickname="" or Session("hxf_u_inthechat")<>"1" or Instr(useronlinename," "&nickname&" ")=0 then Response.Redirect "chaterr.asp?id=001"
n=Year(date())
y=Month(date())
r=Day(date())
s=Hour(time())
f=Minute(time())
m=Second(time())
if len(y)=1 then y="0" & y
if len(r)=1 then r="0" & r
if len(s)=1 then s="0" & s
if len(f)=1 then f="0" & f
if len(m)=1 then m="0" & m
sj1=n & "-" & y & "-" & r
sj2=s & ":" & f & ":" & m
sj3=sj1 & " " & sj2
Set fs=CreateObject("Scripting.FileSystemObject")
zjpath=Server.Mappath("mid")
zj=Request.QueryString("zj")
songname=Request.QueryString("songname")
songpath=Server.Mappath("mid/"&zj)
online=Split(Trim(useronlinename)," ",-1)
x=UBound(online)
%><html>
<head>
<title>好歌赠好友</title>
<meta http-equiv='content-type' content='text/html; charset=gb2312'>
<link rel="stylesheet" href="readonly/style.css">
<script language="JavaScript">
function gozj(){url="songsend.asp?zj="+document.forms[0].songzj.options[document.forms[0].songzj.selectedIndex].value;window.location.href=url;}
function check(){document.forms[0].send.disabled=1;return true;}
</script>
</head>
<body oncontextmenu=self.event.returnValue=false bgcolor="<%=chatbgcolor%>" background="<%=chatimage%>" bgproperties="fixed" text="#FFFFFF">
<div align="center"><font color="#FFFF00" style="font-size:12pt">好歌赠好友</font></div>
<hr size=1 color=FFFF00><br>
<table border="0" width="100%">
<form method="post" action="songsendok.asp" onsubmit='return(check());'>
<tr> 
<td>
<p><font color="#FFFF00">选择专辑:</font><br>
<select name="songzj" style="font-size:9pt" onchange="gozj()"><%Set f=fs.GetFolder(zjpath)
Set fc=f.SubFolders
sss=0
For Each f1 in fc
fn=f1.name
if zj="" and sss=0 then zj=fn
sss=sss+1%><option value="<%=Server.URLEncode(fn)%>" <%if Server.HTMLEncode(zj)=Server.HTMLEncode(fn) then Response.Write " Selected"%>><%=fn%></option>
<%next%></select>
</p>
<p><font color="#FFFF00">选择曲目:</font><br>
<select name="song" style="font-size:9pt"><%Set f=fs.GetFolder(songpath)
Set fc=f.Files
For Each f1 in fc
fn=f1.name%><option value="<%=fn%>"<%if Server.HTMLEncode(fn)=Server.HTMLEncode(songname) then Response.Write " Selected"%>><%=left(fn,(len(fn)-4))%></option>
<%next%></select>
</p>
<p><font color="#FFFF00">选择好友:</font><br>
<select name="towho" style="font-size:9pt"><%for i=0 to x%>
<option value="<%=online(i)%>"<%if CStr(online(i))=CStr(nickname) then response.write " selected"%>><%if online(i)<>lyy then response.write online(i)%></option>
<%next%></select>
</p>
<p> <font color="#FFFF00">祝福话语:</font><br>
<input type="text" name="info" size="16" style="font-size:9pt" maxlength="100" value="谨以《%%》表达我的心意……"></p>
<p>注:%%代表歌名
</p>
<table border="0">
<tr>
<td>
              <input type="submit" name="send" value="发送" style="background-color:FF0000;color:FFFFFF;border: 1 double" onmouseover="this.style.color='FFFF00'" onmouseout="this.style.color='FFFFFF'">
              <input type="button" name="abort" value="放弃" onClick="javascript:history.go(-1)" style="background-color:3366FF;color:FFFFFF;border: 1 double" onmouseover="this.style.color='FFFF00'" onmouseout="this.style.color='FFFFFF'">
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</body>
</html>

⌨️ 快捷键说明

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