<!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 language="javascript" type="text/javascript" src="<?=base_url()?>csdj/datepicker/wdatepicker.js"></script>
</head>
<body style="margin:2px">
<form method="post" Name="myForm" id="myform" action="<?=site_url('admin/user/save/')?>">
<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">修改会员</td></tr>

<tr><td align="right"><strong><font color=red>＊</font> 会员名称：</strong></td>
<td><?=$CS_Name?>&nbsp;&nbsp;&nbsp;&nbsp;<label><input type=checkbox Name="dellogo" Value="ok">&nbsp;<font color=red>删除头像</font></label></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 会员密码：</strong></td>
<td><input type="password" name="CS_Pass" value="<?=$CS_Pass?>" style="width:330px;"></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 会员呢称：</strong></td>
<td><input type="text" name="CS_Nichen" value="<?=$CS_Nichen?>" style="width:330px;"></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 会员Email：</strong></td>
<td><input type="text" name="CS_Email" value="<?=$CS_Email?>" style="width:330px;"></td>
</tr>
<tr><td align="right"><strong> 会员QQ：</strong></td>
<td><input type="text" name="CS_QQ" value="<?=$CS_QQ?>" style="width:330px;"></td>
</tr>
<tr><td align="right"><strong> 会员地区：</strong></td>
<td><input type="text" name="CS_City" value="<?=$CS_City?>" style="width:330px;"></td>

<tr><td align="right"><strong> 会员手机/座机：</strong></td>
<td><input type="text" name="CS_Sfzh" value="<?=$CS_Sfzh?>" style="width:330px;"></td>
</tr>
<tr><td align="right"><strong> 会员身份证号：</strong></td>
<td><input type="text" name="CS_Sfdz" value="<?=$CS_Sfdz?>" style="width:330px;"></td>
</tr>

</tr>
<tr><td align="right"><strong> 会员性别：</strong></td>
<td><select style="width:200px" name="CS_Sex" size="1">
<option value=0<?php if(0==$CS_Sex) echo ' selected';?>>先生</option>
<option value=1<?php if(1==$CS_Sex) echo ' selected';?>>女士</option>
<option value=2<?php if(2==$CS_Sex) echo ' selected';?>>保密</option>
</select></td>
</tr>

<tr><td align="right"><strong> 会员情感：</strong></td>
<td><select style="width:200px" name="CS_Qg" size="1">
<option value=0<?php if(0==$CS_Qg) echo ' selected';?>>单身</option>
<option value=1<?php if(1==$CS_Qg) echo ' selected';?>>恋爱</option>
<option value=2<?php if(2==$CS_Qg) echo ' selected';?>>已婚</option>
</select></td>
</tr>

<tr><td align="right"><strong> 空间歌曲：</strong></td>
<td><input type="text" name="CS_Gq" value="<?=$CS_Gq?>" style="width:330px;"></td>
</tr>

<tr><td align="right"><strong> 歌曲播放器：</strong></td>
<td><input type="text" name="CS_Gqbfq" value="<?=$CS_Gqbfq?>" style="width:330px;"></td>
</tr>

<tr><td align="right"><strong> 空间背景图片：</strong></td>
<td><input type="text" name="CS_Bgpic" value="<?=$CS_Bgpic?>" style="width:330px;"></td>
</tr>

<tr><td align="right"><strong> 空间主页宣传：</strong></td>
<td><input type="text" name="CS_Xct" value="<?=$CS_Xct?>" style="width:330px;"></td>
</tr>

<tr><td align="right"><strong> 会员职业：</strong></td>
<td><input type="text" name="CS_Zy" value="<?=$CS_Zy?>" style="width:330px;"></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 会员经验值：</strong></td>
<td><input type="text" name="CS_Jinyan" value="<?=$CS_Jinyan?>" style="width:330px;" 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 type="text" name="CS_Cion" value="<?=$CS_Cion?>" style="width:330px;" 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> 会员RMB：</strong></td>
<td><input type="text" name="CS_RMB" value="<?=$CS_RMB?>" style="width:330px;" 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>
<select style="width:200px" name="CS_Vip" id="CS_Vip" size="1" onChange="showvip();">
<option value='0'>普通会员</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;
?>
</select>
</td>
</tr>
<tr id="vipid" <?php if($CS_Vip==0){echo "style=\"display:none\"";} ?>><td align="right"><strong><font color=red>＊</font> 到期时间：</strong></td>
<td><input type="text" name="CS_EndTime" value="<?=$CS_EndTime?>" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:230px;"></td>
</tr>
<tr><td align="right"><strong><font color=red>＊</font> 会员人气：</strong></td><td>
年度：<input type="text" style="width:50px" 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:50px" 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:50px" 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,''))">
每日：<input type="text" style="width:50px" name="CS_Rhits" id="CS_Zhits" value="<?=$CS_Rhits?>" onKeyUp="this.value=this.value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
被赞：<input type="text" style="width:50px" name="CS_Zanhits" id="CS_Zhits" value="<?=$CS_Zanhits?>" 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>会员签名：</strong></td>
<td><textarea style="width:506px;height:100px" rows="5" name="CS_Qianm" id="CS_Content"><?=$CS_Qianm?></textarea></td>
</tr>
<tr align="center"><td height="36" colspan="2"><input name="CS_ID" type="hidden" value="<?=$CS_ID?>"><input name="CS_Logo" type="hidden" value="<?=$CS_Logo?>">
<input type="submit" name="Submit" class="italk-bt" value=" 修 改 "> <INPUT TYPE=BUTTON class="italk-bt" value=" 返 回 " onClick="history.back();"></td></tr>
</table>
</form>
</body>
</html>
