<!--{assign var='menuid' value=''}-->
<!--{assign var='usercpmod' value='yes'}-->
<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_head.tpl"}-->
<!--{if $a == 'monolog' || $a == 'reg'}-->
<script>
function changeNote(){
	var note = $("#content").val();
	var has_write_obj = document.getElementById("has_write");
	var will_write_obj = document.getElementById("will_write");
	has_write_obj.innerHTML = strlen(note);
	will_write_obj.innerHTML = 1500 - strlen(note);
}
window.onload=function(){changeNote();};
</script>
<!--{/if}-->
<body>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu_cp.tpl"}-->
<div id="page-index" class="page">
  <div class="zx">
    <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_search.tpl"}-->
	<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_menu.tpl"}-->
	
	<div class="zright">
		
	  
	  <!-- 基本资料 -->
	  <!--{if $a eq 'run'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=profile" class="now">基本资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=more">详细资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=monolog">内心独白</a>
		<a href="<!--{$ucfile}-->?c=profile&a=contact">联系资料</a>
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> 为保证资料真实有效，灰色字体信息不得随意修改。</div>
         <form name="myform" id="myform" action="<!--{$ucfile}-->?c=profile&a=savebase" method="post">
		  <table cellpadding='3' cellspacing='3' border='0' class='tab'>
		      <tr>
			    <td class="hback_yellow" colspan="4" align="center"><b>基本资料</b></td>
			  </tr>
              <!-- 邮箱、名称 -->
			  <tr>
				<td class='hback_b' width='15%'>登录邮箱 <span class='f_red'></span></td>
				<td class='hback' width='35%'><font color="#999999"><!--{$u.email}--> </font></td>
				<td class='hback_b' width='15%'>用 户 名 <span class='f_red'></span></td>
				<td class='hback' width='35%'><!--{$u.levelimg}-->&nbsp;<font color="#999999"><!--{$u.username}--></font></td>
			  </tr>
			  <!-- 性别、生日 -->
			  <tr>
				<td class='hback_b'>性 别 <span class='f_red'></span></td>
				<td class='hback'><font color="#999999"><!--{if $u.gender==1}--><!--{$lang.sex_male}--><!--{else}--><!--{$lang.sex_female}--><!--{/if}--></font> </td>
				<td class='hback_b'>生 日 <span class='f_red'></span></td>
				<td class='hback'><font color="#999999"><!--{$u.birthday}-->&nbsp;&nbsp;<!--{$u.age}-->  岁</font></td>
			  </tr>
			  <!-- 星座、生肖 -->
			  <tr>
				<td class='hback_b'>星 座 <span class='f_red'></span></td>
				<td class='hback'><font color="#999999"><!--{$u.astro}--></font> </td>
				<td class='hback_b'>生 肖 <span class='f_red'></span></td>
				<td class='hback'><font color="#999999"><!--{$u.lunar}--></font> </td>
			  </tr>
			  <!-- 婚姻、身高 -->
			  <tr>
				<td class='hback_b'>婚姻状态 <span class='f_red'></span></td>
				<td class='hback'><font color='#999999'><!--{hook mod='var' type='text' item='marrystatus' value=$u.marrystatus}--></font> <span class='f_red' id='dmarrystatus'></span></td>
				<td class='hback_b'>身 高 <span class='f_red'></span></td>
				<td class='hback'><font color='#999999'><!--{$u.height}--> CM</font> <span class='f_red' id='dheight'></span></td>
			  </tr>
			  <!-- 血型、有无子女 -->
			  <tr>
				<td class='hback_b'>血 型 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='blood' name='blood' text='=请选择=' value=$u.blood}--> <span id='dblood' class='f_red'></span></td>
				<td class='hback_b'>有无子女 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='childrenstatus' name='childrenstatus' text='=请选择=' value=$u.childrenstatus}--> <span id='dchildrenstatus' class='f_red'></span></td>
			  </tr>
			  <!-- 国籍，户籍 -->
			  <tr>
				<td class='hback_b'>国 籍 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='nationality' name='nationality' text='=请选择=' value=$u.nationality}--> <span id='dnationality' class='f_red'></span></td>
				<td class='hback_b'>户 籍 <span class='f_red'></span></td>
				<td class='hback'>
				<!--{hometown type='dist1' name='nationprovinceid' value=$u.nationprovinceid cname='nationcityid' text='=请选择='}-->&nbsp;<span id='dnationprovinceid' class='f_red'></span>
				<span id="json_nationcityid">
				<!--{hometown type='dist2' cname='nationcityid' cvalue=$u.nationcityid pvalue=$u.nationprovinceid text='=请选择='}-->
				</span>&nbsp;<span id='dnationcityid' class='f_red'></span>
				</td>
			  </tr>
			  <!-- 所在地、交友目的 -->
			  <tr>
				<td class='hback_b'>所在地区 <span class='f_red'>*</span></td>
				<td class='hback'>
				<!--{area type='dist1' name='provinceid' value=$u.provinceid ajax='1' cname='cityid' cajax='1' dname='distid' text='=请选择='}-->&nbsp;<span id='provinceid' class='f_red'></span>
				<span id="json_cityid">
				<!--{area type='dist2' pvalue=$u.provinceid cname='cityid' cvalue=$u.cityid cajax='1' dname='distid' dvalue=$u.distid text='=请选择='}-->
				</span>&nbsp; <span id='dcityid' class='f_red'></span>
				<span id="json_distid">
				<!--{area type='dist3' cvalue=$u.cityid dname='distid' dvalue=$u.distid text='=请选择='}-->
				</span>
				</td>
				<td class='hback_b'>交友类别 <span class='f_red'>*</span></td>
				<td class='hback'><!--{hook mod='lovesort' type='select' name='lovesort' text='=请选择=' value=$u.lovesort}--> <span id='dlovesort' class='f_red'></span></td>
			  </tr>
			  <!-- 个性、民族 -->
			  <tr>
				<td class='hback_b'>个 性 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='personality' name='personality' text='=请选择=' value=$u.personality}--> <span id="dpersonality"></span></td>
				<td class='hback_b'>民 族 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='national' name='national' text='=请选择=' value=$u.national}--> <span id='dnational' class='f_red'></span></td>
			  </tr>
			  <!-- 行业、月薪 -->
			  <tr>
				<td class='hback_b'>所在行业 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='jobs' name='jobs' text='=请选择=' value=$u.jobs}--> <span id="djobs"></span></td>
				<td class='hback_b'>月薪收入 <span class='f_red'>*</span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='salary' name='salary' text='=请选择=' value=$u.salary}--> <span id='dsalary' class='f_red'></span></td>
			  </tr>
			  <!-- 住房、购车 -->
			  <tr>
				<td class='hback_b'>住房情况 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='housing' name='housing' text='=请选择=' value=$u.housing}--> <span id="dhousing"></span></td>
				<td class='hback_b'>购车情况 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='caring' name='caring' text='=请选择=' value=$u.caring}--> <span id="dcaring"></span></td>
			  </tr>

		      <tr>
			    <td class="hback_yellow" colspan="4" align="center"><b>外貌体型</b></td>
			  </tr>
			  <!-- 体重、外貌自评 -->
			  <tr>
				<td class='hback_b'>体 重 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='weight' name='weight' value=$u.weight}--> 公斤</td>
				<td class='hback_b'>外貌自评 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='profile' name='profile' text='=请选择=' value=$u.profile}--> </td>
			  </tr>
			  <!-- 特征、发型 -->
			  <tr>
				<td class='hback_b'>魅力部位 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='charmparts' name='charmparts' text='=请选择=' value=$u.charmparts}--> </td>
				<td class='hback_b'>发 型 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='hairstyle' name='hairstyle' text='=请选择=' value=$u.hairstyle}--> </td>
			  </tr>
			  <!-- 发色、面型 -->
			  <tr>
				<td class='hback_b'>发 色 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='haircolor' name='haircolor' text='=请选择=' value=$u.haircolor}--> </td>
				<td class='hback_b'>脸 型 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='facestyle' name='facestyle' text='=请选择=' value=$u.facestyle}--> </td>
			  </tr>
			  <!-- 体型 -->
			  <tr>
				<td class='hback_b'>体 型 <span class='f_red'></span></td>
				<td class='hback' colspan="3"><!--{hook mod='var' type='select' item='bodystyle' name='bodystyle' text='=请选择=' value=$u.bodystyle}--> </td>
			  </tr>
              <!-- 提交按钮 -->
			  <tr>
				<td class='hback'></td>
				<td class='hback' colspan="3">
				
				<a class="btn_b2 btn" href="###" onclick="return checkbase();"><span>编辑保存</span></a>
				<a class="btn_b3 btn" href="<!--{$ucfile}-->?c=profile&a=more"><span>跳过</span></a>
				
				</td>
			  </tr>
	      </table>
		  </form>

	  </div>
	  <!--{/if}-->

	  <!-- 详细资料 -->
	  <!--{if $a eq 'more'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=profile">基本资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=more" class="now">详细资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=monolog">内心独白</a>
		<a href="<!--{$ucfile}-->?c=profile&a=contact">联系资料</a>
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> 为保证资料真实有效，灰色字体信息不得随意修改。</div>
         <form name="myform" id="myform" action="<!--{$ucfile}-->?c=profile&a=savemore" method="post">
		  <table cellpadding='3' cellspacing='3' border='0' class='tab'>
		      <tr>
			    <td class="hback_yellow" colspan="4" align="center"><b>工作学习</b></td>
			  </tr>
			  <!-- 公司类型、收入 -->
			  <tr>
				<td class='hback_b' width='15%'>公司类型 <span class='f_red'></span></td>
				<td class='hback' width="35%"><!--{hook mod='var' type='select' item='companytype' name='companytype' text='=请选择=' value=$u.companytype}--> <span id='dcompanytype' class='f_red'></span></td>
				<td class='hback_b' width="15%">收入描述 <span class='f_red'></span></td>
				<td class='hback' width="35%"><!--{hook mod='var' type='select' item='income' name='income' text='=请选择=' value=$u.income}--> <span id="dincome"></span></td>
			  </tr>
			  <!-- 工作、公司 -->
			  <tr>
				<td class='hback_b'>工作状况 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='workstatus' name='workstatus' text='=请选择=' value=$u.workstatus}--> <span id="dworkstatus"></span></td>
				<td class='hback_b'>公司名称 <span class='f_red'></span></td>
				<td class='hback'><input type="text" name="companyname" id="companyname" value="<!--{$u.companyname}-->" class="input-150" /> <span id='dcompanyname' class='f_red'></span></td>
			  </tr>
			  <!-- 学历、专业 -->
			  <tr>
				<td class='hback_b'>学 历 <span class='f_red'></span></td>
				<td class='hback'><font color='#999999'><!--{hook mod='var' item='education' type='text' value=$u.education}--></font> <span id="deducation"></span></td>
				<td class='hback_b'>专业类型 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='specialty' name='specialty' text='=请选择=' value=$u.specialty}--> <span id='dspecialty' class='f_red'></span></td>
			  </tr>
			  <!-- 学校 -->
			  <tr>
				<td class='hback_b'>毕业学校 <span class='f_red'></span></td>
				<td class='hback'><input type='text' name='school' id='school' class='input-150' value="<!--{$u.school}-->" /> <span id="dschool"></span></td>
				<td class='hback_b'>入学年份 <span class='f_red'></span></td>
				<td class='hback'><input type='text' name='schoolyear' id='schoolyear' class='input-s' value="<!--{$u.schoolyear}-->" /> <span id='dschoolyear' class='f_red'></span></td>
			  </tr>
			  <!-- 语言能力 -->
			  <tr>
				<td class='hback_b'>语言能力 <span class='f_red'></span></td>
				<td class='hback' colspan="3" id="em_language_edit">
				<!--{hook mod='var' item='language' name='language' type='checkbox' maxnum=$config.maxnum value=$u.language}-->
				 <span id="dlanguage" class="f_red"></span></td>
			  </tr>

		      <tr>
			    <td class="hback_yellow" colspan="4" align="center"><b>生活描述</b></td>
			  </tr>
			  <!-- 排行、消费 -->
			  <tr>
				<td class='hback_b'>家中排行 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='tophome' name='tophome' text='=请选择=' value=$u.tophome}--> <span id='dtophome' class='f_red'></span></td>
				<td class='hback_b'>最大消费 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='consume' name='consume' text='=请选择=' value=$u.consume}--> <span id="dconsume"></span></td>
			  </tr>
			  <!-- 吸烟、喝酒 -->
			  <tr>
				<td class='hback_b'>是否吸烟  <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='smoking' name='smoking' text='=请选择=' value=$u.smoking}--> <span id="dsmoking"></span></td>
				<td class='hback_b'>是否喝酒 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='drinking' name='drinking' text='=请选择=' value=$u.drinking}--> <span id='ddrinking' class='f_red'></span></td>
			  </tr>
			  <!-- 信仰、锻炼 -->
			  <tr>
				<td class='hback_b'>宗教信仰 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='faith' name='faith' text='=请选择=' value=$u.faith}--> <span id="dfaith"></span></td>
				<td class='hback_b'>锻炼习惯 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='workout' name='workout' text='=请选择=' value=$u.workout}--> <span id='dworkout' class='f_red'></span></td>
			  </tr>
			  <!-- 习惯、孩子 -->
			  <tr>
				<td class='hback_b'>作息习惯 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='rest' name='rest' text='=请选择=' value=$u.rest}--> <span id="drest"></span></td>
				<td class='hback_b'>是否要孩子 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='havechildren' name='havechildren' text='=请选择=' value=$u.havechildren}--> <span id='dhavechildren' class='f_red'></span></td>
			  </tr>
			  <!-- 同住、浪漫 -->
			  <tr>
				<td class='hback_b'>与对方父母同住 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='talive' name='talive' text='=请选择=' value=$u.talive}--> <span id="dtalive"></span></td>
				<td class='hback_b'>喜欢制造浪漫 <span class='f_red'></span></td>
				<td class='hback'><!--{hook mod='var' type='select' item='romantic' name='romantic' text='=请选择=' value=$u.romantic}--> <span id="dromantic"></span></td>
			  </tr>
			  <!-- 生活技能 -->
			  <tr>
				<td class='hback_b'>生活技能 <span class='f_red'></span></td>
				<td class='hback' colspan="3" id="em_lifeskill_edit">
				<!--{hook mod='var' item='lifeskill' name='lifeskill' type='checkbox' maxnum=$config.maxnum value=$u.lifeskill}-->
				<span id='dlifeskill' class='f_red'></span></td>
			  </tr>
		      <tr>
			    <td class="hback_yellow" colspan="4" align="center"><b>兴趣爱好</b></td>
			  </tr>
			  <!-- 喜欢的运动 -->
			  <tr>
				<td class='hback_b'>喜欢的运动 <span class='f_red'></span></td>
				<td class='hback' id="em_sports_edit" colspan="3">
				<!--{hook mod='var' item='sports' name='sports' type='checkbox' maxnum=$config.maxnum value=$u.sports}-->
				 <span id='dsports' class='f_red'></span></td>
			  </tr>
			  <!-- 喜欢的食物 -->
			  <tr>
				<td class='hback_b'>喜欢的食物 <span class='f_red'></span></td>
				<td class='hback' id="em_food_edit" colspan="3">
				<!--{hook mod='var' item='food' name='food' type='checkbox' maxnum=$config.maxnum value=$u.food}-->
				 <span id='dfood' class='f_red'></span></td>
			  </tr>
			  <!-- 喜欢的书籍 -->
			  <tr>
				<td class='hback_b'>喜欢的书籍 <span class='f_red'></span></td>
				<td class='hback' id="em_book_edit" colspan="3">
				<!--{hook mod='var' item='book' name='book' type='checkbox' maxnum=$config.maxnum value=$u.book}-->
				 <span id='dbook' class='f_red'></span></td>
			  </tr>
			  <!-- 喜欢的电影 -->
			  <tr>
				<td class='hback_b'>喜欢的电影 <span class='f_red'></span></td>
				<td class='hback' id="em_film_edit" colspan="3">
				<!--{hook mod='var' item='film' name='film' type='checkbox' maxnum=$config.maxnum value=$u.film}-->
				<span id='dfilm' class='f_red'></span></td>
			  </tr>
			  <!-- 业余爱好 -->
			  <tr>
				<td class='hback_b'>业余爱好 <span class='f_red'></span></td>
				<td class='hback' id="em_interest_edit" colspan="3">
				<!--{hook mod='var' item='interest' name='interest' type='checkbox' maxnum=$config.maxnum value=$u.interest}-->
				 <span id='dinterest' class='f_red'></span></td>
			  </tr>
			  <!-- 喜欢的旅游 -->
			  <tr>
				<td class='hback_b'>喜欢的旅游 <span class='f_red'></span></td>
				<td class='hback' id="em_travel_edit"  colspan="3">
				<!--{hook mod='var' item='travel' name='travel' type='checkbox' maxnum=$config.maxnum value=$u.travel}-->
				<span id='dtravel' class='f_red'></span></td>
			  </tr>
			  <!-- 关注的节目 -->
			  <tr>
				<td class='hback_b'>关注的节目 <span class='f_red'></span></td>
				<td class='hback' id="em_attention_edit" colspan="3">
				<!--{hook mod='var' item='attention' name='attention' type='checkbox' maxnum=$config.maxnum value=$u.attention}-->
				<span id='dattention' class='f_red'></span></td>
			  </tr>
			  <!-- 娱乐休闲 -->
			  <tr>
				<td class='hback_b'>娱乐休闲 <span class='f_red'></span></td>
				<td class='hback' id="em_leisure_edit"  colspan="3">
				<!--{hook mod='var' item='leisure' name='leisure' type='checkbox' maxnum=$config.maxnum value=$u.leisure}-->
				 <span id='dleisure' class='f_red'></span></td>
			  </tr>
              <!-- 提交按钮 -->
			  <tr>
				<td class='hback'></td>
				<td class='hback' colspan="3">
				<a class="btn_b2 btn" href="###" onclick="$('#myform').submit();"><span>编辑保存</span></a>
				<a class="btn_b3 btn" href="<!--{$ucfile}-->?c=profile&a=monolog"><span>跳过</span></a>
				</td>
			  </tr>
	      </table>
		  </form>
	  </div>
	  <!--{/if}-->


	  <!-- 内心独白 -->
	  <!--{if $a eq 'monolog'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=profile">基本资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=more">详细资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=monolog" class="now">内心独白</a>
		<a href="<!--{$ucfile}-->?c=profile&a=contact">联系资料</a>
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> 向潜在的伴侣介绍一下自己，说说你对爱情的理解，以及对二人世界的期许。</div>

          <form name="myform" id="myform" action="<!--{$ucfile}-->?c=profile&a=savemonolog" method="post">
		  <table cellpadding='3' cellspacing='3' border='0' class='tab'>
		      <!-- 状态 -->
			  <tr>
				<td class="hback_b" width="15%">状 态</td>
				<td class="hback">
				<!--{if $u.molstatus==1}-->
				<img src="<!--{$tplpath}-->cp/images/ok.gif" /> <font color="green">正常</font>
				<!--{else}-->
				<img src="<!--{$tplpath}-->cp/images/no.gif"> <font color="#999999">锁定</font>
				<!--{/if}-->
				</td>
			  </tr>
			  <!-- 独白 -->
			  <tr>
				<td class='hback_b'>内心独白 <span class='f_red'>*</span></td>
				<td class='hback'>
				<textarea name='content' id='content' style='width:98%;height:200px;display:;overflow:auto;' onkeyup="changeNote();"><!--{$u.monolog}--></textarea>
				<br /><span id="dcontent" class="f_red"></span>
				</td>
			  </tr>
              <!-- 字数统计 -->
			  <tr>
				<td class="hback"></td>
				<td class="hback">限20~1500个字，目前已输入<strong id="has_write">0</strong>个，您还可以输入<strong id="will_write">1500</strong>个。</td>
			  </tr>
			  <tr>
				<td class="hback"></td>
				<td class="hback">
				<a class="btn_b2 btn" href="###" onclick="return checkmonolog();"><span>编辑保存</span></a>
				<a class="btn_b3 btn" href="<!--{$ucfile}-->?c=profile&a=contact"><span>跳过</span></a>
				</td>
			  </tr>
			  <!-- 温馨提示 -->
			  <tr>
				<td class="hback" colspan="2" align="left">
				温馨提示：<br />1、内心独白字数需在20~1500个字之内；<br />2、内心独白中请勿出现QQ、MSN、电话号码以及网址、广告、色情或其他不健康的内容；<br />3、修改保存后，我们将进行审核，通过了才能显示在个人资料页面。
				
				</td>
			  </tr>
	      </table>
		  </form>


	  </div>
	  <!--{/if}-->

	  <!-- 联系资料 -->
	  <!--{if $a eq 'contact'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=profile">基本资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=more">详细资料</a>
		<a href="<!--{$ucfile}-->?c=profile&a=monolog">内心独白</a>
		<a href="<!--{$ucfile}-->?c=profile&a=contact" class="now">联系资料</a>
	  </div>
      <div class="tb1 hy">
        <div class="htitle"> 为保证资料真实有效，灰色字体信息不得随意修改。</div>
          <form name="myform" id="myform" action="<!--{$ucfile}-->?c=profile" method="post">
		  <input type='hidden' name='a' id='a' value='savecontact' />
		  <table cellpadding='3' cellspacing='3' border='0' class='tab'>
			  <!-- 查看权限 -->
			  <tr style="display:;">
				<td class='hback_b' width='25%'>查看权限 <span class='f_red'></span></td>
				<td class='hback' width='75%'><input type="radio" name="privacy" id="privacy" value="1"<!--{if $u.privacy==1}--> checked<!--{/if}--> />任何人可见&nbsp;&nbsp;<input type="radio" name="privacy" id="privacy" value="2"<!--{if $u.privacy==2}--> checked<!--{/if}--> />登录会员可见&nbsp;&nbsp;<input type="radio" name="privacy" id="privacy" value="3"<!--{if $u.privacy==3}--> checked<!--{/if}--> />VIP会员可见&nbsp;&nbsp;<input type="radio" name="privacy" id="privacy" value="4"<!--{if $u.privacy==4}--> checked<!--{/if}--> />保密&nbsp;&nbsp; <span id='dprivacy' class='f_red'></span></td>
			  </tr>
			  <!-- 手机号码 -->
			  <tr>
				<td class='hback_b'><font color='red'>*</font>手机号 <span class='f_red'></span></td>
				<td class='hback' colspan="3">
				<input type='hidden' name='mobilerz' id='mobilerz' value='<!--{$u.mobilerz}-->' />
				<input type="text" name="mobile" id="mobile" value="<!--{$u.mobile}-->" maxlength='11' class="input-150"<!--{if $u.mobilerz==1 && !empty($u.mobile)}--> readonly='only'<!--{/if}--> /> 
				
				<!--{if $u.mobilerz == 1}-->
				<font color='green'>已通过认证，不能更改。</font>
				<!--{/if}-->
				<span id='dmobile' class='f_red'></span>
				(手机号码和QQ号码至少填写一项)
				</td>
			  </tr>
              <!-- QQ -->
			  <tr>
				<td class='hback_b'><font color='red'>*</font>QQ号 <span class='f_red'></span></td>
				<td class='hback' colspan="3"><input type="text" name="qq" id="qq" value="<!--{$u.qq}-->" class="input-150" maxlength='11' /> <span id='dqq' class='f_red'></span>  (手机号码和QQ号码至少填写一项)</td>
			  </tr>
			  <!-- 联系电话 -->
			  <tr>
				<td class='hback_b'>电话 <span class='f_red'></span></td>
				<td class='hback' colspan="3"><input type="text" name="telephone" id="telephone" value="<!--{$u.telephone}-->" class="input-100" /> <span id='dtelephone' class='f_red'></span></td>
			  </tr>

			  <!--  MSN -->
			  <tr>
				<td class='hback_b'>MSN <span class='f_red'></span></td>
				<td class='hback' colspan="3"><input type="text" name="msn" id="msn" value="<!--{$u.msn}-->" class="input-txt" /> <span id='dmsn' class='f_red'></span></td>
			  </tr>
			  <!-- 个人博客/微博 -->
			  <tr>
				<td class='hback_b'>个人博客/微博 <span class='f_red'></span></td>
				<td class='hback' colspan="3"><input type="text" name="homepage" id="homepage" value="<!--{$u.homepage}-->" class="input-txt" /> <span id='dhomepage' class='f_red'></span></td>
			  </tr>
			  <!-- 联系地址 -->
			  <tr>
				<td class='hback_b'>联系地址 <span class='f_red'></span></td>
				<td class='hback' colspan="3"><input type="text" name="address" id="address" value="<!--{$u.address}-->" class="input-txt" /> <span id='daddress' class='f_red'></span> </td>
			  </tr>
			  <!-- 邮政编码 -->
			  <tr>
				<td class='hback_b'>邮政编码 <span class='f_red'></span></td>
				<td class='hback' colspan="3"><input type="text" name="zipcode" id="zipcode" value="<!--{$u.zipcode}-->" class="input-s" /> <span id='dzipcode' class='f_red'></span> </td>
			  </tr>
			  <!-- 提交按钮 -->
			  <tr>
				<td class='hback'></td>
				<td class='hback' colspan="3">
				<a class="btn_b2 btn" href="###" onclick="return checkcontact();"><span>编辑保存</span></a>
				</td>
			  </tr>
	      </table>
		  </form>
	  </div>

		<script language="javascript">
		function checkcontact(){
			var mobile = $('#mobile').val();
			var qq = $('#qq').val();

			if (mobile == '' && qq == '') {
				alert('手机号码或者QQ至少填写一项');
				return false;
			}
			else {
				if (mobile != '') {
					if (!isMobile(mobile)) {
						alert('手机号码不正确！');
						return false;
					}
				}
				if (qq != '') {
					if (!isQQ(qq)) {
						alert('QQ号码格式不正确，请填写5-11位数字');
						return false;
					}
				}
			}
			$('#myform').submit();
			return true;
		}
		</script>

	  <!--{/if}-->
	
    </div>
    <div style="clear:both;"></div>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_footer.tpl"}-->
</body>
</html>
<script type="text/javascript">
//基本资料
function checkbase() {
	var t = "";
	var v = "";

	//所在地区
	t = "provinceid";
	v = $("#"+t).val();
	if(v=="") {
		dmsg("请选择所在地区", t);
		return false;
	}
	//所在地区
	t = "cityid";
	v = $("#"+t).val();
	if(v=="") {
		dmsg("请选择所在地区", t);
		return false;
	}

	//交友类型
	t = "lovekind";
	v = $("#"+t).val();
	if(v=="") {
		dmsg("请选择交友类别", t);
		return false;
	}

	//月薪
	t = "salary";
	v = $("#"+t).val();
	if(v=="") {
		dmsg("请选择月薪收入", t);
		return false;
	}
	
	$('#myform').submit();
	return true;
}

//内心独白
function checkmonolog() {
	var t = "";
	var v = "";

	//内心独白
	t = "content";
	v = $("#"+t).val();
	if(v=="") {
		dmsg("内心独白不能为空", t);
		return false;
	} else {
	    if(strlen(v)<20 || strlen(v)>1500) {
			dmsg("内心独白字数必须在2-~1500个字以内", t);
			return false;
		}
	}

	$('#myform').submit();
	return true;
}

</script>