<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"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/setcolor.js"></script>
<script>
function xuan(id) {
     var csids=document.getElementById("csids"+id).disabled;
     if(csids==true){
           if(id==7){
               document.getElementById("csidsc"+id).disabled=false; 
           }
           document.getElementById("csid"+id).style.color='red'; 
           document.getElementById("csids"+id).disabled=false;  
     }else{
           if(id==7){
               document.getElementById("csidsc"+id).disabled=true; 
           }
           document.getElementById("csid"+id).style.color=''; 
           document.getElementById("csids"+id).disabled=true; 
     }
}
function zh(id) {
   for(var i=1;i<=3;i++){
        if(id==i){
            document.getElementById('opss'+i).style.display='';
        }else{
            document.getElementById('opss'+i).style.display='none';
        }
   }
}
</script>
</HEAD>
<body style="background:#FFFFFF">
<form name=form method=post action="<?=$link?>">
<table align="center" width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#A2DAE7">
<tr><td align="center"><b>歌手批量操作</b></td></tr>
<td style="<?php if(empty($id)) echo 'display:none';?>" id="opss1" align="center" colspan="3">填写要操作的ID:    <input type="text" name="CS_ID" size="60" value="<?=$id?>"></td>
</tr>
</table>
<table align="center" width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#A2DAE7">
<tr>
<td width="40%"><table align="center">

<tr>
   <td Height="25" align="right"><label id="csid1"><input onclick="xuan(1)" name="CS_CSID[]" type="checkbox" value="CS_Hits">年度人气</label></td>
   <td Height="25"><input name='CS_Hits' id="csids1" type='text' size='15' value='0' onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" disabled /></td>
</tr>
<tr>
   <td align="right"><label id="csid2"><input onclick="xuan(2)" name="CS_CSID[]" type="checkbox" value="CS_Rhits">每日人气</label></td>
   <td><input name='CS_Rhits' id="csids2" type='text' size='15' value='0' onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" disabled /></td>
</tr>
<tr>
   <td align="right"><label id="csid3"><input onclick="xuan(3)" name="CS_CSID[]" type="checkbox" value="CS_Zhits">每周人气</label></td>
   <td><input name='CS_Zhits' id="csids3" type='text' size='15' value='0' onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" disabled /></td>
</tr>
<tr>
   <td align="right"><label id="csid4"><input onclick="xuan(4)" name="CS_CSID[]" type="checkbox" value="CS_Yhits">每月人气</label></td>
   <td><input name='CS_Yhits' id="csids4" type='text' size='15' value='0' onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" disabled /></td>
</tr>
<tr>
   <td align="right"><label id="csid5"><input onclick="xuan(5)" name="CS_CSID[]" type="checkbox" value="CS_Color">名称颜色</label></td>
   <td><input name='CS_Color' id="csids5" type='text' size='15' value='' disabled /><img src="<?=base_url()?>csdj/admin/images/rect.gif" width="18" height="17" id="csidsc5" border=0 style="position:relative;left:-20px;margin-right:-20px;cursor:pointer;background-Color:;" title="选取颜色!" onClick="initcolor('CS_Color','imgs_CS_Color');" id="imgs_CS_Color" align="absmiddle" vspace="1" disabled > </td>
</tr>
<tr>
   <td align="right"><label id="csid6"><input onclick="xuan(6)" name="CS_CSID[]" type="checkbox" value="CS_Template">选择模版</label></td>
   <td><input name='CS_Template' id="csids6" type='text' size='20' value='1' disabled />  <input id="csidsc12" type="button" name="Submit" value="选择模板" class="italk-st" onClick="SelectFile('CS_Template');" disabled ></td>
</tr>
<tr>
   <td align="right"><label id="csid7"><input onclick="xuan(7)" name="CS_CSID[]" type="checkbox" value="CS_TID">是否推荐</label></td>
   <td><label id="sh1"><input name='CS_TID' type='radio' id='csids7' value='0' checked disabled>&nbsp;推荐&nbsp;</label><label id="sh2"><input name='CS_TID' type='radio' id='csidsc7' value='0' disabled>&nbsp;取消&nbsp;&nbsp;</label></td>
</tr>
<tr>
   <td align="right"><label id="csid8"><input onclick="xuan(8)" name="CS_CSID[]" type="checkbox" value="CS_CID">转移分类</label></td>
   <td><select name='CS_CID' id="csids8" style='width:120px;' disabled>
<?php
                $sqlstr="select * from ".CS_SqlPrefix."gslist order by CS_ID desc";
		$result=$this->CsdjDB->db->query($sqlstr);
		$recount=$result->num_rows();
                if($recount>0){
			foreach ($result->result() as $row) {
                               $sstrss.='<option value='.$row->CS_ID.'>├'.$row->CS_Name.'</option>';
                        }
                }
                echo $sstrss;
?>
       </select>
   </td>
</tr>
</table>
</td>
</tr>
<tr><td height="30" align="center" colspan=2><input type="submit" name="ZTADD" value="批量修改" class="italk-st3">  <input type="button" value="关闭本窗口" onclick="window.parent.Dialog.close();" class="italk-st3"></td></tr>
</table>
</form>
</body>
</HTML>

