css aus template in die css dateien verschoben
[kivitendo-erp.git] / templates / webpages / menu / menunew.html
index 45b529b..d552675 100644 (file)
@@ -1,5 +1,5 @@
 [%- USE T8 %]
-[% USE HTML %]<body style="padding:0px; margin:0px;">
+[% USE HTML %]<body class="menunew">
 
  <script type="text/javascript">
 <!--
@@ -16,17 +16,17 @@ window.onload=clockon
 
  <script type="text/javascript" src="js/dhtmlsuite/menu-for-applications.js"></script>
 
- <table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
+ <table class="menunew">
   <tr>
-   <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;">
+   <td>
     &nbsp;
     [<a href="menunew.pl?action=display" target="_blank">[% 'new Window' | $T8 %]</a>]
     &nbsp;
     [<a href="JavaScript:top.main_window.print()">[% 'print' | $T8 %]</a>]
    </td>
-   <td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
+   <td align="right" nowrap>
     [[% 'User' | $T8 %]: [% HTML.escape(login) %] -
-    <a href="login.pl?action=logout" target="_top">[% 'logout' | $T8 %]</a>]
+    <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
     [% date %] <span id='clock_id' style='position:relative'></span>&nbsp;
    </td>
   </tr>
@@ -38,7 +38,7 @@ window.onload=clockon
  <ul id="main_menu_model">
  [%- FOREACH mainitem = menu_items %]
   [%- SET main_id = main_id + 1 %]
-  <li id="[% main_id %]">
+  <li id="[% main_id %]"[% IF mainitem.image %] itemIcon="[% mainitem.image %]"[% END %]>
    <a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"[% IF mainitem.target %] target="[% mainitem.target %]"[% END %]>
     [%- HTML.escape(mainitem.title) %]
    </a>
@@ -47,7 +47,7 @@ window.onload=clockon
      [%- SET sub1_id = main_id * 100 %]
      [%- FOREACH sub1item = mainitem.subitems %]
       [%- SET sub1_id = sub1_id + 1 %]
-      <li id="[% sub1_id %]">
+      <li id="[% sub1_id %]"[% IF sub1item.image %] itemIcon="[% sub1item.image %]"[% END %]>
        <a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"[% IF sub1item.target %] target="[% sub1item.target %]"[% END %]>
         [%- HTML.escape(sub1item.title) %]
        </a>
@@ -56,7 +56,7 @@ window.onload=clockon
          [%- SET sub2_id = sub1_id * 100 %]
          [%- FOREACH sub2item = sub1item.subitems %]
           [%- SET sub2_id = sub2_id + 1 %]
-          <li id="[% sub2_id %]">
+          <li id="[% sub2_id %]"[% IF sub2item.image %] itemIcon="[% sub2item.image %]"[% END %]>
            <a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"[% IF sub2item.target %] target="[% sub2item.target %]"[% END %]>
             [%- HTML.escape(sub2item.title) %]
            </a>
@@ -72,12 +72,15 @@ window.onload=clockon
  [%- END %]
  </ul>
 
+ <iframe id="win1" src="[% callback %]" width="100%" height="94%" name="main_window" style="position: absolute; border: 0px; z-index: 99; ">
+  <p>[% 'MSG_BROWSER_DOES_NOT_SUPPORT_IFRAMES' | $T8 %]</p>
+ </iframe>
  <script type="text/javascript">
   <!--
 
 DHTMLSuite.createStandardObjects();
 
-DHTMLSuite.configObj.setCssPath('css/dhtmlsuite/');
+DHTMLSuite.configObj.setCssPath('[% myconfig.css_path %]/dhtmlsuite/');
 DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/');
 
 var menu_model = new DHTMLSuite.menuModel();
@@ -96,8 +99,5 @@ function open_url(url, target) {
     -->
  </script>
 
- <iframe id="win1" src="[% callback %]" width="100%" height="94%" name="main_window" style="position: absolute; border: 0px; z-index: 99; ">
-  <p>[% 'MSG_BROWSER_DOES_NOT_SUPPORT_IFRAMES' | $T8 %]</p>
- </iframe>
 </body>
 </html>