makemode.make ist ein Textfeld und darf nicht mit ids (integers) geunioned werden.
[kivitendo-erp.git] / xslt / xulmenu.xsl
index 27b8e32..dd8a1b5 100644 (file)
 <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&amp;login={/doc/login}&amp;password={/doc/password}"/>
+      <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&amp;login={/doc/login}&amp;password={/doc/password}">hier</a>
+wenn die automatische weiterleitung nicht funktioniert klicken sie <a href="menuv3.pl?action=display">hier</a>
     </body>
   </html>
 </xsl:template>
@@ -52,8 +52,8 @@ name="xml-stylesheet">href="xslt/style1.css" type="text/css"</xsl:processing-ins
         <xsl:call-template name="ArtikelSuche"/>
         <!--<iframe src="xslt/trans.xml" flex="1" id="uhr"/>-->
       </vbox>
-      <splitter/>
-          <html:iframe id="main_window" src="{/*//item[@id='Programm--Version']/@link}" flex="1" style="border:0px"/>
+      <splitter state="open" collapse="before" resizeafter="farthest"><grippy/></splitter>
+          <html:iframe id="main_window" src="login.pl?action=company_logo" flex="1" style="border:0px"/>
     </hbox>
   </window>
 </xsl:template>
@@ -100,7 +100,20 @@ name="xml-stylesheet">href="xslt/style1.css" type="text/css"</xsl:processing-ins
 
 <!-- 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:template>
+<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:template>
 <!-- ***************************************************************************  -->
 
 
@@ -190,7 +203,7 @@ window.open(path,"_new","")
   function openLinkNewWindow(event)
     {
       var path=event.target.getAttribute("link")
-      window.open(path,"_new","")
+      window.open(path,"_blank","")
     }
   
   function openTreeLink(event)
@@ -242,7 +255,7 @@ document.getElementById("main_window").contentWindow.history.forward()
 ****************************************************************************  -->
 <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&amp;login={/doc/login}&amp;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>
@@ -324,8 +337,6 @@ image="image/icons/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/
     <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"/>
@@ -334,4 +345,4 @@ image="image/icons/16x16/CRM--Schnellsuche.png" flex="0" oncommand="doSearch()"/
   </form>
 </xsl:template>
 <!-- ***************************************************************************  -->
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>