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 / portalconfHTML.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  80.9 KB  |  2,009 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.  
  18. <!-- $Id: portalconfHTML.xsl,v 1.4 2004/03/06 02:25:39 antonio Exp $ 
  19.  
  20.  Description: Portal Configuration to HTML
  21.  
  22. -->
  23.  
  24. <xsl:stylesheet version="1.0" 
  25.                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  26.  
  27. <!-- Frameset -->
  28.  
  29. <xsl:template match="pageset">
  30.     <frameset border="0" frameBorder="NO" frameSpacing="2">
  31.         <xsl:if test="@rows">
  32.             <xsl:attribute name="rows"><xsl:value-of select="@rows"/></xsl:attribute>
  33.                 </xsl:if>
  34.                 <xsl:if test="@columns">
  35.                     <xsl:attribute name="cols"><xsl:value-of select="@columns"/></xsl:attribute>
  36.                 </xsl:if>
  37.                 <xsl:apply-templates/>
  38.     </frameset>
  39. </xsl:template>
  40.  
  41. <xsl:template match="pagepart">
  42.   <xsl:apply-templates/>
  43. </xsl:template>
  44.  
  45. <xsl:template match="part">  
  46.     <frame frameborder="0" marginHeight="0" marginWidth="0" noResize="">
  47.         <xsl:attribute name="src"><xsl:value-of select="normalize-space(url)"/></xsl:attribute>
  48.           <xsl:attribute name="name"><xsl:value-of select="@title"/></xsl:attribute>
  49.           <xsl:if test="@scrolling">
  50.                 <xsl:attribute name="scrolling"><xsl:value-of select="@scrolling"/></xsl:attribute>
  51.           </xsl:if>
  52.           <xsl:if test="@noresize">
  53.                 <xsl:attribute name="noresize"><xsl:value-of select="@noresize"/></xsl:attribute>
  54.           </xsl:if>
  55.     </frame>  
  56. </xsl:template>
  57.  
  58. <!-- /Frameset -->
  59.  
  60. <xsl:template name="inputfield">
  61.     <xsl:choose>
  62.         <xsl:when test="@formtype='BOOLEAN'">
  63.             <select>
  64.                 <xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  65.                 <option value="true"><xsl:if test="normalize-space(.)='true'">
  66.                         <xsl:attribute name="selected">true</xsl:attribute>
  67.                     </xsl:if>Yes
  68.                 </option>
  69.                 <option value="false"><xsl:if test="normalize-space(.)='false'">
  70.                     <xsl:attribute name="selected">true</xsl:attribute>
  71.                     </xsl:if>No
  72.                 </option>
  73.             </select>
  74.         </xsl:when>
  75.         <xsl:when test="@formtype='CARDINAL'">
  76.             <input>
  77.                 <xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  78.                 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  79.                 <xsl:attribute name="type">text</xsl:attribute>
  80.                 <xsl:attribute name="size">10</xsl:attribute>
  81.             </input>
  82.         </xsl:when>
  83.         <xsl:when test="@formtype='INTEGER'">
  84.             <input>
  85.                 <xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  86.                 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  87.                 <xsl:attribute name="type">text</xsl:attribute>
  88.                 <xsl:attribute name="size">10</xsl:attribute>
  89.             </input>
  90.         </xsl:when>
  91.         <xsl:when test="@formtype='STRING'">
  92.             <input>
  93.                 <xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  94.                 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  95.                 <xsl:attribute name="type">text</xsl:attribute>
  96.             </input>
  97.         </xsl:when>
  98.         <xsl:otherwise>
  99.             <select>
  100.                 <xsl:attribute name="name"><xsl:value-of select="@formpath"/></xsl:attribute>
  101.                 <xsl:variable name="typename"><xsl:value-of select="@formtype"/></xsl:variable>
  102.                 <xsl:variable name="value" select="normalize-space(.)"/>
  103.                 <xsl:for-each select="ancestor::portalconf/typedefs/typedef[@name=$typename]/value">
  104.                     <option>
  105.                         <xsl:attribute name="value"><xsl:value-of select="normalize-space(.)"/></xsl:attribute>
  106.                         <xsl:if test="normalize-space(.)=$value">
  107.                             <xsl:attribute name="selected">true</xsl:attribute>
  108.                         </xsl:if>
  109.                         <xsl:value-of select="@name"/>
  110.                     </option>
  111.                 </xsl:for-each>
  112.             </select>
  113.         </xsl:otherwise>
  114.     </xsl:choose>
  115. </xsl:template>
  116.  
  117. <!-- Portal Configuration -->
  118.  
  119. <xsl:template match="portalconf">
  120. <html>
  121. <head>
  122.     <title>Portal Configuration</title>
  123. </head>
  124. <body text="#0B2A51" link="#0B2A51" vlink="#666666">
  125. <xsl:attribute name="bgcolor">
  126.     <xsl:value-of select="layout-profile/portal/layouts/layout/background/color"/>
  127. </xsl:attribute>
  128.  
  129. <table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%">
  130.     <tr>
  131.  
  132. <!-- menue -->
  133.         <td height="100%" noWrap="" width="193" valign="top" bgcolor="cccccc">
  134.         <img height="2" src="sunspotdemoimg-space.gif" width="1"/>
  135.             <table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%">
  136.                 <tr>
  137.                     <td>
  138.                         <table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  139.                             <tr>
  140.                                 <td bgcolor="#46627A" width="1%">
  141.                                     <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  142.                                 </td>
  143.                                 <td bgcolor="#cccccc">
  144.                                     <br/>
  145.                                     <font face="Arial, Helvetica, sans-serif" size="2">
  146.                                         <xsl:variable name="linkurl"><xsl:value-of select="configuration/portal"/>?portalprofile=<xsl:value-of select="configuration/profile"/></xsl:variable>
  147.                                         <b><a target="_top">
  148.                                             <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  149.                                             <blockquote>Your Portal</blockquote>
  150.                                         </a></b>
  151.                                     </font>
  152.                                 </td>
  153.                             </tr>
  154.                             <tr>
  155.                                 <td bgcolor="#46627A" width="1%">
  156.                                     <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  157.                                 </td>
  158.                                 <td bgcolor="#cccccc">
  159.                                     <Bbr/>
  160.                                     <font face="Arial, Helvetica, sans-serif" size="2">
  161.                                           <xsl:variable name="linkurl"><xsl:value-of select="configuration/portal"/>?portalprofile=<xsl:value-of select="configuration/profile"/>&portalcmd=save</xsl:variable>
  162.                                         <b><a target="_top">
  163.                                             <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  164.                                             <blockquote>Save</blockquote>                    
  165.                                         </a></b>
  166.                                     </font>
  167.                                     <font face="Arial, Helvetica, sans-serif" size="1">
  168.                                                                                                                         <p align="center">If you change the portal layout, you first have to accept the changes with "Change Layout"</p>
  169.                                     </font>
  170.                                 </td>
  171.                             </tr>
  172.                         </table>
  173.                     </td>
  174.                 </tr>
  175.             </table>
  176.         </td>
  177. <!-- /menue -->
  178.  
  179. <!-- content -->
  180.         <td>
  181.             <table border="0" width="100%" cellspacing="0" cellpadding="0">
  182.                         <xsl:attribute name="bgcolor">
  183.                             <xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/background/color"/>
  184.                         </xsl:attribute>
  185.                             <tr>
  186.                 <td width="1%"><img src="sunspotdemoimg-space.gif" width="20" height="1"/></td>
  187.                 <td align="center">
  188.                     <img src="sunspotdemoimg-space.gif" height="20" width="1"/>
  189.                     <table border="0" width="100%">
  190.                         <tr>
  191.                             <td>
  192.                                 <xsl:apply-templates select="layout-profile"/>
  193.                             </td>
  194.                         </tr>
  195.                         <tr>
  196.                             <td>
  197.                                 <xsl:apply-templates select="portal-profile"/>
  198.                             </td>
  199.                         </tr>
  200.                         <tr>
  201.                             <td><img src="sunspotdemoimg-space.gif" height="10"/></td>
  202.                         </tr>
  203.                         <tr>
  204.                             <td>
  205.                                 <xsl:apply-templates select="coplets-profile"/>
  206.                             </td>
  207.                         </tr>
  208.                     </table>
  209.                 </td>
  210.                 <td><img src="sunspotdemoimg-space.gif" width="20"/></td>
  211.                 </tr></table></td>
  212. <!-- /content -->
  213.  
  214.             </tr>
  215.         </table>
  216.     </body>
  217. </html>
  218. </xsl:template>
  219.  
  220. <!-- /Portal Configuration -->
  221.  
  222. <!-- Portal Administration -->
  223.  
  224. <xsl:template match="portaladminconf">
  225. <html>
  226.     <head>
  227.         <title>Portal Administration</title>
  228.     </head>
  229.     <body text="#0B2A51" link="#0B2A51" vlink="#666666" bgColor="#cccccc">
  230.         <table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="0" width="100%"><tbody>
  231.                 <tr>
  232.                    <td>
  233.                         <table border="0" cellPadding="0" cellSpacing="2" height="100%" width="100%"><tbody>
  234.  
  235. <!-- Header -->
  236.                     <tr>
  237.                                       <td bgcolor="#AAB9BF" noWrap="" colspan="3">
  238.                                  <img src="sunspotdemoimg-space.gif" height="5"/>
  239.                         </td>
  240.                     </tr>
  241.                                 <tr>
  242.                                       <td bgcolor="#AAB9BF" noWrap="">    
  243.                                 <img src="sunspotdemoimg-logo.jpg"/>
  244.                                       </td>
  245.                                       <td bgcolor="#AAB9BF" valign="bottom" align="center" colspan="2">
  246.                                                 <font face="Arial, Helvetica, sans-serif" size="6" color="#46627A">
  247.                                     <b>Portal Administration</b>
  248.                                 </font>
  249.                                       </td>
  250.                                 </tr>
  251.                                 <tr>
  252.                                       <td noWrap="" width="10%" bgcolor="#cccccc">
  253.                                 <img src="sunspotdemoimg-space.gif" height="10"/>
  254.                                       </td>
  255.                                       <td width="90%" bgcolor="#cccccc" colspan="2">
  256.                                  
  257.                         </td>
  258.                                 </tr>
  259. <!-- /Header -->    
  260.  
  261. <!-- Hauptseite -->    
  262.                     <xsl:choose>
  263.                         <xsl:when test="state = 'main' or state = 'mainrole'">
  264.                             <tr>
  265. <!-- Menue -->
  266.                                        <td bgcolor="#cccccc">
  267.                                     <img src="sunspotdemoimg-space.gif"/>
  268.                                 </td>
  269.  
  270.                                 <td>
  271.                                     <img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  272.                                 </td>
  273.                                          <td align="center">
  274.                                     <img src="sunspotdemoimg-space.gif" height="10"/>
  275.                                     <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  276.                                         <tr>    
  277.                                             <td>
  278.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  279.                                                     <tr>
  280.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  281.                                                     </tr>
  282.                                                     <tr>
  283.                                                         <td width="1%">
  284.                                                             <img src="sunspotdemoimg-space.gif" width="30"/>
  285.                                                         </td>
  286.                                                         <td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  287.                                                         <td width="98%" colspan="2">
  288.                                                             <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=main&portaladmin_coplets=cleancache</xsl:variable>
  289.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  290.                                                                 <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>Clear Profile Cache</a>
  291.                                                             </font>
  292.                                                         </td>
  293.                                                     </tr>
  294.                                                     <tr>
  295.                                                         <td colspan="4">
  296.                                                             <img src="sunspotdemoimg-space.gif" height="10"/>
  297.                                                         </td>
  298.                                                     </tr>
  299.                                                 </table>
  300.                                             </td>
  301.                                         </tr>
  302.                                     </table>
  303.                                     <br/>
  304.                                     <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  305.                                         <tr>    
  306.                                             <td>
  307.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  308.                                                     <tr>
  309.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  310.                                                     </tr>
  311.                                                     <tr>
  312.                                                         <td width="1%">
  313.                                                             <img src="sunspotdemoimg-space.gif" width="30"/>
  314.                                                         </td>
  315.                                                         <td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  316.                                                         <td width="98%" colspan="2">
  317.                                                             <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=coplets</xsl:variable>
  318.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  319.                                                                 <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>Change coplet Profile</a>
  320.                                                             </font>
  321.                                                         </td>
  322.                                                     </tr>
  323.                                                     <tr>
  324.                                                         <td width="1%">
  325.                                                             <img src="sunspotdemoimg-space.gif" width="30"/>
  326.                                                         </td>
  327.                                                         <td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  328.                                                         <td width="98%" colspan="2">
  329.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  330.                                                                  After you have changed the coplet Profile, you have to logout and login again, before you can edit other profiles.
  331.                                                             </font>
  332.                                                         </td>
  333.                                                     </tr>
  334.                                                     <tr>
  335.                                                         <td colspan="4">
  336.                                                             <img src="sunspotdemoimg-space.gif" height="10"/>
  337.                                                         </td>
  338.                                                     </tr>
  339.                                                 </table>
  340.                                             </td>
  341.                                         </tr>
  342.                                     </table>
  343.                                     <br/>
  344.                                     <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  345.                                         <tr>    
  346.                                             <td>
  347.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  348.                                                     <tr>
  349.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  350.                                                     </tr>
  351.                                                     <tr>
  352.                                                         <td width="1%">
  353.                                                             <img src="sunspotdemoimg-space.gif" width="30"/>
  354.                                                         </td>
  355.                                                         <td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  356.                                                         <td width="98%" colspan="2">
  357.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  358.                                                             <xsl:attribute name="color">
  359.                                                                 <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  360.                                                             </xsl:attribute>
  361.                                                                 <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=global</xsl:variable>
  362.                                                                 <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>Change global Profile</a>
  363.                                                             </font>
  364.                                                         </td>
  365.                                                     </tr>
  366.                                                     <tr>
  367.                                                         <td width="1%">
  368.                                                             <img src="sunspotdemoimg-space.gif" width="30"/>
  369.                                                         </td>
  370.                                                         <td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  371.                                                         <td width="98%" colspan="2">
  372.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  373.                                                                  After you have changed the global Profile, you have to logout and login again, before you can edit other profiles.
  374.                                                             </font>
  375.                                                         </td>
  376.                                                     </tr>
  377.                                                     <tr>
  378.                                                         <td colspan="4">
  379.                                                             <img src="sunspotdemoimg-space.gif" height="10"/>
  380.                                                         </td>
  381.                                                     </tr>
  382.                                                 </table>
  383.                                             </td>
  384.                                         </tr>
  385.                                     </table>
  386.                                     <br/>
  387.                                     <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  388.                                         <tr>    
  389.                                             <td>
  390.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  391.                                                     <tr>
  392.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  393.                                                     </tr>
  394.                                                     <xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&portaladmin=role</xsl:variable>
  395.                                                     <form method="post">
  396.                                                         <xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  397.                                                     <tr>
  398.                                                         <td width="1%">
  399.                                                             <img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  400.                                                         </td>
  401.                                                         <td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  402.                                                         <td colspan="2">
  403.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  404.                                                                 <b>Change role profile</b>
  405.                                                             </font>
  406.                                                         </td>
  407.                                                     </tr>
  408.                                                     <tr>
  409.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  410.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  411.                                                             <img src="sunspotdemoimg-kast.gif"/>
  412.                                                         </td>
  413.                                                         <td width="1%">
  414.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  415.                                                                 Rolename:
  416.                                                             </font>
  417.                                                         </td>
  418.                                                         <td width="97%">
  419.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  420.                                                             <select name="portalrole">
  421.                                                             <xsl:for-each select="roles/role">
  422.                                                             <option>
  423.                                                                 <xsl:attribute name="value">
  424.                                                                     <xsl:value-of select="normalize-space(.)"/>
  425.                                                                 </xsl:attribute>
  426.                                                                 <xsl:value-of select="normalize-space(.)"/>
  427.                                                             </option>
  428.                                                             </xsl:for-each>
  429.                                                             </select>        
  430.                                                         </td>
  431.                                                     </tr>
  432.                                                     <tr>
  433.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  434.                                                         <td background="sunspotdemoimg-line_bg.gif" width="1%">
  435.                                                             <img src="sunspotdemoimg-space.gif" height="20"/>
  436.                                                         </td>
  437.                                                         <td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  438.                                                     </tr>
  439.                                                     <tr>
  440.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  441.                                                         <td width="1%">
  442.                                                             <img src="sunspotdemoimg-kast_url_u.gif"/>
  443.                                                         </td>
  444.                                                         <td width="1%">
  445.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  446.                                                                 <input type="submit" value="Change Role Profile"/>
  447.                                                             </font>
  448.                                                         </td>
  449.                                                         <td width="97%">
  450.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  451.                                                         </td>
  452.                                                     </tr>
  453.                                                      </form>
  454.                                                     <tr>
  455.                                                         <td width="1%">
  456.                                                             <img src="sunspotdemoimg-space.gif" width="30"/>
  457.                                                         </td>
  458.                                                         <td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  459.                                                         <td width="98%" colspan="2">
  460.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  461.                                                                  After you have changed a Role Profile, you have to logout and login again, before you can edit other profiles.
  462.                                                             </font>
  463.                                                         </td>
  464.                                                     </tr>
  465.                                                     <tr>
  466.                                                         <td colspan="4">
  467.                                                             <img src="sunspotdemoimg-space.gif" height="10"/>
  468.                                                         </td>
  469.                                                     </tr>
  470.                                                 </table>
  471.                                             </td>
  472.                                         </tr>
  473.                                     </table>
  474.                                     <br/>
  475.                     
  476.                                     <!-- Role selection for user selection -->
  477.                                     <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="60%">
  478.                                         <tr>    
  479.                                             <td>
  480.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  481.                                                     <tr>
  482.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  483.                                                     </tr>
  484.                                                     <xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&portaladmin=mainrole</xsl:variable>
  485.                                                     <form method="post">
  486.                                                         <xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  487.                                                     <tr>
  488.                                                         <td width="1%">
  489.                                                             <img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  490.                                                         </td>
  491.                                                         <td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  492.                                                         <td colspan="2">
  493.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  494.                                                                 <b>Change User Profile</b>
  495.                                                             </font>
  496.                                                         </td>
  497.                                                     </tr>
  498.                                                     <tr>
  499.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  500.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  501.                                                             <img src="sunspotdemoimg-kast.gif"/>
  502.                                                         </td>
  503.                                                         <td width="1%">
  504.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  505.                                                                 Rolename:
  506.                                                             </font>
  507.                                                         </td>
  508.                                                         <td width="97%">
  509.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  510.                                                             <xsl:variable name="selectedrole"><xsl:value-of select="roleusers/name"/></xsl:variable>
  511.                                                             <xsl:variable name="selectedstate"><xsl:value-of select="state"/></xsl:variable>
  512.                                                             <select name="portalrole">
  513.                                                             <xsl:for-each select="roles/role">
  514.                                                             <option>
  515.                                                                 <xsl:if test="normalize-space($selectedstate) = 'mainrole' and normalize-space($selectedrole) = normalize-space(.)">
  516.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  517.                                                                 </xsl:if>
  518.                                                                 <xsl:attribute name="value">
  519.                                                                     <xsl:value-of select="normalize-space(.)"/>
  520.                                                                 </xsl:attribute>
  521.                                                                 <xsl:value-of select="normalize-space(.)"/>
  522.                                                             </option>
  523.                                                             </xsl:for-each>
  524.                                                             </select>        
  525.                                                         </td>
  526.                                                     </tr>
  527.                                                     <tr>
  528.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  529.                                                         <td background="sunspotdemoimg-line_bg.gif" width="1%">
  530.                                                             <img src="sunspotdemoimg-space.gif" height="20"/>
  531.                                                         </td>
  532.                                                         <td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  533.                                                     </tr>
  534.                                                     <tr>
  535.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  536.                                                         <td width="1%">
  537.                                                             <img src="sunspotdemoimg-kast_url_u.gif"/>
  538.                                                         </td>
  539.                                                         <td width="1%">
  540.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  541.                                                                 <input type="submit" value="Select Role"/>
  542.                                                             </font>
  543.                                                         </td>
  544.                                                         <td width="97%">
  545.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  546.                                                         </td>
  547.                                                     </tr>
  548.                                                      </form>
  549.                                                     <xsl:if test="state = 'mainrole'">
  550.                                                         <xsl:variable name="acturl2"><xsl:value-of select="configuration/uri"/>&portaladmin=user</xsl:variable>
  551.                                                         <form method="post">
  552.                                                             <xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl2), ' ', '')"/></xsl:attribute>
  553.                                                             <input name="portalrole" type="hidden">
  554.                                                                 <xsl:attribute name="value"><xsl:value-of select="roleusers/name"/></xsl:attribute>
  555.                                                             </input>
  556.                                                             <tr>
  557.                                                                 <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  558.                                                                 <td width="1%" background="sunspotdemoimg-line_bg.gif">
  559.                                                                     <img src="sunspotdemoimg-kast.gif"/>
  560.                                                                 </td>
  561.                                                                 <td width="1%">
  562.                                                                     <font face="Arial, Helvetica, sans-serif" size="2">
  563.                                                                         User:
  564.                                                                     </font>
  565.                                                                 </td>
  566.                                                                 <td width="97%">
  567.                                                                 <img src="sunspotdemoimg-space.gif" width="10"/>
  568.                                                                 <select name="portalid">
  569.                                                                 <xsl:for-each select="roleusers/users/user">
  570.                                                                     <option>
  571.                                                                         <xsl:attribute name="value">
  572.                                                                             <xsl:value-of select="normalize-space(ID)"/>
  573.                                                                         </xsl:attribute>
  574.                                                                         <xsl:value-of select="normalize-space(ID)"/>
  575.                                                                     </option>
  576.                                                                 </xsl:for-each>
  577.                                                                 </select>        
  578.                                                                 </td>
  579.                                                             </tr>
  580.                                                             <tr>
  581.                                                                 <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  582.                                                                 <td background="sunspotdemoimg-line_bg.gif" width="1%">
  583.                                                                     <img src="sunspotdemoimg-space.gif" height="20"/>
  584.                                                                 </td>
  585.                                                                 <td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  586.                                                             </tr>
  587.                                                             <tr>
  588.                                                                 <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  589.                                                                 <td width="1%">
  590.                                                                     <img src="sunspotdemoimg-kast_url_u.gif"/>
  591.                                                                 </td>
  592.                                                                 <td width="1%">
  593.                                                                     <font face="Arial, Helvetica, sans-serif" size="2">
  594.                                                                         <input type="submit" value="Change User Profile"/>
  595.                                                                     </font>
  596.                                                                 </td>
  597.                                                                 <td width="97%">
  598.                                                                     <img src="sunspotdemoimg-space.gif" width="10"/>
  599.                                                                 </td>
  600.                                                             </tr>
  601.                                                          </form>
  602.                                                         <tr>
  603.                                                             <td width="1%">
  604.                                                                 <img src="sunspotdemoimg-space.gif" width="30"/>
  605.                                                             </td>
  606.                                                             <td width="1%"><img src="sunspotdemoimg-kast_m.gif"/></td>
  607.                                                             <td width="98%" colspan="2">
  608.                                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  609.                                                                  After you have changed a user Profile, you have to logout and login again, before you can edit other profiles.
  610.                                                                 </font>
  611.                                                             </td>
  612.                                                         </tr>
  613.                                                     </xsl:if>
  614.                                                     <tr>
  615.                                                         <td colspan="4">
  616.                                                             <img src="sunspotdemoimg-space.gif" height="10"/>
  617.                                                         </td>
  618.                                                     </tr>
  619.                                                 </table>
  620.                                             </td>
  621.                                         </tr>
  622.                                     </table>
  623.                                     <br/>
  624.                                 </td>
  625.                             </tr>
  626.                         </xsl:when>
  627. <!--  /Hauptseite -->
  628.  
  629. <!--  Bearbeiten -->
  630.                         <xsl:when test="state='role' or state='user' or state='global'">
  631.                             <tr>
  632.  
  633. <!--  Menue -->
  634.                                  <td bgcolor="#cccccc" valign="top" width="193">
  635.                                     <img src="sunspotdemoimg-space.gif" width="1" height="2"/>
  636.                                     <table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  637.                                         <tr>
  638.                                             <td bgcolor="#46627A" width="1%">
  639.                                                 <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  640.                                             </td>
  641.                                             <td bgcolor="#cccccc">
  642.                                                 <br/>
  643.                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  644.                                                     <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=main</xsl:variable>
  645.                                                     <b><a>
  646.                                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  647.                                                         <blockquote>Main</blockquote>
  648.                                                     </a></b>
  649.                                                 </font>
  650.                                             </td>
  651.                                         </tr>
  652.                                         <tr>
  653.                                             <td bgcolor="#46627A" width="1%">
  654.                                                 <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  655.                                             </td>
  656.                                             <td bgcolor="#cccccc">
  657.                                                 <br/>
  658.                                                 <font face="Arial, Helvetica, sans-serif" size="2"><b>
  659.                                                     <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=main&portalcmd=save</xsl:variable>
  660.                                                     <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  661.                                                         <blockquote>Save</blockquote>
  662.                                                     </a>
  663.                                                 </b></font>
  664.                                     <font face="Arial, Helvetica, sans-serif" size="1">
  665.                                            <p align="center">If you have changed the layout, you have to accept this first by "Change Layout".</p>
  666.                                     </font>
  667.                                             </td>
  668.                                         </tr>
  669.                                     </table>
  670.                                 </td>
  671. <!-- /Menue -->
  672.  
  673. <!-- Content -->
  674.                                               <td align="center">
  675.                                     <table border="0" cellPadding="0" cellSpacing="0" width="100%">
  676.                                         <xsl:attribute name="bgcolor">
  677.                                             <xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/background/color"/>
  678.                                         </xsl:attribute>
  679.                                         <tr><td><img src="sunspotdemoimg-space.gif" width="1" height="20"/></td></tr>
  680.                                         <tr>
  681.                                             <td width="1%"><img src="sunspotdemoimg-space.gif" width="20"/></td>
  682.                                             <td>
  683.                                             <xsl:choose>
  684.                                                 <xsl:when test="state ='global'">
  685.                                                     <font face="Arial, Helvetica, sans-serif" size="5">
  686.                                                         <xsl:attribute name="color">
  687.                                                             <xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/font/color"/>
  688.                                                         </xsl:attribute>
  689.                                                         <b>Global Profile</b>
  690.                                                     </font>
  691.                                                 </xsl:when>
  692.                                                 <xsl:when test="state ='role'">
  693.                                                     <font face="Arial, Helvetica, sans-serif" size="5">
  694.                                                         <xsl:attribute name="color">
  695.                                                             <xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/font/color"/>
  696.                                                         </xsl:attribute>
  697.                                                         <b>Role Profile: <xsl:value-of select="role"/></b>
  698.                                                     </font>
  699.                                                 </xsl:when>
  700.                                                 <xsl:when test="state ='user'">
  701.                                                     <font face="Arial, Helvetica, sans-serif" size="5">
  702.                                                         <xsl:attribute name="color">
  703.                                                             <xsl:value-of select="portalconf/layout-profile/portal/layouts/layout/font/color"/>
  704.                                                         </xsl:attribute>                                                            
  705.                                                         <b>User Profile: <xsl:value-of select="role"/>/<xsl:value-of select="id"/></b>
  706.                                                     </font>
  707.                                                 </xsl:when>
  708.                                             </xsl:choose>
  709.                                             <br/><br/>
  710.                                             <table border="0" width="100%" cellpadding="0" cellspacing="0">
  711.                                                 <tr>
  712.                                                     <td>
  713.                                                         <xsl:apply-templates select="portalconf/layout-profile"/>
  714.                                                     </td>
  715.                                                 </tr>
  716.                                                 <tr>
  717.                                                     <td>
  718.                                                         <xsl:apply-templates select="portalconf/portal-profile"/>
  719.                                                     </td>
  720.                                                 </tr>
  721.                                                 <tr>
  722.                                                     <td>
  723.                                                         <img src="sunspotdemoimg-space.gif" height="10"/>
  724.                                                     </td>
  725.                                                 </tr>
  726.                                                 <tr>
  727.                                                     <td>
  728.                                                         <xsl:apply-templates select="portalconf/coplets-profile"/>
  729.                                                                     </td>
  730.                                                 </tr>
  731.                                                 <tr>
  732.                                                     <td>
  733.                                                         <img src="sunspotdemoimg-space.gif" height="10"/>
  734.                                                     </td>
  735.                                                 </tr>
  736.                                                 <tr>
  737.                                                     <td>
  738.                                                         <xsl:for-each select="portalconf/coplets-profile">
  739.                                                             <xsl:call-template name="admin_coplets-profile"/>
  740.                                                         </xsl:for-each>
  741.                                                                     </td>
  742.                                                 </tr>
  743.                                             </table>
  744.                                         </td>
  745.                                         <td><img src="sunspotdemoimg-space.gif" width="20"/></td>
  746.                                     </tr>
  747.                                 </table>
  748.                             </td>
  749.                         </tr>
  750.                         </xsl:when>
  751.                         <xsl:when test="state='coplets'"> 
  752.                             <tr>
  753.  
  754. <!--  Menue -->
  755.                                  <td bgcolor="#cccccc" valign="top" width="193">
  756.                                     <img src="sunspotdemoimg-space.gif" width="1" height="2"/>
  757.                                     <table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  758.                                         <tr>
  759.                                             <td bgcolor="#46627A" width="1%">
  760.                                                 <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  761.                                             </td>
  762.                                             <td bgcolor="#cccccc">
  763.                                                 <br/>
  764.                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  765.                                                     <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=main</xsl:variable>
  766.                                                     <b><a>
  767.                                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  768.                                                         <blockquote>Main</blockquote>
  769.                                                     </a></b>
  770.                                                 </font>
  771.                                             </td>
  772.                                         </tr>
  773.                                         <tr>
  774.                                             <td bgcolor="#46627A" width="1%">
  775.                                                 <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  776.                                             </td>
  777.                                             <td bgcolor="#cccccc">
  778.                                                 <br/>
  779.                                                 <font face="Arial, Helvetica, sans-serif" size="2"><b>
  780.                                                     <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=main&portaladmin_coplets=save</xsl:variable>
  781.                                                     <a>
  782.                                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  783.                                                         <blockquote>Save</blockquote>
  784.                                                     </a>
  785.                                                 </b></font>
  786.                                             </td>
  787.                                         </tr>
  788.                                     </table>
  789.                                 </td>
  790. <!-- /Menue -->
  791.  
  792. <!-- Content -->
  793.                                   <td><img src="sunspotdemoimg-space.gif" height="1" width="10"/></td>
  794.                                 <!-- Present list of coplets for editing-->
  795.                                 <td align="center">
  796.                                     <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="400" nowrap="">
  797.                                         <tr>    
  798.                                             <td>
  799.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  800.                                                     <tr>
  801.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10" width="1"/></td>
  802.                                                     </tr>
  803.                                                     <xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&portaladmin=coplet</xsl:variable>
  804.                                                     <form method="post">
  805.                                                         <xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  806.                                                     <tr>
  807.                                                         <td width="1%">
  808.                                                             <img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  809.                                                         </td>
  810.                                                         <td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  811.                                                         <td colspan="2">
  812.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  813.                                                                 <b>Edit coplet</b>
  814.                                                             </font>
  815.                                                         </td>
  816.                                                     </tr>
  817.                                                     <tr>
  818.                                                                     <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  819.                                                                     <td width="1%" background="sunspotdemoimg-line_bg.gif">
  820.                                                                         <img src="sunspotdemoimg-kast.gif"/>
  821.                                                                     </td>
  822.                                                                     <td width="98%" colspan="2">
  823.                                                                         <font face="Arial, Helvetica, sans-serif" size="2">
  824.                                                                             coplet:
  825.                                                                         </font>
  826.                                                                         <img src="sunspotdemoimg-space.gif" width="10"/>
  827.                                                                         <select name="portalcoplet">
  828.                                                                         <xsl:for-each select="coplets/coplets-profile/coplets/coplet">
  829.                                                                         <option>
  830.                                                                             <xsl:attribute name="value">
  831.                                                                                 <xsl:value-of select="normalize-space(@id)"/>
  832.                                                                             </xsl:attribute>
  833.                                                                             <xsl:value-of select="normalize-space(title)"/>
  834.                                                                         </option>
  835.                                                                         </xsl:for-each>
  836.                                                                         </select>        
  837.                                                                     </td>
  838.                                                                 </tr>
  839.                                                                 <tr>
  840.                                                                     <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  841.                                                                     <td background="sunspotdemoimg-line_bg.gif" width="1%">
  842.                                                                         <img src="sunspotdemoimg-space.gif" height="20"/>
  843.                                                                     </td>
  844.                                                                     <td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  845.                                                                 </tr>
  846.                                                                 <tr>
  847.                                                                     <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  848.                                                                     <td width="1%">
  849.                                                                         <img src="sunspotdemoimg-kast_url_u.gif"/>
  850.                                                                     </td>
  851.                                                                     <td width="1%">
  852.                                                                         <font face="Arial, Helvetica, sans-serif" size="2">
  853.                                                                             <input type="submit" value="Change coplet"/>
  854.                                                                         </font>
  855.                                                                     </td>
  856.                                                                     <td width="97%">
  857.                                                                         <img src="sunspotdemoimg-space.gif" width="10"/>
  858.                                                                     </td>
  859.                                                                 </tr>
  860.                                                                  </form>
  861.                                                                 <tr>
  862.                                                                     <td colspan="4">
  863.                                                                         <img src="sunspotdemoimg-space.gif" height="10"/>
  864.                                                                     </td>
  865.                                                                 </tr>
  866.                                                             </table>
  867.                                                         </td>
  868.                                                     </tr>
  869.                                                 </table>
  870.                                                 <br/>
  871.                                 
  872.                                     <!-- Present list of coplets for deleting-->
  873.                                                 <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="400">
  874.                                                     <tr>    
  875.                                                         <td>
  876.                                                             <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  877.                                                                 <tr>
  878.                                                                     <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  879.                                                                 </tr>
  880.                                                                 <xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&portaladmin=coplets&portaladmin_coplets=delete</xsl:variable>
  881.                                                                 <form method="post">
  882.                                                                 <xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  883.                                                                 <tr>
  884.                                                                     <td width="1%">
  885.                                                                         <img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  886.                                                                     </td>
  887.                                                                     <td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  888.                                                                     <td colspan="2">
  889.                                                                         <font face="Arial, Helvetica, sans-serif" size="2">
  890.                                                                             <b>Delete coplet</b>
  891.                                                                         </font>
  892.                                                                     </td>
  893.                                                                 </tr>
  894.                                                                 <tr>
  895.                                                                     <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  896.                                                                     <td width="1%" background="sunspotdemoimg-line_bg.gif">
  897.                                                                         <img src="sunspotdemoimg-kast.gif"/>
  898.                                                                     </td>        
  899.                                                                     <td width="98%" colspan="2">
  900.                                                                         <font face="Arial, Helvetica, sans-serif" size="2">
  901.                                                                             coplet:
  902.                                                                         </font>
  903.                                                                         <img src="sunspotdemoimg-space.gif" width="10"/>
  904.                                                                         <select name="portalcoplet">
  905.                                                                             <xsl:for-each select="coplets/coplets-profile/coplets/coplet">
  906.                                                                             <option>
  907.                                                                             <xsl:attribute name="value">
  908.                                                                                 <xsl:value-of select="normalize-space(@id)"/>
  909.                                                                             </xsl:attribute>
  910.                                                                             <xsl:value-of select="normalize-space(title)"/>
  911.                                                                             </option>
  912.                                                                             </xsl:for-each>
  913.                                                                         </select>        
  914.                                                                     </td>
  915.                                                                 </tr>
  916.                                                                 <tr>
  917.                                                                     <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  918.                                                                     <td background="sunspotdemoimg-line_bg.gif" width="1%">
  919.                                                                         <img src="sunspotdemoimg-space.gif" height="20"/>
  920.                                                                     </td>
  921.                                                                     <td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  922.                                                                 </tr>
  923.                                                                 <tr>
  924.                                                                     <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  925.                                                                     <td width="1%">
  926.                                                                         <img src="sunspotdemoimg-kast_url_u.gif"/>
  927.                                                                     </td>
  928.                                                                     <td width="1%">
  929.                                                                         <font face="Arial, Helvetica, sans-serif" size="2">
  930.                                                                             <input type="submit" value="Delete coplet"/>
  931.                                                                         </font>
  932.                                                                     </td>
  933.                                                                     <td width="97%">
  934.                                                                         <img src="sunspotdemoimg-space.gif" width="10"/>
  935.                                                                     </td>
  936.                                                                 </tr>
  937.                                                                  </form>
  938.                                                                 <tr>
  939.                                                                     <td colspan="4">
  940.                                                                         <img src="sunspotdemoimg-space.gif" height="10"/>
  941.                                                                     </td>
  942.                                                                 </tr>
  943.                                                             </table>
  944.                                                         </td>
  945.                                                     </tr>
  946.                                                 </table>
  947.                                                 <br/>
  948.                                 
  949.                                     <!--New coplet-->
  950.                                                 <xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&portaladmin=coplet&portaladmin_coplets=new</xsl:variable>
  951.                                                 <form method="post">
  952.                                                     <xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  953.                                                 <table cellpadding="2" cellspacing="0" border="0" bgcolor="#46627A" width="400">
  954.                                         <tr>    
  955.                                             <td>
  956.                                                 
  957.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  958.                                                     <tr>
  959.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  960.                                                     </tr>
  961.                                                     
  962.                                                     <tr>
  963.                                                         <td width="1%">
  964.                                                             <img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  965.                                                         </td>
  966.                                                         <td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  967.                                                         <td colspan="2">
  968.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  969.                                                                 <b>New coplet</b>
  970.                                                             </font>
  971.                                                         </td>
  972.                                                     </tr>
  973.                                                     <tr>
  974.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  975.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  976.                                                             <img src="sunspotdemoimg-kast.gif"/>
  977.                                                         </td>
  978.                                                         <td width="98%" colspan="2">
  979.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  980.                                                                 Titel:
  981.                                                             </font>
  982.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  983.                                                             <input name="portaladmin_title" type="text" size="25"/>
  984.                                                         </td>
  985.                                                     </tr>
  986.                                                     <tr>
  987.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  988.                                                         <td background="sunspotdemoimg-line_bg.gif" width="1%">
  989.                                                             <img src="sunspotdemoimg-space.gif" height="20"/>
  990.                                                         </td>
  991.                                                         <td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  992.                                                     </tr>
  993.                                                     <tr>
  994.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  995.                                                         <td width="1%">
  996.                                                             <img src="sunspotdemoimg-kast_url_u.gif"/>
  997.                                                         </td>
  998.                                                         <td width="1%">
  999.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1000.                                                                 <input type="submit" value="Create New coplet"/>
  1001.                                                             </font>
  1002.                                                         </td>
  1003.                                                         <td width="97%">
  1004.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1005.                                                         </td>
  1006.                                                     </tr>
  1007.                                                      
  1008.                                                     <tr>
  1009.                                                         <td colspan="4">
  1010.                                                             <img src="sunspotdemoimg-space.gif" height="10"/>
  1011.                                                         </td>
  1012.                                                     </tr>
  1013.                                                 </table>
  1014.                                                 
  1015.                                             </td>
  1016.                                         </tr>
  1017.                                     </table>
  1018.                                     </form>
  1019.                     </td>
  1020.                 </tr>
  1021.             </xsl:when>
  1022.             <xsl:otherwise> <!-- otherwise means state='coplet' -->
  1023.                 <tr>
  1024.  
  1025. <!--  Menue -->
  1026.                      <td bgcolor="#cccccc" valign="top" width="193">
  1027.                                 <img src="sunspotdemoimg-space.gif" width="1" height="2"/>
  1028.                                     <table bgColor="#ffffff" border="0" cellPadding="0" cellSpacing="2" width="100%">
  1029.                                         <tr>
  1030.                                             <td bgcolor="#46627A" width="1%">
  1031.                                                 <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  1032.                                             </td>
  1033.                                             <td bgcolor="#cccccc">
  1034.                                                 <br/>
  1035.                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1036.                                                     <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=coplets</xsl:variable>
  1037.                                                     <b><a>
  1038.                                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1039.                                                         <center>List of coplets</center>
  1040.                                                     </a></b>
  1041.                                                 </font>
  1042.                                             </td>
  1043.                                         </tr>
  1044.                                         <tr>
  1045.                                             <td bgcolor="#46627A" width="1%">
  1046.                                                 <img src="sunspotdemoimg-space.gif" width="20" height="40"/>
  1047.                                             </td>
  1048.                                             <td bgcolor="#cccccc">
  1049.                                                 <br/>
  1050.                                                 <font face="Arial, Helvetica, sans-serif" size="2"><b>
  1051.                                                     <xsl:variable name="linkurl"><xsl:value-of select="configuration/uri"/>&portaladmin=coplets&portaladmin_coplets=save</xsl:variable>
  1052.                                                     <a>
  1053.                                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1054.                                                         <center>Save</center>
  1055.                                                     </a>
  1056.                                                 </b></font>
  1057.                                     <font face="Arial, Helvetica, sans-serif" size="1">
  1058.                                                                                                                         <p align="center">If you have changed the coplet Profile, you have to accept them by "Change"</p>
  1059.                                     </font>
  1060.                                             </td>
  1061.                                         </tr>
  1062.                                     </table>
  1063.                                 </td>
  1064. <!-- /Menue -->
  1065.  
  1066. <!-- Content -->
  1067.                                               <td align="center">
  1068.                                 </td>
  1069.                                 <td> <!-- Edit one coplet -->
  1070.                                                 <table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
  1071.                                                     <tr>
  1072.                                                         <td colspan="4"><img src="sunspotdemoimg-space.gif" height="10"/></td>
  1073.                                                     </tr>
  1074.                                                     <xsl:variable name="acturl"><xsl:value-of select="configuration/uri"/>&portaladmin=coplet&portalcoplet=<xsl:value-of select="coplet/@id"/>&portaladmin_coplets=change</xsl:variable>
  1075.                                                     <form method="post">
  1076.                                                         <xsl:attribute name="action"><xsl:value-of select="translate(normalize-space($acturl), ' ', '')"/></xsl:attribute>
  1077.                                                     <tr>
  1078.                                                         <td width="1%">
  1079.                                                             <img src="sunspotdemoimg-space.gif" width="30" height="1"/>
  1080.                                                         </td>
  1081.                                                         <td width="1%"><img src="sunspotdemoimg-kast_o.gif"/></td>
  1082.                                                         <td colspan="2">
  1083.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1084.                                                                 <b><xsl:value-of select="coplet/title"></xsl:value-of></b>
  1085.                                                             </font>
  1086.                                                         </td>
  1087.                                                     </tr>
  1088.                                                     <tr>
  1089.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1090.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1091.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1092.                                                         </td>
  1093.                                                         <td width="1%">
  1094.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1095.                                                                 Title
  1096.                                                             </font>
  1097.                                                         </td>
  1098.                                                         <td width="97%">
  1099.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1100.                                                             <input name="portaladmin_title" type="text" size="40">
  1101.                                                                 <xsl:attribute name="value"><xsl:value-of select="coplet/title"></xsl:value-of></xsl:attribute>
  1102.                                                             </input>
  1103.                                                         </td>
  1104.                                                     </tr>
  1105.                                                     <tr>
  1106.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1107.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1108.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1109.                                                         </td>
  1110.                                                         <td width="1%">
  1111.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1112.                                                                 Resource
  1113.                                                             </font>
  1114.                                                         </td>
  1115.                                                         <td width="97%">
  1116.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1117.                                                             <input name="portaladmin_resource" type="text" size="40" value="{coplet/resource/@uri}"/>
  1118.                                                         </td>
  1119.                                                     </tr>
  1120.                                                     <tr>
  1121.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1122.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1123.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1124.                                                         </td>
  1125.                                                         <td width="1%">
  1126.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1127.                                                                 Transformation
  1128.                                                             </font>
  1129.                                                         </td>
  1130.                                                         <td width="97%">
  1131.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1132.                                                         </td>
  1133.                                                     </tr>
  1134.                                                     <xsl:for-each select="coplet/transformation/stylesheet">
  1135.                                                         <tr>
  1136.                                                             <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1137.                                                             <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1138.                                                                 <img src="sunspotdemoimg-kast.gif"/>
  1139.                                                             </td>
  1140.                                                             <td width="1%">
  1141.                                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1142.                                                                      
  1143.                                                                 </font>
  1144.                                                             </td>
  1145.                                                             <td width="97%">
  1146.                                                                 <img src="sunspotdemoimg-space.gif" width="10"/>
  1147.                                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1148.                                                                 <input type="text" size="30">
  1149.                                                                     <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  1150.                                                                     <xsl:attribute name="name">portaladmin_xsl_<xsl:value-of select="position()"/></xsl:attribute>
  1151.                                                                 </input>
  1152.                                                                 <input type="checkbox">
  1153.                                                                     <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
  1154.                                                                     <xsl:attribute name="name">portaladmin_delxsl_<xsl:value-of select="position()"/></xsl:attribute>
  1155.                                                                 </input>delete
  1156.                                                                 </font>
  1157.                                                             </td>
  1158.                                                         </tr>
  1159.                                                     </xsl:for-each>
  1160.                                                     <tr>
  1161.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1162.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1163.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1164.                                                         </td>
  1165.                                                         <td width="1%">
  1166.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1167.                                                                  
  1168.                                                             </font>
  1169.                                                         </td>
  1170.                                                         <td width="97%">
  1171.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1172.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1173.                                                             <input type="checkbox" name="portaladmin_newxsl" value="true"/>Add Transformation
  1174.                                                             </font>
  1175.                                                         </td>
  1176.                                                     </tr>
  1177.                                                     <tr>
  1178.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1179.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1180.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1181.                                                         </td>
  1182.                                                         <td width="1%">
  1183.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1184.                                                                 Active
  1185.                                                             </font>
  1186.                                                         </td>
  1187.                                                         <td width="97%">
  1188.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1189.                                                             <select name="portaladmin_active">
  1190.                                                                 <option value="true"><xsl:if test="normalize-space(coplet/configuration/active)='true'">
  1191.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1192.                                                                     </xsl:if>Yes
  1193.                                                                 </option>
  1194.                                                                 <option value="false"><xsl:if test="normalize-space(coplet/configuration/active)='false'">
  1195.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1196.                                                                     </xsl:if>No
  1197.                                                                 </option>
  1198.                                                             </select>
  1199.                                                         </td>
  1200.                                                     </tr>
  1201.                                                     <tr>
  1202.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1203.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1204.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1205.                                                         </td>
  1206.                                                         <td width="30%">
  1207.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1208.                                                                 Mandatory
  1209.                                                             </font>
  1210.                                                         </td>
  1211.                                                         <td width="60%">
  1212.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1213.                                                             <select name="portaladmin_mand">
  1214.                                                                 <option value="true"><xsl:if test="normalize-space(coplet/configuration/mandatory)='true'">
  1215.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1216.                                                                     </xsl:if>Yes
  1217.                                                                 </option>
  1218.                                                                 <option value="false"><xsl:if test="normalize-space(coplet/configuration/mandatory)='false'">
  1219.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1220.                                                                     </xsl:if>No
  1221.                                                                 </option>
  1222.                                                             </select>
  1223.                                                         </td>
  1224.                                                     </tr>
  1225.                                                     <tr>
  1226.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1227.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1228.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1229.                                                         </td>
  1230.                                                         <td width="1%">
  1231.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1232.                                                                 Sizable
  1233.                                                             </font>
  1234.                                                         </td>
  1235.                                                         <td width="97%">
  1236.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1237.                                                             <select name="portaladmin_sizable">
  1238.                                                                 <option value="true"><xsl:if test="normalize-space(coplet/configuration/sizable)='true'">
  1239.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1240.                                                                     </xsl:if>Yes
  1241.                                                                 </option>
  1242.                                                                 <option value="false"><xsl:if test="normalize-space(coplet/configuration/sizable)='false'">
  1243.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1244.                                                                     </xsl:if>No
  1245.                                                                 </option>
  1246.                                                             </select>
  1247.                                                         </td>
  1248.                                                     </tr>
  1249.                                                     <tr>
  1250.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1251.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1252.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1253.                                                         </td>
  1254.                                                         <td width="1%">
  1255.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1256.                                                                 Evaluates Resizable
  1257.                                                             </font>
  1258.                                                         </td>
  1259.                                                         <td width="97%">
  1260.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1261.                                                             <select name="portaladmin_handsize">
  1262.                                                                 <option value="true"><xsl:if test="normalize-space(coplet/configuration/handlesSizable)='true'">
  1263.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1264.                                                                     </xsl:if>Yes
  1265.                                                                 </option>
  1266.                                                                 <option value="false"><xsl:if test="normalize-space(coplet/configuration/handlesSizable)='false' or not(coplet/configuration/handlesSizable)">
  1267.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1268.                                                                     </xsl:if>No
  1269.                                                                 </option>
  1270.                                                             </select>
  1271.                                                         </td>
  1272.                                                     </tr>
  1273.                                                     <tr>
  1274.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1275.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1276.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1277.                                                         </td>
  1278.                                                         <td width="1%">
  1279.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1280.                                                                 Evaluates Parameters
  1281.                                                             </font>
  1282.                                                         </td>
  1283.                                                         <td width="97%">
  1284.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1285.                                                             <select name="portaladmin_handpar">
  1286.                                                                 <option value="true"><xsl:if test="normalize-space(coplet/configuration/handlesParameters)='true' or not(coplet/configuration/handlesParameters)">
  1287.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1288.                                                                     </xsl:if>Yes
  1289.                                                                 </option>
  1290.                                                                 <option value="false"><xsl:if test="normalize-space(coplet/configuration/handlesParameters)='false'">
  1291.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1292.                                                                     </xsl:if>No
  1293.                                                                 </option>
  1294.                                                             </select>
  1295.                                                         </td>
  1296.                                                     </tr>
  1297.                                                     <tr>
  1298.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1299.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1300.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1301.                                                         </td>
  1302.                                                         <td width="1%">
  1303.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1304.                                                                 Own Configuration
  1305.                                                             </font>
  1306.                                                         </td>
  1307.                                                         <td width="97%">
  1308.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1309.                                                             <select name="portaladmin_customizable">
  1310.                                                                 <option value="true"><xsl:if test="normalize-space(coplet/configuration/customizable)='true'">
  1311.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1312.                                                                     </xsl:if>Yes
  1313.                                                                 </option>
  1314.                                                                 <option value="false"><xsl:if test="normalize-space(coplet/configuration/customizable)='false' or not(coplet/configuration/customizable)">
  1315.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1316.                                                                     </xsl:if>No
  1317.                                                                 </option>
  1318.                                                             </select>
  1319.                                                         </td>
  1320.                                                     </tr>
  1321.                                                     <xsl:if test="normalize-space(coplet/configuration/customizable)='true'">
  1322.                                                     <tr>
  1323.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1324.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1325.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1326.                                                         </td>
  1327.                                                         <td width="1%">
  1328.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1329.                                                                 Configuration Resource
  1330.                                                             </font>
  1331.                                                         </td>
  1332.                                                         <td width="97%">
  1333.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1334.                                                             <input name="portaladmin_cust" type="text" size="40" value="{coplet/customization/@uri}"/>
  1335.                                                         </td>
  1336.                                                     </tr>
  1337.                                                     <tr>
  1338.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1339.                                                         <td width="1%" background="sunspotdemoimg-line_bg.gif">
  1340.                                                             <img src="sunspotdemoimg-kast.gif"/>
  1341.                                                         </td>
  1342.                                                         <td width="1%">
  1343.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1344.                                                                 Persistent Configuration
  1345.                                                             </font>
  1346.                                                         </td>
  1347.                                                         <td width="97%">
  1348.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1349.                                                             <select name="portaladmin_persistent">
  1350.                                                                 <option value="true"><xsl:if test="normalize-space(coplet/configuration/persistent)='true'">
  1351.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1352.                                                                     </xsl:if>Yes
  1353.                                                                 </option>
  1354.                                                                 <option value="false"><xsl:if test="normalize-space(coplet/configuration/persistent)='false' or not(coplet/configuration/persistent)">
  1355.                                                                     <xsl:attribute name="selected">true</xsl:attribute>
  1356.                                                                     </xsl:if>No
  1357.                                                                 </option>
  1358.                                                             </select>
  1359.                                                         </td>
  1360.                                                     </tr>
  1361.                                                     </xsl:if>
  1362.                                                     <tr>
  1363.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1364.                                                         <td background="sunspotdemoimg-line_bg.gif" width="1%">
  1365.                                                             <img src="sunspotdemoimg-space.gif" height="20"/>
  1366.                                                         </td>
  1367.                                                         <td colspan="2"><img src="sunspotdemoimg-space.gif"/></td>
  1368.                                                     </tr>
  1369.                                                     <tr>
  1370.                                                         <td width="1%"><img src="sunspotdemoimg-space.gif" width="30"/></td>
  1371.                                                         <td width="1%">
  1372.                                                             <img src="sunspotdemoimg-kast_url_u.gif"/>
  1373.                                                         </td>
  1374.                                                         <td width="1%">
  1375.                                                             <font face="Arial, Helvetica, sans-serif" size="2">
  1376.                                                                 <input type="submit" name="portaladmin_submit" value="Change"/>
  1377.                                                             </font>
  1378.                                                         </td>
  1379.                                                         <td width="97%">
  1380.                                                             <img src="sunspotdemoimg-space.gif" width="10"/>
  1381.                                                         </td>
  1382.                                                     </tr>
  1383.                                                      </form>
  1384.                                                     <tr>
  1385.                                                         <td colspan="4">
  1386.                                                             <img src="sunspotdemoimg-space.gif" height="10"/>
  1387.                                                         </td>
  1388.                                                     </tr>
  1389.                                                 </table>
  1390.                                     </td>
  1391.                             </tr>
  1392.                         </xsl:otherwise>
  1393.                     </xsl:choose>
  1394.                                                 
  1395. <!-- /Content -->
  1396.  
  1397. <!-- Bottom -->        
  1398.                             <tr>   
  1399.                                           <td bgcolor="#AAB9BF" noWrap="" colspan="3">
  1400.                                     <img src="sunspotdemoimg-space.gif" height="8"/>
  1401.                                 </td>
  1402.                             </tr>
  1403. <!-- /Bottom -->
  1404.  
  1405.                         </tbody>
  1406.                     </table>
  1407.                 </td>
  1408.             </tr>
  1409.         </tbody></table>
  1410.     </body>
  1411. </html>
  1412. </xsl:template>
  1413.  
  1414. <!-- /Portal Administration -->
  1415.  
  1416. <!-- Portal-Layout -->
  1417.  
  1418. <xsl:template match="layout-profile">
  1419. <form method="post">
  1420.     <xsl:attribute name="action"><xsl:value-of select="normalize-space(ancestor::portalconf/configuration/uri)"/></xsl:attribute>
  1421.     <font face="Arial, Helvetica, sans-serif" size="3">
  1422.     <xsl:attribute name="color">
  1423.         <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1424.     </xsl:attribute>
  1425.         <b>Portal-Layout</b>
  1426.     </font>
  1427.     <table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  1428.         <tr>
  1429.             <td>
  1430.                 <table border="0" width="100%" cellspacing="0" cellpadding="4">
  1431.                 <xsl:attribute name="bgcolor">
  1432.                     <xsl:value-of select="portal/layouts/layout/background/color"/>
  1433.                 </xsl:attribute>
  1434.                     <tbody>
  1435.                         <tr>
  1436.                             <td colspan="3">
  1437.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1438.                                 <xsl:attribute name="color">
  1439.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1440.                                 </xsl:attribute>
  1441.                                     <b>Colors</b>
  1442.                                 </font>
  1443.                             </td>
  1444.                         </tr>
  1445.                         <tr>    
  1446.                             <td colspan="3">
  1447.                                 <xsl:apply-templates select="portal/layouts/layout[not(@*)]"/>
  1448.                             </td>
  1449.                         </tr>
  1450.                         <tr>
  1451.                             <td width="20%">
  1452.                                     <img src="sunspotdemoimg-space.gif"/>
  1453.                                     <xsl:apply-templates select="portal/header"/>
  1454.                                 </td>
  1455.                             <td width="80%" valign="bottom" colspan="2">
  1456.                                     <img src="sunspotdemoimg-space.gif"/>
  1457.                                     <xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/header/coplet">
  1458.                                     <font face="Arial, Helvetica, sans-serif" size="2">
  1459.                                     <xsl:attribute name="color">
  1460.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1461.                                     </xsl:attribute>
  1462.                                       <xsl:variable name="copletid" select="ancestor::portalconf/portal-profile/content/header/coplet/@id"/>
  1463.                                     <xsl:value-of select="ancestor::portalconf/coplets-profile/coplets/coplet[@id = $copletid]/title"/>
  1464.                                     </font>
  1465.                                     </xsl:if>
  1466.                                 <img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  1467.                                     <xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/header/coplet">
  1468.                                     <xsl:variable name="cmd"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&portalcmd=</xsl:variable>
  1469.                                     <xsl:variable name="copletident"><xsl:value-of select="ancestor::portalconf/portal-profile/content/header/coplet/@id"/>_<xsl:value-of select="ancestor::portalconf/portal-profile/content/header/coplet/@number"/></xsl:variable>
  1470.                                     <xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  1471.                                     <a>
  1472.                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1473.                                         <img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  1474.                                     </a>
  1475.                                     </xsl:if>
  1476.                                 </td>
  1477.                         </tr>
  1478.                         <tr>
  1479.                             <td>    
  1480.                                 <img src="sunspotdemoimg-space.gif"/>
  1481.                                 <xsl:apply-templates select="portal/footer"/>
  1482.                             </td>
  1483.                             <td>
  1484.                                 <img src="sunspotdemoimg-space.gif"/>
  1485.                                 <xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/footer/coplet">
  1486.                                       <xsl:variable name="copletid" select="ancestor::portalconf/portal-profile/content/footer/coplet/@id"/>
  1487.                                     <xsl:value-of select="ancestor::portalconf/coplets-profile/coplets/coplet[@id = $copletid]/title"/>
  1488.                                 </xsl:if>
  1489.                             </td>
  1490.                             <td>
  1491.                                 <img src="sunspotdemoimg-space.gif"/>
  1492.                                     <xsl:if test="ancestor::portaladminconf and ancestor::portalconf/portal-profile/content/footer/coplet">
  1493.                                         <xsl:variable name="cmd">
  1494.                                             <xsl:value-of select="ancestor::portalconf/configuration/uri"/>
  1495.                                             &portalcmd=
  1496.                                         </xsl:variable>
  1497.                                         <xsl:variable name="copletident">
  1498.                                             <xsl:value-of select="ancestor::portalconf/portal-profile/content/footer/coplet/@id"/>
  1499.                                                 _
  1500.                                             <xsl:value-of select="ancestor::portalconf/portal-profile/content/footer/coplet/@number"/>
  1501.                                         </xsl:variable>
  1502.                                         <xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  1503.                                         <a>
  1504.                                             <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1505.                                             <img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  1506.                                         </a>
  1507.                                     </xsl:if>
  1508.                             </td>
  1509.                         </tr>
  1510.                         <tr>    
  1511.                             <td colspan="3">
  1512.                                 <img src="sunspotdemoimg-space.gif"/>
  1513.                             </td>
  1514.                         </tr>
  1515.                         <tr>    
  1516.                             <td colspan="3">
  1517.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1518.                                     <xsl:attribute name="color">
  1519.                                         <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1520.                                     </xsl:attribute>
  1521.                                     <b>Columns</b><br/>The width of the columns can either be pixels or per cent.
  1522.                                         For a per cent value please add the per cent character.
  1523.                                 </font>
  1524.                             </td>
  1525.                         </tr>
  1526.                         <tr>
  1527.                             <td colspan="3">
  1528.                                 <xsl:apply-templates select="portal/columns"/>
  1529.                             </td>
  1530.                         </tr>
  1531.                         <tr>
  1532.                             <td colspan="3">
  1533.                                 <input type="submit" value="Change Layout"/>
  1534.                             </td>
  1535.                         </tr>
  1536.                     </tbody>            
  1537.                 </table>
  1538.             </td>
  1539.         </tr>
  1540.     </table>
  1541. </form>
  1542. </xsl:template>
  1543.  
  1544. <!-- /Portal-Layout -->
  1545.  
  1546. <!-- Portal-Layout Farben -->
  1547.  
  1548. <xsl:template match="layout">
  1549.     <xsl:if test="descendant::*[@formdescription and @formpath and @formtype]">
  1550.         <table border="0" cellPadding="0" cellSpacing="0" width="100%">
  1551.             <xsl:attribute name="bgcolor">
  1552.                 <xsl:value-of select="ancestor::layout-profile/portal/layouts/layout/background/color"/>
  1553.             </xsl:attribute>
  1554.             <tbody>
  1555.                 <xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">
  1556.                     <tr>
  1557.                         <td width="20%">
  1558.                             <font face="Arial, Helvetica, sans-serif" size="2">
  1559.                                 <xsl:attribute name="color">
  1560.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1561.                                 </xsl:attribute>
  1562.                                 <xsl:value-of select="@formdescription"/>:
  1563.                             </font>
  1564.                         </td>
  1565.                         <td>
  1566.                             <img src="sunspotdemoimg-space.gif" width="5"/>
  1567.                             <font face="Arial, Helvetica, sans-serif" size="2">
  1568.                                 <xsl:attribute name="color">
  1569.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1570.                                 </xsl:attribute>
  1571.                                 <xsl:call-template name="inputfield"/>
  1572.                             </font>
  1573.                         </td>
  1574.                     </tr>
  1575.                 </xsl:for-each>
  1576.             </tbody>
  1577.         </table>
  1578.     </xsl:if>
  1579. </xsl:template>
  1580.  
  1581. <!-- /Portal-Layout Farben -->
  1582.  
  1583. <!-- Portal-Layout Spalten -->
  1584.  
  1585. <xsl:template match="columns">
  1586. <xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">    
  1587.     <table border="0" width="100%">
  1588.         <tr>
  1589.             <td colspan="2">
  1590.                 <font face="Arial, Helvetica, sans-serif" size="2">    
  1591.                 <xsl:attribute name="color">
  1592.                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1593.                 </xsl:attribute>        
  1594.                     <xsl:value-of select="@formdescription"/>:
  1595.                     <img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  1596.                     <xsl:call-template name="inputfield"/>
  1597.                 </font>
  1598.             </td>
  1599.         </tr>
  1600.         <tr>
  1601.             <xsl:for-each select="ancestor::portalconf/portal-profile/content/column">
  1602.                          <xsl:sort select="@position"/>
  1603.             <td valign="top">
  1604.                 <xsl:attribute name="width"><xsl:value-of select="width"/></xsl:attribute>
  1605.                 <table border="0" cellpadding="0" cellspacing="0">
  1606.                     <xsl:for-each select="*[@formdescription and @formpath and @formtype]">
  1607.                         <tr>
  1608.                             <td>
  1609.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1610.                                 <xsl:attribute name="color">
  1611.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1612.                                 </xsl:attribute>
  1613.                                     <xsl:value-of select="@formdescription"/>:
  1614.                                 </font>
  1615.                             </td>
  1616.                             <td colspan="2">
  1617.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1618.                                 <xsl:attribute name="color">
  1619.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1620.                                 </xsl:attribute>
  1621.                                     <img src="sunspotdemoimg-space.gif" width="20" height="1"/>
  1622.                                     <xsl:call-template name="inputfield"/>
  1623.                                 </font>
  1624.                             </td>
  1625.                         </tr>
  1626.                     </xsl:for-each>
  1627.                 </table>
  1628.             </td>
  1629.             </xsl:for-each>
  1630.         </tr>
  1631.     </table>
  1632. </xsl:for-each>
  1633. </xsl:template>
  1634.  
  1635. <!-- /Portal-Layout Spalten -->
  1636.  
  1637. <!-- selected coplets-->
  1638.  
  1639. <xsl:template match="portal-profile">
  1640. <font face="Arial, Helvetica, sans-serif" size="3">
  1641. <xsl:attribute name="color">
  1642.     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1643. </xsl:attribute>
  1644.     <b>Your coplets</b>
  1645. </font>
  1646. <table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  1647.     <tr>
  1648.         <td>
  1649.             <table border="0" width="100%" cellspacing="0" cellpadding="4">
  1650.             <xsl:attribute name="bgcolor">
  1651.                 <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/background/color"/>
  1652.             </xsl:attribute>
  1653.                 <tbody>
  1654.                     <tr>
  1655.                         <xsl:apply-templates select="content/column"/>
  1656.                     </tr>
  1657.                 </tbody>
  1658.             </table>
  1659.         </td>
  1660.     </tr>
  1661. </table>
  1662. </xsl:template>
  1663.  
  1664. <!-- / selected coplets -->
  1665.  
  1666. <!-- selected coplets columns -->
  1667.  
  1668. <xsl:template match="column">
  1669. <xsl:variable name="colfirst" select="@position=1"/>
  1670. <xsl:variable name="collast" select="@position=count(ancestor::content/column)"/>
  1671. <xsl:variable name="prevcol" select="(@position)-1"/>
  1672. <xsl:variable name="nextcol" select="(@position)+1"/>
  1673. <td valign="top">
  1674.     <xsl:attribute name="width"><xsl:value-of select="width"/></xsl:attribute>
  1675.     <table border="0" cellspacing="0" cellpadding="0">
  1676.         <tbody>
  1677.             <tr>
  1678.                 <td colspan="3">
  1679.                     <font face="Arial, Helvetica, sans-serif" size="2">
  1680.                     <xsl:attribute name="color">
  1681.                         <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1682.                     </xsl:attribute>
  1683.                         <b>coplet</b>
  1684.                     </font>
  1685.                 </td>
  1686.             </tr>
  1687.             <xsl:for-each select="coplets/coplet">
  1688.                               <xsl:sort select="@position"/>
  1689.                                         <xsl:variable name="pos" select="@position"/>
  1690.                 <xsl:variable name="notrowfirst" select="ancestor::coplets/coplet[@position<$pos]"/>
  1691.                 <xsl:variable name="notrowlast" select="ancestor::coplets/coplet[@position>$pos]"/>
  1692.                 <xsl:variable name="cmd"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&portalcmd=</xsl:variable>
  1693.                 <xsl:variable name="copletid" select="@id"/>
  1694.                 <xsl:variable name="copletident"><xsl:value-of select="@id"/>_<xsl:value-of select="@number"/></xsl:variable>
  1695.                 <xsl:variable name="copletconf" select="ancestor::portalconf/coplets-profile/coplets/coplet[@id=$copletid]"/>
  1696.                 <tr valign="top">
  1697.                     <td>
  1698.                         <xsl:if test="not($colfirst)">
  1699.                             <xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>move_<xsl:value-of select="$copletident"/>_<xsl:value-of select="$prevcol"/></xsl:variable>
  1700.                             <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-left.gif" border="0" alt="Move to left"/></a>
  1701.                         </xsl:if>
  1702.                         <xsl:if test="not($collast)">
  1703.                             <xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>move_<xsl:value-of select="$copletident"/>_<xsl:value-of select="$nextcol"/></xsl:variable>
  1704.                             <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-right.gif" border="0" alt="Move to right"/></a>
  1705.                         </xsl:if>
  1706.                         <xsl:if test="$notrowfirst">
  1707.                             <xsl:for-each select="ancestor::coplets/coplet[@position<$pos]">
  1708.                                                             <xsl:sort select="@position" order="descending"/>
  1709.                                                                 <xsl:if test="position()=1">
  1710.                                     <xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>row_<xsl:value-of select="$copletident"/>_<xsl:value-of select="@position"/></xsl:variable>
  1711.                                     <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-up.gif" border="0" alt="Move up"/></a>
  1712.                                 </xsl:if>
  1713.                                             </xsl:for-each>
  1714.                         </xsl:if>
  1715.                         <xsl:if test="$notrowlast">
  1716.                             <xsl:for-each select="ancestor::coplets/coplet[@position>$pos]">
  1717.                                                             <xsl:sort select="@position"/>
  1718.                                                                 <xsl:if test="position()=1">
  1719.                                     <xsl:variable name="linkurl"><xsl:value-of select="$cmd"/>row_<xsl:value-of select="$copletident"/>_<xsl:value-of select="@position"/></xsl:variable>
  1720.                                     <a><xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute><img src="sunspotdemoimg-down.gif" border="0" alt="Move down"/></a>
  1721.                                 </xsl:if>
  1722.                                             </xsl:for-each>
  1723.                         </xsl:if>
  1724.                     </td>
  1725.                     <td align="left">
  1726.                         <img src="sunspotdemoimg-space.gif" width="5" height="1"/>
  1727.                         <font face="Arial, Helvetica, sans-serif" size="2">
  1728.                         <xsl:attribute name="color">
  1729.                             <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1730.                         </xsl:attribute>
  1731.                             <xsl:value-of select="$copletconf/title"/>
  1732.                         </font>
  1733.                         <img src="sunspotdemoimg-space.gif" width="5" height="1"/>
  1734.                     </td>
  1735.                     <td align="right">
  1736.                         <!-- minimize/maximize -->
  1737.                         <xsl:variable name="linkurlmax"><xsl:value-of select="$cmd"/>minimize_<xsl:value-of select="$copletident"/></xsl:variable>
  1738.                         <xsl:variable name="linkurlmin"><xsl:value-of select="$cmd"/>maximize_<xsl:value-of select="$copletident"/></xsl:variable>
  1739.                         <xsl:if test="$copletconf/configuration/sizable='true' and status/size/@formpath">
  1740.                             <a>
  1741.                                 <xsl:choose>
  1742.                                     <xsl:when test="status/size='max'">
  1743.                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmax), ' ', '')"/></xsl:attribute>
  1744.                                         <img src="sunspotdemoimg-minimize.gif" border="0" alt="Minimize"/>
  1745.                                     </xsl:when>
  1746.                                     <xsl:otherwise>
  1747.                                         <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmin), ' ', '')"/></xsl:attribute>
  1748.                                         <img src="sunspotdemoimg-maximize.gif" border="0" alt="Maximize"/>
  1749.                                     </xsl:otherwise>
  1750.                                 </xsl:choose>
  1751.                             </a>
  1752.                         </xsl:if>
  1753.                         <!-- show/ hide -->
  1754.                         <xsl:variable name="linkurlshow"><xsl:value-of select="$cmd"/>show_<xsl:value-of select="$copletident"/></xsl:variable>
  1755.                         <xsl:variable name="linkurlhide"><xsl:value-of select="$cmd"/>hide_<xsl:value-of select="$copletident"/></xsl:variable>
  1756.                         <xsl:choose>
  1757.                             <xsl:when test="status/visible/@formpath and $copletconf/configuration/mandatory='false'">
  1758.                                 <a>
  1759.                                     <xsl:choose>
  1760.                                         <xsl:when test="status/visible='true'">
  1761.                                             <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlhide), ' ', '')"/></xsl:attribute>
  1762.                                             <img src="sunspotdemoimg-hide.gif" border="0" alt="Hide"/>
  1763.                                         </xsl:when>
  1764.                                         <xsl:otherwise>
  1765.                                             <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlshow), ' ', '')"/></xsl:attribute>
  1766.                                             <img src="sunspotdemoimg-show.gif" border="0" alt="Show"/>
  1767.                                         </xsl:otherwise>
  1768.                                     </xsl:choose>
  1769.                                 </a>
  1770.                             </xsl:when>
  1771.                         </xsl:choose>
  1772.                         <!-- mandatory/delete -->
  1773.                         <xsl:variable name="linkurlmand"><xsl:value-of select="$cmd"/>delete_<xsl:value-of select="$copletident"/></xsl:variable>
  1774.                         <xsl:if test="$copletconf/configuration/mandatory='false'">
  1775.                             <a>
  1776.                                 <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurlmand), ' ', '')"/></xsl:attribute>
  1777.                                 <img src="sunspotdemoimg-delete.gif" border="0" alt="Delete"/>
  1778.                             </a>
  1779.                         </xsl:if>
  1780.                     </td>
  1781.                 </tr>
  1782.             </xsl:for-each>
  1783.         </tbody>
  1784.     </table>
  1785. </td>
  1786. </xsl:template>
  1787.  
  1788. <!-- /selected coplets columns -->
  1789.  
  1790. <!-- All coplets-->
  1791.  
  1792. <xsl:template match="coplets-profile">    
  1793. <font face="Arial, Helvetica, sans-serif" size="3">
  1794. <xsl:attribute name="color">
  1795.     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1796. </xsl:attribute>
  1797.     <b>All coplets</b>
  1798. </font>
  1799. <table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  1800.     <tr>
  1801.         <td>
  1802.             <table border="0" width="100%" cellspacing="0" cellpadding="4">
  1803.             <xsl:attribute name="bgcolor">
  1804.                 <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/background/color"/>
  1805.             </xsl:attribute>
  1806.                 <tbody>
  1807.                     <xsl:if test="ancestor::portaladminconf">
  1808.                         <xsl:for-each select="coplets/coplet[configuration/active='true']">
  1809.                             <tr>
  1810.                             <td>
  1811.                             <font face="Arial, Helvetica, sans-serif" size="2">
  1812.                             <xsl:attribute name="color">
  1813.                                 <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1814.                             </xsl:attribute>
  1815.                                 <xsl:value-of select="title"/>
  1816.                             </font>
  1817.                         </td>
  1818.                         <td>
  1819.                             <xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&portalcmd=new_<xsl:value-of select="@id"/>_1</xsl:variable>
  1820.                             <a>
  1821.                                 <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1822.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1823.                                 <xsl:attribute name="color">
  1824.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1825.                                 </xsl:attribute>
  1826.                                     Add
  1827.                                 </font>
  1828.                             </a>
  1829.                         </td>    
  1830.                         <td>
  1831.                             <xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&portalcmd=new_<xsl:value-of select="@id"/>_header</xsl:variable>
  1832.                             <a>
  1833.                                 <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1834.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1835.                                 <xsl:attribute name="color">
  1836.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1837.                                 </xsl:attribute>
  1838.                                     As Header
  1839.                                 </font>
  1840.                             </a>
  1841.                         </td>    
  1842.                         <td>
  1843.                             <xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&portalcmd=new_<xsl:value-of select="@id"/>_footer</xsl:variable>
  1844.                             <a>
  1845.                                 <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1846.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1847.                                 <xsl:attribute name="color">
  1848.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1849.                                 </xsl:attribute>
  1850.                                     As Footer
  1851.                                 </font>
  1852.                             </a>
  1853.                         </td>    
  1854.                         </tr>
  1855.                     </xsl:for-each>
  1856.                 </xsl:if>
  1857.                 <xsl:if test="not(ancestor::portaladminconf)">
  1858.                     <xsl:for-each select="coplets/coplet[configuration/active='true' and configuration/mandatory='false']">
  1859.                         <tr>
  1860.                         <td>
  1861.                             <font face="Arial, Helvetica, sans-serif" size="2">
  1862.                             <xsl:attribute name="color">
  1863.                                 <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1864.                             </xsl:attribute>
  1865.                                 <xsl:value-of select="title"/>
  1866.                             </font>
  1867.                         </td>
  1868.                         <td>
  1869.                             <xsl:variable name="linkurl"><xsl:value-of select="ancestor::portalconf/configuration/uri"/>&portalcmd=new_<xsl:value-of select="@id"/>_1</xsl:variable>
  1870.                             <a>
  1871.                                 <xsl:attribute name="href"><xsl:value-of select="translate(normalize-space($linkurl), ' ', '')"/></xsl:attribute>
  1872.                                 <font face="Arial, Helvetica, sans-serif" size="2">
  1873.                                 <xsl:attribute name="color">
  1874.                                     <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1875.                                 </xsl:attribute>
  1876.                                     Add
  1877.                                 </font>
  1878.                             </a>
  1879.                         </td>    
  1880.                         </tr>
  1881.                     </xsl:for-each>
  1882.                 </xsl:if>
  1883.                 
  1884.                 </tbody>
  1885.             </table>
  1886.         </td>
  1887.     </tr>
  1888. </table>
  1889. </xsl:template>
  1890.  
  1891. <!-- /All coplets -->
  1892.  
  1893. <xsl:template name="admin_coplets-profile">    
  1894. <form method="post">
  1895. <xsl:attribute name="action">
  1896.     <xsl:value-of select="normalize-space(ancestor::portalconf/configuration/uri)"/>
  1897. </xsl:attribute>
  1898. <font face="Arial, Helvetica, sans-serif" size="3">
  1899. <xsl:attribute name="color">
  1900. <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1901.         </xsl:attribute>
  1902. <b>coplets Configuration</b></font>
  1903. <table cellspacing="0" cellpadding="2" bgcolor="#46627A" width="100%" border="0">
  1904.     <tr>
  1905.         <td>
  1906.             <table border="0" width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="4">
  1907.             <xsl:attribute name="bgcolor">
  1908.                 <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/background/color"/>
  1909.             </xsl:attribute>
  1910.                 <tbody>
  1911.                 <xsl:for-each select="coplets/coplet">
  1912.                     <tr>
  1913.                         <td colspan="2">
  1914.                             <font face="Arial, Helvetica, sans-serif" size="2">
  1915. <xsl:attribute name="color">
  1916. <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1917.         </xsl:attribute><b>coplet: <xsl:value-of select="title"/></b></font>
  1918.                         </td>
  1919.                     </tr>
  1920.                     <xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">    
  1921.                     <tr>
  1922.                         <td width="20%">
  1923.                             <font face="Arial, Helvetica, sans-serif" size="2">    
  1924. <xsl:attribute name="color">
  1925. <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1926.         </xsl:attribute>        
  1927.                             <xsl:value-of select="@formdescription"/>:
  1928.                             </font>
  1929.                         </td>
  1930.                         <td>
  1931.                         <font face="Arial, Helvetica, sans-serif" size="2">
  1932. <xsl:attribute name="color">
  1933. <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1934.         </xsl:attribute>
  1935.                         <xsl:call-template name="inputfield"/>
  1936.                         </font>
  1937.                         </td>
  1938.                     </tr>
  1939.                     </xsl:for-each>
  1940.                 </xsl:for-each>
  1941.                 <tr><td><input type="submit" value="Change coplets"/></td></tr>
  1942.                 </tbody>
  1943.             </table>
  1944.         </td>
  1945.     </tr>
  1946.     
  1947. </table>
  1948. </form>
  1949. </xsl:template>
  1950.  
  1951. <!-- the header -->
  1952.  
  1953. <xsl:template match="header">
  1954.     <xsl:if test="descendant::*[@formdescription and @formpath and @formtype]">
  1955.         <table border="0" cellPadding="0" cellSpacing="0" width="100%">
  1956.             <xsl:attribute name="bgcolor">
  1957.                 <xsl:value-of select="ancestor::layout-profile/portal/layouts/layout/background/color"/>
  1958.             </xsl:attribute>
  1959.             <xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">
  1960.             <tr>
  1961.                 <td width="20%">
  1962.                     <font face="Arial, Helvetica, sans-serif" size="2">
  1963. <xsl:attribute name="color">
  1964. <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1965.         </xsl:attribute>
  1966.                             <xsl:value-of select="@formdescription"/>:
  1967.                     <img src="sunspotdemoimg-space.gif" width="10" height="1"/>
  1968.                     <xsl:call-template name="inputfield"/>
  1969.                     </font>
  1970.                 </td>
  1971.             </tr>
  1972.             </xsl:for-each>
  1973.         </table>
  1974.     </xsl:if>
  1975. </xsl:template>
  1976.  
  1977. <xsl:template match="footer">
  1978.     <xsl:if test="descendant::*[@formdescription and @formpath and @formtype]">
  1979.         <table border="0" cellPadding="0" cellSpacing="0" width="100%">
  1980.             <xsl:attribute name="bgcolor">
  1981.                 <xsl:value-of select="ancestor::layout-profile/portal/layouts/layout/background/color"/>
  1982.             </xsl:attribute>
  1983.             <xsl:for-each select="descendant::*[@formdescription and @formpath and @formtype]">
  1984.             <tr>
  1985.                 <td width="20%">
  1986.                     <font face="Arial, Helvetica, sans-serif" size="2">
  1987. <xsl:attribute name="color">
  1988. <xsl:value-of select="ancestor::portalconf/layout-profile/portal/layouts/layout/font/color"/>
  1989.         </xsl:attribute>
  1990.                             <xsl:value-of select="@formdescription"/>:
  1991.                     <img src="sunspotdemoimg-space.gif" width="12" height="1"/>
  1992.                     <xsl:call-template name="inputfield"/>
  1993.                     </font>
  1994.                 </td>
  1995.             </tr>
  1996.             </xsl:for-each>
  1997.         </table>
  1998.     </xsl:if>
  1999. </xsl:template>
  2000.  
  2001.   <!-- Copy all and apply templates -->
  2002.   <xsl:template match="@*|node()">
  2003.    <xsl:copy>
  2004.     <xsl:apply-templates select="@*|node()" />
  2005.    </xsl:copy>
  2006.   </xsl:template>
  2007.  
  2008. </xsl:stylesheet>
  2009.