<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="../../templates/green/index.css"></link>
<title> <xsl:value-of select="BLOG/BLOG_NAME" /> </title>
<script language="javascript">
try{
top.document.title="<xsl:value-of select="BLOG/BLOG_NAME" />";
}catch(e){
}
</script>
</head>
<xsl:element name="body">
<xsl:attribute name="leftmargin">0</xsl:attribute>
<xsl:attribute name="topmargin">0</xsl:attribute>
<xsl:attribute name="marginwidth">0</xsl:attribute>
<xsl:attribute name="marginheight">0</xsl:attribute>
<xsl:attribute name="style">background:<xsl:value-of select="BLOG/STYLE_BODYCOLOR" />;background-image:url(<xsl:value-of select="BLOG/STYLE_BODYBGIMAGE" />)</xsl:attribute>
<xsl:attribute name="align">center</xsl:attribute>
<div width="100%" height="25" id="cutoolbar"></div><script src="/js/toolbar.js"></script>
<center>
<xsl:element name="table">
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="cellspacing">0</xsl:attribute>
<xsl:attribute name="cellpadding">0</xsl:attribute>
<xsl:attribute name="style">border-collapse: collapse;background-image:url(<xsl:value-of select="BLOG/STYLE_TOPBGIMAGE" />);background-repeat: <xsl:value-of select="BLOG/STYLE_TOPBGREPEAT" /></xsl:attribute>
<xsl:attribute name="width">100%</xsl:attribute>
<xsl:attribute name="bgcolor"><xsl:value-of select="BLOG/STYLE_TOPCOLOR" /></xsl:attribute>
<xsl:attribute name="height">143</xsl:attribute>
<tr><td width="360"></td><td align="center" width="500" >
<p style="line-height: 150%; margin: 5px">
<font style="font-size:14pt" color="#FFFFFF"><b><xsl:value-of select="BLOG/BLOG_NAME" /></b></font></p>
</td><td width="360">
<xsl:if test="/BLOG/BLOG_BRIEF!=''">
<div id="blogbrief"></div>
<script language="javascript">
document.getElementById("blogbrief").innerHTML="<xsl:value-of select='/BLOG/BLOG_BRIEF' disable-output-escaping="yes" />";
</script>
</xsl:if>
</td></tr>
</xsl:element>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr><td height="3"></td> </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="100%" background="../../templates/green/images/bg_menu.gif" height="27" bgcolor="#FFFFFF">
<tr><td width="30" align="center"><img src="../../templates/green/images/img_menu_left.gif" border="0" alt="" width="26" height="29" /></td><td> 
<xsl:if test="/BLOG/DOMAIN!=''">
<xsl:element name="a">
<xsl:attribute name="href">http://<xsl:value-of select="/BLOG/DOMAIN" />.cublog.cn</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:attribute name="class">list1</xsl:attribute>
<xsl:value-of select="/BLOG/DOMAIN" />.cublog.cn
</xsl:element>
</xsl:if>
</td><td align="right" style="color:#2A5200">
<a href="index.php" class="list1">首页</a> |
<a href="article.php" class="list1">文章</a> |
<a href="photo.php" class="list1">相册</a> |
<a href="links.php" class="list1">收藏夹</a> |
<a href="guestbook.php" class="list1">留言</a>
</td>
<td width="10"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr><td height="3"></td> </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="100%">
<tr><td width="225" bgcolor="#EDF2E3" valign="top" align="center">
<br /><font color="#2A5200" style="font-size:11pt"><b>关于作者</b></font><br />
<img src="../../templates/green/images/line2.gif" border="0" alt="" /><br /><br />
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="BLOG/UP_PIC" /></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">up_user_pre.jpg</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
</xsl:element>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;word-wrap:break-word;" width="200">
<tr><td width="200">
<pre style="line-height: 150%; margin: 5px;" width="25">
<xsl:value-of select="BLOG/BLOG_INFO" />
</pre>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="204">
<tr><td height="34" background="../../templates/green/images/bg_item.gif" style="color:#FFFFFF" align="center"><b>我的分类</b></td></tr>
<tr><td>
<script src="../../templates/green/tree.js" ></script>
<div style="overflow:auto;scrollbar-face-color: #EEEEEE;scrollbar-highlight-color: #FFFFFF;scrollbar-shadow-color: #CCCCCC;scrollbar-3dlight-color: #D1D7DC;scrollbar-arrow-color:#006699;scrollbar-track-color: #CCCCCC;scrollbar-darkshadow-color: #EEDFE7;" id="lefttree"></div>
<script language="javascript">
ContentsTree = new CTree("ContentsTree");
ContentsTree.bAutoClose = false;
ContentsTree.stTarget = "";
a0 = ContentsTree.AddNode(null, "我的文章分类", "article.php");
a0.bOpen=true;
p0 = ContentsTree.AddNode(null, "我的图片分类", "photo.php");
p0.bOpen=true;
f0 = ContentsTree.AddNode(null, "我的链接分类", "links.php");
f0.bOpen=true;
<xsl:for-each select="BLOG/ARTILCE_CLASS/ATRICLE_CLASS_ITEM" >
a<xsl:value-of select="ID" /> = ContentsTree.AddNode(a<xsl:value-of select="PID" />, "<xsl:value-of select="TITLE" />", "article.php?frmid=<xsl:value-of select="ID" />");
</xsl:for-each>
<xsl:for-each select="BLOG/PHOTO_CLASS/PHOTO_CLASS_ITEM" >
p<xsl:value-of select="ID" /> = ContentsTree.AddNode(p<xsl:value-of select="PID" />, "<xsl:value-of select="TITLE" />", "photo.php?frmid=<xsl:value-of select="ID" />");
</xsl:for-each>
<xsl:for-each select="BLOG/FAVORITES_CLASS/FAVORITES_CLASS_ITEM" >
f<xsl:value-of select="ID" /> = ContentsTree.AddNode(f<xsl:value-of select="PID" />, "<xsl:value-of select="TITLE" />", "links.php?frmid=<xsl:value-of select="ID" />");
</xsl:for-each>
//document.write(ContentsTree.GetHTMLCode());
document.getElementById("lefttree").innerHTML=ContentsTree.GetHTMLCode();
</script>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="204">
<tr><td height="34" background="../../templates/green/images/bg_item.gif" style="color:#FFFFFF" align="center"><b>最新文章</b></td></tr>
<tr><td>
<table border="0" cellspacing="0" cellpadding="0" id="newarticle" style="border-collapse: collapse" width="204">
<xsl:for-each select="BLOG/NEWARTILCES/ATRICLE" >
<tr><td width="30" align="right">·</td><td width="180">
<xsl:element name="a">
<xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
<xsl:attribute name="class">listtree</xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
<xsl:value-of select="TITLE" />
</xsl:element>
</td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
</xsl:for-each>
</table>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="204">
<tr><td height="34" background="../../templates/green/images/bg_item.gif" style="color:#FFFFFF" align="center"><b>最新收藏</b></td></tr>
<tr><td>
<table border="0" cellspacing="0" cellpadding="0" id="newarticle" style="border-collapse: collapse" width="204">
<xsl:for-each select="BLOG/LINKS/LINK" >
<tr><td width="30" align="right" valign="top">·</td><td width="190">
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="URL" /></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:attribute name="class">listtree</xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="TITLE" /></xsl:attribute>
<xsl:value-of select="TITLE" />
</xsl:element>
</td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
</xsl:for-each>
</table>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="204">
<tr><td height="34" background="../../templates/green/images/bg_item.gif" style="color:#FFFFFF" align="center"><b>统计信息</b></td></tr>
<tr><td>
<table border="0" cellspacing="0" id="countinfo" cellpadding="0" style="border-collapse: collapse" width="200">
<tr><td width="30" align="right">·</td><td width="170">总访问量:<xsl:value-of select="BLOG/CLICKS" /></td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
<tr><td width="30" align="right">·</td><td width="170">文章个数:<xsl:value-of select="BLOG/ARICLES" /></td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
<tr><td width="30" align="right">·</td><td width="170">评论条数:<xsl:value-of select="BLOG/COMMENTS" /></td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
<tr><td width="30" align="right">·</td><td width="170">留言条数:<xsl:value-of select="BLOG/GUESTBOOKS" /></td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
<tr><td width="30" align="right">·</td><td width="170">网友推荐:<xsl:element name="img">
<xsl:attribute name="src">../../templates/green/images/star<xsl:value-of select="BLOG/STAR" />.gif</xsl:attribute>
<xsl:attribute name="title">共被网友推荐 <xsl:value-of select="BLOG/STARNUMBER" /> 次</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element></td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
</table>
</td></tr>
</table>
<br />
<xsl:element name="a">
<xsl:attribute name="href">../rss.php?id=<xsl:value-of select="BLOG/USER_ID" /></xsl:attribute>
<xsl:attribute name="class">list1</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<img src="../../templates/default/images/xmlrss.gif" border="0" alt="" />
</xsl:element>
<br /><br />
</td><td width="5"></td><td valign="top" width="60%">
<xsl:for-each select="BLOG/ARTILCES/ATRICLE" >
<table border="1" cellspacing="1" cellpadding="0" style="border-collapse: collapse;word-wrap:break-word;table-layout: fixed" bordercolor="#7BA531" width="100%">
<tr><td height="25" bgcolor="#E5EEC5"><p style="line-height: 150%; margin: 5px">
<xsl:element name="a">
<xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
<xsl:attribute name="class">list1</xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
<font style="font-size:10pt" color="#2A5200"><b><xsl:value-of select="TITLE" /></b></font>
</xsl:element></p>
</td></tr>
<tr><td height="1" bgcolor="#FFFFFF"></td></tr>
<tr><td bgcolor="#EFEBDE">
<xsl:element name="div">
<xsl:attribute name="id">art<xsl:value-of select="ID" /></xsl:attribute>
<xsl:attribute name="style">height:100%; margin: 5px;</xsl:attribute>
</xsl:element>
<script language="javascript">
var tid=<xsl:value-of select="ID" />;
document.getElementById("art"+tid).innerHTML="<xsl:value-of select='CONTENT' disable-output-escaping="yes" />";
</script>
<p style="line-height: 150%; margin: 5px" align="right">
<xsl:element name="a">
<xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
<xsl:attribute name="class">list1</xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
<font style="font-size:10pt" color="#02368D"><b>查看全文</b></font><br />
</xsl:element>
发表于:<xsl:value-of select="UDATE" /> ┆
<xsl:element name="a">
<xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
<xsl:attribute name="class">list1</xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
阅读(<xsl:value-of select="CLICKS" />)
</xsl:element> ┆
<xsl:element name="a">
<xsl:attribute name="href">showart.php?id=<xsl:value-of select="ID" /></xsl:attribute>
<xsl:attribute name="class">list1</xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
评论(<xsl:value-of select="COMMENTS" />)
</xsl:element>
</p>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="100%">
<tr><td height="3"></td></tr>
</table>
</xsl:for-each>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="478">
<tr><td> </td></tr>
</table>
</td><td width="5"></td><td width="230" valign="top" bgcolor="#E4F1DF" align="center">
<br />
<table bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" style="border-collapse: collapse;border: 1px solid #FCFCF5; padding: 1" align="center" width="200" border="0">
<tr height="20" bgcolor="#E5EEC5">
<td align="center" width="14" style="cursor: hand; color: #2A5200;font-size:9pt;" title="上一年" onclick="pushBtm('YU')">||</td>
<td align="center" width="14" style="cursor: hand; color: #2A5200;font-size:9pt" title="上一月" onclick="pushBtm('MU')"><<</td>
<td align="center" nowrap="nowrap" id="YMBG" style="color: #2A5200;font-size:9pt"></td>
<td align="center" nowrap="nowrap" id="GZ" style="color: #2A5200;font-size:9pt"></td>
<td align="center" width="14" style="cursor: hand; color: #2A5200;font-size:9pt" title="下一月" onclick="pushBtm('MD')">>></td>
<td align="center" width="14" style="cursor: hand; color: #2A5200;font-size:9pt" title="下一年" onclick="pushBtm('YD')">||</td>
</tr>
<tr><td colspan="6">
<div id="ttdiv" align="center" width="223"></div>
</td></tr>
<tr><td colspan="6" height="1"></td></tr>
</table>
<script src="../../templates/green/mdate.js" ></script>
<script language="javascript">
var arrArtdate=new Array(<xsl:value-of select="/BLOG/DateItems" />);
initial("ttdiv");
</script>
<br />
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="204">
<tr><td height="34" background="../../templates/green/images/bg_item.gif" style="color:#FFFFFF" align="center"><a href="guestbook.php" title="转到留言板" class="list2"><b>最新留言</b></a></td></tr>
<tr><td>
<table border="0" cellspacing="0" cellpadding="0" id="newguestbook" style="border-collapse: collapse;word-wrap:break-word;" width="100%">
<xsl:for-each select="BLOG/GUESTBOOKS/COMMENT" >
<tr><td width="30" align="right" valign="top">·</td><td width="190">
<xsl:value-of select="NICKNAME" /><br />
<a href="guestbook.php" title="转到留言板" class="list1"><font color="#02368D"><xsl:value-of select="CONTENT" /></font></a>
</td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/right_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
</xsl:for-each>
<tr><td colspan="2" 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/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">0</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="200" align="center">
<tr><td height="25">
<xsl:if test="/BLOG/ISCOMMENT='1'">
昵称:<input type="text" name="nickname" id="nickname" size="10" value="" /> <input type="checkbox" onclick="if(nickname.value=='')nickname.value='本站网友'" id="noname" /><label for="noname">匿名</label>
</xsl:if>
<xsl:if test="/BLOG/ISCOMMENT='0'">
用户名<input type="text" name="username" id="username" size="4" value="" />密码<input type="password" size="4" name="password" id="password" />
</xsl:if>
</td></tr>
<tr><td align="center">
<textarea name="comment" id="comment" rows="5" cols="30" 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 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>
</table>
</td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" width="204">
<tr><td height="34" background="../../templates/green/images/bg_item.gif" style="color:#FFFFFF" align="center"><b>最新评论</b></td></tr>
<tr><td>
<table border="0" cellspacing="0" cellpadding="0" id="newcomment" style="border-collapse: collapse" width="100%">
<xsl:for-each select="BLOG/COMMENTS/COMMENT" >
<tr><td width="30" align="right" valign="top">·</td><td width="190">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="CTYPE='1'">
showphoto.php?id=<xsl:value-of select="PID" />
</xsl:when>
<xsl:otherwise>
showart.php?id=<xsl:value-of select="PID" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="/BLOG/STYLE_TARGET" /></xsl:attribute>
<xsl:attribute name="class">list1</xsl:attribute>
<xsl:attribute name="title">查看被评论的文章</xsl:attribute>
<font color="#02368D"><xsl:value-of select="CONTENT" /></font>
</xsl:element>
</td></tr>
<tr><td colspan="2"><img src="../../templates/green/images/left_line.gif" border="0" width="185" height="5" alt="" /></td></tr>
</xsl:for-each>
</table>
</td></tr>
</table>
</td></tr>
</table>
</center>
</xsl:element>
</html>
</xsl:template>
<xsl:template match="div">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>