
<!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" />

<script language="javascript" type="text/javascript" src="/include/dedeajax2.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" language="javascript">
<?php echo GetEnumsJs('nativeplace'); ?>
</script>
<script src="../images/enums.js" type="text/javascript"></script>
<script src="js/webcalendar.js" type="text/javascript"></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 id="newsfeed_1" class="con_2L4tL1 con_2L4tL2">
                        <a href="edit_fullinfo.php">修改详细资料</a>
                    </div>
                    <div id="newsfeed_2" class="con_2L4tL1">
                        <a href="edit_baseinfo.php">账户管理</a>
                    </div>
					<div id="newsfeed_2" class="con_2L4tL1">
                        <a href="edit_face.php">更改头像</a>
                    </div>
					<div id="newsfeed_2" class="con_2L4tL1">
                        <a href="edit_space_info.php">空间设置</a>
                    </div>
            </div>
			 <form class="mTB10 mL10 mR10" name="form2" action="edit_fullinfo.php" method="post" >
          <input type="hidden" name="dopost" value="save" />
		  <input type="hidden" name="uname" value="<?php echo $row['uname']; ?>" />
		  <input type="hidden" name="onlynet" value="0" />
            <div class="con_2L18c3">
            <span> 家庭住址:</span>  
            <select name="province" id="province" onchange="javascript:selNext(document.getElementById('city'),this.value)">
                        <option value='0'>选择省</option>
             <?php
              $places = GetEnumsTypes($row['place']);
              foreach($em_nativeplaces as $k=>$v)
							{
								if($k%500 == 0)
								{
									if($places['top']==$k) echo "<option value='$k' selected='selected'>$v</option>\r\n";
									else echo "<option value='$k'>$v</option>\r\n";
								}
							}
            ?>
                  </select>&nbsp;&nbsp;&nbsp;
			<select id="city" name="city">
                  <option value='0'>选择市</option>
            <?php
              if($places['son']>0)
              {
              	foreach($em_nativeplaces as $k=>$v)
								{
									 if($k > $places['top'] && $k < $places['top'] + 500)
									 {
											if($k==$places['son']) echo "<option value='$k' selected='selected'>$v</option>\r\n";
											else echo "<option value='$k'>$v</option>\r\n";
									 }
								}
						  }
            ?>
                    </select>
			<span style="margin-left:10px;"> 家乡地址:</span> 
			<select name="oldprovince" id="oldprovince" onchange="javascript:selNext(document.getElementById('oldcity'),this.value)">
             <option value='0'>选择省</option>
             <?php
              $places = GetEnumsTypes($row['oldplace']);
              foreach($em_nativeplaces as $k=>$v)
							{
								if($k%500 == 0)
								{
									if($places['top']==$k) echo "<option value='$k' selected='selected'>$v</option>\r\n";
									else echo "<option value='$k'>$v</option>\r\n";
								}
							}
            ?>
                  </select>	&nbsp;&nbsp;&nbsp;
				  <select id="oldcity" name="oldcity">
                  <option value='0'>选择市</option>
            <?php
              if($places['son']>0)
              {
              	foreach($em_nativeplaces as $k=>$v)
								{
									 if($k > $places['top'] && $k < $places['top'] + 500)
									 {
											if($k==$places['son']) echo "<option value='$k' selected='selected'>$v</option>\r\n";
											else echo "<option value='$k'>$v</option>\r\n";
									 }
								}
						  }
            ?>
                    </select>	
            </div>
			<div class="con_2L18c3">
            <span> 出生日期:</span>  
            <span><input name="birthday" type="text" id="birthday" class="bordercolor_b2 tt" value="<?php echo $row['birthday']; ?>" onclick="SelectDate(this,'yyyy-MM-dd',80,0)"  style="width:180px;"/></span> <span style="margin-left:10px;"> 交友目的:</span> <?php echo GetEnumsForm('datingtype',$row['datingtype'],'',''); ?>
            </div>
        <div class="con_2L18c3">
			<span> QQ号码 :</span> <input name="qq" type="text" class="bordercolor_b2 tt" id="qq" value="<?php echo $row['qq']; ?>" size="15" style="width:152px;"/>
			 <span style="margin-left:10px;"> MSN号码:</span>
           <input name="msn" type="text" class="bordercolor_b2 tt" id="msn" value="<?php echo $row['msn']; ?>" size="15" style="width:152px;"/>
            </div>
		<div class="con_2L18c3">
		<span> 兴趣爱好:</span>
		</div>
		<div class="con_2L18c3"><?php
    	$arr = $dsql->GetOne("Select * From `#@__sys_set` where sname='nature' ");
    	$sets = explode(',',$arr['items']);
    	$i=0;
    	foreach($sets as $v){
    		if(ereg($v,$row['nature']))
    		echo "<li><input type='checkbox' name='nature[]' id='nature{$i}' value='$v' class='np' checked='checked' />$v</li>\r\n";
    		else
    		echo "<li><input type='checkbox' name='nature[]' id='nature{$i}' value='$v' class='np' />$v</li>\r\n";
    		$i++;
    	}
    	?></div>
			
            <div class="con_2L18c3">
              <div class="fR_">
               <input class="bgcolor_w xx"  type="reset" 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>
