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

📄 song.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
字号:
<?php
$forumid=113;
require("global.php");
require("userdata/style.php");
$add_title=" &gt; 点歌服务";
require("header.php");
echo"$headertp";
$usrl=2;//设置普通点歌费用
$usrltb=10;//设置特定点歌费用
$howdays=7;//设置点歌信息保留天数
$allowtoown=0;  //允许最低点歌金钱数
$money_title="流星";  //金钱符号
$des="你正处在".$bbs_title."<br>点歌服务程式中";
headguide($des,"<a href='club.php'>俱乐部</a>","<a href='song.php'>点歌服务</a>");

if ($login_status==0) {
		msg_box('点歌服务','<br>状态:发生错误,您还没有登录<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="login.php">现在登录</li></ul>');
		require("footer.php");echo"$footertp";
		exit;
		}
?>
<script>
function popwin2(id,path)
{		window.open("songs.php?action=song_st&dgno="+id,"","height=470,width=395,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
function showadv(){
if (document.creator.advshow.checked == true) 
{
		adv.style.display = "";
		adv1.style.display = "none";
		advance.innerText="关闭指定位置点播"
	}else{
		adv.style.display = "none";
		adv1.style.display = "";
		advance.innerText="我要指定位置点播"
	}
}		
</script>
<?php
if(empty($action)){
$tmp=@file("userdata/song/song.dat");
 $temp="<table cellspacing=1 cellpadding=5 width=100% border=0 align=center><tr align=middle ><td>点 歌 信 息 发 布 栏</td></tr><tr align=middle ><td align=left valign=top>
 <marquee scrollamount=1 direction=up height=250 onmouseover=this.stop(); onmouseout=this.start();>";
$count=count($tmp);

$tdates=date("Ymd",$timestamp);
$abc=0;
for($i=0;$i<$count;$i++){
$detail=explode("|", trim($tmp[$i]));
$dates=date("Ymd",$detail[2]);
$dates2=$dates+7;
if($tdates <= $dates2) {
	$abc=1;
	$timeds=getfulldate($detail[2]);
$temp.="<a href=javascript:popwin2('$detail[2]',410)><font color=blue>$detail[0]</font>点了一首<font color=green>《$detail[4]》</font>送给<font color=RED>$detail[1]</font>听,并想对 $detail[1] 说: <font color=RED>$detail[5]</font></a>($timeds)<br>";
}else {
	if($abc!=1) $temp.="本周暂时没有点歌信息。";
    break;
}
}
	


$temp.="</marquee></td></tr></table>";
show($temp);
require("footer.php");echo"$footertp";exit;
}
elseif($action=='dsong'){

$temp="
<table width=100% border=0 cellspacing=0 cellpadding=0 align=center>
  <tr>
    <td width=100%>
<form name=\"creator\" method=\"post\" action=\"song.php\">
<input type=\"hidden\" name=\"action\" value=\"put\">
        <table cellspacing=1 cellpadding=3 width=100% bgcolor=$subcolor border=0 align=center>
          <tr align=middle> 
            <td colspan=3 align=center bgcolor=$titlecolor $skinbg class=title><b>论 坛 点 歌</b></td>
          </tr>
          <tr align=middle bgcolor=$backgroundcolor> 
            <td width=15% align=center>收 听 人:</td>
            <td width=85% align=center colspan=2> 
              <div align=left> 
                <input type=text name=putuser size=15 maxlength=30>
                <input type=radio name=checkuser value=\"yes\" checked>社区用户
 		<input type=radio name=checkuser value=\"no\">其它用户
	      </div>
            </td>
          </tr>
          <tr bgcolor=$backgroundcolor> 
            <td align=center>歌曲名称:</td>
            <td>
<table>
<tr>
<td id=adv1>
<div align=left> 
<select name=\"ssong\" size=1>";
$songlist=@file("userdata/song/songs.php");
	for ($i=0; $i<count($songlist); $i++) {
		$detail=explode("|", trim($songlist[$i]));
		$temp.="<option value=\"$detail[0]\">$detail[1]</option>";
	}

$temp.="</select>
</div>
</td>
</tr></table>
<div align=left><INPUT id=advcheck name=advshow type=checkbox value=1 onclick=showadv()><span id=advance>我要指定位置点播</span></div>
            </td>
          </tr>
          <tr align=middle bgcolor=$backgroundcolor id=adv style=\"DISPLAY: none\"> 
            
            <td align=center>指定歌曲:</td>
            <td align=center colspan=2> 
              <div align=left>
				 <input type=text name=zdwname size=20 maxlength=48> 歌曲名称<br>
                <input type=text name=zdw size=30> 请输入完整的歌曲路径(如http://www.xxx.com/xx.mp3)
              </div>
            </td>

          </tr>
          <tr align=middle bgcolor=$backgroundcolor> 
            <td align=center>想说的话:</td>
            <td align=center colspan=2> 
              <div align=left>
                <input type=text name=zfy size=30 maxlength=100> 不能为空(最大50字)
              </div>
            </td>
          </tr>
          <tr align=middle bgcolor=$backgroundcolor> 
            <td align=center>特定点唱:</td>
            <td align=center colspan=2> 
              <div align=left>
                <input  type=checkbox name=\"tddc\" value=1>  

⌨️ 快捷键说明

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