<% //====== Index PAGE OUTPUT =================================== // Copyright 2005 SiC. All Rights Reserved. // Last Update: 2005-02-26 23:57:15 //============================================================ // Output Master Page Layout function outputMaster(viewMode, arrArticle, intEntryCount, intEntryPerPage, intCurrentPage, intCategory, strURLPrefix, arrKeywords){ var strPageLinks = func.generatePageLinks(intEntryCount, intEntryPerPage, intCurrentPage, 15, strURLPrefix); %>
<%if(theCache.settings["announceShow"]==1&&intCurrentPage==1){%>
<%=theCache.settings["announceDate"]%>
<%if(theCache.settings["announceUBBFlags"]=="html"){%> <%=theCache.settings["announce"]%> <%}else{%> <%=ubb.toHTML(func.HTMLEncode(theCache.settings["announce"]),theCache.settings["announceUBBFlags"])%> <%}%>
<%}%>
<%=lang["view_mode"]%>: <%=lang["normal"]%> | <%=lang["list"]%>
<%if(intCategory){%><%=lang["category"]%>: <%=func.HTMLEncode(theCache.getCategoryByID(intCategory).name)%> | <%}%> <%if(intYear){%><%if(intMonth){%><%=lang["month_"+intMonth]%>, <%}%><%=intYear%> | <%}%> <%if(input["q"]){%><%=lang["search"]%>: <%=func.HTMLEncodeLite(input["q"])%> | <%}%> <%=strPageLinks%>
<% if(intEntryCount==0){ %>
<%=lang["no_article"]%>
<% }else{ if(viewMode==1){ outputList(arrArticle, arrKeywords); }else{ outputNormal(arrArticle, arrKeywords); } } %>
<%=strPageLinks%>
<% sidebar(); %>
<% } function outputNormal(arrArticle, arrKeywords){ var j=0; // Used to store output entry count for(var i=0;i1)){ j++; // Only increase when the article is out %>

<%if(tArticle.selected){%>/icon_star.gif" alt="<%=lang["selected"]%>" /><%}%> <%if(tArticle.locked||tArticle.category.locked){%>/icon_lock.gif" alt="<%=lang["locked"]%>" /><%}%> <%if(!theUser.checkViewPermission(tArticle)){%> <%="["+lang["hidden"]+"]"%> <%}else{%> <% var strTitle=func.HTMLEncode(tArticle.title); if(arrKeywords.length>0){ strTitle=func.highlight(strTitle,arrKeywords); } %> <%=strTitle%> <%}%> <%if(tArticle.mode>1){%> [<%=theCache.articleMode[tArticle.mode]%>] <%}%>

[ <%=func.getDateTimeString("YY-MM-DD hh:ii:ss",tArticle.postTime)%> | <%=lang["author"]%>: <%=tArticle.author%><%if(theUser.groupID==1){%> | <%=tArticle.IP%><%}%> ]
<%if(!theUser.checkViewPermission(tArticle)){%>
<%=lang["no_rights_view"]%>
<%}else{%> <% var strContent=""; if(tArticle.ubbFlags=="html"){ strContent=func.closeHTML(tArticle.content0); }else{ strContent=ubb.toHTML(func.closeUBB(func.HTMLEncode(tArticle.content0)),tArticle.ubbFlags); } if(arrKeywords.length>0){ strContent=func.highlight(strContent,arrKeywords); } %> <%=strContent%> <%if(tArticle.content1.length>1){%>...

<%=lang["read_more"]%><%}%> <%}%>
<%if(theUser.rights["edit"]>1||(theUser.rights["edit"]==1&&theUser.username==tArticle.author)){%> /icon_edit.gif" alt="<%=lang['edit']%>" /> | <%}%> <%if(theUser.rights["delete"]>1||(theUser.rights["delete"]==1&&theUser.username==tArticle.author)){%> ?')">/icon_del.gif" alt="<%=lang['delete']%>" /> | <%}%> <%=lang["category"]%>: <%=tArticle.category.name%> | ?id=<%=tArticle.id%>"><%=lang["permalink"]%> | <%=lang["comments"]%>: <%=tArticle.commentCount%> | <%=lang["trackbacks"]%>: <%=tArticle.trackbackCount%> | <%=lang["views"]%>: <%=tArticle.viewCount%>
<%} } } function outputList(arrArticle, arrKeywords){ %>
<% for(var i=0;i <%}%>
[<%=tArticle.category.name%>] <%if(!theUser.checkViewPermission(tArticle)){%> <%=tArticle.title.replace(/./g,"*")%> <%}else{%> <% var strTitle=func.HTMLEncode(tArticle.title); if(arrKeywords.length>0){ strTitle=func.highlight(strTitle,arrKeywords); } %> <%=strTitle%> <%}%> <%if(tArticle.selected){%>/icon_star.gif" alt="<%=lang["selected"]%>" /><%}%> <%if(tArticle.locked||tArticle.category.locked){%>/icon_lock.gif" alt="<%=lang["locked"]%>" /><%}%> <%if(theUser.rights["edit"]>1||(theUser.rights["edit"]==1&&theUser.username==tArticle.author)){%> /icon_edit.gif" alt="<%=lang['edit']%>" /> | <%}%> <%if(theUser.rights["delete"]>1||(theUser.rights["delete"]==1&&theUser.username==tArticle.author)){%> ?')">/icon_del.gif" alt="<%=lang['delete']%>" /> | <%}%> "><%=tArticle.author%> <%=func.getDateTimeString("YY-MM-DD",tArticle.postTime)%> "><%=tArticle.commentCount%> | <%=tArticle.trackbackCount%> | <%=tArticle.viewCount%>
<% } %>