<!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>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>查看会员</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
<script language='javascript'src='area.js'></script>
<script>
function checkSubmit()
{
  if(document.form2.email.value=="")
  {
    document.form2.email.focus();
    alert("Email不能为空！");
    return false;
  }
  if(document.form2.uname.value=="")
  {
    document.form2.uname.focus();
    alert("用户昵称不能为空！");
    return false;
  }
}
</script>
</head>
<body>

<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">会员管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="	background:#E2F5BC;">
  <tr>
    <td height="19" bgcolor="#EDF9D5"><a href='<?php echo $ENV_GOBACK_URL?>'><b>会员管理</b></a>&gt;&gt;查看会员</td>
</tr>
<tr>
<td height="200" bgcolor="#FFFFFF" valign="top"><table width="98%" border="0" cellspacing="0" cellpadding="0" >
        <tr>
          <td colspan="2" height="10" ></td>
        </tr>
        <form name="form2" action="member_do.php" method="post" onSubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="edituser" />
          <input type="hidden" name="ID" value="<?php echo $ID?>" />
          <tr>
            <td width="17%" height="25" align="right" >用户名：</td>
            <td width="83%" height="25" >
              <?php echo $row['userid']?>
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >用户密码：</td>
            <td height="25" >
              <?php echo $row['pwd']?><br />
              新密码：<input name="newpwd" type="text" id="newpwd" value="" style="width:150px" />
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >用户昵称：</td>
            <td height="25" >
              <input name="uname" type="text" id="uname" value="<?php echo $row['uname']; ?>" style="width:150px" />
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >会员等级：</td>
            <td height="25" >
			<?php
			$MemberTypes = "";
  $dsql->SetQuery("Select rank,membername From #@__arcrank where rank>0");
  $dsql->Execute();
  $MemberTypes[0] = "未审核会员";
  while($nrow = $dsql->GetObject()){
	  $MemberTypes[$nrow->rank] = $nrow->membername;
  }
  $options = "<select name='membertype' style='width:100px'>\r\n";
  foreach($MemberTypes as $k=>$v)
  {
  	if($k!=$row['membertype']) $options .= "<option value='$k'>$v</option>\r\n";
  	else $options .= "<option value='$k' selected>$v</option>\r\n";
  }
  $options .= "</select>\r\n";
			echo $options;
			?>
			</td>
          </tr>
          <tr>
            <td height="25" align="right" >升级时间：</td>
            <td height="25">
			<input name="uptime" type="text" id="uptime" value="<?php echo GetDateTimeMk($row['uptime'])?>" style="width:200px">
			（如果你要升级会员，必须设置此时间为当前时间）
			</td>
          </tr>
          <tr>
            <td height="25" align="right" >会员天数：</td>
            <td height="25">
			<input name="exptime" type="text" id="exptime" value="<?php echo $row['exptime']?>" style="width:100px">
			（如果你要升级会员，会员天数必须大于0）
			</td>
          </tr>
          <tr>
            <td height="25" align="right" >会员金币：</td>
            <td height="25">
			<input name="money" type="text" id="money" value="<?php echo $row['money']?>" style="width:100px">
			</td>
          </tr>
          <tr>
            <td height="25" align="right" >会员积分：</td>
            <td height="25">
			<input name="scores" type="text" id="scores" value="<?php echo $row['scores']?>" style="width:100px">
			</td>
          </tr>
          <tr bgcolor="#F9FDEA">
            <td height="25" align="right" bgcolor="#EDF9D5" >空间信息：</td>
            <td height="25" bgcolor="#EDF9D5" >
              <table width="90%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="22" style="border-bottom:1px solid #999999">　文章：
                    (
                    <?php echo $row['c1']?>
                    ) 图集： (
                    <?php echo $row['c2']?>
                    ) 其它： (
                    <?php echo $row['c3']?>
                    ) </td>
                </tr>
                <tr>
                  <td height="22" style="border-bottom:1px solid #999999">　空间展示次数：
                    (
                    <?php echo $row['spaceshow']?>
                    ) 文档总点击： (
                    <?php echo $row['pageshow']?>
                    ) </td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="25" align="right" >注册时间：</td>
            <td height="25" >
              <?php echo GetDateTimeMk($row['jointime'])?>
              　ＩＰ：
              <?php echo $row['joinip']?>
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >最近登录时间：</td>
            <td height="25" >
              <?php echo GetDateTimeMk($row['logintime'])?>
              　ＩＰ：
              <?php echo $row['loginip']?>
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >电子邮箱：</td>
            <td height="25" ><input name="email" type="text" id="email" value="<?php echo $row['email']?>" style="width:150;height:20" >
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >昵　称：</td>
            <td height="25" ><input name="uname" type="text" value="<?php echo $row['uname']?>" id="uname" size="20" style="width:150;height:20" ></td>
          </tr>
          <tr>
            <td height="25" align="right" >性　别：</td>
            <td height="25" > <input type="radio" name="sex"  value="男"<?php if($row['sex']=="男" ) echo" checked" ;?>>
              男 &nbsp; <input type="radio" name="sex"  value="女"<?php if($row['sex']=="女" ) echo" checked" ;?>>
              女 </td>
          </tr>
          <tr>
            <td height="25" align="right" >推荐级别：</td>
            <td height="25" >
            	<input name="matt" type="text" id="matt" value="<?php echo $row['matt']?>" size="10"></td>
          </tr>
          <tr>
            <td height="25" align="right" >生日：</td>
            <td height="25" >
            	<input name="birthday" type="text" id="birthday" size="20" value="<?php echo $rowper['birthday']?>" >
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >体型：</td>
            <td height="25" > <select name="weight" >
                <option value='<?php echo $rowper['weight']?>'>
                <?php echo $rowper['weight']?>
                </option>
                <option value='平均'>平均</option>
                <option value='苗条/纤细'>苗条/纤细</option>
                <option value='健壮'>健壮</option>
                <option value='略胖'>略胖</option>
                <option value='大型'>大型</option>
              </select> &nbsp;身高：
              <input name="height" value="<?php echo $rowper['height']?>" type="text" id="height" size="5" >
              厘米</td>
          </tr>
          <tr>
            <td height="25" align="right" >职业：</td>
            <td height="25" > <input type="radio"  name="job" value="学生" <?php if($rowper['job']=="学生" ) echo" checked" ;?>>
              学生
              <input type="radio"  name="job" value="职员" <?php if($rowper['job']=="职员" ) echo" checked" ;?>>
              职员
              <input type="radio"  name="job" value="白领" <?php if($rowper['job']=="白领" ) echo" checked" ;?>>
              白领
              <input type="radio"  name="job" value="失业中" <?php if($rowper['job']=="失业中" ) echo" checked" ;?>>
              失业中 </td>
          </tr>
          <tr>
            <td height="25" align="right" >所在在区：</td>
            <td height="25" >
            	<select name="province" size="1" id="province" width="4" onChange="javascript:selNext(this.document.form2.city,this.value)" style="width:85">
                <option value="0">--不限--</option>
                <?php
				 $dsql->SetQuery("Select * From #@__area where reid=0");
				 $dsql->Execute();
				 while($rowa = $dsql->GetArray()){
				    if($rowper['province']==$rowa['id'])
					{ echo "<option value='".$rowa['id']."' selected>".$rowa['name']."</option>\r\n"; }
					else
					{ echo "<option value='".$rowa['id']."'>".$rowa['name']."</option>\r\n"; }
				 }
				 ?>
              </select> &nbsp;城市：
              <select id="city" name="city" width="4" style="width:85" >
                <option value="0">--不限--</option>
                <?php
				 if(!empty($row['province'])){
				 $dsql->SetQuery("Select * From #@__area where rid=".$row['province']);
				 $dsql->Execute();
				 while($rowa = $dsql->GetArray()){
				    if($rowper['city']==$rowa['id'])
					{ echo "<option value='".$rowa['id']."' selected>".$rowa['name']."</option>\r\n"; }
					else
					{ echo "<option value='".$rowa['id']."'>".$rowa['name']."</option>\r\n"; }
				 }}
				 ?>
              </select> </td>
          </tr>
          <tr align="center">
            <td height="25" colspan="2" > <hr width="80%" size="1" noshade> </td>
          </tr>
          <tr>
            <td height="25" align="right" >OICQ号码：</td>
            <td height="25" ><input name="oicq" type="text" value="<?php echo $rowper['oicq']?>" id="oicq" size="20" style="width:150;height:20" >
            </td>
          </tr>
          <tr>
            <td height="25" align="right" >联系电话：</td>
            <td height="25" ><input name="tel" type="text" value="<?php echo $rowper['tel']?>" id="tel" size="20" style="width:150;height:20" >
              &nbsp;[本站会员的联系电话一律对外保密]</td>
          </tr>
          <tr>
            <td height="25" align="right" >个人主页：</td>
            <td height="25" ><input name="homepage" value="<?php echo $rowper['homepage']?>" type="text" id="homepage" size="25" ></td>
          </tr>
          <tr>
            <td height="25" align="right" >联系地址：</td>
            <td height="25" > <input name="address" value="<?php echo $rowper['address']?>" type="text" id="address" size="25" >
            </td>
          </tr>
          <tr>
            <td height="70" align="right" >自我介绍：</td>
            <td height="70" > <textarea name="myinfo" cols="40" rows="3" id="textarea3" ><?php echo $rowper['myinfo']?></textarea></td>
          </tr>
          <tr>
            <td height="71" align="right" >个人签名：</td>
            <td height="71" > <textarea name="mybb" cols="40" rows="3" id="textarea4" ><?php echo $rowper['mybb']?></textarea></td>
          </tr>
          <tr align="center">
            <td height="25" colspan="2" > <hr width="80%" size="1" noshade> </td>
          </tr>
          <tr>
            <td height="25" align="right" >空间名称： </td>
            <td height="25" ><input name="spacename" type="text" id="spacename" size="35" value="<?php echo $rowper['spacename']?>"></td>
          </tr>
          <tr>
            <td height="130" align="right" >空间公告：</td>
            <td height="130" ><textarea name="news" cols="50" rows="8" id="textarea7" ><?php echo $rowper['news']?></textarea></td>
          </tr>
          <tr>
            <td height="130" align="right" >详细资料：</td>
            <td height="130" ><textarea name="fullinfo" cols="50" rows="8" id="textarea8" ><?php echo $rowper['fullinfo']?></textarea>
            </td>
          </tr>
          <tr>
            <td height="67" align="right" >&nbsp;</td>
            <td height="67" > <input type="submit" name="Submit" value="确定修改" class="inputbut">
              &nbsp;&nbsp; <input type="reset" name="Submit22" value="重置" class="inputbut"> </td>
          </tr>
        </form>
      </table> </td>
</tr>
</table>
</body>
</html>