📄 portlets.jsp
字号:
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><% if (theColumnCount != 0) { int Pourcent = 100 / theColumnCount; int i; for ( i=1; i<=theColumnCount; i++ ) { %><td width="<%=Pourcent%>%" valign="top"><% thePortletList = PB.getPortletsFromColumn(i, thePageID, theUserName, theXMLPath); while (thePortletList.hasMoreElements()) { thePortlet = (PortletObj) thePortletList.nextElement(); theField = jData.containers().getContainer(thePortlet.getPortletSourceID()); if (theField != null) { JahiaFileField IconImage = (JahiaFileField) theField.getField("PortletIcon").getObject(); JahiaFileField BgImage = (JahiaFileField) theField.getField("PortletBGImage").getObject(); String IconImageURL = ""; String BgImageURL = ""; if (IconImage != null) { IconImageURL = IconImage.getDownloadUrl(); } if (BgImage != null) { BgImageURL = BgImage.getDownloadUrl(); } %> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%" rowspan="2" colspan="2"><table width="100%" border="1" bordercolor="#2A4558" cellspacing="0" cellpadding="0"><tr><td width="100%"><%=jData.gui().html().drawAnchor(theField.getField("PortletContent"))%><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="70%" height="15" background="<%=theURL%>/images/default_skin/title-bg0.gif" valign="top"><img src="<% if (!IconImageURL.equals("") && !IconImageURL.equals("#")) { out.print(IconImageURL); } else { out.print(defaultIcon); } %>" width="13" height="13" border="0" align="top" alt="Icon"><font size="1" color="#FFFFFF" face="arial, helvetica, sans-serif"><b> <%=theField.getField("PortletTitle").getValue()%></b></font></td> <td width="30%" align="right" background="<%=theURL%>/images/default_skin/title-bg0.gif"><% if (!jData.gui().html().drawUpdateContainerLauncher( theField ).equals("")) {%> <table border="0" cellspacing="0" cellpadding="0" width="78" height="13"> <form name="PortletForm<%=new Integer(thePortlet.getPortletID()).toString()%>" action="<%=jData.page().getUrl()%>" method="post"> <tr> <td width="13" height="13"><a href="javascript:ChangePortlet('PortletForm<%=thePortlet.getPortletID()%>',2);"><img src="<%=theURL%>/images/icons/left.gif" width="13" height="13" border="0" alt="Left"></a></td> <td width="13" height="13"><a href="javascript:ChangePortlet('PortletForm<%=thePortlet.getPortletID()%>',1);"><img src="<%=theURL%>/images/icons/right.gif" width="13" height="13" border="0" alt="Right"></a></td> <td width="13" height="13"><a href="javascript:ChangePortlet('PortletForm<%=thePortlet.getPortletID()%>',3);"><img src="<%=theURL%>/images/icons/bottom.gif" width="13" height="13" border="0" alt="Bottom"></a></td> <td width="13" height="13"><a href="javascript:ChangePortlet('PortletForm<%=thePortlet.getPortletID()%>',4);"><img src="<%=theURL%>/images/icons/top.gif" width="13" height="13" border="0" alt="Top"></a></td> <td width="13" height="13"><a href="javascript:<%=jData.gui().html().drawUpdateContainerLauncher( theField )%>"><img src="<%=theURL%>/images/default_skin/config_icon.gif" width="13" height="13" border="0" alt="Update"></a></td> <td width="13" height="13"><a href="javascript:<%=jData.gui().html().drawDeleteContainerLauncher( theField )%>"><img src="<%=theURL%>/images/icons/delete.gif" width="13" height="13" border="0" alt="Delete"></a></td> </tr> <input type="hidden" name="action" value=""> <input type="hidden" name="portletid" value="<%=thePortlet.getPortletID()%>"> </form> </table><% } else { %><img align="top" src="<%=theURL%>/images/pix.gif" width="1" height="1"><% } %></td> </tr> <tr> <td colspan="2" width="100%"<% if (!theField.getField("PortletBGColor").getValue().equals("")) { %> bgcolor="<%=theField.getField("PortletBGColor").getValue()%>"<% } %><% if (!BgImageURL.equals("") && !BgImageURL.equals("#")) { %> background="<%=BgImageURL%>"<% } else if (!defaultBgImage.equals("")) { %> background="<%=defaultBgImage%>"<% } %>><table width="100%" border="0" cellspacing="0" cellpadding="<%=theField.getField("PortletInnerSpace").getValue()%>"><tr><td><font size="<%=theField.getField("PortletFontSize").getValue()%>" face="<%=theField.getField("PortletFont").getValue()%>" color="<%=theField.getField("PortletFontColor").getValue()%>"><%=theField.getField("PortletContent").getValue()%></font></td></tr></table></td> </tr></table></td></tr></table> </td> <td width="6" height="8" background="<%=theURL%>/images/right_shadow.gif" valign="top"><img src="<%=theURL%>/images/top_right_shadow.gif" width="6" height="8"></td> </tr> <tr> <td width="6" height="100%" background="<%=theURL%>/images/right_shadow.gif"> </td> </tr> <tr> <td width="6" height="8" background="<%=theURL%>/images/bottom_shadow.gif"><img src="<%=theURL%>/images/bottom_left_shadow.gif" width="6" height="8"></td> <td width="100%" height="8" background="<%=theURL%>/images/bottom_shadow.gif"><img src="<%=theURL%>/images/pix.gif" width="1" height="1"></td> <td width="6" height="8"><img src="<%=theURL%>/images/bottom_right_shadow.gif" width="6" height="8"></td> </tr> </table><br><% } }%></td><td width="15"><img align="top" src="<%=theURL%>/images/pix.gif" width="15" height="1"></td><% } }%></tr></table><form name="setDefault" action="<%=theActionURL%>" method="post"><input type="hidden" name="action" value="5"></form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -