<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>模型数据管理</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js?5566"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/setcolor.js"></script>
<script src="<?=base_url()?>csdj/editor/kindeditor.js"></script>
<script type="text/javascript">
//上传图片
var web_path='<?=Web_Path?>';
var web_url='<?=Web_Path.SELF?>';
function sfcms(){
	var Manag = new Dialog();
	Manag.Width = 430;
	Manag.Height= 160;
	Manag.Title = "上传图片";
	Manag.URL   ="http://disk.3fcms.cn/";
	Manag.show();
}

</script>
</head>
<body style="margin:2px">

<link href="/static/admincp/images/main.css" rel="stylesheet" type="text/css" />

<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;"><tr><td align="center" colspan="2" class="title"><?=$title?></td></tr>

<form method="post" Name="myForm" action="<?=site_url('admin/dance/save/')?>">
<table class="tb tb2">
<tr style="width:600px">
<td class="td25" style="width:100px">人气：<input type="text" class="txt" value="<?=$CS_Hits?>" name="CS_Hits" id="CS_Hits" onKeyUp="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td class="td25" style="width:100px">积分：<input type="text" class="txt" value="<?=$CS_Lw?>" name="CS_Lw" id="CS_Lw" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td class="td25" style="width:100px">大小：<input type="text" class="txt" value="<?=$CS_Dx?>" name="CS_Dx" id="CS_Dx" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td class="td25" style="width:100px">点赞：<input type="text" class="txt" value="<?=$CS_Dhits?>" name="Dhits" id="Dhits" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td class="td25" style="width:100px">下载：<input type="text" class="txt" value="<?=$CS_Xhits?>" name="CS_Xhits" id="CS_Xhits" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td class="td25" style="width:100px">收藏：<input type="text" class="txt" value="<?=$CS_Shits?>" name="CS_Shits" id="CS_Shits" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
</tr>
</table>

<table class="tb tb2">
<tr>
<td class="td29 lightnum">音乐名称：<input type="text" style="width:150px" class="txt" value="<?=$CS_Name?>" name="CS_Name" id="CS_Name">

<span style="color:#555;">颜色：</span><input type="text" style="width:100px" id="CS_Color" name="CS_Color" value="<?=$CS_Color?>"><img src="<?=base_url()?>csdj/admin/images/rect.gif" width="18" height="17" border=0 style="position:relative;left:-20px;margin-right:-20px;cursor:pointer;background-Color:<?=$CS_Color?>;" title="选取颜色!" onClick="initcolor('CS_Color','imgs_CS_Color');" id="imgs_CS_Color" align="absmiddle" vspace="1"></option>

</td>
<td class="lightnum">所属栏目：<select name="CS_CID">
<option value="0">选择栏目</option>
<?php
                $strs="";
                $sqlstr="select * from ".CS_SqlPrefix."class where CS_SID=1 and CS_FID=0 and CS_YID=0 order by CS_ID desc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                             if($row->CS_ID==$CS_CID){
                               $strs.='<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                             }else{
                               $strs.='<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                             }
                               $sqlstrt="select * from ".CS_SqlPrefix."class where CS_SID=1 and CS_YID=0 and CS_FID=".$row->CS_ID." order by CS_ID desc";
		               $resultt=$this->CsdjDB->db->query($sqlstrt);
		               $recountt=$resultt->num_rows();
                               if($recountt>0){
			              foreach ($resultt->result() as $rows) {
                                           if($rows->CS_ID==$CS_CID){
                                              $strs.='<option value='.$rows->CS_ID.' selected>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                           }else{
                                              $strs.='<option value='.$rows->CS_ID.'>│&nbsp;&nbsp;└ '.$rows->CS_Name.'</option>';
                                           }
                                      }
                               }
                        }
                }
                echo $strs;
?>
</select></td>
</tr>

<tr>
<td>所属歌手：<input type="text" style="width:150px" name="CS_Singer" id="CS_Singer" value="<?=$CS_Singer?>"></td>
<td>所属会员：<input type="text" class="txt" value="<?=$CS_User?>" name="CS_User" id="CS_User"></td>
</tr>
<tr>
<td>歌曲作词：<input type="text" style="width:100px" name="CS_Zc" id="CS_Zc" value="<?=$CS_Zc?>">&nbsp;
作曲：<input type="text" style="width:100px" name="CS_Zq" id="CS_Zq" value="<?=$CS_Zq?>">&nbsp;
编曲：<input type="text" style="width:100px" name="CS_Bq" id="CS_Bq" value="<?=$CS_Bq?>">&nbsp;
混音：<input type="text" style="width:100px" name="CS_Hy" id="CS_Hy" value="<?=$CS_Hy?>">

</td>
<td>关 键 词 ：<input type="text" style="width:100px" name="CS_Tags" id="CS_Tags" value="<?=$CS_Tags?>">&nbsp;<a href="javascript:void(0)"  onClick="SelectTags('CS_Tags');" class="addtr">选择</a></td>
</tr>
<tr>
<td>下载权限：<select name="CS_Vip">
<option value='0'>&nbsp;普通会员&nbsp;&nbsp;</option>
<?php
                $strsu="";
                $sqlstr="select * from ".CS_SqlPrefix."userzu order by CS_ID asc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                             if($row->CS_ID==$CS_Vip){
                               $strsu.='<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                             }else{
                               $strsu.='<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                             }
                        }
                }
                echo $strsu;
?>
<option value='9'>游客下载</option>
</select>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下载金币：<input type="text" style="width:75px" class="txt" value="<?=$CS_Cion?>" name="CS_Cion" id="CS_Cion" onKeyUp="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td>分成金币：<input type="text" style="width:100px" name="CS_Scion" id="CS_Scion" value="<?=$CS_Scion?>" onKeyUp="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
</tr>

<tr>
<td>所属专辑：<select name="CS_TID">
<option value="0">不选择专辑</option>
<?php
                $strst="";
                $sqlstr="select * from ".CS_SqlPrefix."topic where CS_SID=1 order by CS_ID desc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                             if($row->CS_ID==$CS_TID){
                               $strst.='<option value='.$row->CS_ID.' selected>├'.$row->CS_Name.'</option>';
                             }else{
                               $strst.='<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                             }
                        }
                }
                echo $strst;
?>
</select></td>
<td>推荐星级：<select name="CS_Reco">
<option value="0"<?php if($CS_Reco==0) echo ' selected';?>>不推荐</option>
<option value="1"<?php if($CS_Reco==1) echo ' selected';?>>一星</option>
<option value="2"<?php if($CS_Reco==2) echo ' selected';?>>二星</option>
<option value="3"<?php if($CS_Reco==3) echo ' selected';?>>三星</option>
<option value="4"<?php if($CS_Reco==4) echo ' selected';?>>四星</option>
<option value="5"<?php if($CS_Reco==5) echo ' selected';?>>五星</option>
</select></td>
</tr>

<tr>
<td>播 放 器 ：<select style="width:230px" name="CS_PID" size="1">
<option value=0<?php if(0==$CS_PID) echo ' selected';?>>├CMP音频播放器(推荐)</option>
<option value=1<?php if(1==$CS_PID) echo ' selected';?>>├MP3、MP4等JW播放器(支持手机)</option>
<option value=2<?php if(2==$CS_PID) echo ' selected';?>>├WMA播放器、支持WMA,MP3</option>
</select>
&nbsp;播放模板：<input type="text" class="txt" value="<?=$CS_Template?>" name="CS_Template" id="CS_Template"><a href="javascript:void(0)" onClick="SelectFile('CS_Template');" class="addtr">选择</a>
</td>

<td>服 务 器 ：<select name="CS_FID">
<option value="0">不要服务器</option>
<?php
                $strsf="";
                $sqlstr="select * from ".CS_SqlPrefix."fwqip order by CS_ID desc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                             if($row->CS_ID==$CS_FID){
                               $strsf.='<option value='.$row->CS_ID.' selected>'.$row->CS_Name.'</option>';
                             }else{
                               $strsf.='<option value='.$row->CS_ID.'>'.$row->CS_Name.'</option>';
                             }
                        }
                }
                echo $strsf;
?>
</select></td>
</tr>

<tr>
<td class="longtxt lightnum">试听地址：<input type="text" class="txt" value="<?=$CS_PlayUrl?>" name="CS_PlayUrl" id="CS_PlayUrl"></td><td><div class="rssbutton"><input type="button" value="本地上传" onClick="Uploadup('dance','CS_PlayUrl');" /></div>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="pop.up('上传音乐', '<?php echo $cd_remotepath; ?>', '<?php echo $cd_remotewidth; ?>', '<?php echo $cd_remoteheight; ?>', '<?php echo $cd_remotetop; ?>');" class="addtr">远程上传</a></td>
</tr>

<tr>
<td class="longtxt">下载地址：<input type="text" class="txt" value="<?=$CS_DownUrl1?>" name="CS_DownUrl1" id="CS_DownUrl1"></td>
</tr>

<tr>
<td class="longtxt">音乐封面：<input type="text" class="txt" value="<?=$CS_Pic?>" name="CS_Pic" id="CS_Pic"></td><td><div class="rssbutton"><input type="button" value="本地上传" onClick="Uploadpic('music');" /></div>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="tietuku_upload()"class="addtr"/>图床上传</a></td><script language = "javascript" type = "text/javascript"  src="http://static.tietuku.com/static/open/tietuku.jquery.min.js"></script><script language = "javascript" type = "text/javascript"  src="http://static.tietuku.com/static/open/tietuku.dialog.js"></script><script>var jq=jQuery.noConflict();function tietuku_upload(){jq.dialog.showIframeDialog(850, '', '<iframe frameborder="0" width="824" height="460" marginheight="0" marginwidth="0"  src="http://static.tietuku.com/upByPlugn?token=986988b4934ee9c20569267469859e9000949a57:VXlEZ3JCVFFadElLaDlEdGRLaE5pWmVwLU1VPQ==:eyJkZWFkbGluZSI6MTQ0NjE5NzEyNywiYWN0aW9uIjoiZ2V0IiwidWlkIjoiNTI0MTc5IiwiYWlkIjoiMTE0Nzg0MiJ9&ifr=1&"></iframe>');}var $=jQuery.noConflict();</script> 
</tr>

<tr><td>网盘地址：<input type="text" style="width:240px" name="CS_Wpfx" id="CS_Wpfx" value="<?=$CS_Wpfx?>"> &nbsp;

密码：<input type="text" style="width:105px" name="CS_Wpfxmm" id="CS_Wpfxmm" value="<?=$CS_Wpfxmm?>"> 
</td>
</tr>
</table>

<table class="tb tb2">
<tr><td><div style="height:100px;line-height:100px;float:left;">歌曲歌词：</div><textarea rows="6" cols="50" id="CS_Content" name="CS_Content" style="width:400px;height:100px;"><?=$CS_Content?></textarea><script type="text/javascript">FormEditor('CS_Content');</script></td></tr>
<tr><td><div style="height:100px;line-height:100px;float:left;">歌曲介绍：</div><textarea rows="6" cols="50" id="CS_Js" name="CS_Js" style="width:400px;height:100px;"><?=$CS_Js?></textarea><script type="text/javascript">FormEditor('CS_Js');</script></td></tr>
<tr><td><input type="hidden" name="CD_HttpUrl" value="<?php echo $_SERVER['HTTP_REFERER']; ?>"><input type="hidden" name="CD_Time" value="<?php echo $CD_Time; ?>"><input type="submit" class="btn" name="form" value="提交保存" onclick="return CheckForm();" />&nbsp;&nbsp; <input type="submit" class="btn" name="form" value="放弃提交" onClick="history.back();" />&nbsp;&nbsp; <input class="checkbox" type="checkbox" name="CS_AddTime" value="1" checked /><label for="edittime">更新时间</label></td></tr>
</table>
</form>
</div>
</br>
</br>

</body>
</html>

