<?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:variable name="isOwner" select="number(root/@isOwner)"/>

<xsl:variable name="show_method" select="number(root/@show_method)"/>

<xsl:variable name="comments" select="number(root/@comments)"/>

<xsl:variable name="digest" select="number(root/@digest)"/>

<xsl:variable name="pub_time" select="number(root/@pub_time)"/>

<xsl:variable name="reads" select="number(root/@reads)"/>

<xsl:variable name="hasPara" select="number(root/@hasPara)"/>

<xsl:variable name="blockid" select="number(root/@blockid)"/>

<xsl:variable name="dstmaster_id" select="number(root/@dstmaster_id)"/>

<xsl:variable name="dstblockid" select="number(root/@dstblockid)"/>

<xsl:variable name="subtype" select="root/@subtype"/>

<xsl:variable name="classname" select="root/@classname"/>



<xsl:template match="root">

<table width="100%" border="0" cellpadding="0" cellspacing="3">


<xsl:if test="$isOwner = 1">
   <tr>
	     <td colspan="2" align="right" valign="middle">
		   <br/>
		   <!--
		   <a href="javascript:void(0)" onclick="openWindow('Block_issuce_image_hall','','mods/image/issImageHall.xsl','','index.htm?module=block&amp;action=myblock&amp;act=blank_img','','true')">发相片</a>
		   -->
		   <a href="javascript:void(0)" onclick="start_editor('block_image',{$blockid})" class="F12_0759c9_L_B_U"><img border="0" src="images/common/issue_image2.gif" />发相片</a>
	     </td>
    </tr>
    <tr>
		 <td class="gk"></td>
	</tr>
</xsl:if>


<!--图片内容开始-->

  <tr>

    <td  align="center" valign="top">

		<xsl:choose>

			<xsl:when test="$show_method=2">		

				<xsl:call-template name="col"/>

			</xsl:when>

			<xsl:when test="$show_method=1">		

				<xsl:call-template name="row"/>

			</xsl:when>

			<xsl:otherwise>

				<xsl:call-template name="lantern"/>

			</xsl:otherwise>

		</xsl:choose>

	</td>

  </tr>


</table>

</xsl:template>

 

<xsl:template name="row">

	<table width="100%" border="0" cellpadding="0" cellspacing="0">

	   		<tr>

			<xsl:for-each select="list/item">

			 <xsl:if test="(position() mod 3) = 1">

			 	<xsl:element name="tr"/>

			 </xsl:if>

				<td width="4%">&#160;</td>

				<td align="center" valign="top" width="23%" height="83">

					<table width="100%" border="0" cellpadding="0" cellspacing="0">

						  <tr>

							<td align="center"><div class="Hall_photo" style="width:81px; height:75px">

		<a href="http://www.boogu.com/imageContent_{user_id}_{image_id}.html" target="_blank">

							<img src="{image_path}" onmouseout="hiddenToolTip();" onmousemove="showToolTip($('blockMyNewPho_{$blockid}_{image_id}').innerHTML,this)" />

							</a>

							

							<span style="display:none" id="blockMyNewPho_{$blockid}_{image_id}">

							  <table border="0" cellspacing="0" style="width:185px;background-color: #fcf4e4;">

								<tr>

								  <td>

									  <xsl:if test="$comments=1">

										评论数：<span class="F12_FF6600"><xsl:value-of select="comments"/></span>　

									  </xsl:if>

									  <xsl:if test="$reads=1">

										阅读数：<span class="F12_FF6600"><xsl:value-of select="hits"/></span>

									  </xsl:if>

								 </td>

								</tr>

								

								<tr>

								  <td height="25">发布时间：<xsl:value-of select="pub_time"/></td>

								</tr>

								

								<xsl:if test="$digest=1">

								<tr>

								  <td height="36"><xsl:value-of select="substring(info,1,30)"/></td>

								</tr>

								</xsl:if>

							  </table>

							</span>

							</div></td>

						  </tr>

						  

						  <tr>

							<td height="20" align="center">

							<div>

							<table width="100%" border="0" cellpadding="0" cellspacing="0">

								<tr>

									<td align="center">

									<a href="http://www.boogu.com/imageContent_{user_id}_{image_id}.html" class="InfoHint F12_000000" target="_blank"><xsl:value-of select="title"/></a>

									</td>

								</tr>

							</table>

							</div>

							</td>

						  </tr>				  

					</table>

				</td>

				<td width="6%">&#160;</td>

				

				</xsl:for-each> 

		  </tr>   

		  

		

	  

	 </table>

</xsl:template>





<xsl:template name="col">

<table width="100%" border="0" cellpadding="0" cellspacing="0">

	<xsl:for-each select="list/item">

		<tr>

			<td width="11" valign="middle">&#160;</td>

			<td valign="middle" align="center" class="Hall_photo1" width="81" height="75">	

			<a href="http://www.boogu.com/imageContent_{user_id}_{image_id}.html" target="_blank">

			<img align="middle" src="{image_path}"/>

			</a>

			</td>

			<td valign="middle" >

				<table width="100%" border="0" cellpadding="0" cellspacing="0">

				  <tr>

					<td width="8%" rowspan="3">&#160;</td>

					<td width="92%" height="20" class="F12_FF6600_L">

					<div class="autohidden_13">

					<a href="http://www.boogu.com/imageContent_{user_id}_{image_id}.html" class="InfoHint F12_000000" target="_blank"><xsl:value-of select="title"/></a>

					 &#160;&#160;&#160;&#160;&#160;<xsl:value-of select="pub_time"/>

					 </div>

					 </td>

				  </tr>

				  <xsl:if test="$digest=1">

				  <tr>

					<td height="19"><div class="autohidden_13"><xsl:value-of select="substring(info,1,30)"/></div></td>

				  </tr>

				  </xsl:if>

				  <tr>

					<td height="15">

					<div class="autohidden_13">

					<xsl:if test="$reads=1">阅读数：<xsl:value-of select="hits"/>&#160;&#160;&#160;&#160;&#160;</xsl:if><xsl:if test="$comments=1">评论数：<xsl:value-of select="comments"/></xsl:if>

					</div>

					</td>

				  </tr>

				</table></td>

		</tr>

		<tr>

			<td height="14"></td>

		</tr>	

	</xsl:for-each>

	</table>

</xsl:template>



<xsl:template name="lantern">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="list/item">
  <tr id="Block_{$blockid}_LanternSlide_{image_id}" style="display:none; width:100%">
        <td width="100%" height="30" align="center" class="F14_000000_B"><a href="http://www.boogu.com/imageContent_{user_id}_{image_id}.html" class="InfoHint F12_000000" target="_blank"><xsl:value-of select="title"/></a></td>
      </tr>

	

</xsl:for-each>	
	  
<tr>
        <td align="center"><div class="Hall_photo" ><img src="images/aaa/mrphoto.gif" border="0" style="display:none;cursor:pointer"  id="Block_{$blockid}_LanternSlide" /></div></td>
      </tr>
		

		<tr>

		  <td colspan="3" align="center">			  

			  <table width="100" border="0" align="center" cellpadding="0" cellspacing="0">

				<tr>

				  <td width="12%" height="31">&#160;</td>

				  <td width="8%"><img src="images/image/stop00.gif" id="Block_{$blockid}_LanternSlidePlayImg" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','stop',this)" /></td>

				  <td width="4%">&#160;</td>

				  <td width="15%"><img src="images/image/play003.gif" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','end')"/></td>

				  <td width="4%">&#160;</td>

				  <td width="9%"><img src="images/image/play002gif.gif" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','prev',this)" /></td>

				 <td width="4%">&#160;</td>

				  <td><img src="images/image/play001.gif" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','next',this)" /></td>

				</tr>

			  </table>				  

		  </td>

		</tr>

	
</table>
	<!--

      <table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">

        <tr>

          <td width="36"><img src="images/image/yz1.gif" width="36" height="24" /></td>

          <td align="center" valign="top" background="images/image/sss.gif"><img src="images/image/sbj00.gif" width="238" height="9" /></td>

          <td width="35"><img src="images/image/yy1.gif" width="35" height="24" /></td>

        </tr>

        <tr>

          <td height="275" background="images/image/zbj01.gif">&#160;</td>

          <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

              <tr>

                <td rowspan="3" width="26" height="239"><img src="images/image/hbz1.gif" /></td>

                <td height="3" background="images/image/top.gif"></td>

                <td rowspan="3" width="26" height="239"><img src="images/image/hby1.gif" /></td>

              </tr>

              <tr>

                <td height="233" align="center" bgcolor="#000000"><img src="" style=" visibility:hidden; cursor:pointer"  id="Block_{$blockid}_LanternSlide" /></td>

              </tr>

              <tr>

                <td background="images/image/bottom.gif" height="3"></td>

              </tr>

            </table>

              <table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">

                <tr>

                  <td width="12%" height="31">&#160;</td>

                  <td width="8%"><img src="images/image/stop00.gif" id="Block_{$blockid}_LanternSlidePlayImg" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','stop',this)" width="34" height="31" /></td>

                  <td width="4%">&#160;</td>

                  <td width="15%"><img src="images/image/play003.gif" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','end')" width="27" height="27" /></td>

                  <td width="9%"><img src="images/image/play002gif.gif" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','prev',this)" width="27" height="27" /></td>

                  <td><img src="images/image/play001.gif" style="cursor:pointer" onclick="pub_LanternSlideAction('{$blockid}','next',this)" width="27" height="27" /></td>

                </tr>

              </table>

          </td>

          <td background="images/image/ybj1.gif">&#160;</td>

        </tr>

        <tr>

          <td height="19" valign="bottom"><img src="images/image/yz2.gif" width="36" height="19" /></td>

          <td valign="bottom" background="images/image/hbx00.gif">&#160;</td>

          <td><img src="images/image/yy2.gif" width="35" height="19" /></td>

        </tr>

</table>-->

<script type="text/javascript" defer="defer">

	pub_LanternSlideInit('<xsl:value-of select="$blockid"/>',{

		imgs : [

				<xsl:for-each select="list/item">				

				['<xsl:value-of select="m_image_path"/>','<xsl:value-of select="image_id"/>','imageContent.html',

				'<xsl:value-of select="user_id"/>'],				

				</xsl:for-each>
				<xsl:if test="count(list/item)=0">['images/aaa/mrphoto.gif','','','','javascript:void(openWindow("Block_issuce_image_hall","","mods/image/issImageHall.xsl","","index.htm?module=block&amp;action=myblock&amp;act=blank_img","","true")	)']</xsl:if>

		],width : 228,height:210,second : 5

	});

	</script>

</xsl:template>

</xsl:stylesheet>