Revert revisions 4434 and 4438

4434 - [ 1884762 ] FR - Make main logo and link for Home configurable
4438 - Deploy Adempiere ZK webUI by default
This commit is contained in:
Carlos Ruiz 2008-02-22 04:32:26 +00:00
parent f1a8f5c7cb
commit 59d084daed
7 changed files with 16 additions and 40 deletions

View File

@ -43,7 +43,7 @@ public class AdempiereWebUI extends Window implements EventListener
{
private static final long serialVersionUID = 1L;
public static final String APP_NAME = "Adempiere ZK webUI";
public static final String APP_NAME = "Posterita Ajax UI";
public static final String UID = "0.2";

View File

@ -35,7 +35,6 @@ import org.adempiere.webui.window.ADWindow;
import org.compiere.model.MClient;
import org.compiere.model.MMenu;
import org.compiere.model.MQuery;
import org.compiere.model.MSysConfig;
import org.compiere.util.CCache;
import org.compiere.util.CLogger;
import org.compiere.util.Env;
@ -52,9 +51,9 @@ import org.zkoss.zul.Iframe;
*/
public class Desktop extends Window implements MenuListener
{
private static final long serialVersionUID = 9056511175189603883L;
private static final CLogger logger = CLogger.getCLogger(Desktop.class);
private static final long serialVersionUID = 1L;
private static final CLogger logger = CLogger.getCLogger(Desktop.class);
private HeaderPanel pnlHead;
@ -97,8 +96,7 @@ public class Desktop extends Window implements MenuListener
hbox.appendChild(pnlSide);
hbox.appendChild(pnlMain);
String homeURL = MSysConfig.getValue("WEBUI_HOMEURL", "http://www.adempiere.com/");
showURL(homeURL, "Home", false);
showURL("http://www.posterita.org/", "Home", false);
verticalBox.appendChild(pnlHead);
verticalBox.appendChild(hbox);
@ -111,7 +109,7 @@ public class Desktop extends Window implements MenuListener
}
/**
* Retrieves the Client website url
* Retrives the Client website url
* @return website url
*/
private String getClientWebsiteURL()

View File

@ -19,7 +19,6 @@ package org.adempiere.webui.panel;
import org.adempiere.webui.component.Panel;
import org.adempiere.webui.session.SessionManager;
import org.compiere.model.MSysConfig;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
@ -37,7 +36,7 @@ import org.zkoss.zul.Separator;
public class HeaderPanel extends Panel implements EventListener
{
private static final long serialVersionUID = -4293371180738797244L;
private static final long serialVersionUID = 1L;
private Image image = new Image();
private SideUserPanel pnlSideUser;
@ -65,9 +64,8 @@ public class HeaderPanel extends Panel implements EventListener
left.setStyle("text-align:center");
right.appendChild(pnlSideUser);
String homeURL = MSysConfig.getValue("WEBUI_LOGOURL", "/images/logo_ad.png");
image.setSrc(homeURL);
image.setSrc("/images/PosteritaAjaxUILogo.jpg");
image.addEventListener(Events.ON_CLICK, this);
left.appendChild(image);
@ -86,8 +84,7 @@ public class HeaderPanel extends Panel implements EventListener
return;
if (event.getTarget() == image){
String homeURL = MSysConfig.getValue("WEBUI_HOMEURL", "http://www.adempiere.com/");
SessionManager.getAppDesktop().showURL(homeURL, true);
SessionManager.getAppDesktop().showURL("http://www.posterita.org/", true);
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -48,10 +48,4 @@
<context-root>/posterita</context-root>
</web>
</module>
<module>
<web>
<web-uri>webui.war</web-uri>
<context-root>/webui</context-root>
</web>
</module>
</application>

View File

@ -166,18 +166,7 @@ Start Adempiere via RUN_Adempiere </td>
</td>
<td bgcolor="#fbf8f1">
<p><a href="/webui">Adempiere ZK webUI (beta)</a> - contributed by Posterita</p>
</td>
</tr>
<tr>
<td bgcolor="#e9eef5" valign="top">
<h2><font color="#000000">Web Application</font></h2>
</td>
<td bgcolor="#fbf8f1">
<p><a href="/adempiere">Adempiere old UI HTML (alpha) (</a><a href="/adempiere/WStart">alternative)</a></p>
<p><a href="/adempiere">Adempiere Web Application Login (</a><a href="/adempiere/WStart">alternative)</a></p>
</td>
</tr>
@ -261,4 +250,4 @@ Start Adempiere via RUN_Adempiere </td>
<h1>&nbsp;</h1>
</body>
</html>
</html>

View File

@ -30,7 +30,6 @@
<ant inheritAll="false" dir="webCM"/>
<ant inheritAll="false" dir="sqlj"/>
<ant inheritAll="false" dir="posterita"/>
<ant inheritAll="false" dir="extension/posterita/webui"/>
</target>
<target name="build" depends="jar">
<ant inheritAll="false" dir="install"/>
@ -47,11 +46,10 @@
<ant inheritAll="false" dir="serverApps" target="clean"/>
<ant inheritAll="false" dir="webStore" target="clean"/>
<ant inheritAll="false" dir="webCM" target="clean"/>
<ant inheritAll="false" dir="sqlj" target="clean"/>
<ant inheritAll="false" dir="posterita" target="clean"/>
<ant inheritAll="false" dir="sqlj" target="clean"/>
<ant inheritAll="false" dir="posterita" target="clean"/>
<ant inheritAll="false" dir="install" target="clean"/>
<ant inheritAll="false" dir="extension/posterita/webui" target="clean"/>
</target>
</target>
<target name="clean-all" depends="clean">
<delete dir="${env.ADEMPIERE_ROOT}"/>
@ -175,4 +173,4 @@
<!-- ================================================ -->
<target name="transfer" depends="complete" description="Transfer to Distribution media">
</target>
</project>
</project>