Code

Updated template usage in layers menu
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Nov 2007 07:01:31 +0000 (07:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Nov 2007 07:01:31 +0000 (07:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7704 594d385d-05f5-0310-b6e9-bd551577e9d8

ihtml/themes/default/GOsa_MultiSelectHeader.ihtml [new file with mode: 0644]
ihtml/themes/default/GOsa_MultiSelectHeaderSubEntry.ihtml [new file with mode: 0644]
include/class_MultiSelectWindow.inc
include/php_layers_menu/templates/GOsa_MultiSelectHeader.ihtml [deleted file]
include/php_layers_menu/templates/GOsa_MultiSelectHeaderSubEntry.ihtml [deleted file]

diff --git a/ihtml/themes/default/GOsa_MultiSelectHeader.ihtml b/ihtml/themes/default/GOsa_MultiSelectHeader.ihtml
new file mode 100644 (file)
index 0000000..9f71d5c
--- /dev/null
@@ -0,0 +1,35 @@
+<!-- BEGIN template -->
+<!-- beginning of horizontal menu bar -->
+
+
+<TABLE border="0" cellspacing="0" cellpadding="0">
+  <TR>
+    <TD>
+      <DIV class="khorbar">
+               <TABLE border="0" cellspacing="0" cellpadding="0">
+                 <TR>
+                       <!-- BEGIN horizontal_menu_cell -->
+                       <TD>
+                         <!-- BEGIN cell_link -->
+                         <DIV id="{menu_layer_label}" class="khorbaritem" onmouseover="clearLMTO();" onmouseout="setLMTO();">
+                               <A href="{href}"{onmouseover}{title}{target}>
+                               <IMG align="top" src="{imgwww}{transparent}" width="1" height="16" border="0"   alt="" />
+                                       <!-- BEGIN cell_icon -->
+                                       <IMG align="top" src="{iconsrc}" width="{iconwidth}" height="{iconheight}" border="0"  alt="{iconalt}" />&nbsp;
+                                       <!-- END cell_icon -->
+                                       {text}
+                               <!-- BEGIN cell_arrow -->&nbsp;
+                               <IMG src="{imgwww}{downsrc}" width="{downwidth}" height="{downheight}"  border="0" alt=">>" />
+                               <!-- END cell_arrow -->&nbsp;&nbsp;&nbsp;</A> 
+                         </DIV>
+                         <!-- END cell_link -->
+                       </TD>
+                       <!-- END horizontal_menu_cell -->
+                 </TR>
+               </TABLE>
+      </DIV>
+    </TD>
+  </TR>
+</TABLE>
+<!-- end of horizontal menu bar -->
+<!-- END template -->
diff --git a/ihtml/themes/default/GOsa_MultiSelectHeaderSubEntry.ihtml b/ihtml/themes/default/GOsa_MultiSelectHeaderSubEntry.ihtml
new file mode 100644 (file)
index 0000000..979ef2a
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15"></meta>
+<title>The PHP Layers Menu - Templates</title>
+<link rel="StyleSheet" href="../layersmenu-gtk2.css" type="text/css"></link>
+<style type="text/css">
+<!--
+.submenu       {
+       position: relative;
+       visibility: visible;
+}
+//-->
+</style>
+</head>
+<body>
+
+<pre>
+This is a sub menu template.
+This comment does not appear on the resulting page.
+
+The table tags just inside the first div are needed
+to avoid problems with layers that cross the boundaries of the browsing window
+and to make things work with Opera 6.
+If you are sure that *all* your layers stay inside the browsing window
+and you do not have to support Opera 6
+(or if you will provide a "compatibility" menu version to Opera 6),
+you can safely remove it.
+--
+</pre>
+
+<!-- BEGIN template -->
+
+<div id="{layer_label}" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();">
+<table border="0" cellspacing="0" cellpadding="0">
+<tr>
+<td nowrap="nowrap">
+<div class="subframe">
+<!-- BEGIN sub_menu_cell -->
+<div id="{refid}" class="item">
+<div style='cursor: pointer;' onClick="send_menu_action('{href}');"{onmouseover}{title}{target}><img
+align="top" src="{imgwww}{transparent}" width="1" height="16" border="0"
+alt="" /><!-- BEGIN cell_icon --><img
+align="top" src="{iconsrc}" width="{iconwidth}" height="{iconheight}" border="0"
+alt="{iconalt}" />&nbsp;<!-- END cell_icon -->{text}<!-- BEGIN cell_arrow -->&nbsp;<img
+class="fwdarr" src="{imgwww}{arrowsrc}" width="{arrowwidth}" height="{arrowheight}"
+border="0" alt=">>" /><!-- END cell_arrow -->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
+</div>
+<!-- END sub_menu_cell -->
+<!-- BEGIN separator -->
+<div class="separator">&nbsp;</div>
+<!-- END separator -->
+</div>
+</td>
+</tr>
+</table>
+</div>
+
+<!-- END template -->
+
+</body>
+</html>
index 0de22ac58d106324017282afa0ff8bbf0a13ae9c..e267b3ded553e827844ae0881a29c9f0afcef086 100644 (file)
@@ -86,9 +86,9 @@ class MultiSelectWindow{
       $mid = new LayersMenu(6, 7, 2, 1);
       $mid->setImgwww("./images/");
       $mid->setIcondir("./images/");
-      $mid->setDirroot("/storage/hickert/gosa/include/php_layers_menu/");
-      $mid->setHorizontalMenuTpl('GOsa_MultiSelectHeader.ihtml');
-      $mid->setSubMenuTpl('GOsa_MultiSelectHeaderSubEntry.ihtml');
+      $mid->setDirroot("../include/php_layers_menu/");
+      $mid->setHorizontalMenuTpl("../ihtml/".get_template_path("",FALSE).'GOsa_MultiSelectHeader.ihtml');
+      $mid->setSubMenuTpl("../ihtml/".get_template_path("",FALSE).'GOsa_MultiSelectHeaderSubEntry.ihtml');
       $mid->setMenuStructureString($this->string_ListDropDown);
       $mid->parseStructureForMenu('menu');
       $mid->newHorizontalMenu('menu');
diff --git a/include/php_layers_menu/templates/GOsa_MultiSelectHeader.ihtml b/include/php_layers_menu/templates/GOsa_MultiSelectHeader.ihtml
deleted file mode 100644 (file)
index 9f71d5c..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<!-- BEGIN template -->
-<!-- beginning of horizontal menu bar -->
-
-
-<TABLE border="0" cellspacing="0" cellpadding="0">
-  <TR>
-    <TD>
-      <DIV class="khorbar">
-               <TABLE border="0" cellspacing="0" cellpadding="0">
-                 <TR>
-                       <!-- BEGIN horizontal_menu_cell -->
-                       <TD>
-                         <!-- BEGIN cell_link -->
-                         <DIV id="{menu_layer_label}" class="khorbaritem" onmouseover="clearLMTO();" onmouseout="setLMTO();">
-                               <A href="{href}"{onmouseover}{title}{target}>
-                               <IMG align="top" src="{imgwww}{transparent}" width="1" height="16" border="0"   alt="" />
-                                       <!-- BEGIN cell_icon -->
-                                       <IMG align="top" src="{iconsrc}" width="{iconwidth}" height="{iconheight}" border="0"  alt="{iconalt}" />&nbsp;
-                                       <!-- END cell_icon -->
-                                       {text}
-                               <!-- BEGIN cell_arrow -->&nbsp;
-                               <IMG src="{imgwww}{downsrc}" width="{downwidth}" height="{downheight}"  border="0" alt=">>" />
-                               <!-- END cell_arrow -->&nbsp;&nbsp;&nbsp;</A> 
-                         </DIV>
-                         <!-- END cell_link -->
-                       </TD>
-                       <!-- END horizontal_menu_cell -->
-                 </TR>
-               </TABLE>
-      </DIV>
-    </TD>
-  </TR>
-</TABLE>
-<!-- end of horizontal menu bar -->
-<!-- END template -->
diff --git a/include/php_layers_menu/templates/GOsa_MultiSelectHeaderSubEntry.ihtml b/include/php_layers_menu/templates/GOsa_MultiSelectHeaderSubEntry.ihtml
deleted file mode 100644 (file)
index 979ef2a..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15"></meta>
-<title>The PHP Layers Menu - Templates</title>
-<link rel="StyleSheet" href="../layersmenu-gtk2.css" type="text/css"></link>
-<style type="text/css">
-<!--
-.submenu       {
-       position: relative;
-       visibility: visible;
-}
-//-->
-</style>
-</head>
-<body>
-
-<pre>
-This is a sub menu template.
-This comment does not appear on the resulting page.
-
-The table tags just inside the first div are needed
-to avoid problems with layers that cross the boundaries of the browsing window
-and to make things work with Opera 6.
-If you are sure that *all* your layers stay inside the browsing window
-and you do not have to support Opera 6
-(or if you will provide a "compatibility" menu version to Opera 6),
-you can safely remove it.
---
-</pre>
-
-<!-- BEGIN template -->
-
-<div id="{layer_label}" class="submenu" onmouseover="clearLMTO();" onmouseout="setLMTO();">
-<table border="0" cellspacing="0" cellpadding="0">
-<tr>
-<td nowrap="nowrap">
-<div class="subframe">
-<!-- BEGIN sub_menu_cell -->
-<div id="{refid}" class="item">
-<div style='cursor: pointer;' onClick="send_menu_action('{href}');"{onmouseover}{title}{target}><img
-align="top" src="{imgwww}{transparent}" width="1" height="16" border="0"
-alt="" /><!-- BEGIN cell_icon --><img
-align="top" src="{iconsrc}" width="{iconwidth}" height="{iconheight}" border="0"
-alt="{iconalt}" />&nbsp;<!-- END cell_icon -->{text}<!-- BEGIN cell_arrow -->&nbsp;<img
-class="fwdarr" src="{imgwww}{arrowsrc}" width="{arrowwidth}" height="{arrowheight}"
-border="0" alt=">>" /><!-- END cell_arrow -->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
-</div>
-<!-- END sub_menu_cell -->
-<!-- BEGIN separator -->
-<div class="separator">&nbsp;</div>
-<!-- END separator -->
-</div>
-</td>
-</tr>
-</table>
-</div>
-
-<!-- END template -->
-
-</body>
-</html>