<!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>
<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<title>发表音乐 - <?php echo $cfg_webname; ?></title>
<link href="/templets/skin/cm.css" rel="stylesheet" type="text/css" />
<link href="/templets/skin/default.css" rel="stylesheet" type="text/css" />
<link href="/member/images/myfriend.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script type="text/javascript" src="js/box.js"></script>

<script type="text/javascript" language="javascript" src="../images/js/j.js"></script>
<script type="text/javascript" language="javascript" src="../member/js/table_function.js"></script>
<script language='javascript' src='js/main.js'></script>


<script language="javascript" type="text/javascript">
<!--
	function CheckLogin(){
	  var taget_obj = document.getElementById('_userlogin');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("/member/ajax_loginsta.php");
	  DedeXHTTP = null;
	}
-->
</script>
 <script type="text/javascript" charset="utf-8" src="/KindEditor/kindeditor.js"></script>
  <script type="text/javascript">
    KE.show({
        id : 'content_1',
        cssPath : './index.css',
        items : [
        'undo', 'redo', 'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline','removeformat', 'justifyleft', 'justifycenter', 'justifyright','emoticons']
    });
  </script>

<script language="javascript">
<!--
function checkSubmit()
{

	if(document.form1.title.value==""){
		alert("请填写歌曲名称！");
		document.form1.title.focus();
		return false;
	}

	if(document.form1.typeid.value==0){
		alert("请选择歌曲分类！");
		return false;
	}


	if(document.form1.dizhi.value==""){
		document.form1.dizhi.focus();
		alert("请填写歌曲地址！");
		return false;
	}
		if(document.form1.yuyan.value=="0"){
		document.form1.yuyan.focus();
		alert("请选择歌曲语言!");
		return false;
	}
			if(document.form1.body.value==""){
		document.form1.body.focus();
		alert("歌词介绍至少填两个字..!");
		return false;
	}

}
-->
</script>
<script type="text/javascript"> 
function test(form) { 
var Q = document.getElementById("j_xx"); 
Q.value = ""; 
for (var i=0;i<form.elements.length;i++) { 
var e = form.elements[i]; 
if (e.name == "j_xx1" && e.checked == true) { 
Q.value = Q.value + e.value + "," 
} 
} 
} 


function chkall(form) { 

var j = document.getElementsByName("j_xx1"); 
var all = document.getElementById("j_xx_all"); 

for (i=0;i<j.length;i++) { 
j[i].checked = all.checked ? true : false; 
} 
test(form); 
} 
</script>

</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>


<div class="bgcolor_w con_2">
    <div class="fL_">
        <div class="bordercolor_g3 con_2L4">
            <div class="con_2L4t">
                <div class="cont_">
                    <h4>发表歌曲</h4>
                </div>
				<div id="div_note_op_" class="fR_">
                <a class="cc" style="vertical-align:middle;" href="content_list.php?channelid=1">管理我的音乐</a></div>
            </div>
            <div class="con_2L19c1">
                <div class="con_2L19c1_L3">
                    <span>1.发表歌曲</span>
                </div>
                <div class="con_2L19c1_L2 con_2L19c1_L4">
                </div>
                <div class="bordercolor_g3 con_2L19c1_L1 con_2L19c1_L5">
                    <span>2.等待管理员审核</span>
                </div>
                <div class="con_2L19c1_L2">
                </div>
                <div class="bordercolor_g3 con_2L19c1_L1">
                    <span>3.显示在网站首页和相关栏目</span>
                </div>
            </div>
			 <form class="mTB10 mL10 mR10" name="form1" action="article_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
		   <input type="hidden" name="zuozhe" value="<?php echo $cfg_ml->M_LoginID; ?>" />
<input class="file" name="litpic" type="file" id="litpic" style="width:408px; display:none;"   />
            <div class="con_2L18c3">
            <span> 歌曲名字:</span> 
			<input name="title" type="text" id="title" class="bordercolor_b2 tt" style="width:150px;"/> <span style="color:Red;">*</span>
		<span> 所属分类:</span>  
		<?php
		$typeOptions = GetOptionList(0,$channelid);
		echo "<select name='typeid' size='1' class='bordercolor_b2 tt'>\r\n";
		echo "<option value='0' selected>请选择栏目...</option>\r\n";
		echo $typeOptions;
		echo "</select>";
		?> <span style="color:Red;">*</span>
		<span> 歌曲语言:</span>
		<select name='yuyan' size='1'>
<option value='0' selected>请选择歌曲语言...</option>
<option value='国语'>国语</option>
<option value='粤语'>粤语</option>
<option value='英语'>英语</option>
<option value='日语'>日语</option>
<option value='韩语'>韩语</option>
<option value='泰语'>泰语</option>
<option value='俄语'>俄语</option>
<option value='其他语言'>其他语言</option>
</select> <span style="color:Red;">*</span>
            </div>
			<div class="con_2L18c3"><span> 歌手名称:</span>  <input type='text' name='geshou' id='geshou' style='width:150px;' value='' class="bordercolor_b2 tt"/> <span>可以多选, 没有合适的选项,可以不选</span>
			</div>
			<div class="con_2L18c3">
			<span> 歌曲风格:</span>				
            <input name="tags" type="text" id="j_xx" value="" class="bordercolor_b2 tt"  style="width:340px;"readonly>  
			<span>可以多选, 没有合适的选项,可以不选</span><br />
         <span> 伤感<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="伤感"> | </span>	
		 <span> 失恋<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="失恋"> | </span>
		<span>  爱情<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="爱情"> | </span>
		<span>  说唱<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="说唱"> | </span>
		<span>  RNB<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="RNB"> | </span>
		<span>  hiphop<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="hiphop"> | </span>
		<span>  舞曲<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="舞曲"> | </span>
		<span>  流行<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="流行" /> | </span>
		<span>  经典<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="经典"> | </span>
		<span>  原创<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="原创"> | </span>
		<span>  搞笑<input name=j_xx1 onClick="test(this.form)" type="checkbox" value="搞笑"></span>
		  &nbsp;                    </div>

			<div class="con_2L18c3">
                <span> 歌曲地址:</span>  	
				<input name="dizhi" type="text" id="dizhi" class="bordercolor_b2 tt" style="width:340px;" value="<?php echo $dizhi?>" />  
				<input name='dizhi_bt' type='button'  value='浏览...' onClick="SelectMedia('form1.dizhi')" class="btna" style="width:70px;"/> <span style="color:Red;">*</span>
				 <span>本地上传或使用外链,仅限MP3与WMA</span>
            </div>
			
<div id="filelist"></div>
            <div class="con_2L18c3">
			<span> 歌词以及简介:</span><span class="gray_" style="margin-left:10px;">不知道歌词或任何关于歌曲的资料,请不要乱填写. </span>
             <textarea id="content_1" name="body" style="width:700px;height:250px;visibility:hidden;"></textarea>  <input type='hidden' name='dede_addonfields' value="dizhi,media;geshou,text;yuyan,text;zuozhe,text"> 
            </div>
			 <?php
      //游客强制加验证码，会员则判断后台开关
      if(!$cfg_ml->IsLogin() || $cfg_vdcode_member=='Y'){
      ?>
            <div class="con_2L18c3">
              <span> 填写验证码:</span>  <input name="vdcode" type="text" id="vdcode" class="bordercolor_b2 tt" style="width:70px;"/><span class="gray_"> <img src='../include/vdimgck.php' width='50' height='20' align="absmiddle" alt="看不清？点击更换"  style="cursor:pointer" onclick="this.src=this.src+'?'" />  温馨提示: 请认真填写上面内容, 不要发表任何违规内容. 否则将会被删除</span>  
            </div>
		 <?php
      }else {
      	echo "<input name='vdcode' type='hidden' id='vdcode' value='notuse' />";
      }
      ?>	
            <div class="con_2L18c3">
              <div class="fR_">
                    <input class="bgcolor_w xx" type="reset" onclick="location.reload();" value="重写" />
                    <input type="submit" class="color_green bgcolor_w tp" value="发表啦!" />
                </div>
            </div>
			</form>
        </div>
    </div>
    
    <?php include(DEDEMEMBER."/templets/right.htm"); ?>
</div>

<div id="foot_"></div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
<div class="foot_bottom"></div> 
</body>
</html>
