<!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>
</head>
<body style="margin:2px">
<form method="post" Name="myForm" action="<?=site_url('admin/singer/save/')?>">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;"><tr><td align="center" colspan="2" class="title"><?=$title?>歌手</td></tr>

<tr><td width="120" align="right"><strong><font color=red>＊</font> 歌手栏目：</strong></td><td width="830"><select style="width:200px" name="CS_CID" size="1">
<?php
                $strs="";
                $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) {
                             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>';
                             }
                        }
                }
                echo $strs;
?>
</select> <input type="checkbox" name="CS_TID" value="1"<?php if($CS_TID==1) echo 'checked';?>><font color=red>推荐歌手</font> <input type="checkbox" name="CS_AddTime" value="1" checked><font color=red>更新时间</font></td></tr>
<tr><td align="right"><strong>名称颜色：</strong></td><td><input type="text" style="width:200px" 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"></td></tr>
<tr><td align="right"><strong><font color=red>＊</font> 歌手名称：</strong></td>
<td><input type="text" style="width:350px" name="CS_Name" id="CS_Name" value="<?=$CS_Name?>"></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 歌手图片：</strong></td>
<td><input type="text" name="CS_Pic" id="CS_Pic" value="<?=$CS_Pic?>" style="width:330px;">  <input type="button" name="Submit" value="图片上传" class="italk-st" onClick="Uploadpic('singer');"></td></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 歌手人气：</strong></td><td>
年度：<input type="text" style="width:100px" name="CS_Hits" id="CS_Hits" value="<?=$CS_Hits?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;&nbsp;
本月：<input type="text" style="width:100px" name="CS_Yhits" id="CS_Yhits" value="<?=$CS_Yhits?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;&nbsp;
本周：<input type="text" style="width:100px" name="CS_Zhits" id="CS_Zhits" value="<?=$CS_Zhits?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">&nbsp;&nbsp;
今日：<input type="text" style="width:100px" name="CS_Rhits" id="CS_Rhits" value="<?=$CS_Zhits?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
</td></tr>
<tr><td align="right"><strong><font color=red>＊</font> 绑定模板：</strong></td><td><input size="48" name="CS_Template" id="CS_Template" value="<?=$CS_Template?>" readonly> <input type="button" name="Submit" value="选择模板" class="italk-st" onClick="SelectFile('CS_Template');"></td></tr>
<tr><td align="right"><strong>歌手介绍：</strong></td>
<td><textarea style="width:806px;height:300px" rows="5" name="CS_Content" id="CS_Content"><?=$CS_Content?></textarea><script type="text/javascript">AdminEditor('CS_Content');</script></td>
</tr>
<tr align="center"><td height="36" colspan="2"><input name="CS_ID" type="hidden" value="<?=$CS_ID?>">
<input type="submit" name="Submit" class="italk-bt" value=" <?=$title?> "> <INPUT TYPE=BUTTON class="italk-bt" value=" 返 回 " onclick="history.back();"></td></tr>
</table>
</form>
</body>
</html>

