home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / users.jx < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  6.1 KB  |  155 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.                                                                                                                                                              
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.                                                                                                                                                              
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.                                                                                                                                                              
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <document xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
  18.           xmlns:xi="http://www.w3.org/2001/XInclude">
  19.   <header>
  20.     <title>Jakarta Slide example</title>
  21.     <tab title="users"       href="viewusers.do"/>
  22.     <tab title="content"     href="viewcontent.do?path=${source.path}"/>
  23.     <tab title="properties"  href="viewproperties.do?path=${source.path}"/>
  24.     <tab title="permissions" href="viewpermissions.do?path=${source.path}"/>
  25.     <tab title="locks"       href="viewlocks.do?path=${source.path}"/>
  26.     <tab title="logout"      href="logout.do"/>
  27.   </header>
  28.   <body>
  29.     <row>
  30.       <column title="Users">
  31.         <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2" width="100%" align="center">
  32.           <tr>
  33.             <td align="left">
  34.               <b>User</b>
  35.             </td>
  36.             <td/>
  37.             <td align="left">
  38.               <b>Password</b>
  39.             </td>
  40.             <td/>
  41.             <td align="left">
  42.               <b>Roles</b>
  43.             </td>
  44.             <td align="right"/>
  45.           </tr>
  46.           <jx:forEach var="user" items="${users}">
  47.             <tr>
  48.               <td align="left">
  49.                 ${user}<br/>
  50.               </td>
  51.               <td align="left">
  52.                 <form action="removeobject.do">
  53.                   <input type="hidden" name="objecturi" value="${user}"/>
  54.                   <input type="submit" name="doRemoveUser" value="Delete"/>
  55.                 </form>
  56.               </td>
  57.               <form action="changepwd.do" method="post">
  58.                 <input type="hidden" name="username" value="${user}"/>
  59.                 <td align="left">
  60.                   <input type="password" name="password" size="10" maxlength="40"/>
  61.                 </td>
  62.                 <td>
  63.                   <input type="submit" name="doSetPassword" value="Change"/>
  64.                 </td>
  65.               </form>
  66.               <form action="removemember.do" method="post">
  67.                 <input type="hidden" name="subjecturi" value="${user}"/>
  68.                 <td align="left">
  69.                   <select name="objecturi">
  70.                     <jx:forEach var="role" items="#{roles[member = $user]}">
  71.                       <option value="{$role.uri}">
  72.                         ${role.uri}
  73.                       </option>
  74.                     </jx:forEach> 
  75.                   </select>
  76.                 </td>
  77.                 <td align="left">
  78.                   <input type="submit" name="doRemoveRoleMember" value="Remove role"/>
  79.                 </td>
  80.               </form>
  81.             </tr>
  82.             <tr>
  83.               <td colspan="4"/>
  84.               <form action="addmember.do" method="post">
  85.                 <input type="hidden" name="subjecturi" value="{$user}"/>
  86.                 <td align="left">
  87.                   <select name="objecturi" size="1">
  88.                     <jx:forEach var="role" items="${roles}">
  89.                       <option value="{$role.uri}">
  90.                         ${role.uri}
  91.                       </option>
  92.                     </jx:forEach>
  93.                   </select>
  94.                 </td>
  95.                 <td align="left">
  96.                   <input type="submit" name="doAddRoleMember" value="Add role"/>
  97.                 </td>
  98.                 <td align="left"/>
  99.               </form>
  100.             </tr>
  101.           </jx:forEach>
  102.           <tr>
  103.             <form action="adduser.do" method="post">
  104.               <td align="left">
  105.                 <input name="username" type="text" size="10" maxlength="40"/>
  106.               </td>
  107.               <td align="left"/>
  108.               <td align="left">
  109.                 <input name="password" type="password" size="10" maxlength="40"/>
  110.               </td>
  111.               <td colspan="2"/>
  112.               <td align="right">
  113.                 <input type="submit" name="doAddUser" value="Add user"/>
  114.               </td>
  115.             </form>
  116.           </tr>
  117.         </table>
  118.       </column>
  119.       <column title="Roles">
  120.         <table bgcolor="#ffffff" border="0" cellspacing="0" cellpadding="2" width="100%" align="center">
  121.           <tr>
  122.             <td align="left">
  123.               <b>Role</b>
  124.             </td>
  125.             <td align="right"/>
  126.           </tr>
  127.           <jx:forEach var="role" items="${roles}">
  128.             <tr>
  129.               <form action="removeobject.do" method="post">
  130.                 <input type="hidden" name="objecturi" value="{$roleuri}"/>
  131.                 <td align="left">
  132.                   ${role.uri}
  133.                 </td>
  134.                 <td align="right">
  135.                   <input type="submit" name="doRemovePrincipalRole" value="Remove role"/>
  136.                 </td>
  137.               </form>
  138.             </tr>
  139.           </jx:forEach>
  140.           <tr>
  141.             <form action="addrole.do" method="post">
  142.               <td align="left">
  143.                 <input name="rolename" type="text" size="15" maxlength="40"/>
  144.               </td>
  145.               <td align="right">
  146.                 <input type="submit" name="doAddPrincipalRole" value="Add role"/>
  147.               </td>
  148.             </form>
  149.           </tr>
  150.         </table>
  151.       </column>
  152.     </row>
  153.   </body>
  154. </document>
  155.