⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showart.xsl

📁 delphi资料大全ADO使用和数据导出.有助于delphi数据库的开发
💻 XSL
📖 第 1 页 / 共 2 页
字号:
</td></tr>
<tr><td bgcolor="#D2DEE2" height="1"></td></tr>
<tr><td bgcolor="#FFFFFF" height="1"></td></tr>
<tr><td align="center">
	<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;word-wrap:break-word;"  width="100%">
	<tr><td width="100%">
		<div id="art" width="100%" style="line-height: 150%; margin: 15px">

		<xsl:if test="/BLOG/BROWSER='MSIE'">
		<xsl:value-of select='BLOG/ATRICLE/CONTENT' disable-output-escaping="yes" />
		</xsl:if>
		<xsl:if test="/BLOG/BROWSER='OTHER'">
			<script language="javascript">
			document.getElementById("art").innerHTML="<xsl:value-of select='BLOG/ATRICLE/CONTENT' disable-output-escaping="yes" />"; 
			</script>
		</xsl:if>

		</div>
	</td></tr>
	</table>
</td></tr>
<tr><td height="25" align="center">
<font color="#02368D">创建于: <xsl:value-of select="BLOG/ATRICLE/UDATE" />,修改于: <xsl:value-of select="BLOG/ATRICLE/EDATE" />,已浏览<xsl:value-of select="BLOG/ATRICLE/CLICKS" />次,有评论<xsl:value-of select="BLOG/ATRICLE/COMMENTS" />条</font>
</td></tr>
</table>

	</td></tr>
	<tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_buttom.gif" border="0" alt="" /></td>
	<td bgcolor="#F3F3F3"></td>
	<td width="7" height="7"><img src="../../templates/tech/images/w_right_buttom.gif" border="0" alt="" /></td>
	</tr>
	</table>
</td></tr>
<tr><td width="11" height="11"><img src="../../templates/tech/images/g_left_bottom.gif" border="0" alt="" /></td>
<td bgcolor="#DDDDDD"></td>
<td width="11" height="11"><img src="../../templates/tech/images/g_right_bottom.gif" border="0" alt="" /></td>
</tr>
</table>


<br />

<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="100%">
<tr><td width="11" height="11"><img src="../../templates/tech/images/g_left_top.gif" border="0" alt="" /></td>
<td bgcolor="#DDDDDD" width="99%" height="11"></td>
<td width="11" height="11"><img src="../../templates/tech/images/g_right_top.gif" border="0" alt="" /></td>
</tr>

<tr><td colspan="3" width="100%" bgcolor="#DDDDDD" align="center" valign="top"> 
	<b>网友评论</b>

	<xsl:for-each select="BLOG/COMMENTS/COMMENT" >
	<br />
	<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="96%">
	<tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_top.gif" border="0" alt="" /></td>
	<td bgcolor="#F3F3F3" width="100%"></td>
	<td width="7" height="7"><img src="../../templates/tech/images/w_right_top.gif" border="0" alt="" /></td>
	</tr>
	<tr><td colspan="3"  bgcolor="#F3F3F3" align="center">

	<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;color:#02368D;" width="700" align="center">
	<tr height="25">
		<td width="25"><img src="../../templates/tech/images/dot.gif" width="8" height="8" border="0" alt="" /></td>
		<td width="120">网友:<b><xsl:value-of select="NICKNAME" /></b> </td><td width="555" align="right" style="color:#AAAAAA">时间:<xsl:value-of select="UDATE" />  &#32;&#32;IP地址:<xsl:value-of select="IP" />
	</td></tr>
<tr><td bgcolor="#D2DEE2" height="1" colspan="3"></td></tr>
<tr><td bgcolor="#FFFFFF" height="1" colspan="3"></td></tr>
	<tr>
	<td colspan="3">
		<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;word-wrap:break-word;" bordercolor="#111111" width="700">
		<tr><td valign="top" width="20"></td><td width="580">
			<pre style="line-height: 150%; margin: 0px;" wrap="break-word">
			<xsl:value-of select="CONTENT" />
			</pre>
		</td></tr>
		</table>

	</td>
	</tr>
	<tr><td height="15" colspan="3"></td></tr>
	</table>


	</td></tr>
	<tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_buttom.gif" border="0" alt="" /></td>
	<td bgcolor="#F3F3F3"></td>
	<td width="7" height="7"><img src="../../templates/tech/images/w_right_buttom.gif" border="0" alt="" /></td>
	</tr>
	</table>
	</xsl:for-each>

	<br />
	<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="96%">
	<tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_top.gif" border="0" alt="" /></td>
	<td bgcolor="#F3F3F3" width="100%"></td>
	<td width="7" height="7"><img src="../../templates/tech/images/w_right_top.gif" border="0" alt="" /></td>
	</tr>
	<tr><td colspan="3"  bgcolor="#F3F3F3" align="center">

	<iframe name="iframe_data" id="iframe_data" width="0" height="0" style="display:none;"></iframe>
	<form method="post" id="sortForm" action="../comment_insert.php" onsubmit="return check();" target="iframe_data">
	<input type="hidden" name="ctype" value="0" />
	<xsl:element name="input">
	<xsl:attribute name="type">hidden</xsl:attribute>
	<xsl:attribute name="id">iscomment</xsl:attribute>
	<xsl:attribute name="name">iscomment</xsl:attribute>
	<xsl:attribute name="value"><xsl:value-of select="/BLOG/ATRICLE/ISCOMMENT" /></xsl:attribute>
	</xsl:element>
	<xsl:element name="input">
	<xsl:attribute name="type">hidden</xsl:attribute>
	<xsl:attribute name="id">artid</xsl:attribute>
	<xsl:attribute name="name">artid</xsl:attribute>
	<xsl:attribute name="value"><xsl:value-of select="/BLOG/ATRICLE/ID" /></xsl:attribute>
	</xsl:element>
	<xsl:element name="input">
	<xsl:attribute name="type">hidden</xsl:attribute>
	<xsl:attribute name="id">userid</xsl:attribute>
	<xsl:attribute name="name">userid</xsl:attribute>
	<xsl:attribute name="value"><xsl:value-of select="/BLOG/USER_ID" /></xsl:attribute>
	</xsl:element>
	<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="700" align="center">

	<tr><td style="color:#0000CC;" height="25">
	 发表评论
	</td></tr>
	<tr><td height="25">
	<xsl:if test="/BLOG/ATRICLE/ISCOMMENT='1'">
	 昵称:<input type="text" name="nickname" id="nickname" size="30" value="" /> <input type="checkbox" onclick="if(nickname.value=='')nickname.value='本站网友'" id="noname" /><label for="noname">匿名</label>
	</xsl:if>
	<xsl:if test="/BLOG/ATRICLE/ISCOMMENT='0'">
	 用户名:<input type="text" name="username" id="username" size="15" value="" /> 密码:<input type="password" size="15" name="password" id="password" /> 本文不允许匿名评论
	</xsl:if>
	</td></tr>
	<tr><td>
	<textarea name="comment" id="comment" rows="5" cols="80" style="border:1px solid #999999;font-size:12px;font-family: Tahoma,Verdana,宋体,Fixedsys;line-height:150%;">
	</textarea> <input type="submit" value="提交" />
	</td></tr>
	</table>
	</form>

	<script language="javascript">
	function $(s){return document.getElementById(s);}
	function check(){

		if($("iscomment").value==0){
			if($("username").value==""){
				alert('请输入您的用户名!');
				$("username").select();
				return false;
			}
			if($("password").value==""){
				alert('请输入您的密码!');
				$("password").select();
				return false;
			}
		}else{
			if($("nickname").value==""){
				alert('请输入您的称呼!');
				$("nickname").select();
				return false;
			}
		}
		if($("comment").value==""){
			alert('你忘记输入内容了!');
			$("comment").select();
			return false;
		}
		return true;
	}


	</script>

	</td></tr>
	<tr><td width="7" height="7"><img src="../../templates/tech/images/w_left_buttom.gif" border="0" alt="" /></td>
	<td bgcolor="#F3F3F3"></td>
	<td width="7" height="7"><img src="../../templates/tech/images/w_right_buttom.gif" border="0" alt="" /></td>
	</tr>
	</table>

</td></tr>
<tr><td width="11" height="11"><img src="../../templates/tech/images/g_left_bottom.gif" border="0" alt="" /></td>
<td bgcolor="#DDDDDD"></td>
<td width="11" height="11"><img src="../../templates/tech/images/g_right_bottom.gif" border="0" alt="" /></td>
</tr>
</table>















</td></tr>
</table>
</center>
</xsl:element>
</html>
  </xsl:template>

  <xsl:template match="div">
    <xsl:copy-of select="."/>
  </xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -