xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
+<xsl:output media-type="application/vnd.mozilla.xul+xml"/>
<xsl:template match="/">
- <xsl:apply-templates/>
+ <xsl:choose>
+ <xsl:when test="system-property('xsl:vendor')='Transformiix'">
+
+ <xsl:apply-templates/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates mode="html"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template match="doc" mode="html">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="refresh" content="2;url=menuv3.pl?action=display"/>
+ </head>
+ <body>
+Ihr Browser unterstuetzt kein XUL!<br/>
+wenn die automatische weiterleitung nicht funktioniert klicken sie <a href="menuv3.pl?action=display">hier</a>
+ </body>
+ </html>
</xsl:template>
<!-- main document structure -->
<hbox flex="1">
<vbox id="sidebar" style="overflow:hidden">
- <xsl:apply-templates mode="tree"/>
+ <xsl:apply-templates mode="tree" select="menu"/>
<xsl:call-template name="ArtikelSuche"/>
<!--<iframe src="xslt/trans.xml" flex="1" id="uhr"/>-->
</vbox>
- <splitter/>
+ <splitter state="open" collapse="before" resizeafter="farthest"><grippy/></splitter>
<html:iframe id="main_window" src="{/*//item[@id='Programm--Version']/@link}" flex="1" style="border:0px"/>
</hbox>
</window>
<!-- the top menu -->
<!-- ******************************************************************* -->
-<xsl:template match="menu">
-<!--<div style="background:grey">-->
- <menubar id="sample-menubar">
- <xsl:apply-templates/>
- </menubar>
-<!--</div>-->
-</xsl:template>
+<xsl:template match="menu"><menubar id="sample-menubar" flex="1"><xsl:apply-templates/></menubar></xsl:template>
<!-- ******************************************************************* -->
<!-- template for the top menu items
********************************************************************************* -->
<xsl:template match="item">
- <xsl:choose>
- <xsl:when test="item">
- <menu id="{@name}_menu" label="{@name}" class="menu-iconic" image="image/icons/16x16/{@id}.png">
- <menupopup id="file-popup">
- <xsl:apply-templates/>
- </menupopup>
- </menu>
- </xsl:when>
- <xsl:otherwise>
- <menuitem target="{@target}" link="{@link}" label="{@name}" oncommand="openLink(event)" class="menuitem-iconic" image="image/icons/16x16/{@id}.png" lxid="{@id}" onclick="openLinkNewTab(event)"/>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="item">
+ <menu id="{@name}_menu" label="{@name}" class="menu-iconic" image="image/icons/16x16/{@id}.png">
+ <menupopup id="file-popup">
+ <xsl:apply-templates/>
+ </menupopup>
+ </menu>
+ </xsl:when>
+ <xsl:otherwise>
+ <menuitem target="{@target}" link="{@link}" label="{@name}" oncommand="openLink(event)" class="menuitem-iconic" image="image/icons/16x16/{@id}.png" lxid="{@id}" onclick="openLinkNewTab(event)"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<!-- *************************************************************************** -->
<!-- *************************************************************************** -->
-<!-- template für die uhr
+<!-- template fuer die uhr
******************************************************************************** -->
<xsl:template name="uhr">
}
else
{
- var bf=document.getElementsByTagName("iframe").item(0)
+ var bf=document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml","iframe").item(0)
bf.setAttribute("src",path)
}
}
if(event.keyCode==13) doSearch()
}
//setInterval("updateClock()",1000)
-
+ function MyGoBack(){
+document.getElementById("main_window").contentWindow.history.back()
+}
+ function MyGoForward(){
+document.getElementById("main_window").contentWindow.history.forward()
+}
</html:script>
</xsl:template>
<!-- *************************************************************************** -->
**************************************************************************** -->
<xsl:template name="specialbuttons">
<toolbarbutton image="image/icons/24x24/Batch Printing.png" tooltiptext="hallo" oncommand="PrintW(event)"/>
- <toolbarbutton image="image/icons/24x24/Neues Fenster.png" tooltip="Neues Fenster" link="menuXML.pl?action=display&login={/doc/login}&password={/doc/password}" target="_top" oncommand="openLinkNewWindow(event)"/>
+ <toolbarbutton image="image/icons/24x24/Neues Fenster.png" tooltip="Neues Fenster" link="menuXML.pl?action=display" target="_top" oncommand="openLinkNewWindow(event)"/>
<toolbarbutton label="Logout" link="{/*//item[@id='Programm--Logout']/@link}" target="_top" oncommand="openLink(event)">
<image src="image/icons/24x24/Programm--Logout.png" width="24" height="24" />
</toolbarbutton>
+<toolbarseparator/>
+ <toolbarbutton label="back" tooltiptext="hallo" oncommand="MyGoBack()"/>
+ <toolbarbutton label="forward" tooltip="Neues Fenster" oncommand="MyGoForward()"/>
</xsl:template>
<!-- *************************************************************************** -->
<!-- searchbox
**************************************************************************** -->
<xsl:template name="searchbox">
-<vbox style="padding-top:5px">
+<vbox style="padding-top:2px">
<hbox>
<textbox height="22px" style="font-size:12px;margin-right:0px" width="200px" id="searchboxtext" onkeypress="checkEnter(event)"/>
<toolbarbutton type="toolbar" width="20" height="20" style="padding:5px !important"
-image="xslt/images/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/>
+image="image/icons/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/>
</hbox>
</vbox>
<input name="l_partnumber" class="checkbox" type="checkbox" value="Y" checked="true"/>Artikelnummer
<input name="l_description" class="checkbox" type="checkbox" value="Y" checked="true"/>Artikelbeschreibung
<input name="l_serialnumber" class="checkbox" type="checkbox" value="Y"/>Seriennummer
- <input name="l_unit" class="checkbox" type="checkbox" value="Y" checked="true"/>Maßeinheit
+ <input name="l_unit" class="checkbox" type="checkbox" value="Y" checked="true"/>Maszeinheit
<input name="l_listprice" class="checkbox" type="checkbox" value="Y"/>Listenpreis
<input name="l_sellprice" class="checkbox" type="checkbox" value="Y" checked="true"/>Verkaufspreis
<input name="l_lastcost" class="checkbox" type="checkbox" value="Y" checked="true"/>Einkaufspreis
<input name="l_soldtotal" class="checkbox" type="checkbox" value="Y"/>Verkaufte Anzahl
<input name="l_deliverydate" class="checkbox" type="checkbox" value="Y"/>Lieferdatum
<input type="hidden" name="nextsub" value="generate_report"/>
- <input type="hidden" name="login" value="{/doc/login}"/>
- <input type="hidden" name="password" value="{/doc/password}"/>
<input type="hidden" name="revers" value="0"/>
<input type="hidden" name="lastsort" value=""/>
<input type="hidden" name="sort" value="description"/>
</form>
</xsl:template>
<!-- *************************************************************************** -->
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>