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

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.           <#list artlist as art>
  128.             <table width="100%" border="0" cellpadding="3" cellspacing="0">
  129.               <tr>
  130.                 <td><div align="right" class="FONT1"><strong><font color="#006666">${art.posttime?string("yyyy-MM-dd")}</font></strong></div></td>
  131.               </tr>
  132.               <tr>
  133.                 <td class="FONT1"><strong><font color="#336699">${art.title}</font></strong></td>
  134.               </tr>
  135.               <tr>
  136.                 <td>
  137.                   <#if art.face = 0>
  138.                     <#if art.faceplace = 0>
  139.                       <img src="images/${art.faceid}.gif" align="left">
  140.                     <#else>
  141.                       <img src="images/${art.faceid}.gif" align="right">
  142.                     </#if>
  143.                   </#if>
  144.                   <p style="line-height: 16pt">
  145.                     ${art.content}
  146.                   </p>
  147.                   <#if art.usesign == 0>
  148.                   <br>----------------<br>
  149.                   ${art.sign?default("")}
  150.                   </#if>
  151.                 </td>
  152.               </tr>
  153.               <tr>
  154.                 <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">
  155.                   <!--<a href='read.do?artid=${art.id}&blogid=${blog.id}&username=${blog.username}'>阅读全文</a>] [${art.commentnum}条评论] [<a href='read.do?artid=${art.id}&blogid=${blog.id}&username=${blog.username}#addnote'>我要评论</a>]-->
  156.                   [<a href='${blog.username}-${blog.id}-${art.id}.html'>阅读全文</a>] [${art.commentnum}条评论] [<a href='${blog.username}-${blog.id}-${art.id}.html#addnote'>我要评论</a>]
  157.           </td>
  158.               </tr>
  159.             </table>
  160.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  161.               <tr>
  162.                 <td height="1" background="images/xu.gif"></td>
  163.               </tr>
  164.             </table>
  165.           </#list>
  166.           </td>
  167.         </tr>
  168.         <tr>
  169.           <td><div align="center">:<a href="blogList.do?action=all&blogid=${blog.id}&username=${blog.username}">全部档案文件</a>:</div></td>
  170.         </tr>
  171.       </table></td>
  172.     <td valign="top">
  173.       <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
  174.         <tr>
  175.           <td><div align="center">:我的日历:</div></td>
  176.         </tr>
  177.         <tr>
  178.           <td>
  179.             <div align="center">
  180.               <span id=cc style="width:190"></span>
  181.               <script language=javascript>
  182.                 //showcc函数中dd参数表示mm月的天数,默认为1
  183.                 function showlink(dt,dm)
  184.                 {
  185.                   dc=dt;
  186.                   dt=dt+",";
  187.                   var strpostdd="${postdates}";
  188.                   d = new Date();
  189.                   if(strpostdd.indexOf(dt)!=-1)
  190.                   {
  191.                     if(dm!=d.getDate())
  192.                     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>";
  193.                     else
  194.                     {
  195.                       if (dm>d.getDate())
  196.                       {
  197.                         return "<span class=cc>"+dm+"</span>";
  198.                       }
  199.                       else
  200.                       {
  201.                         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>";
  202.                       }
  203.                     }
  204.                   }
  205.                   else
  206.                   {
  207.                     if(dm==d.getDate())
  208.                     return "<div class=today>"+dm+"</span>";
  209.                     else
  210.                     return "<span class=cc>"+dm+"</span>";
  211.                   }
  212.                 }
  213.                 function showcc(yy,mm,dd)
  214.                 {
  215.                   mm--;
  216.                   var arrdd=new Array(31,28,31,30,31,30,31,31,30,31,30,31);
  217.                   if(dd==1)
  218.                   dd=arrdd[mm];
  219.                   switch(mm)
  220.                   {
  221.                     case 0:strmm="January"
  222.                     break;
  223.                     case 1:strmm="February"
  224.                     break;
  225.                     case 2:strmm="March"
  226.                     break;
  227.                     case 3:strmm="April"
  228.                     break;
  229.                     case 4:strmm="May"
  230.                     break;
  231.                     case 5:strmm="June"
  232.                     break;
  233.                     case 6:strmm="July"
  234.                     break;
  235.                     case 7:strmm="August"
  236.                     break;
  237.                     case 8:strmm="September"
  238.                     break;
  239.                     case 9:strmm="October"
  240.                     break;
  241.                     case 10:strmm="November"
  242.                     break;
  243.                     case 11:strmm="December"
  244.                     break;
  245.                   }
  246.                   var thisyear=yy;
  247.                   var thismonth=mm;
  248.                   var lastday=dd;
  249.                   if(thismonth==1)
  250.                   {
  251.                     if (thisyear%4==0 || (thisyear%100==0 && thisyear%400==0))
  252.                     {
  253.                       lastday=29;
  254.                       arrdd[1]=29;
  255.                     }
  256.                     else
  257.                     {
  258.                       lastday=28;
  259.                       arrdd[1]=28;
  260.                     }
  261.                   }
  262.                   tempyy=yy-1;
  263.                   if(mm!=1)
  264.                   tempmm=mm;
  265.                   else
  266.                   tempmm=1
  267.                   if(tempmm<1)
  268.                   {tempmm=1;
  269.                   tempdd=arrdd[0];}
  270.                   else
  271.                   {tempdd=arrdd[mm-1];}
  272.                   if(mm!=12)
  273.                   tempmm1=mm+2;
  274.                   else
  275.                   tempmm1=12;
  276.                   if(tempmm1>12)
  277.                   {tempmm1=12;
  278.                   tempdd1=arrdd[11];}
  279.                   else
  280.                   {tempdd1=arrdd[mm+1];}
  281.                   tempyy1=yy+1;
  282.                   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>";
  283.                   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>";
  284.                   tempstr+="<td align=center class=cc><font class=datehead><b>:"+strmm+" "+yy+":</b></font></td>";
  285.                   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>";
  286.                   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>";
  287.                   tempstr+="<tr>";
  288.                   thisdd = new Date();
  289.                   thisdd.setFullYear(thisyear,thismonth,1);
  290.                   firstday=thisdd.getDay();
  291.                   cmi=42;
  292.                   if (lastday<31 || firstday==0)
  293.                   cmi=36;
  294.                   for(i=0;i<cmi;i++)
  295.                   {
  296.                     tempstr+="<td class=eachdaybg><div align=center>";
  297.                     if (firstday<=i && i<firstday+lastday)
  298.                     {cs=i-firstday+1;
  299.                     cd=(yy+"-"+parseInt(mm+1)+"-"+cs).toString();
  300.                     tempstr+=showlink(cd,cs);}
  301.                     tempstr+="</center></td>";
  302.                     if ((i+1) % 7 ==0)
  303.                     tempstr+="</tr><tr id=tb>";
  304.                   }
  305.                   tempstr+="</tr></table>";
  306.                   cc.innerHTML=tempstr;
  307.                   newtb=document.all("tb");
  308.                   for(j=0;j<newtb.length;j++)
  309.                   {
  310.                     if (newtb[j].innerHTML=="")
  311.                     {
  312.                       newtb[j].removeNode(true);
  313.                     }
  314.                   }
  315.                   if(cctb.rows[cctb.rows.length-1].cells[0].innerText=="")
  316.                   cctb.deleteRow();
  317.                   //document.fm.news.value=cc.innerHTML;
  318.                 }
  319.                 showcc(${showcc});
  320.                 </script>
  321.             </div>
  322.           </td>
  323.         </tr>
  324.       </table>
  325.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="2">
  326.         <tr>
  327.           <td bgcolor="#E4E4E4">&nbsp;</td>
  328.         </tr>
  329. <tr>
  330. <td bgcolor="#E4E4E4">
  331.           <table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
  332.             <tr>
  333.               <td bgcolor="#CCCCCC">
  334.                 <table width="100%" border="0" cellpadding="5" cellspacing="1">
  335.                   <tr>
  336.                     <td bgcolor="#F5F5F5">
  337.                       <div align="center">
  338.                         <a href="login.do">用户登录</a>
  339.                       </div>
  340.                     </td>
  341.                   </tr>
  342.                   <tr>
  343.                     <td bgcolor="#F5F5F5">
  344.                       <div align="center">
  345.                         <a href="reg.do">会员注册</a>
  346.                       </div>
  347.                     </td>
  348.                   </tr>
  349.                 </table>
  350.               </td>
  351.             </tr>
  352.           </table>
  353. </td>
  354. <tr>
  355. <tr>
  356. <td bgcolor="#E4E4E4">
  357. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  358.           <tr>
  359.             <td>最近日志</td>
  360.           </tr>
  361.         </table>
  362.         <table width="100%" border="0" cellpadding="3" cellspacing="1">
  363.           <tr>
  364.             <td>
  365.               <#list newartlist as newart>
  366.                <!--· <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>-->
  367.                · <a href='${blog.username}-${blog.id}-${newart.id}.html'>${newart.title}</a> <font size='1'>(${newart.posttime?string("yyyy-MM-dd")})</font><br>
  368.               </#list>
  369.             </td>
  370.           </tr>
  371.           <tr>
  372.             <td>
  373.               <div align="right">
  374.                 <a href='blogList.do?action=all&blogid=${blog.id}&username=${blog.username}'>全部日志</a>
  375.               </div>
  376.             </td>
  377.           </tr>
  378.         </table>
  379. </td>
  380. </tr>
  381. <tr>
  382. <td bgcolor="#E4E4E4">
  383. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  384.           <tr>
  385.             <td>最近留言</td>
  386.           </tr>
  387.         </table>
  388.         <table width="100%" border="0" cellpadding="3" cellspacing="1">
  389.           <tr>
  390.             <td>
  391.             <#list notelist as note>
  392.                <!--· <a href='read.do?artid=${note.artid}&blogid=${note.blogid}&username=${blog.username}'>-->
  393.                · <a href='${blog.username}-${blog.id}-${note.artid}.html'>
  394.                  <#if (note.content?length > 20)>
  395.                    ${note.content[0..20]}...
  396.                  <#else>
  397.                    ${note.content}
  398.                  </#if>
  399.                </a> <font size='1'>(${note.createtime?string("yyyy-MM-dd")})</font><br>
  400.             </#list>
  401.             </td>
  402.           </tr>
  403.           <tr>
  404.             <td>
  405.               <div align="right"></div>
  406.             </td>
  407.           </tr>
  408.         </table>
  409. </td>
  410. </tr>
  411. <tr>
  412.           <td bgcolor="#E4E4E4">
  413.             <#list linktext as linkt>
  414.             <a href='${linkt.linkurl}' target='_blank'>${linkt.linktext}</a>
  415.             <#if blog.letterbookmark = 1>
  416.               <br>
  417.             <#else>
  418.               &nbsp;&nbsp;
  419.             </#if>
  420.             </#list>
  421.   <br>
  422.   <br>
  423.             <#list linklogo as linkl>
  424.             <a href='${linkl.linkurl}' target='_blank'><img src='${linkl.linkimgsrc}'border=0 alt='${linkl.linktext}'/></a>
  425.             <#if blog.letterbookmark = 1>
  426.               <br>
  427.             <#else>
  428.               &nbsp;&nbsp;
  429.             </#if>
  430.             </#list>
  431.   </td>
  432.         </tr>
  433.         <#if blog.logourl != "">
  434. <tr>
  435.           <td bgcolor="#E4E4E4">
  436.             <img src="${blog.logourl}" width=80 height=31>
  437.   </td>
  438.         </tr>
  439.         </#if>
  440.       </table> </td>
  441.   </tr>
  442. </table>
  443. </body>
  444. </html>