Update of /cvsroot/struts-menu/navigator/web/templates
In directory sc8-pr-cvs1:/tmp/cvs-serv15819/web/templates

Added Files:
        coolmenus.html index.html indextabs.html nicetabs.html 
        table.html tabs.html xtree.html 
Log Message:
moved src/webapp to web

--- NEW FILE: coolmenus.html ---
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set parentName
  #if ($menu.parent) #set ($parentName = $menu.parent.name)
  #else #set ($parentName = "")
  #end
  ## set title and arrow image
  #set ($title = $displayer.getMessage($menu.title))
  ## set link
  #if ($menu.url) #set ($link = $menu.url) #else #set ($link = "")
  #end
  ## set target
  #if ($menu.target) #set ($target = $menu.target) #else #set ($target = "")
  #end
  ## set width
  #if ($menu.width) #set ($width = $menu.width) #else #set ($width = "")
  #end
  ## set height
  #if ($menu.height) #set ($height = $menu.height) #else #set ($height = "")
  #end
  ## set image
  #if ($menu.image) 
    #set ($title = "<img src=\'$menu.image\' style=\'border: 0\' /> $title") 
  #end
  ##---------------------------------------------------------------------------
  ## oCMenu.makeMenu(name, parent_name, text, link, target, width, height, 
  ## regImage, overImage, regClass, overClass , align, rows, nolink, onclick, 
  ## onmouseover, onmouseout) 
  ##---------------------------------------------------------------------------
oCMenu.makeMenu('$menu.name','$parentName','$title','$link','$target','$width');
#end

#displayMenu($menu 0)


--- NEW FILE: index.html ---
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  #set ($title = $displayer.getMessage($menu.title))
  #if ($stringUtils.indexOf($menu.url, "velocity") > -1 && !$writeNewSeparator)
    </ul>
    <h3>New and Cool Examples</h3>
    <ul class="glassList">
    #set($writeNewSeparator = "false")
  #end
  <li><a href="$!menu.url" title="$title">$title</a>
  #if ($menu.toolTip)- $!menu.toolTip #end</li>
#end

#displayMenu($menu 0)
--- NEW FILE: indextabs.html ---
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #if ($level == 1)
    <li><a href="$!{menu.url}" title="$title">${title}</a></li>
  #end
#end

#displayMenu($menu 0)
--- NEW FILE: nicetabs.html ---
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #if ($level == 0)
    #if (!$menu.url) $menu.setUrl($menu.components.get(0).url) #end
    <li><a href="$!{menu.url}" title="$title">${title}</a>
    #if ($menu.components.size() > 0)
      #set ($numItems = $menu.components.size())
      <ul class="submenu">
    #else
      </li>
    #end
  #elseif ($level == 1)
    <li><a href="$menu.url" title="$title">${title}</a></li>
    #if ($velocityCount == $numItems)
      </ul>
    </li>
    #end
  #end
#end

#displayMenu($menu 0)
--- NEW FILE: table.html ---
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  <tr><td>
  #foreach ($i in [0..$level])
    &nbsp;&nbsp;
  #end
  #if ($menu.url) 
    <a href="$menu.url" title="$displayer.getMessage($menu.title)">
        $displayer.getMessage($menu.title)</a>
  #else 
    $displayer.getMessage($menu.title)
  #end
  </td></tr>
#end

<table>
#displayMenu($menu 0)
</table>
--- NEW FILE: tabs.html ---
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #if ($level == 0)
    #if (!$menu.url) $menu.setUrl($menu.components.get(0).url) #end
    <li><a href="$!{menu.url}" title="$title">${title}</a>
    #if ($menu.components.size() > 0) 
      #set ($numItems = $menu.components.size())
      <ul class="submenu">
    #else 
      </li>
    #end
  #elseif ($level == 1)
    <li><a href="$menu.url" title="$title">${title}</a></li>
    #if ($velocityCount == $numItems) 
      </ul>
    </li>
    #end
  #end
#end

#displayMenu($menu 0)

--- NEW FILE: xtree.html ---
## displayMenu is defined in WEB-INF/classes/globalMacros.vm
#macro( menuItem $menu $level )
  ## set title
  #set ($title = $displayer.getMessage($menu.title))
  #set ($node = $menu.name)
  #if ($level == 0)
    var $node = new WebFXTree('$title'#if($menu.url),'$!menu.url'#end);
  #else
    var $node = new WebFXTreeItem('$title'#if($menu.url),'$!menu.url'#end);
    ${menu.parent.name}.add($node);
  #end
#end

#displayMenu($menu 0)
document.write($menu.name);




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
struts-menu-devel mailing list
[EMAIL PROTECTED]
https://lists.sf.net/lists/listinfo/struts-menu-devel

Reply via email to