################################
##
##  Decorator for help pages
##
################################
#url($url)
#set ($_locale = $req.getSession().getAttribute('locale'))

#bean ("com.opensymphony.util.XMLUtils" $XMLUtils)
#bean ("com.opensymphony.util.ClassLoaderUtil" $Classloader)
#set( $xmlFile = $Classloader.getResourceAsStream("/_xml/help/help.xml", $Classloader.getClass() ) )
#set( $doc = $XMLUtils.parse( $xmlFile ) )
#set( $root = $doc.getDocumentElement()  )

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Unitracc - $!_title
    #parse('/_templates/includes/inc_decorator_meta.vm')
    #sitemesh_head()

             <table width="100%">
            	<tr valign="top">
                    <td width="220">

                        <div id="mainpanelbox">

                        <div class="navContainer">

                            <div class="navTitle">
       							<h1>Navigation</h1>
    						</div>

                            <div class="navList">
                                <table width="210" cellpadding="0" cellspacing="0">
          						#set( $firstLevelNodes = $XMLUtils.xpathList($root,'/help/page') )
          						#set( $length = $firstLevelNodes.getLength() - 1 )
          						#foreach( $item in [0 .. $length ] )
             					#set( $node = $firstLevelNodes.item($item) )
             					#set( $src = $node.getChildNodes().item(1).getFirstChild().getData() )
             					#set( $title = $node.getChildNodes().item(3).getFirstChild().getData() )
             					#set( $pages = $XMLUtils.xpathList($node,'pages/page') )
             					<tr>
               					#if( "/$src" == $url.toString().substring( $url.toString().lastIndexOf('/'),$url.toString().length() ) )
                 					<td colspan="3"><a href="$src" style="color:#b76116;font-size:10px;font-weight:bold;">$title</a></td>
               					#else
                 					<td colspan="3"><a href="$src" style="font-size:10px;font-weight:bold;">$title</a></td>
               					#end
             					</tr>
             					#if( $pages && $pages.getLength() > 0 )
               					#set( $length2 = $pages.getLength() - 1 )
               					#foreach( $item2 in [0 .. $length2 ] )
                  					#set( $node2 = $pages.item($item2) )
                  					#set( $src2 = $node2.getChildNodes().item(1).getFirstChild().getData() )
                  					#set( $title2 = $node2.getChildNodes().item(3).getFirstChild().getData() )
                  					#set( $pages2 = $XMLUtils.xpathList($node2,'pages/page') )
                  					<tr>
                   	 					<td>&nbsp;</td>
                    					#if( "/$src2" == $url.toString().substring( $url.toString().lastIndexOf('/'),$url.toString().length() ) )
                      						<td colspan="2" ><a href="$src2" style="color:#b76116;font-size:10px;">$title2</a></td>
                    					#else
                      						<td colspan="2"><a href="$src2" style="font-size:10px;">$title2</a></td>
                    					#end
                  					</tr>
                  					#if( $pages2 && $pages2.getLength() > 0 )
                     					#set( $length3 = $pages2.getLength() - 1 )
                     					#foreach( $item3 in [0 .. $length3 ] )
                        					#set( $node3 = $pages2.item($item3) )
                        					#set( $src3 = $node3.getChildNodes().item(1).getFirstChild().getData() )
                        					#set( $title3 = $node3.getChildNodes().item(3).getFirstChild().getData() )
                        					<tr>
                          						<td>&nbsp;</td>
                          						<td>&nbsp;</td>
                          						#if( "/$src3" == $url.toString().substring( $url.toString().lastIndexOf('/'),$url.toString().length() ) )
                            						<td><a href="$src3" style="color:#b76116;font-size:10px;">$title3</a></td>
                          						#else
                            						<td><a href="$src3" style="font-size:10px;">$title3</a></td>
                          						#end
                        					</tr>
                     					#end
                  						#end
                						#end
             						#end
          						#end
          						</table>
                            </div>

                        </div>

                        </div>

      				</td>

                    <td>
                      <div id="content">
            	#sitemesh_body()
		    	<div class="clearing"></div><br/>&nbsp;<br/>
            </div>
                    </td>
                </tr>
    		</table>



        </td>
    </tr>

    <tr><td>#parse('/_templates/includes/footer.vm')</td></tr>


#*
*#

