incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r392982 [25/25] - in /incubator/lokahi/lokahi/trunk: ./ conf/ database/ docs/ lib/ src/ src/java/ src/java/lokahi/ src/java/lokahi/core/ src/java/lokahi/core/agent/ src/java/lokahi/core/agent/callable/ src/java/lokahi/core/agent/callable/co...
Date Mon, 10 Apr 2006 16:20:11 GMT
Added: incubator/lokahi/lokahi/trunk/src/www/layout/header.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/header.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/header.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/header.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,47 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: header.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($appRoot = $props.get("application.root"))
+#set ($rssLink = $props.get("rss.link.location"))
+#parse("/layout/checksession.vm")
+<html>
+<head>
+#set ($title = $props.get("application.title"))
+<title> $title </title>
+<link type="text/css" rel="stylesheet" href="$!{appRoot}/layout/style.vmcss" />
+<link rel="alternate" title="TMC Alert RSS" href="$rssLink" type="application/rss+xml">
+<script language="javascript" type="text/javascript" src="$!{appRoot}/js/common.js"></script>
+<script language="javascript" type="text/javascript" src="$!{appRoot}/js/popup.js"></script>
+</head>
+#if($focus)
+<script>
+<!--
+function ff(){document.$focus}
+// -->
+</script>
+<body onload="ff()">
+#else
+<body>
+#end
+#if ($menu)
+<!-- BEGIN TOP MENU -->
+#parse ($menu)
+<!-- END TOP MENU -->
+#end
+<!-- END MENU -->
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/list2.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/list2.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/list2.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/list2.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,136 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: list2.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+## VARS TO SET...
+## $path = /Core/Pool
+## $usesEnv (true|false)
+## $currentPage   //todo make the env filter work and make it javascript.
+## $entity
+## $collection
+##
+## $function
+## $methodToCall
+## $actionLink
+## $buttonName
+##
+## $individual $indivPage
+##
+<!--$collection -->
+#if($plf)
+<div align="center" class="contentbox">
+<br /><br />
+#if ($request.getParameter("e"))
+  #set ($envId = $request.getParameter("e"))
+#end
+<div class="projectbox">
+<table width="100%" border="0" cellspacing="0" cellpadding="1">
+<tr class="info">
+<td colspan=3>Infrastructure - <b>$entity</b>
+#if($usesEnv == "true")
+  &nbsp;
+  #foreach ($env in $view.getEnvironments())
+    <a class="info" href="$currentPage?e=$env.getPk()">$env.getName()</a> &nbsp;
+  #end
+  <a class="info" href="$currentPage">All</a> &nbsp;
+#end
+</td>
+<td colspan="2" align="right">
+#parse("$path/menu/global.vm")
+</td>
+</tr>
+</table>
+<br />
+#end
+<!--$collection -->
+<!-- $individual -->
+<!-- $indivPage -->
+#if ($individual && $indivPage)
+  #parse($indivPage)
+#else
+  #if ($User.isAllowed($function) && $methodToCall && $actionLink)
+  <form name="Form" method="post" action='$link.setAction($actionLink)'>
+    <input type=hidden name="methodToCall" value="$methodToCall" />
+    <input type="submit" value="$buttonName" />
+  #end
+  #set($c = 1)
+  <!-- $collection -->
+  #if( $collection && ! $collection.isEmpty())
+    <table width="95%" border="0" cellspacing="0" cellpadding="1">
+    <tr class="info">
+    #if ($plf)
+    <td align="left" valign="center" colspan="3" >
+    $entity
+    </td>
+    #else
+    <td align="left" valign="center" colspan="2" >
+    $entity
+    </td>
+    <td align="right">
+    #parse("$path/menu/global.vm")
+    </td>
+    #end
+    </tr>
+    <tr class="info">
+    <td width=50%>Name</td>
+    <td width=15%> 
+    #if($usesEnv == "true")
+      Environment
+    #end 
+    </td>
+    <td width=35%>  </td>
+    </tr>
+    #foreach ($ent in $collection)
+      #if (($usesEnv == "true" && (!$envId || $ent.getEnvId().toString() == $envId)) || ! $usesEnv || $usesEnv == "false")
+	<tr class="headercolor$c">
+        <td>
+        #if ($User.isAllowed($function) && $methodToCall)
+          <input type=checkbox name=id value="$ent.getPk()" />&nbsp;&nbsp;
+        #end
+	<a href="$appRoot/$path/details.vm?id=$!{ent.getPk()}">$!{ent.getName()}</a></td>
+	<td> 
+	#if($usesEnv == "true")
+          $!{ent.getEnv().getName()}
+        #end
+        </td>
+	<td align="right">
+        #parse("$path/menu/indiv.vm")
+	</td>
+	</tr>
+        #if ($c == 1)
+          #set($c=2)
+        #else
+          #set($c=1)
+        #end
+      #end 	## of env
+    #end ## of for
+    </table>
+  #else
+  No $entity to display.<br />
+  <br />
+  #end 	## end of IF collection.
+  #if ($User.isAllowed($function) && $methodToCall && $actionLink)
+    <input type="submit" value="$buttonName">
+    </form>
+  #end
+#end
+#if($plf)
+<br />
+</div>
+<br />
+</div>
+#end
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/login.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/login.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/login.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/login.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,37 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: login.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#if (!$User)
+#set ($url = $request.getParameter("url"))
+<form name="LoginForm" method=post action="$appRoot/Authenticate.do">
+<div class="loginbox">
+      #errorMarkup()
+      #messagesMarkup()
+      $!ResultMessage
+      <div align="right">
+          $props.get("login.label.userName"): <input size="12" type="text" name="userName" value="$!{userName}" /><br />
+          $props.get("login.label.passWord"): <input size="12" type="password" name="passWord" value="" />
+          <input type="hidden" name="redirectUrl" value="$!url" />
+      </div>
+      <div align="center">
+          <input type="submit" name="Login" value="&nbsp;&nbsp;Login&nbsp;&nbsp;" class="button">
+      </div>
+</div>
+</form>
+#end
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/menu/EntityTop.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/menu/EntityTop.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/menu/EntityTop.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/menu/EntityTop.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,40 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: EntityTop.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<!-- Entity Menu -->
+#set ($topSelected = "access")
+#parse ("/layout/menu/top.vm")
+#if ( $pageSelected == "User" )
+   #set ( $ManageUserMenu = ' id="current"' )
+#elseif ( $pageSelected == "Entity" )
+   #set ( $AdminMenu = ' id="current"' )
+#elseif ( $pageSelected == "enviroment" )
+   #set ( $AdminMenu = ' id="current"' )
+#end
+<div id="submenu">
+#if($User.isAllowed("AddUserToProject") || $User.isAllowed("AddUser"))
+  <ul>
+  #if($User.isAllowed("AddUser"))
+    <li $!{ManageUserMenu}><a href="$appRoot/Core/User/index.vm">&nbsp;Manage Users&nbsp;</a></li>
+  #end
+    <li $!{AdminMenu}><a href="$appRoot/Core/Entity/index.vm">&nbsp;Manage Assets&nbsp;</a></li>
+  </ul>
+#end
+</div>
+<!-- Entity Menu -->
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/menu/HelpTop.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/menu/HelpTop.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/menu/HelpTop.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/menu/HelpTop.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,27 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: HelpTop.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($topSelected = "help")
+#parse ("/layout/menu/top.vm")
+<div id="submenu">
+<ul>
+<li><a href="$appRoot/Help/add.vm" class="rowlink" >&nbsp;Add&nbsp;</a></li>
+<li><a href="$appRoot/Help/update.vm" class="rowlink" >&nbsp;Update&nbsp;</a></li>
+</ul>
+</div>
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/menu/HomeTop.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/menu/HomeTop.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/menu/HomeTop.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/menu/HomeTop.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,40 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: HomeTop.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<!-- Home page Menu -->
+#set ($topSelected = "home")
+#parse ("/layout/menu/top.vm")
+#if ($pageSelected == "RecentJobs")
+   #set ($JobsImg = ' id="current"')
+#elseif ($pageSelected == "RecentProjects")
+   #set ($ProjectsImg = ' id="current"')
+#elseif ($pageSelected == "home")
+   #set ($homeindex = ' id="current"')
+#elseif ($pageSelected == "Services")
+   #set ($ServicesImg = ' id="current"')   
+#end
+<div id="submenu">
+<ul>
+<li$!{homeindex}><a href="$appRoot/index.vm">&nbsp;Messages&nbsp;</a></li>
+#if($User)
+  <li$!{ProjectsImg}><a href="$appRoot/Core/Project/user.vm">&nbsp;&nbsp;My Projects&nbsp;&nbsp;</a></li>
+  <li$!{JobsImg}><a href="$appRoot/Core/JobPool/recent.vm">&nbsp;My Jobs&nbsp;&nbsp;</a></li>
+#end
+</ul>
+</div>
+<!-- Home page Menu -->
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/menu/PoolTop.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/menu/PoolTop.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/menu/PoolTop.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/menu/PoolTop.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,41 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: PoolTop.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<!-- PoolMenu -->
+#set ($topSelected = "pools")
+#parse ("/layout/menu/top.vm")
+#if ( $pageSelected == "Pool")
+  #set ( $Pool = ' id="current"' )
+#elseif ( $pageSelected == "Worker" )
+  #set ( $Worker = ' id="current"' )
+#elseif ( $pageSelected == "Server")
+  #set ( $Server = ' id="current"' )
+#elseif ( $pageSelected == "Entity" )
+  #set ( $Entity = ' id="current"' )
+#end
+<div id="submenu">
+<ul>
+<li$!{Pool}><a href="$appRoot/Core/Pool/search.vm">&nbsp;Pools&nbsp;</a></li>
+<li$!{Worker}><a href="$appRoot/Core/Worker/search.vm">&nbsp;Workers&nbsp;</a></li>
+<li$!{Server}><a href="$appRoot/Core/Server/search.vm">&nbsp;Servers&nbsp;</a></li>
+<li$!{Entity}><a href="$appRoot/Core/Entity/search.vm">&nbsp;Entities&nbsp;</a></li>
+</ul>
+</div>
+<!-- PoolMenu -->
+
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/menu/ProjectTop.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/menu/ProjectTop.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/menu/ProjectTop.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/menu/ProjectTop.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,66 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: ProjectTop.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<!-- Project Menu -->
+#set ($topSelected = "projects")
+#parse ("/layout/menu/top.vm")
+#set($alphabets = ["all","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] )
+<div id="submenu">
+<ul>
+<!-- TODO add my project link... -->
+#if($letter && $letter != "Last5")
+  <li>
+#else
+  <li id="current">
+#end
+<a href="$appRoot/Core/Project/index.vm">&nbsp;Last 10&nbsp;</a></li>
+#if($letter && $letter == "My")
+  <li id="current">
+#else
+  <li>
+#end
+<a href="$appRoot/Core/Project/my.vm">&nbsp;My Projects&nbsp;</a></li>
+#foreach( $key in $alphabets)
+   ##print this letter as a link only it this is not the one that is currently listed
+   #if($letter && $key == $letter)
+   <li id="current">
+   #else
+   <li>
+   #end
+   <a href="$appRoot/Core/Project/index.vm?Letter=$key">&nbsp;$key&nbsp;</a></li>
+#end
+#if($User.isAllowed("AddProject"))
+  #if($letter && $letter == "Add")
+    <li id="current">
+  #else
+    <li>
+  #end
+  <a href='$appRoot/Core/Project/add.vm'>&nbsp;Add&nbsp;</a></li>
+#end
+#if($User.isAllowed("ViewProject"))
+  #if($letter && $letter == "Search")
+    <li id="current">
+  #else
+    <li>
+  #end
+  <a href='$appRoot/Core/Project/search.vm'>&nbsp;Search&nbsp;</a></li>
+#end
+</ul>
+</div>
+<!-- Project Menu -->
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/menu/UserTop.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/menu/UserTop.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/menu/UserTop.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/menu/UserTop.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,38 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: UserTop.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<!-- User Menu -->
+#set ($topSelected = "access")
+#parse ("/layout/menu/top.vm")
+#if ( $pageSelected == "User" )
+   #set ( $ManageUserMenu = ' id="current"' )
+#elseif ( $pageSelected == "admin" )
+   #set ( $AdminMenu = ' id="current"' )
+#end
+<div id="submenu">
+#if($User.isAllowed("AddUserToProject") || $User.isAllowed("AddUser"))
+  <ul>
+  #if($User.isAllowed("AddUser"))
+    <li $!{ManageUserMenu}><a href="$appRoot/Core/User/index.vm">&nbsp;Manage Users&nbsp;</a></li>
+  #end
+    <li $!{AdminMenu}><a href="$appRoot/Core/Entity/index.vm">&nbsp;Manage TMC&nbsp;</a></li>
+  </ul>
+#end
+</div>
+<!-- User Menu -->
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/menu/top.vm
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/menu/top.vm?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/menu/top.vm (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/menu/top.vm Mon Apr 10 09:19:33 2006
@@ -0,0 +1,71 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: top.vm,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<div zIndex=5 id="header">
+#if ($User)
+  <div id="topRightMenu"><a href="$appRoot/Authenticate.do?logout=true" id="logout" >[Logout:$User.getName()]</a></div>
+#end
+<div id="Tabs" >
+<ul>
+#if ($User)
+   #if ($topSelected == "home")
+     <li id="current">
+   #else
+     <li>
+   #end
+   <a href="$appRoot/index.vm">TMC</a></li>
+   #if ($topSelected == "projects")
+     <li id="current">
+   #else
+     <li>
+   #end
+   <a href="$appRoot/Core/Project/index.vm">Projects</a></li>
+   #if($User.isAllowed("AddUser") || $User.isAllowed("AddUserToProject"))
+     #if ($topSelected == "access")
+      <li id="current">
+     #else
+      <li>
+     #end     
+     <a href="$appRoot/Core/User/index.vm">Administration</a></li>
+  #end
+  #if($User.isAllowed("AddHostingPool") || $User.isAllowed("ViewHostingPool") || $User.isAllowed("UpdateHostingPool") || $User.isAllowed("DeleteHostingPool") || $User.isAllowed("AddApachePool") || $User.isAllowed("ViewApachePool") || $User.isAllowed("UpdateApachePool") || $User.isAllowed("DeleteApachePool") || $User.isAllowed("AddTomcatPool") || $User.isAllowed("ViewTomcatPool") || $User.isAllowed("UpdateTomcatPool") || $User.isAllowed("DeleteTomcatPool"))
+    #if ($topSelected == "pools" || $topSelected == "server")
+      <li id="current">
+    #else
+      <li>
+    #end
+    <a href="$appRoot/Core/infrastructure.vm">Infrastructure</a></li>
+  #end
+  #if ($topSelected == "help")
+    <li id="current">
+  #else
+    <li>
+  #end
+  <a href="$appRoot/Help/index.vm">Help</a></li>
+#else
+  #if ($topSelected == "home")
+    <li id="current">
+  #else
+    <li>
+  #end
+  <a href="$appRoot/index.vm">TMC</a></li>
+#end
+</ul>
+</div>
+</div>
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/layout/style.vmcss
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/layout/style.vmcss?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/layout/style.vmcss (added)
+++ incubator/lokahi/lokahi/trunk/src/www/layout/style.vmcss Mon Apr 10 09:19:33 2006
@@ -0,0 +1,600 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: style.vmcss,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+@charset "utf-8";
+
+#set ($appRoot = $props.get("application.root"))
+
+body {
+	margin : 0px;
+	padding : 0px;
+	background: #ffffff;
+	font-family : Tahoma, Arial, sans-serif;
+	font-size : 13px;
+	font-style: normal;
+}
+
+td {
+	font-family : Tahoma, Arial, sans-serif;
+	font-size : 13px;
+	font-style: normal;
+}
+
+a {
+	font-family : Tahoma, Arial, sans-serif;
+	font-size : 13px;
+	font-style: normal;
+}
+
+tr.header {
+	background-color : #005151;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 11pt;
+	font-weight: bold;
+	font-style: normal;
+	text-align: left;
+	color: #ffffff;
+}
+
+tr.info {
+	background-color : #666666;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	vertical-align:text-top;
+	font-weight: bold;
+	font-style: normal;
+	color: #ffffff;
+}
+
+a.info {
+	background-color : #666666;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: bold;
+	font-style: normal;
+	color: #ffffff;
+}
+
+tr.body {
+	background-color : #eeeeee;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+tr.alternate {
+	background-color : #ffffee;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+.normaltxt {
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+input.button {
+	background:#f1f1f1;
+	color:#333;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 12px;
+	border:1px solid #333;
+}
+
+input.buttontop {
+	background:#006666;
+	color:white;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 13px;
+	font-weight: bold;
+	border:1px solid white;
+}
+
+input.buttontop2 {
+	background:#3333CC;
+	color:white;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 12px;
+	font-weight: bold;
+	border:1px solid white;
+}
+
+input.buttontop2selected {
+	background:white;
+	color:#3333CC;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 12px;
+	font-weight: bold;
+	border:1px solid #3333CC;
+	border-bottom-width: 0px
+}
+
+input.golden {
+	background: #FF9900;
+	color:white;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 13px;
+	font-weight: bold;
+	border:1px solid white;
+}
+
+input {
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+img:focus { outline:none; }
+a:focus { outline:none; }
+
+tr.completed-cell {
+	background:teal;
+}
+tr.uncompleted-cell {
+	background: silver; 
+}
+
+.topSpacer {
+  border-bottom:1px solid #CC66FF;
+  background:#CC66FF;
+  border-left:1px solid #663366;
+  border-right:1px solid #663366;
+}
+
+.tabfiller {
+  border-bottom:1px solid #666;
+  background:#CC66FF;
+}
+
+.righttabfiller {
+  border-bottom:1px solid #666;
+  background:#CC66FF;
+  border-right:1px solid #663366;
+}
+
+.lefttabfiller {
+  border-bottom:1px solid #666;
+  background:#CC66FF;
+  border-left:1px solid #663366;
+}
+
+
+.toptabfiller {
+  border-bottom:1px solid #663366;
+}
+
+.tabfiller-left {
+  border-bottom:1px solid #3333CC;
+  border-left:1px solid #3333CC;
+}
+
+.tabfiller-right {
+  border-bottom:1px solid #3333CC;
+  border-right:1px solid #3333CC;
+}
+
+td.buttoninactive {
+	background:#999;
+	border:1px solid #666;
+}
+
+td.buttonactive {
+	background:#ccc;
+	border:1px solid #666;
+	border-bottom-width: 0px
+}
+
+td.topbuttoninactive {
+	background:#9900CC;
+	border:1px solid #663366;
+}
+
+td.topbuttonactive {
+	background:#cc66ff;
+	border:1px solid #663366;
+	border-bottom-width: 0px
+}
+
+.rowlink {
+	text-decoration : none;
+	font-weight : bold;
+	color:#e5ecf3;
+}
+
+.rowlinkselected {
+	text-decoration : none;
+	font-weight : bold;
+	color:#525D76;
+}
+
+.link {
+	text-decoration : none;
+	font-weight : bold;
+	color : #e5ecf3;
+}
+
+.linkselected {
+	text-decoration : none;
+	font-weight: bold;
+	color : #e5ecf3;
+}
+
+.contentbox {
+  clear:both;
+  padding: 0px;
+  padding-top:35px;
+  font-size: 10pt;
+  font-family: Tahoma, Arial, sans-serif;
+  background-color:#FFFFFF;
+  font-weight: normal;
+  font-style: normal;
+  height: 100%;
+}
+
+.projectbox {
+	margin: 0px;
+	padding: 0px;
+  width: 95%;
+	background-color : #FFFFFF;
+	border :1px solid #525D76;
+}
+
+.messagebox {
+	margin: 5px 0px 5px 0px;
+	padding: 5px;
+#if ($request.getHeader("USER-AGENT").indexOf("MSIE") != -1)
+	width:100%;
+#end
+	background-color : #eeeeee;
+	border :1px solid #525D76;
+}
+
+.sidemessagebox {
+	margin: 5px 0px 5px 0px;
+	padding: 5px;
+	background-color : #eeeeee;
+	border :1px solid #525D76;
+}
+
+#left {
+	position: absolute;
+	left: 5px;
+	top: 88px;
+	width: 200px;
+}
+
+#center {
+	position: absolute;
+	top: 88px;
+	left: 210px;
+	right: 210px;
+}
+
+#bigleft {
+	position: absolute;
+	left: 5px;
+	top: 88px;
+   right: 210px;
+}
+
+#bigright {
+	position: absolute;
+	left: 210px;
+	top: 88px;
+   right: 5px;
+}
+
+#right {
+	position: absolute;
+	right: 5px;
+	top: 88px;
+	width: 200px;
+}
+
+.row1 {
+  border-bottom:1px solid #666;
+  font-family: Tahoma, Arial, sans-serif;
+  background-color:#828DA6;
+}
+
+.row1selected {
+  border-bottom:1px solid #D7DCEB;
+  font-family: Tahoma, Arial, sans-serif;
+  background-color:#D7DCEB;
+}
+
+#Tabs {
+position:absolute;
+top:10px;
+    width:100%;
+background:url("$appRoot/images/menu/tab-background.jpg") left bottom repeat-x;
+    font-size:93%;
+    padding-top: 14px;
+    line-height:normal;
+}
+
+#Tabs ul {
+    margin:0;
+    padding:0px 0px 0px 30px;
+    list-style:none;
+}
+
+#Tabs li {
+    float:left;
+    background:url("$appRoot/images/menu/left.jpg")
+      no-repeat left top;
+    margin:0px;
+    padding:0px 0px 0px 9px;
+}
+
+#Tabs a, #Tabs strong, #Tabs span {
+    display:block;
+	 text-decoration:none;
+	 font-weight:bold;
+    color:#828DA6;
+    background:url("$appRoot/images/menu/right.jpg")
+      no-repeat right top;
+    padding:5px 15px 5px 6px;
+}
+
+#Tabs #current {
+    background-image:url("$appRoot/images/menu/left_on.jpg");
+}
+
+#Tabs #current a {
+    background-image:url("$appRoot/images/menu/right_on.jpg");
+    color:#344156;
+    padding-bottom:5px;
+}
+
+#Tabs #help li {
+   margin-right: 100px;
+   width: 300px;
+   float:right;
+}
+
+#Tabs #currenthelp {
+    background-image:url("$appRoot/images/menu/left_on.jpg");
+}
+
+#Tabs #currenthelp a {
+    background-image:url("$appRoot/images/menu/right_on.jpg");
+    color:#ffffee;
+    padding-bottom:5px;
+}
+
+#submenu {
+    clear:both;
+    position:absolute;
+    top:50px;
+    padding:0px 12px 0px 42px;
+    float:left;
+    background-image:url("$appRoot/images/menu/submenu-background.jpg");
+    line-height:normal;
+    width:100%;
+    color:#828DA6;
+    font-size:93%;
+}
+
+#submenu ul {
+    margin:0;
+    padding:0;
+    list-style:none;
+}
+
+#submenu li {
+    float:left;
+    margin:0;
+    padding:0 3 0 3px;
+}
+
+#submenu a, #submenu strong, #submenu span {
+    display:block;
+	 text-decoration:none;
+	 font-weight:bold;
+    color:#828DA6;
+    padding:0px 0px 0px 0px;
+}
+
+#submenu #current {
+}
+
+#submenu #current a {
+    padding-bottom:0px;
+    color:#344156;
+}
+
+#submenu a:hover {
+    color:red;
+}
+
+#Tabs a:hover {
+    color:red;
+}
+
+#logout {
+   position:inline;
+   float:right;
+}
+
+#countdown {
+   position:inline;
+   float:right;
+}
+
+#leftSubmenu  {
+	padding: 0 0 1em 0;
+	margin-bottom: 1em;
+}
+
+#leftSubmenu ul {
+		list-style: none;
+		margin: 0;
+		padding: 0px 0em 0px 1em;
+		border: none;
+}
+
+#leftSubmenu li {
+		margin: 0;
+}
+
+#leftSubmenu li {
+		display: block;
+		padding: 0px 0em 0px 0em;
+		text-decoration: none;
+		width: 100%;
+}
+
+#leftSubmenu a {
+		display: block;
+		padding: 0px 0em 0px 0em;
+		text-decoration: none;
+		width: 100%;
+}
+
+html>body #leftSubmenu li a {
+		width: auto;
+}
+
+#leftSubmenu li a:hover {
+		color:red;
+}
+
+#topRightMenu {
+}
+
+.alerttitle {
+ font-weight:bold;
+}
+
+.alertdate {
+}
+
+.alertauthor {
+ font-style:italic;
+}
+
+.alertcontent {
+}
+
+.alertmessagebox {
+	margin: 5px 0px 5px 0px;
+	padding: 5px;
+#if ($request.getHeader("USER-AGENT").indexOf("MSIE") != -1)
+	width:100%;
+#end
+	text-align: left;
+	background-color : #eeeeee;
+	border :1px solid #525D76;
+}
+
+.loginbox {
+   font-weight: bold;
+   font-style: normal;
+   padding: 5px;
+   align:right;
+   margin:5px 0px 5px 0px;
+   background-color: #eeeeee;
+   border: 1px solid #525D76;
+}
+
+tr.headercolor1 {
+	background-color : #a5beef;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+a.headercolor1 {
+	background-color : #a5beef;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+td.bodycolor11 {
+	background-color : #bfcfef;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+td.bodycolor12 {
+	background-color : #d7dfef;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+tr.headercolor2 {
+	background-color : #d9d9d9;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+a.headercolor2 {
+	background-color : #d9d9d9;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+td.bodycolor21 {
+	background-color : #e4e4e4;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+td.bodycolor22 {
+	background-color : #eeeeee;
+	font-family: Tahoma, Arial, sans-serif;
+	font-size: 10pt;
+	font-weight: normal;
+	font-style: normal;
+	color: #000000;
+}
+
+.popup { POSITION: absolute; VISIBILITY: hidden; BACKGROUND-COLOR: silver; LAYER-BACKGROUND-COLOR: yellow; width: 250; BORDER-LEFT: 1px solid black; BORDER-TOP: 1px solid black; BORDER-BOTTOM: 3px solid black; BORDER-RIGHT: 3px solid black; PADDING: 3px; z-index: 10 }
+
+
+

Added: incubator/lokahi/lokahi/trunk/src/www/wap/confirm.wml
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/wap/confirm.wml?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/wap/confirm.wml (added)
+++ incubator/lokahi/lokahi/trunk/src/www/wap/confirm.wml Mon Apr 10 09:19:33 2006
@@ -0,0 +1,87 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: confirm.wml,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<?xml version="1.0"?>
+<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
+#set ($appRoot = $props.get("application.root"))
+<wml>
+<head>
+ <meta name="keyword" content="WAP"/>
+ <meta http-equiv="cache-control" content="no-cache"/>
+</head>
+  <template>
+    <do type="accept" label="Logout">
+      <go href="../Authenticate.do" method="post">
+        <postfield name="wap" value="true"/>
+        <postfield name="logout" value="true"/>
+      </go>
+    </do>
+    <do type="accept" label="Start over">
+      <go href="$appRoot/wap/home.wml">
+      </go>
+    </do>
+  </template>
+  #if (!$User)
+    #set($redirect = "$appRoot/wap/index.wml")
+    <card ontimer="$redirect">
+      <timer value="1"/>
+    </card>
+  #end
+  <card id="confirm" title="TMC - confirm">
+    <do type="accept" label="Next">
+      <go href="#function">
+      </go>
+    </do>
+    <p>
+      You selected: $component - $name
+      #if ($instanceId && ($component == "ApacheWorker" || $component == "TomcatWorker" || $component == "Context"))
+      #set ($instance = $User.getInstance())
+      - $instance.getName()
+      #set($objs = $wapTool.getObjects($component, $name, $instance))
+      #else
+      #set($objs = $wapTool.getObjects($component, $name))
+      #end
+    </p>
+    <p>
+      Results:
+      <select multiple="false" name="ids">
+      #foreach ($obj in $objs)
+        <option value="$obj.getPk()">$obj.getName()</option>
+      #end
+      </select>
+    </p>
+  </card>
+  <card id="function" title="TMC - function">
+    <do type="accept" label="Next">
+           <go href="$appRoot/$component/SubmitJobAction.do" method="post">
+              <postfield name="id" value="$(ids)"/>
+              <postfield name="methodToCall" value="$(methodToCall)"/>
+              <postfield name="wap" value="true"/>
+            </go>
+    </do>
+    <p>
+      $(ids)<br/>
+      Select a function:
+      <select name="methodToCall">
+      #foreach ($obj in $wapTool.getFunctions($component, $User))
+        <option value="$obj.getCommand()">$obj.getName()</option>
+      #end
+      </select>
+    </p>
+  </card>
+</wml>
+

Added: incubator/lokahi/lokahi/trunk/src/www/wap/details.wml
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/wap/details.wml?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/wap/details.wml (added)
+++ incubator/lokahi/lokahi/trunk/src/www/wap/details.wml Mon Apr 10 09:19:33 2006
@@ -0,0 +1,61 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: details.wml,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<?xml version="1.0"?>
+<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
+#set ($appRoot = $props.get("application.root"))
+<wml>
+<head>
+ <meta name="keyword" content="WAP"/>
+ <meta http-equiv="cache-control" content="no-cache"/>
+</head>
+  <template>
+    <do type="accept" label="Logout">
+      <go href="../Authenticate.do" method="post">
+        <postfield name="wap" value="true"/>
+        <postfield name="logout" value="true"/>
+      </go>
+    </do>
+    <do type="accept" label="Start over">
+      <go href="$appRoot/wap/home.wml">
+      </go>
+    </do>
+  </template>
+  <card id="details" title="TMC - Job details">
+    <p><anchor>Back <go href="results.wml"/></anchor></p>
+#if ($request.getParameter("id"))
+#set ($jobPoolId = $request.getParameter("id"))
+#set ($jobPool = $User.getJobPool($jobPoolId) )
+    <p><anchor>Refresh<go href="details.wml?id=$jobPoolId"/></anchor></p>
+    <p>Job: $jobPool.getName()</p>
+    <p>Task: $jobPool.getFunction().getName()</p>
+    <p>Options: $!{jobPool.getOptions()}</p>
+  #set ($sortedJobs = $jobPool.getSortedJobs())
+  #foreach ($hardwareName in $sortedJobs.keySet())
+     <p>Server - $hardwareName <br/>
+     #foreach ($Job in $sortedJobs.get($hardwareName).values())
+	   Name: $Job.getName() - $Job.getFunction().getCommand() <br/>
+	   State: $Job.getState().getName() <br/><br/>
+     #end
+    </p>
+   #end
+#end
+  </card>
+
+
+</wml>
+

Added: incubator/lokahi/lokahi/trunk/src/www/wap/home.wml
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/wap/home.wml?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/wap/home.wml (added)
+++ incubator/lokahi/lokahi/trunk/src/www/wap/home.wml Mon Apr 10 09:19:33 2006
@@ -0,0 +1,102 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: home.wml,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<?xml version="1.0"?>
+<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
+#set ($appRoot = $props.get("application.root"))
+<wml>
+ <head>
+ <meta name="keyword" content="WAP"/>
+ <meta http-equiv="cache-control" content="no-cache"/>
+ </head>
+  <template>
+    <do type="accept" label="Logout">
+      <go href="../Authenticate.do" method="post">
+        <postfield name="wap" value="true"/>
+        <postfield name="logout" value="true"/>
+      </go>
+    </do>
+  </template>
+  #if (!$User)
+    #set($redirect = "$appRoot/wap/index.wml")
+    <card ontimer="$redirect">
+      <timer value="1"/>
+    </card>
+  #end
+  <card id="homepage" title="TMC">
+    <do type="accept" label="Next">
+      <go href="#filter1">
+      </go>
+    </do>
+    <p>
+      Select an Infrastructure component to filter on:
+      <br/>
+      <select name="component">
+        <option value="HostingPool">Hosting Pool</option>
+        <option value="ApachePool">Apache Pool</option>
+        <option value="TomcatPool">Tomcat Pool</option>
+        <option value="ApacheWorker">Apache Worker</option>
+        <option value="TomcatWorker">Tomcat Worker</option>
+        <!--        <option value="Context">Context</option>-->
+      </select>
+    </p>
+  </card>
+  <card id="filter1" title="TMC - filter by name">
+    <do type="accept" label="Next">
+      <go href="#filter2">
+      </go>
+    </do>
+    <do type="accept" label="Search">
+      <go href="$appRoot/wap/confirm.wml" method="post">
+        <postfield name="component" value="$(component)"/>
+        <postfield name="name" value="$(name)"/>
+        <postfield name="wap" value="true"/>
+      </go>
+    </do>
+    <p>
+    You selected:
+      <br/>
+    $(component)
+      <br/>
+    </p>
+    <p>
+      Filter by name:
+      <br/>
+      <input name="name" emptyok="false" type="text"/>
+    </p>
+  </card>
+  <card id="filter2" title="TMC - filter by instance">
+    <do type="accept" label="Search">
+      <go href="$appRoot/wap/confirm.wml" method="post">
+        <postfield name="component" value="$(component)"/>
+        <postfield name="name" value="$(name)"/>
+        <postfield name="instanceId" value="$(instanceId)"/>
+        <postfield name="wap" value="true"/>
+      </go>
+    </do>
+    <p>
+      Filter by Instance:
+      <br/>
+      <select name="instanceId">
+      #foreach($i in $User.getInstances())
+        <option value="$i.getPk()">$i.getName()</option>
+      #end
+      </select>
+    </p>
+  </card>
+</wml>
+

Added: incubator/lokahi/lokahi/trunk/src/www/wap/index.wml
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/wap/index.wml?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/wap/index.wml (added)
+++ incubator/lokahi/lokahi/trunk/src/www/wap/index.wml Mon Apr 10 09:19:33 2006
@@ -0,0 +1,54 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: index.wml,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($appRoot = $props.get("application.root"))
+<?xml version="1.0"?>
+
+<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
+<wml>
+ <head>
+ <meta name="keyword" content="WAP"/>
+ <meta http-equiv="cache-control" content="no-cache"/>
+ </head>
+  #if ($User)
+    #set($redirect = "$appRoot/wap/home.wml")
+    <card ontimer="$redirect">
+      <timer value="1"/>
+    </card>
+  #end
+  <card id="Login" title="TMC">
+    <p>
+        Welcome to TMC
+    </p>
+    <p>
+      Name:
+      <input emptyok="false" type="text" name="userName" value=""/>
+      <br/>
+      Password:
+      <input emptyok="false" size="12" type="password" name="passWord" value=""/>
+      <br/>
+      <do type="accept">
+        <go href="../Authenticate.do" method="post">
+          <postfield name="userName" value="$(userName)"/>
+          <postfield name="passWord" value="$(passWord)"/>
+          <postfield name="wap" value="true"/>
+        </go>
+      </do>
+    </p>
+  </card>
+</wml>
+

Added: incubator/lokahi/lokahi/trunk/src/www/wap/redirect.wml
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/wap/redirect.wml?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/wap/redirect.wml (added)
+++ incubator/lokahi/lokahi/trunk/src/www/wap/redirect.wml Mon Apr 10 09:19:33 2006
@@ -0,0 +1,36 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: redirect.wml,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+<?xml version="1.0"?>
+<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
+#set ($appRoot = $props.get("application.root"))
+<!-- #set ($redirect = $request.getParameter("path")) -->
+<!--
+#if (!$User)
+#set($redirect = "$appRoot/wap/index.wml")
+#end
+-->
+<wml>
+  <head>
+  <meta name="keyword" content="WAP"/>
+  <meta http-equiv="cache-control" content="no-cache"/>
+  </head>
+  <card ontimer="$appRoot$redirect">
+  <timer value="1"/>
+  </card>
+</wml>
+

Added: incubator/lokahi/lokahi/trunk/src/www/wap/results.wml
URL: http://svn.apache.org/viewcvs/incubator/lokahi/lokahi/trunk/src/www/wap/results.wml?rev=392982&view=auto
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/wap/results.wml (added)
+++ incubator/lokahi/lokahi/trunk/src/www/wap/results.wml Mon Apr 10 09:19:33 2006
@@ -0,0 +1,64 @@
+##
+## Copyright 2006  The Apache Software Foundation
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##     http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+## $Id: results.wml,v 1.1.1.1 2005/11/30 22:35:36 drtobes Exp $
+##
+#set ($appRoot = $props.get("application.root"))
+<?xml version="1.0"?>
+<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
+<wml>
+<head>
+ <meta name="keyword" content="WAP"/>
+ <meta http-equiv="cache-control" content="no-cache"/>
+</head>
+  <template>
+    <do type="accept" label="Logout">
+      <go href="../Authenticate.do" method="post">
+        <postfield name="wap" value="true"/>
+        <postfield name="logout" value="true"/>
+      </go>
+    </do>
+    <do type="accept" label="Start over">
+      <go href="$appRoot/wap/home.wml">
+      </go>
+    </do>
+  </template>
+  #if (!$User)
+    #set($redirect = "$appRoot/wap/index.wml")
+    <card ontimer="$redirect">
+      <timer value="1"/>
+    </card>
+  #end
+  <card id="results" title="TMC - Recent Jobs">
+    <p>#messagesMarkup() #errorMarkup()</p>
+    <p>$!ResultMessage</p>
+    <p>Recent Jobs:</p>
+    <p>#set ($recentJobs = $User.getRecentJobPools(5))
+    #foreach($job in $recentJobs)
+      $job.getFunction().getName()
+      $job.getStartTime()
+      <a href="details.wml?id=$job.getPk()">
+      #if($job.getState().getName())
+  <!--		$job.getState().getName() -->
+      Details
+      #else
+      Details
+      #end
+      </a><br/>
+    #end
+    </p>
+  </card>
+</wml>
+



Mime
View raw message