<?xml version="1.0"  encoding="gb2312"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output encoding="gb2312" omit-xml-declaration="yes" />

<xsl:strip-space elements="*"/> 

<xsl:template match="root">

<xsl:variable name="blockid" select="number(@blockid)"/>

<xsl:variable name="isOwner" select="number(@isOwner)"/>

<xsl:variable name="showInfo" select="generate-id(node)"/>	

<table width="100%" border="0" cellspacing="0" cellpadding="3">

	<tr>

	  <td width="19%"><div class="Hall_photo"><img id="blockUserLogoImg{$blockid}" width="75"  />

	  <script defer="defer">	

			$('blockUserLogoImg<xsl:value-of select="$blockid"/>').onerror = function(){

			  this.onerror=null;

			  this.src=hallClass.defaultPersonImg;

		  }

		  $('blockUserLogoImg<xsl:value-of select="$blockid"/>').src = '<xsl:value-of select="content/picture"/>?rnd=' + Math.random();

		  //alert( $('blockUserLogoImg<xsl:value-of select="$blockid"/>').src)

		  

		

	  </script>

	  </div></td>

	  <td width="81%">昵称：<span class="F12_484848"><xsl:value-of select="content/nickname"/></span><br/>

		性别：<span class="F12_484848"><xsl:value-of select="content/sex"/></span><br/>

		生日：<span class="F12_484848">

		<xsl:choose>

			<xsl:when test="number(node/birthday2)=1"><xsl:value-of select="content/birthday"/></xsl:when>

			<xsl:otherwise>保密</xsl:otherwise>

		</xsl:choose>

		</span><br/>

		

		职业：<span class="F12_484848" id="hallpersonDataContentWork{$blockid}"></span><br/>

		<script type="text/javascript" defer="defer">

		<xsl:choose>

			<xsl:when test="$showInfo = '' or number(node/work2)=1">					

					hallClass.getWork('<xsl:value-of select="content/work"/>',function(pWork){

						var tObj = $('hallpersonDataContentWork<xsl:value-of select="$blockid"/>');	

						tObj.innerHTML = pWork;

					});				

			</xsl:when>

			<xsl:otherwise>			

				$('hallpersonDataContentWork<xsl:value-of select="$blockid"/>').innerHTML='保密';			

			</xsl:otherwise>

		</xsl:choose>

		</script>		

		<xsl:if test="$isOwner=1">

			<br/>

		  	<a href="javascript:void(0)">

			<xsl:attribute name="onclick">createModelWin('menuaccount',{xlt:'mods/member/account.xsl',width:400,height:300});</xsl:attribute>

			<img src="images/hall/hk_012.gif" width="97" height="21" border="0" /></a>
            &#160;
			<img src="images/common/scrip_email.gif" width="19" height="20" border="0" />
			<a href="javascript:void(0)" class="F12_FF6600_L" >
			<xsl:attribute name="onclick">createModelWin('Scrip_Manage_Block_Invite',{xlt:'mods/scrip/manage.xsl',width:600,height:50,top:50});</xsl:attribute>纸条信箱</a>
	  	</xsl:if>

	  </td>

	</tr>

	<tr>

	  <td colspan="2"><span class="F12_000000_B" style=":">个性签名：</span><span class="F12_484848_L" id="test"><xsl:value-of select="content/myself"/></span>

	  <a href="" onclick="this.href='personDataPar.html?master_id=' + hallClass.hallId.master_userid" target="_blank" class="F12_FF6600_L">[详细资料]</a><br/>

		<br/>

		<xsl:if test="$isOwner!=1"> 

			<a class="F12_0759c9_L" href="javascript:void(0);" onclick="pub_addInvite('{content/user_id}',5)">邀请访问客厅</a> 

			| <a href="javascript:void(0);" onclick="pub_addFriend('{content/user_id}')" class="F12_0759c9_L">加为好友</a> 
			|
			<img src="images/common/scrip_send.gif" width="32" height="20" border="0" />
         <a href="javascript:void(0)" class="F12_0759c9_L" onclick="pub_showScrip('{content/user_id}');">给我留纸条</a>	

		</xsl:if>

		</td>

	</tr>

  </table>

</xsl:template>

</xsl:stylesheet>

