<!--
<?php
print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="./images/myinfo/index.css">
<div class="MyInfoBox">
	<div class="Header">
		<a href="wapindex.php" class="back"><span>返回</span></a>
		个人资料
		<ul style='display:none;'>
			<ol><span>更多</span></ol>
			<li>
				<a href="wappm.php?job=list" class="pm">站内消息</a>
				<a href="/hy/waphome.php" class="home">名片首页</a>
				<a href="/hy/page_selectstyle.php" class="select">选择风格</a>
			</li>
		</ul>
	</div>
<!--
EOT;
if($jobedit){
print <<<EOT
-->
	<form name="editform" method="post" action="?actionedit=$jobedit">
	<div class="EditBox">
<!--
EOT;
if($jobedit=='password'){
print <<<EOT
-->
		<ul class="edits">
			<dl>
				<dt>新密码：</dt>
				<dd><input type="text" class="input3" name="password" placeholder="输入新密码"/></dd>
			</dl>
			<dl>
				<dt>重复密码：</dt>
				<dd><input type="text" class="input3" name="password1" placeholder="输入重复密码"/></dd>
			</dl>
			<li><span class="submitbox"><em>修改密码</em><input type="submit" class="submits" value="修改密码"/></span> <a href="myinfo.php?backtime=$timestamp" class="back">返回</a></li>
		</ul>	
<!--
EOT;
}elseif($jobedit=='bday'){
list($bday1,$bday2,$bday3)=explode("-",$lfjdb[bday]);
$maxyear=date("Y",$timestamp);
$listbday1="<select name='bday1'>\r\n";
for($i=1950;$i<=$maxyear;$i++){
	$ckk=($i==$bday1)?'selected ':'';
	$listbday1.="<option value='$i' $ckk>$i</option>\r\n";	
}
$listbday1.="</select>\r\n";
$listbday2="<select name='bday2'>\r\n";
for($i=1;$i<=12;$i++){
	$moth=$i<10?"0".$i:$i;
	$ckk=($moth==$bday2)?'selected ':'';	
	$listbday2.="<option value='$moth' $ckk>$moth</option>\r\n";	
}
$listbday2.="</select>\r\n";
$listbday3="<select name='bday3'>\r\n";
for($i=1;$i<=31;$i++){
	$ckk=($i==$bday3)?'selected ':'';
	$days=$i<10?"0".$i:$i;
	$ckk=($days==$bday3)?'selected ':'';
	$listbday3.="<option value='$days' $ckk>$days</option>\r\n";	
}
$listbday3.="</select>\r\n";
print <<<EOT
-->
		<ul class="edits">
			<div class="dates">
				<div>
					<em>$listbday1</em>
					<span>年</span>
				</div>
				<div>
					<em>$listbday2</em>
					<span>月</span>
				</div>
				<div>
					<em>$listbday3</em>
					<span>日</span>
				</div>
			</div>
			<li><span class="submitbox"><em>修改</em><input type="submit" class="submits" value="修改"/></span> <a href="myinfo.php?backtime=$timestamp" class="back">返回</a></li>
		</ul>
<!--
EOT;
}elseif($jobedit=='sex'){
$sex_db[$lfjdb[sex]]=" checked ";
print <<<EOT
-->
		<ul class="edits">
			<div class="dates">
				<div><input name="editvale" type="radio" value="0" $sex_db[0]/> 保密</div>
				<div><input name="editvale" type="radio" value="1" $sex_db[1]/> 男</div>
				<div><input name="editvale" type="radio" value="2" $sex_db[2]/> 女</div>
			</div>
			<li><span class="submitbox"><em>修改</em><input type="submit" class="submits" value="修改"/></span> <a href="myinfo.php?backtime=$timestamp" class="back">返回</a></li>
		</ul>

<!--
EOT;
}elseif($jobedit=='sendregmsg'){
$msg_db[intval($lfjdb[msgA][RegMsg])]=" checked ";
print <<<EOT
-->
		<ul class="edits">
			<div class="dates">
				<div><input name="editvale" type="radio" value="0" $msg_db[0]/> 微信不提醒</div>
				<div><input name="editvale" type="radio" value="1" $msg_db[1]/> 提醒</div>
 
			</div>
			<li><span class="submitbox"><em>修改</em><input type="submit" class="submits" value="修改"/></span> <a href="myinfo.php?backtime=$timestamp" class="back">返回</a></li>
		</ul>
<!--
EOT;
}elseif($jobedit=='cityid'){
if($lfjdb[cityid]){
	$provinceid=$lfjdb[provinceid]?$lfjdb[provinceid]:$city_DB[fup][$lfjdb[cityid]];
}else{
	$provinceid=0;
}
$listareas="<select name='provinceid' onChange=\"choose_area(\$(this).val())\">\r\n<option value='0'>请选择省份</option>\r\n";
foreach($area_DB[0] AS $key=>$value){
	$ckk=($provinceid==$key)?'selected ':'';
	$listareas.="<option value='$key' $ckk>$value</option>\r\n";	
}
$listareas.="</select>\r\n";
$listcitys="<select name='cityid'>\r\n<option value='0'>请选择城市</option>\r\n";
foreach($city_DB[$provinceid] AS $key=>$value){
	$ckk=($lfjdb[cityid]==$key)?'selected ':'';
	$listcitys.="<option value='$key' $ckk>$value</option>\r\n";	
}
$listcitys.="</select>\r\n";
$listcitys=$provinceid?$listcitys:'';
print <<<EOT
-->
		<ul class="edits">
			<div class="dates">
				<div>$listareas</div>
				<div class="citys">$listcitys</div>
			</div>
			<li><span class="submitbox"><em>修改</em><input type="submit" class="submits" value="修改"/></span> <a href="myinfo.php?backtime=$timestamp" class="back">返回</a></li>
		</ul>
<script>
function choose_area(area){
	$.get("?aciton=choose_area&area="+area+"&"+Math.random(),function(d){
		if(d!=''){
			$('.edits .citys').html(d);	
		}
	});
}
</script>
<!--
EOT;
}elseif($jobedit=='introduce'){
print <<<EOT
-->
		<ul class="edits">
			<ol><textarea name="editvale">{$lfjdb[introduce]}</textarea></ol>
			<li><span class="submitbox"><em>修改</em><input type="submit" class="submits" value="修改"/></span> <a href="myinfo.php?backtime=$timestamp" class="back">返回</a></li>
		</ul>	
<!--
EOT;
}else{
print <<<EOT
-->
		<ul class="edits">
			<ol><input type="text" class="input3" name="editvale" value="{$lfjdb[$jobedit]}"/></ol>
			<li><span class="submitbox"><em>修改</em><input type="submit" class="submits" value="修改"/></span> <a href="myinfo.php?backtime=$timestamp" class="back">返回</a></li>
		</ul>	
<!--
EOT;
}
print <<<EOT
-->
	</div>
	</form>
<!--
EOT;
}else{
$lfjdb[icon]=$lfjdb[icon]?tempdir($lfjdb[icon]):'./images/pic.png';
$sex_db=array(0=>'保密',1=>'男',2=>'女');
print <<<EOT
-->
	<div class="InfoCont">
		<dl class="icon">
			<dt><span>我的头像</span></dt>
			<dd><div class="hicon"><span><em><img src="$lfjdb[icon]" onerror="this.src='/images/default/nopic.jpg'" /></em></span></div></dd>
		</dl>
		<dl>
			<dt><span>我的帐号</span></dt>
			<dd><a href="javascript:;woring_show('会员帐号不可以修改！')">$lfjid</a></dd>
		</dl>
		<div class="ShowWoring"><span>特别提醒内容！</span></div>
		<dl>
			<dt><span>我的邮箱</span></dt>
			<dd><a href="?jobedit=email">$lfjdb[email]</a></dd>
		</dl>
		<dl>
			<dt><span>登录密码</span></dt>
			<dd><a href="?jobedit=password">******</a></dd>
		</dl>
		<dl>
			<dt><span>生日</span></dt>
			<dd><a href="?jobedit=bday">$lfjdb[bday]</a></dd>
		</dl>
		<dl>
			<dt><span>性别</span></dt>
			<dd><a href="?jobedit=sex">{$sex_db[$lfjdb[sex]]}</a></dd>
		</dl>
		<dl>
			<dt><span>所在城市</span></dt>
			<dd><a href="?jobedit=cityid">{$area_DB[name][$lfjdb[provinceid]]} {$city_DB[name][$lfjdb[cityid]]}</a></dd>
		</dl>
	<dl>
			<dt><span>QQ</span></dt>
			<dd><a href="?jobedit=oicq">$lfjdb[oicq]</a></dd>
		</dl>
<!--
		<dl>
			<dt><span>个性签名</span></dt>
			<dd><a href="?jobedit=introduce">$lfjdb[introduce]</a></dd>
		</dl>
-->
		<dl>
			<dt><span>联系地址</span></dt>
			<dd><a href="?jobedit=address">$lfjdb[address]</a></dd>
		</dl>
<!--
		<dl>
			<dt><span>邮政编码</span></dt>
			<dd><a href="?jobedit=postalcode">$lfjdb[postalcode]</a></dd>
		</dl>

		<dl>
			<dt><span>联系电话</span></dt>
			<dd><a href="?jobedit=telephone">$lfjdb[telephone]</a></dd>
		</dl>
-->
		<dl>
			<dt><span>联系手机</span></dt>
			<dd><a href="?jobedit=mobphone">$lfjdb[mobphone]</a></dd>
		</dl>
		<dl>
			<dt><span>真实姓名</span></dt>
			<dd><a href="?jobedit=truename">$lfjdb[truename]</a></dd>
		</dl>

<!--
EOT;
$showmsg = $lfjdb[msgA][RegMsg]?'提醒':'不提醒';
print <<<EOT
-->
<dl>
			<dt><span>推荐它人注册微信提醒</span></dt>
			<dd><a href="?jobedit=sendregmsg">$showmsg</a></dd>
		</dl>

	</div>
	<div class="bottomBut"><a href="wapindex.php">返回会员中心</a></div>
</div>
<div class="UpHiconBox">
	<div class="BackBox"></div>
		<div class="upfile_box">
		  <div class='iframe'><iframe frameborder=0  scrolling=no src='$webdb[www_url]/do/upimg.php?updir=icon/$lfjuid'></iframe></div>
		</div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function upimg1(url){
	cut_img(url); //剪切头像	
}
//-->
</SCRIPT>
</div>
<div class="cut_imgBox">
	<div class="BackBox1"></div>
	<div class="contents">
		<iframe frameborder="0" src="" scrolling="yes" style="height: 100%; visibility: inherit; width: 100%; z-index: 1;overflow: auto;"></iframe>
		<div class="close" onClick="hide_cutimg();">不剪切当前图片</div>
	</div>	
</div>
<script>
\$('.MyInfoBox .Header ul ol').click(function(){
	var thisH=\$('.MyInfoBox .Header ul').height();
	if(thisH>40){
		\$('.MyInfoBox .Header ul li').fadeOut();
	}else{
		\$('.MyInfoBox .Header ul li').fadeIn();
	}
});
\$('.MyInfoBox .InfoCont').click(function(){
	\$('.MyInfoBox .Header ul li').fadeOut();
});
\$('.MyInfoBox .InfoCont .hicon').click(function(){
	\$('.UpHiconBox').fadeIn();
});
\$('.BackBox').click(function(){
	\$('.UpHiconBox').fadeOut();
	\$('.cut_imgBox').fadeOut();
});
\$('.BackBox1').click(function(){
	hide_cutimg();
});
function hide_cutimg(){
	window.location.href="/member/myinfo.php";
}
function cut_img(url){
	$.get("?aciton=updateicon&icon="+url+"&"+Math.random(),function(d){
		url=escape(url);
		window.location.href="$webdb[www_url]/cutimg/cutimg.php?cutimg="+url+"&forsiteurl=$thissiteurl";
	});
}
function woring_show(str){
	$('.ShowWoring').fadeIn();
	$('.ShowWoring span').html(str);
	$('.ShowWoring').css({'opacity':.8}).stop().animate({'opacity':1},2000,function(){
			$(this).fadeOut();
	});
}
</script>
<!--
EOT;
}
?>
-->