skin0_index.ftl
资源名称:Myblog.rar [点击查看]
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:17k
源码类别:
Jsp/Servlet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>${blog.blogname}</title>
- <style type="text/css">
- <!--
- body {
- font-family: "Verdana", "Tahoma","宋体";
- font-size: 9pt;
- }
- table {
- font-family: "Verdana", "Tahoma","宋体";
- font-size: 9pt;
- }
- .FONT1 {
- font-family: "Verdana", "Tahoma","宋体";
- font-size: 14px;
- }
- a { color: #990000; text-decoration: none }
- a:link { text-decoration: none; color: #990000 }
- a:visited { text-decoration: none; color: #990000 }
- a:hover { text-decoration: underline; color: #FF0000 }
- a:active { text-decoration: underline; color: #FF0000 }
- .INPUT1{font-family:Verdana,Tahoma,宋体; font-size: 12px;border: 1px solid #999999;}
- select,Textarea{font-family:Tahoma,Verdana,宋体; font-size: 12px;border: 1px solid #999999;}
- .TD1 {
- line-height: 30px;
- }
- .BUTTN-FIX
- {
- BACKGROUND-COLOR:#e0e0d5;
- font-size: 12px;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- border-top-style: ridge;
- border-right-style: ridge;
- border-bottom-style: ridge;
- border-left-style: ridge;
- border-top-color: #FFFFFF;
- border-left-color: #FFFFFF;
- font-family: "Arial", "Helvetica", "sans-serif";
- border-right-color: #CCCCCC;
- border-bottom-color: #CCCCCC;
- width: 80px;
- height: 20px;
- }
- .BUTTN-FIX1
- {
- BACKGROUND-COLOR:#e0e0d5;
- font-size: 12px;
- border-top-width: 1px;
- border-right-width: 1px;
- border-bottom-width: 1px;
- border-left-width: 1px;
- border-top-style: ridge;
- border-right-style: ridge;
- border-bottom-style: ridge;
- border-left-style: ridge;
- border-top-color: #FFFFFF;
- border-left-color: #FFFFFF;
- font-family: "Arial", "Helvetica", "sans-serif";
- border-right-color: #CCCCCC;
- border-bottom-color: #CCCCCC;
- height: 20px;
- }
- .INPUT2 {
- font-family: "Verdana", "Tahoma", "宋体";
- font-size: 12px;
- border-bottom-style: dotted;
- border-top-width: 0px;
- border-right-width: 0px;
- border-bottom-width: 1px;
- border-left-width: 0px;
- border-bottom-color: #999999;
- }
- p {
- line-height: 16pt;
- }
- -->
- </style>
- <style type="text/css">
- <!--
- .today { background-color: #CCD5D7; font-weight: bold; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
- .hasrecord { background-color: #DBE1E3 ; font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
- .cc { font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
- .hd { cursor: hand; font-size: 8pt; font-family: "Georgia", "Times New Roman", "Times", "serif"}
- .mainddbg { background-color: #cccccc}
- .headbg { background-color: #6694DF}
- .datehead { color: #FFFFFF}
- .eachdaytext { color: #000000}
- .eachdaybg { background-color: #F5F5F5}
- .weekday{ font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 8pt}
- -->
- </style>
- </head>
- <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr bgcolor="#B03900">
- <td width="75%" height="43"> <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><strong><font size="4">${blog.blogname}</font></strong></td>
- </tr>
- </table></td>
- <td width="25%"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><div align="center"><strong><font color="#FFFFFF">[<a href="${blog.username}"><font color="#FFFFFF">首页</font></a>][申请][帮助]</font></strong></div></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="5" bgcolor="#F5F5F5">
- <tr>
- <td width="75%" height="65" bgcolor="#D1D1D1"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td>${blog.description}</td>
- </tr>
- </table> </td>
- <td width="25%" bgcolor="#E4E4E4"><div align="center"></div></td>
- </tr>
- <tr>
- <td valign="top"><table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
- <tr>
- <td>
- <#list artlist as art>
- <table width="100%" border="0" cellpadding="3" cellspacing="0">
- <tr>
- <td><div align="right" class="FONT1"><strong><font color="#006666">${art.posttime?string("yyyy-MM-dd")}</font></strong></div></td>
- </tr>
- <tr>
- <td class="FONT1"><strong><font color="#336699">${art.title}</font></strong></td>
- </tr>
- <tr>
- <td>
- <#if art.face = 0>
- <#if art.faceplace = 0>
- <img src="images/${art.faceid}.gif" align="left">
- <#else>
- <img src="images/${art.faceid}.gif" align="right">
- </#if>
- </#if>
- <p style="line-height: 16pt">
- ${art.content}
- </p>
- <#if art.usesign == 0>
- <br>----------------<br>
- ${art.sign?default("")}
- </#if>
- </td>
- </tr>
- <tr>
- <td height="16"><font color="#999999">${art.username} 发表于</font> <font color="#3E3EBB" size="1">>${art.posttime?string("yyyy-MM-dd HH:mm:ss")}</font> <img src="images/saveas.gif" width="16" height="16" align="absmiddle">
- <!--<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>]-->
- [<a href='${blog.username}-${blog.id}-${art.id}.html'>阅读全文</a>] [${art.commentnum}条评论] [<a href='${blog.username}-${blog.id}-${art.id}.html#addnote'>我要评论</a>]
- </td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="1" background="images/xu.gif"></td>
- </tr>
- </table>
- </#list>
- </td>
- </tr>
- <tr>
- <td><div align="center">:<a href="blogList.do?action=all&blogid=${blog.id}&username=${blog.username}">全部档案文件</a>:</div></td>
- </tr>
- </table></td>
- <td valign="top">
- <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
- <tr>
- <td><div align="center">:我的日历:</div></td>
- </tr>
- <tr>
- <td>
- <div align="center">
- <span id=cc style="width:190"></span>
- <script language=javascript>
- //showcc函数中dd参数表示mm月的天数,默认为1
- function showlink(dt,dm)
- {
- dc=dt;
- dt=dt+",";
- var strpostdd="${postdates}";
- d = new Date();
- if(strpostdd.indexOf(dt)!=-1)
- {
- if(dm!=d.getDate())
- 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>";
- else
- {
- if (dm>d.getDate())
- {
- return "<span class=cc>"+dm+"</span>";
- }
- else
- {
- 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>";
- }
- }
- }
- else
- {
- if(dm==d.getDate())
- return "<div class=today>"+dm+"</span>";
- else
- return "<span class=cc>"+dm+"</span>";
- }
- }
- function showcc(yy,mm,dd)
- {
- mm--;
- var arrdd=new Array(31,28,31,30,31,30,31,31,30,31,30,31);
- if(dd==1)
- dd=arrdd[mm];
- switch(mm)
- {
- case 0:strmm="January"
- break;
- case 1:strmm="February"
- break;
- case 2:strmm="March"
- break;
- case 3:strmm="April"
- break;
- case 4:strmm="May"
- break;
- case 5:strmm="June"
- break;
- case 6:strmm="July"
- break;
- case 7:strmm="August"
- break;
- case 8:strmm="September"
- break;
- case 9:strmm="October"
- break;
- case 10:strmm="November"
- break;
- case 11:strmm="December"
- break;
- }
- var thisyear=yy;
- var thismonth=mm;
- var lastday=dd;
- if(thismonth==1)
- {
- if (thisyear%4==0 || (thisyear%100==0 && thisyear%400==0))
- {
- lastday=29;
- arrdd[1]=29;
- }
- else
- {
- lastday=28;
- arrdd[1]=28;
- }
- }
- tempyy=yy-1;
- if(mm!=1)
- tempmm=mm;
- else
- tempmm=1
- if(tempmm<1)
- {tempmm=1;
- tempdd=arrdd[0];}
- else
- {tempdd=arrdd[mm-1];}
- if(mm!=12)
- tempmm1=mm+2;
- else
- tempmm1=12;
- if(tempmm1>12)
- {tempmm1=12;
- tempdd1=arrdd[11];}
- else
- {tempdd1=arrdd[mm+1];}
- tempyy1=yy+1;
- 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>";
- tempstr+="<tr><td align=left width=32><span class=hd title='上一年' onclick=showcc("+tempyy+","+parseInt(mm+1)+","+dd+")><<</span> <span class=hd title='上一月' onclick=showcc("+yy+","+tempmm+","+tempdd+")><</span></td>";
- tempstr+="<td align=center class=cc><font class=datehead><b>:"+strmm+" "+yy+":</b></font></td>";
- tempstr+="<td align=right width=32><span class=hd title='下一月' onclick=showcc("+yy+","+tempmm1+","+tempdd1+")>></span> <span class=hd title='下一年' onclick=showcc("+tempyy1+","+parseInt(mm+1)+","+dd+")>>></span></td></tr></table></td></tr>";
- 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>";
- tempstr+="<tr>";
- thisdd = new Date();
- thisdd.setFullYear(thisyear,thismonth,1);
- firstday=thisdd.getDay();
- cmi=42;
- if (lastday<31 || firstday==0)
- cmi=36;
- for(i=0;i<cmi;i++)
- {
- tempstr+="<td class=eachdaybg><div align=center>";
- if (firstday<=i && i<firstday+lastday)
- {cs=i-firstday+1;
- cd=(yy+"-"+parseInt(mm+1)+"-"+cs).toString();
- tempstr+=showlink(cd,cs);}
- tempstr+="</center></td>";
- if ((i+1) % 7 ==0)
- tempstr+="</tr><tr id=tb>";
- }
- tempstr+="</tr></table>";
- cc.innerHTML=tempstr;
- newtb=document.all("tb");
- for(j=0;j<newtb.length;j++)
- {
- if (newtb[j].innerHTML=="")
- {
- newtb[j].removeNode(true);
- }
- }
- if(cctb.rows[cctb.rows.length-1].cells[0].innerText=="")
- cctb.deleteRow();
- //document.fm.news.value=cc.innerHTML;
- }
- showcc(${showcc});
- </script>
- </div>
- </td>
- </tr>
- </table>
- <table width="98%" border="0" align="center" cellpadding="5" cellspacing="2">
- <tr>
- <td bgcolor="#E4E4E4"> </td>
- </tr>
- <tr>
- <td bgcolor="#E4E4E4">
- <table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td bgcolor="#CCCCCC">
- <table width="100%" border="0" cellpadding="5" cellspacing="1">
- <tr>
- <td bgcolor="#F5F5F5">
- <div align="center">
- <a href="login.do">用户登录</a>
- </div>
- </td>
- </tr>
- <tr>
- <td bgcolor="#F5F5F5">
- <div align="center">
- <a href="reg.do">会员注册</a>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- <tr>
- <tr>
- <td bgcolor="#E4E4E4">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td>最近日志</td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="3" cellspacing="1">
- <tr>
- <td>
- <#list newartlist as newart>
- <!--· <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>-->
- · <a href='${blog.username}-${blog.id}-${newart.id}.html'>${newart.title}</a> <font size='1'>(${newart.posttime?string("yyyy-MM-dd")})</font><br>
- </#list>
- </td>
- </tr>
- <tr>
- <td>
- <div align="right">
- <a href='blogList.do?action=all&blogid=${blog.id}&username=${blog.username}'>全部日志</a>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td bgcolor="#E4E4E4">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td>最近留言</td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="3" cellspacing="1">
- <tr>
- <td>
- <#list notelist as note>
- <!--· <a href='read.do?artid=${note.artid}&blogid=${note.blogid}&username=${blog.username}'>-->
- · <a href='${blog.username}-${blog.id}-${note.artid}.html'>
- <#if (note.content?length > 20)>
- ${note.content[0..20]}...
- <#else>
- ${note.content}
- </#if>
- </a> <font size='1'>(${note.createtime?string("yyyy-MM-dd")})</font><br>
- </#list>
- </td>
- </tr>
- <tr>
- <td>
- <div align="right"></div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td bgcolor="#E4E4E4">
- <#list linktext as linkt>
- <a href='${linkt.linkurl}' target='_blank'>${linkt.linktext}</a>
- <#if blog.letterbookmark = 1>
- <br>
- <#else>
-
- </#if>
- </#list>
- <br>
- <br>
- <#list linklogo as linkl>
- <a href='${linkl.linkurl}' target='_blank'><img src='${linkl.linkimgsrc}'border=0 alt='${linkl.linktext}'/></a>
- <#if blog.letterbookmark = 1>
- <br>
- <#else>
-
- </#if>
- </#list>
- </td>
- </tr>
- <#if blog.logourl != "">
- <tr>
- <td bgcolor="#E4E4E4">
- <img src="${blog.logourl}" width=80 height=31>
- </td>
- </tr>
- </#if>
- </table> </td>
- </tr>
- </table>
- </body>
- </html>