skin0_read.ftl
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:19k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  5. <title>${blog.blogname}</title>
  6. <style type="text/css">
  7. <!--
  8. body {
  9. font-family: "Verdana", "Tahoma","宋体";
  10. font-size: 9pt;
  11. }
  12. table {
  13. font-family: "Verdana", "Tahoma","宋体";
  14. font-size: 9pt;
  15. }
  16. .FONT1 {
  17. font-family: "Verdana", "Tahoma","宋体";
  18. font-size: 14px;
  19. }
  20. a            { color: #990000; text-decoration: none }
  21. a:link       { text-decoration: none; color: #990000 }
  22. a:visited    { text-decoration: none; color: #990000 }
  23. a:hover      { text-decoration: underline; color: #FF0000 }
  24. a:active     { text-decoration: underline; color: #FF0000 }
  25. .INPUT1{font-family:Verdana,Tahoma,宋体; font-size: 12px;border: 1px solid #999999;}
  26. select,Textarea{font-family:Tahoma,Verdana,宋体; font-size: 12px;border: 1px solid #999999;}
  27. .TD1 {
  28. line-height: 30px;
  29. }
  30. .BUTTN-FIX
  31. {
  32. BACKGROUND-COLOR:#e0e0d5;
  33. font-size: 12px;
  34. border-top-width: 1px;
  35. border-right-width: 1px;
  36. border-bottom-width: 1px;
  37. border-left-width: 1px;
  38. border-top-style: ridge;
  39. border-right-style: ridge;
  40. border-bottom-style: ridge;
  41. border-left-style: ridge;
  42. border-top-color: #FFFFFF;
  43. border-left-color: #FFFFFF;
  44. font-family: "Arial", "Helvetica", "sans-serif";
  45. border-right-color: #CCCCCC;
  46. border-bottom-color: #CCCCCC;
  47. width: 80px;
  48. height: 20px;
  49. }
  50. .BUTTN-FIX1
  51. {
  52. BACKGROUND-COLOR:#e0e0d5;
  53. font-size: 12px;
  54. border-top-width: 1px;
  55. border-right-width: 1px;
  56. border-bottom-width: 1px;
  57. border-left-width: 1px;
  58. border-top-style: ridge;
  59. border-right-style: ridge;
  60. border-bottom-style: ridge;
  61. border-left-style: ridge;
  62. border-top-color: #FFFFFF;
  63. border-left-color: #FFFFFF;
  64. font-family: "Arial", "Helvetica", "sans-serif";
  65. border-right-color: #CCCCCC;
  66. border-bottom-color: #CCCCCC;
  67. height: 20px;
  68. }
  69. .INPUT2 {
  70. font-family: "Verdana", "Tahoma", "宋体";
  71. font-size: 12px;
  72. border-bottom-style: dotted;
  73. border-top-width: 0px;
  74. border-right-width: 0px;
  75. border-bottom-width: 1px;
  76. border-left-width: 0px;
  77. border-bottom-color: #999999;
  78. }
  79. p {
  80. line-height: 16pt;
  81. }
  82. -->
  83. </style>
  84. <style type="text/css">
  85. <!--
  86. .today {  background-color: #CCD5D7; font-weight: bold; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
  87. .hasrecord { background-color: #DBE1E3 ; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
  88. .cc {  font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
  89. .hd {  cursor: hand; font-size: 8pt; font-family: "Georgia", "Times New Roman", "Times", "serif"}
  90. .mainddbg {  background-color: #cccccc}
  91. .headbg {  background-color: #6694DF}
  92. .datehead {  color: #FFFFFF}
  93. .eachdaytext {  color: #000000}
  94. .eachdaybg {  background-color: #F5F5F5}
  95. .weekday{  font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
  96. -->
  97. </style>
  98. </head>
  99. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  100. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  101.   <tr bgcolor="#B03900">
  102.     <td width="75%" height="43"> <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
  103.         <tr>
  104.           <td><strong><font size="4">${blog.blogname}</font></strong></td>
  105.         </tr>
  106.       </table></td>
  107.     <td width="25%"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  108.         <tr>
  109.           <td><div align="center"><strong><font color="#FFFFFF">[<a href="${blog.username}"><font color="#FFFFFF">首页</font></a>][申请][帮助]</font></strong></div></td>
  110.         </tr>
  111.       </table></td>
  112.   </tr>
  113. </table>
  114. <table width="100%" border="0" cellpadding="0" cellspacing="5" bgcolor="#F5F5F5">
  115.   <tr>
  116.     <td width="75%" height="65" bgcolor="#D1D1D1"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  117.         <tr>
  118.           <td>${blog.description}</td>
  119.         </tr>
  120.       </table> </td>
  121.     <td width="25%" bgcolor="#E4E4E4"><div align="center"></div></td>
  122.   </tr>
  123.   <tr>
  124.     <td valign="top"><table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
  125.         <tr>
  126.           <td>
  127.           <table width="100%" border="0" cellpadding="3" cellspacing="0">
  128.   <tr>
  129.   <td><div align="right" class="FONT1"><strong><font color="#006666">${art.postdate}</font></strong></div></td>
  130.   </tr>
  131.   <tr>
  132.   <td class="FONT1"><strong><font color="#336699">${art.title}</font></strong></td>
  133.   </tr>
  134.   <tr>
  135.   <td>
  136.   <#if art.face = 0>
  137.             <#if art.faceplace = 0>
  138.               <img src="images/${art.faceid}.gif" align="left">
  139.             <#else>
  140.               <img src="images/${art.faceid}.gif" align="right">
  141.             </#if>
  142.             </#if>
  143.             <p style="line-height: 16pt">
  144.               ${art.content}
  145.             </p>
  146.             <#if art.usesign == 0>
  147.             <br>----------------<br>
  148.             ${art.sign?default("")}
  149.             </#if>
  150.   </td>
  151.   </tr>
  152.   <tr>
  153.   <td height="16"><font color="#999999">${art.username} 发表于</font> <font color="#3E3EBB" size="1">&gt;${art.posttime?string("yyyy-MM-dd HH:mm:ss")}</font> <img src="images/saveas.gif" width="16" height="16" align="absmiddle">
  154.                   [${art.commentnum}条评论] [<a href="${blog.username}">回到主页</a>]</td>
  155. </tr>
  156. </table>
  157. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  158. <tr>
  159. <td height="1" background="images/xu.gif"></td>
  160. </tr>
  161. </table>
  162.         <#if art.opencomment = 0>
  163. <table width="100%" border="0" cellpadding="3" cellspacing="0">
  164.               <tr>
  165.                 <td>&nbsp;</td>
  166.               </tr>
  167.               <tr>
  168.                 <td ><strong>评论/留言</strong> 我要留言</td>
  169.               </tr>
  170.               <tr>
  171.                 <td>
  172.                   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  173.                     <#list artnotes as noter>
  174.                       <tr><td><hr size="1" noshade></td></tr>
  175.                       <tr>
  176.                         <td height="19">
  177.                           作者:${noter.name}&nbsp;&nbsp;
  178.                           <a href="${noter.homepage?default("###")}" target='_blank'>个人主页</a>&nbsp;&nbsp;
  179.                           <a href="mailto:${noter.email?default("")}">给我发信</a>
  180.                         </tr>
  181.                         <tr>
  182.                           <td>
  183.                             <p style="line-height: 16pt">
  184.                             ${noter.content?replace("n","<BR/>")}
  185.                             </p>
  186.                           </td>
  187.                         </tr>
  188.                     </#list>
  189.                   </table>
  190. </td>
  191.               </tr>
  192.   <tr>
  193.                 <td>&nbsp;</td>
  194.               </tr>
  195.               <tr>
  196.                 <td><form name="noteForm" method="post" action="note.do">
  197. <INPUT TYPE="hidden" name="action" value="add">
  198. <INPUT TYPE="hidden" name="blogid" value="${art.blogid}">
  199. <INPUT TYPE="hidden" name="artid" value="${art.id}">
  200.                 <INPUT TYPE="hidden" name="username" value="${blog.username}">
  201. <table width="100%" border="0" cellspacing="1" cellpadding="8" id=subm style="border: 1px #999999 dotted">
  202.                     <tr>
  203.                       <td width="19%"><div align="right"><a name="addnote">姓名:</a></div></td>
  204.                       <td width="81%"><input name="name" type="text" class="INPUT1" size="50"> <font color="#FF0000">*</font></td>
  205.                     </tr>
  206.                     <tr>
  207.                       <td><div align="right">Email:</div></td>
  208.                       <td><input name="email" type="text" class="INPUT1" size="50"></td>
  209.                     </tr>
  210.                     <tr>
  211.                       <td><div align="right">个人主页:</div></td>
  212.                       <td><input name="homepage" type="text" class="INPUT1" value="http://" size="50"></td>
  213.                     </tr>
  214.                     <tr>
  215.                         <td valign="top">
  216.                           <div align="right">留言:</div></td>
  217.                       <td><textarea name="content" cols="60" rows="7"></textarea> <font color="#FF0000">*</font></td>
  218.                     </tr>
  219.                     <tr>
  220.                       <td><div align="right">验证码:</div></td>
  221.                       <td>
  222.                         <input name="authCode" type="text" class="INPUT1" size="5">
  223.                         <img alt="验证码" src="auth/authimg" />
  224.                       </td>
  225.                     </tr>
  226.                     <tr>
  227.                       <td>&nbsp;</td>
  228.                       <td><input name="Submit" type="submit" class="BUTTN-FIX1" value=" 提交 ">
  229.                           <input name="Submit2" type="reset" class="BUTTN-FIX1" value=" 重置 "></td>
  230.                     </tr>
  231.                   </table>
  232.                   </form>
  233.                   </td>
  234.               </tr>
  235.             </table>
  236.     </#if>
  237.   </td>
  238.         </tr>
  239.         <tr>
  240.           <td><div align="center"></div></td>
  241.         </tr>
  242.       </table></td>
  243.     <td valign="top">
  244.       <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
  245.         <tr>
  246.           <td><div align="center">:我的日历:</div></td>
  247.         </tr>
  248.         <tr>
  249.           <td>
  250.             <div align="center">
  251.               <span id=cc style="width:190"></span>
  252.               <script language=javascript>
  253.                 //showcc函数中dd参数表示mm月的天数,默认为1
  254.                 function showlink(dt,dm)
  255.                 {
  256.                   dc=dt;
  257.                   dt=dt+",";
  258.                   var strpostdd="${postdates}";
  259.                   d = new Date();
  260.                   if(strpostdd.indexOf(dt)!=-1)
  261.                   {
  262.                     if(dm!=d.getDate())
  263.                     return "<div class=hasrecord><a href=blogList.do?action=showdate&blogid=${blog.id}&username=${blog.username}&date="+dc+"><font class=eachdaytext>"+dm+"</font></a></div>";
  264.                     else
  265.                     {
  266.                       if (dm>d.getDate())
  267.                       {
  268.                         return "<span class=cc>"+dm+"</span>";
  269.                       }
  270.                       else
  271.                       {
  272.                         return "<div class=today><a href=blogList.do?action=showdate&blogid=${blog.id}&username=${blog.username}&date="+dc+" ><font class=eachdaytext>"+dm+"</font></a></div>";
  273.                       }
  274.                     }
  275.                   }
  276.                   else
  277.                   {
  278.                     if(dm==d.getDate())
  279.                     return "<div class=today>"+dm+"</span>";
  280.                     else
  281.                     return "<span class=cc>"+dm+"</span>";
  282.                   }
  283.                 }
  284.                 function showcc(yy,mm,dd)
  285.                 {
  286.                   mm--;
  287.                   var arrdd=new Array(31,28,31,30,31,30,31,31,30,31,30,31);
  288.                   if(dd==1)
  289.                   dd=arrdd[mm];
  290.                   switch(mm)
  291.                   {
  292.                     case 0:strmm="January"
  293.                     break;
  294.                     case 1:strmm="February"
  295.                     break;
  296.                     case 2:strmm="March"
  297.                     break;
  298.                     case 3:strmm="April"
  299.                     break;
  300.                     case 4:strmm="May"
  301.                     break;
  302.                     case 5:strmm="June"
  303.                     break;
  304.                     case 6:strmm="July"
  305.                     break;
  306.                     case 7:strmm="August"
  307.                     break;
  308.                     case 8:strmm="September"
  309.                     break;
  310.                     case 9:strmm="October"
  311.                     break;
  312.                     case 10:strmm="November"
  313.                     break;
  314.                     case 11:strmm="December"
  315.                     break;
  316.                   }
  317.                   var thisyear=yy;
  318.                   var thismonth=mm;
  319.                   var lastday=dd;
  320.                   if(thismonth==1)
  321.                   {
  322.                     if (thisyear%4==0 || (thisyear%100==0 && thisyear%400==0))
  323.                     {
  324.                       lastday=29;
  325.                       arrdd[1]=29;
  326.                     }
  327.                     else
  328.                     {
  329.                       lastday=28;
  330.                       arrdd[1]=28;
  331.                     }
  332.                   }
  333.                   tempyy=yy-1;
  334.                   if(mm!=1)
  335.                   tempmm=mm;
  336.                   else
  337.                   tempmm=1
  338.                   if(tempmm<1)
  339.                   {tempmm=1;
  340.                   tempdd=arrdd[0];}
  341.                   else
  342.                   {tempdd=arrdd[mm-1];}
  343.                   if(mm!=12)
  344.                   tempmm1=mm+2;
  345.                   else
  346.                   tempmm1=12;
  347.                   if(tempmm1>12)
  348.                   {tempmm1=12;
  349.                   tempdd1=arrdd[11];}
  350.                   else
  351.                   {tempdd1=arrdd[mm+1];}
  352.                   tempyy1=yy+1;
  353.                   tempstr="<table width=100% border=0 cellspacing=1 cellpadding=2 class=mainddbg id=cctb><tr><td colspan=7 class=headbg><table width=100% cellspacing=0 cellpadding=0>";
  354.                   tempstr+="<tr><td align=left width=32><span class=hd  title='上一年' onclick=showcc("+tempyy+","+parseInt(mm+1)+","+dd+")>&lt;&lt;</span> <span class=hd title='上一月' onclick=showcc("+yy+","+tempmm+","+tempdd+")>&lt;</span></td>";
  355.                   tempstr+="<td align=center class=cc><font class=datehead><b>:"+strmm+" "+yy+":</b></font></td>";
  356.                   tempstr+="<td align=right width=32><span class=hd title='下一月' onclick=showcc("+yy+","+tempmm1+","+tempdd1+")>&gt;</span> <span class=hd title='下一年' onclick=showcc("+tempyy1+","+parseInt(mm+1)+","+dd+")>&gt;&gt;</span></td></tr></table></td></tr>";
  357.                   tempstr+="<tr class=cc><td align=center class=weekday>Sun</td><td align=center class=weekday>Mon</td><td align=center class=weekday>Tue</td><td align=center class=weekday>Wed</td><td align=center class=weekday>Thu</td><td align=center class=weekday>Fri</td><td align=center class=weekday>Sat</td></tr>";
  358.                   tempstr+="<tr>";
  359.                   thisdd = new Date();
  360.                   thisdd.setFullYear(thisyear,thismonth,1);
  361.                   firstday=thisdd.getDay();
  362.                   cmi=42;
  363.                   if (lastday<31 || firstday==0)
  364.                   cmi=36;
  365.                   for(i=0;i<cmi;i++)
  366.                   {
  367.                     tempstr+="<td class=eachdaybg><div align=center>";
  368.                     if (firstday<=i && i<firstday+lastday)
  369.                     {cs=i-firstday+1;
  370.                     cd=(yy+"-"+parseInt(mm+1)+"-"+cs).toString();
  371.                     tempstr+=showlink(cd,cs);}
  372.                     tempstr+="</center></td>";
  373.                     if ((i+1) % 7 ==0)
  374.                     tempstr+="</tr><tr id=tb>";
  375.                   }
  376.                   tempstr+="</tr></table>";
  377.                   cc.innerHTML=tempstr;
  378.                   newtb=document.all("tb");
  379.                   for(j=0;j<newtb.length;j++)
  380.                   {
  381.                     if (newtb[j].innerHTML=="")
  382.                     {
  383.                       newtb[j].removeNode(true);
  384.                     }
  385.                   }
  386.                   if(cctb.rows[cctb.rows.length-1].cells[0].innerText=="")
  387.                   cctb.deleteRow();
  388.                   //document.fm.news.value=cc.innerHTML;
  389.                 }
  390.                 showcc(${showcc});
  391.                 </script>
  392.             </div>
  393.           </td>
  394.         </tr>
  395.       </table>
  396.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="2">
  397.         <tr>
  398.           <td bgcolor="#E4E4E4">&nbsp;</td>
  399.         </tr>
  400. <tr>
  401. <td bgcolor="#E4E4E4">
  402.           <table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
  403.             <tr>
  404.               <td bgcolor="#CCCCCC">
  405.                 <table width="100%" border="0" cellpadding="5" cellspacing="1">
  406.                   <tr>
  407.                     <td bgcolor="#F5F5F5">
  408.                       <div align="center">
  409.                         <a href="login.do">用户登录</a>
  410.                       </div>
  411.                     </td>
  412.                   </tr>
  413.                   <tr>
  414.                     <td bgcolor="#F5F5F5">
  415.                       <div align="center">
  416.                         <a href="reg.do">会员注册</a>
  417.                       </div>
  418.                     </td>
  419.                   </tr>
  420.                 </table>
  421.               </td>
  422.             </tr>
  423.           </table>
  424. </td>
  425. <tr>
  426. <tr>
  427. <td bgcolor="#E4E4E4">
  428. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  429.           <tr>
  430.             <td>最近日志</td>
  431.           </tr>
  432.         </table>
  433.         <table width="100%" border="0" cellpadding="3" cellspacing="1">
  434.           <tr>
  435.             <td>
  436.               <#list newartlist as newart>
  437.                <!--· <a href='read.do?artid=${newart.id}&blogid=${blog.id}&username=${blog.username}'>${newart.title}</a> <font size='1'>(${newart.posttime?string("yyyy-MM-dd")})</font><br>-->
  438.                · <a href='${blog.username}-${blog.id}-${newart.id}.html'>${newart.title}</a> <font size='1'>(${newart.posttime?string("yyyy-MM-dd")})</font><br>
  439.               </#list>
  440.             </td>
  441.           </tr>
  442.           <tr>
  443.             <td>
  444.               <div align="right">
  445.                 <a href='blogList.do?action=all&blogid=${blog.id}&username=${blog.username}'>全部日志</a>
  446.               </div>
  447.             </td>
  448.           </tr>
  449.         </table>
  450. </td>
  451. </tr>
  452. <tr>
  453. <td bgcolor="#E4E4E4">
  454. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  455.           <tr>
  456.             <td>最近留言</td>
  457.           </tr>
  458.         </table>
  459.         <table width="100%" border="0" cellpadding="3" cellspacing="1">
  460.           <tr>
  461.             <td>
  462.             <#list notelist as note>
  463.                <!--· <a href='read.do?artid=${note.artid}&blogid=${note.blogid}&username=${blog.username}'>-->
  464.                · <a href='${blog.username}-${blog.id}-${note.artid}.html'>
  465.                  <#if (note.content?length > 20)>
  466.                    ${note.content[0..20]}...
  467.                  <#else>
  468.                    ${note.content}
  469.                  </#if>
  470.                </a> <font size='1'>(${note.createtime?string("yyyy-MM-dd")})</font><br>
  471.             </#list>
  472.             </td>
  473.           </tr>
  474.           <tr>
  475.             <td>
  476.               <div align="right"></div>
  477.             </td>
  478.           </tr>
  479.         </table>
  480. </td>
  481. </tr>
  482. <tr>
  483.           <td bgcolor="#E4E4E4">
  484.             <#list linktext as linkt>
  485.             <a href='${linkt.linkurl}' target='_blank'>${linkt.linktext}</a>
  486.             <#if blog.letterbookmark = 1>
  487.               <br>
  488.             <#else>
  489.               &nbsp;&nbsp;
  490.             </#if>
  491.             </#list>
  492.   <br>
  493.   <br>
  494.             <#list linklogo as linkl>
  495.             <a href='${linkl.linkurl}' target='_blank'><img src='${linkl.linkimgsrc}'border=0 alt='${linkl.linktext}'/></a>
  496.             <#if blog.letterbookmark = 1>
  497.               <br>
  498.             <#else>
  499.               &nbsp;&nbsp;
  500.             </#if>
  501.             </#list>
  502.   </td>
  503.         </tr>
  504.         <#if blog.logourl != "">
  505. <tr>
  506.           <td bgcolor="#E4E4E4">
  507.             <img src="${blog.logourl}" width=80 height=31>
  508.   </td>
  509.         </tr>
  510.         </#if>
  511.       </table> </td>
  512.   </tr>
  513. </table>
  514. </body>
  515. </html>