[14413] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <xsl:stylesheet version="1.0"
|
---|
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 4 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
| 5 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
| 6 | extension-element-prefixes="java util"
|
---|
| 7 | exclude-result-prefixes="java util">
|
---|
| 8 |
|
---|
[17019] | 9 | <!-- style includes global params interface_name, library_name -->
|
---|
[14413] | 10 | <xsl:include href="style.xsl"/>
|
---|
| 11 | <xsl:include href="service-params.xsl"/>
|
---|
| 12 |
|
---|
| 13 | <xsl:output method="html"/>
|
---|
[17019] | 14 |
|
---|
[18318] | 15 | <!-- the main page layout template is here -->
|
---|
[17019] | 16 | <xsl:template match="page">
|
---|
| 17 | <html>
|
---|
[18318] | 18 | <head>
|
---|
| 19 | <title>
|
---|
| 20 | <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
|
---|
| 21 | <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
|
---|
| 22 | </title>
|
---|
| 23 | <xsl:call-template name="globalStyle"/>
|
---|
| 24 | <xsl:call-template name="pageStyle"/>
|
---|
| 25 | </head>
|
---|
[17019] | 26 | <body class="bgimage">
|
---|
| 27 | <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute>
|
---|
| 28 | <div id="page">
|
---|
[18318] | 29 | <xsl:apply-templates select="pageResponse"/>
|
---|
| 30 | <xsl:call-template name="greenstoneFooter"/>
|
---|
[17019] | 31 | </div>
|
---|
| 32 | </body>
|
---|
| 33 | </html>
|
---|
| 34 | </xsl:template>
|
---|
[14413] | 35 |
|
---|
| 36 | <xsl:param name="library_name"/>
|
---|
| 37 |
|
---|
| 38 | <xsl:template name="pageTitle">
|
---|
| 39 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.authentication')"/>
|
---|
| 40 | </xsl:template>
|
---|
| 41 |
|
---|
[18330] | 42 | <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
|
---|
| 43 | <xsl:template name="pageHead">
|
---|
| 44 | <head>
|
---|
| 45 | <title>
|
---|
| 46 | <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
|
---|
| 47 | </title>
|
---|
| 48 | <xsl:call-template name="globalStyle"/>
|
---|
| 49 | <xsl:call-template name="pageStyle"/>
|
---|
| 50 | </head>
|
---|
| 51 | </xsl:template>
|
---|
| 52 |
|
---|
[18318] | 53 | <xsl:template name="pageStyle"/>
|
---|
[14413] | 54 |
|
---|
| 55 | <xsl:template match="page">
|
---|
| 56 | <html>
|
---|
| 57 | <xsl:call-template name="pageHead" />
|
---|
| 58 | <xsl:call-template name="addGroup" />
|
---|
| 59 | <body class="bgimage">
|
---|
| 60 | <div id="page">
|
---|
| 61 | <xsl:variable name="authen_service" select="/page/pageRequest/paramList/param[@name='s']/@value"/>
|
---|
| 62 | <xsl:variable name="sub_action" select="/page/pageRequest/@subaction"/>
|
---|
| 63 | <xsl:variable name="asn_param" select ="/page/pageRequest/paramList/param[@name='s1.asn']/@value"/>
|
---|
| 64 | <xsl:variable name="uan" select ="/page/pageRequest/paramList/param[@name='s1.uan']/@value"/>
|
---|
| 65 | <xsl:variable name="pro_action" select ="/page/pageResponse/authenticationNode/service/@aup"/>
|
---|
| 66 | <xsl:variable name="au_node" select ="/page/pageResponse/authenticationNode"/>
|
---|
| 67 | <xsl:variable name="asn" select ="/page/pageResponse/authenticationNode/service/@asn"/>
|
---|
| 68 | <xsl:variable name="info" select ="/page/pageResponse/authenticationNode/service/@info"/>
|
---|
| 69 | <xsl:variable name="err" select ="/page/pageResponse/authenticationNode/service/@err"/>
|
---|
| 70 | <xsl:variable name="rt" select="/page/pageRequest/paramList/param[@name='rt']/@value"/>
|
---|
| 71 | <xsl:variable name="un_s" select="/page/pageResponse/authenticationNode/service/@un"/>
|
---|
| 72 | <xsl:variable name="pw_s" select="/page/pageResponse/authenticationNode/service/@pw"/>
|
---|
| 73 |
|
---|
| 74 | <div align="left" >
|
---|
| 75 | <table align="left" border="0" width="100%">
|
---|
| 76 | <tr align="left">
|
---|
| 77 | <td><h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.authentication')"/></h2></td>
|
---|
| 78 | <td><xsl:if test="$un_s!=''">
|
---|
| 79 | <xsl:if test="$asn!='' and $asn!='0'">
|
---|
[18318] | 80 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/> : <xsl:value-of select="$un_s"/>
|
---|
[14413] | 81 | </xsl:if>
|
---|
| 82 | </xsl:if></td>
|
---|
| 83 | </tr>
|
---|
| 84 | </table>
|
---|
| 85 | </div>
|
---|
| 86 |
|
---|
| 87 | <div id="navbar">
|
---|
[18318] | 88 |
|
---|
[14413] | 89 | <ul id="navbarlist">
|
---|
| 90 | <!--greenstone home-->
|
---|
| 91 | <li><a href="{$library_name}"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.greenstone_home')"/></a></li>
|
---|
| 92 |
|
---|
| 93 | <!--list users-->
|
---|
| 94 | <li>
|
---|
| 95 | <xsl:choose>
|
---|
| 96 | <xsl:when test="$asn!='' and $asn!='0' and $un_s!=''">
|
---|
| 97 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.aup=ListUsers&s1.asn={$asn}&s1.uan=1&s1.un={$un_s}&s1.pw="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_users')"/></a>
|
---|
[18318] | 98 | </xsl:when>
|
---|
| 99 | <xsl:otherwise>
|
---|
| 100 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_users')"/></a>
|
---|
| 101 | </xsl:otherwise>
|
---|
| 102 | </xsl:choose></li>
|
---|
[14413] | 103 |
|
---|
| 104 | <!--add a new user-->
|
---|
| 105 | <li>
|
---|
| 106 | <xsl:choose>
|
---|
| 107 | <xsl:when test="$asn!='' and $asn!='0' and $un_s!=''">
|
---|
| 108 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.aup=AddUser&s1.asn={$asn}&s1.uan=1&s1.un={$un_s}&s1.pw=&s1.umun=&s1.umpw=&s1.umgp=&s1.umas=&s1.umc="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.add_a_new_user')"/></a>
|
---|
| 109 | </xsl:when>
|
---|
| 110 | <xsl:otherwise>
|
---|
| 111 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.add_a_new_user')"/></a>
|
---|
| 112 | </xsl:otherwise>
|
---|
| 113 | </xsl:choose>
|
---|
| 114 | </li>
|
---|
[18318] | 115 |
|
---|
[14413] | 116 | <!-- change password-->
|
---|
| 117 | <li>
|
---|
| 118 | <xsl:choose>
|
---|
| 119 | <xsl:when test="$asn!='' and $asn!='0' and $un_s!=''">
|
---|
| 120 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.aup=ModifyPassword&s1.asn={$asn}&s1.uan=1&s1.un={$un_s}&s1.pw=&s1.umpw1=&s1.umpw2=&s1.umpw="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password')"/></a>
|
---|
| 121 | </xsl:when>
|
---|
| 122 | <xsl:otherwise>
|
---|
| 123 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password')"/></a>
|
---|
| 124 | </xsl:otherwise>
|
---|
| 125 | </xsl:choose>
|
---|
| 126 | </li>
|
---|
| 127 |
|
---|
| 128 | <li>
|
---|
| 129 | <xsl:choose>
|
---|
| 130 | <xsl:when test="$un_s!='' and $asn!='' and $asn!='0'">
|
---|
| 131 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login&s1.un=&s1.pw="><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.logout')"/></a>
|
---|
| 132 | </xsl:when>
|
---|
| 133 | <xsl:otherwise>
|
---|
| 134 | <a href="{$library_name}?a=g&rt=r&sa=authen&s=Authentication&s1.asn=&s1.aup=Login"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login')"/></a>
|
---|
| 135 | </xsl:otherwise>
|
---|
| 136 | </xsl:choose>
|
---|
| 137 | </li>
|
---|
| 138 | </ul>
|
---|
| 139 | </div>
|
---|
| 140 |
|
---|
| 141 | <table align="left" border="0" width="100%">
|
---|
| 142 | <tr>
|
---|
| 143 | <td>
|
---|
| 144 | <div id="content" align="center">
|
---|
| 145 | <!-- login -->
|
---|
| 146 | <xsl:if test="$pro_action='Login'">
|
---|
| 147 | <xsl:choose>
|
---|
| 148 | <xsl:when test="$asn!='' and $asn!='0'">
|
---|
| 149 | <p align="left"> <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_successfully')"/></p>
|
---|
| 150 | </xsl:when>
|
---|
| 151 | <xsl:otherwise>
|
---|
| 152 |
|
---|
[18318] | 153 | <p align="left">
|
---|
| 154 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_3')"/><br/></p>
|
---|
| 155 | <xsl:if test="$err='un-pw-err'">
|
---|
| 156 | <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.wrong_password_warning')"/></font></p>
|
---|
| 157 | </xsl:if>
|
---|
| 158 | <xsl:if test="$err='no-permission' and $info='Login'">
|
---|
| 159 | <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p>
|
---|
| 160 | </xsl:if>
|
---|
| 161 | <xsl:if test="$err='as-false'">
|
---|
| 162 | <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.account_status_false')"/></font></p>
|
---|
| 163 | </xsl:if>
|
---|
| 164 | <xsl:call-template name="login">
|
---|
| 165 | <xsl:with-param name="sub_action" select="$sub_action"/>
|
---|
| 166 | <xsl:with-param name="authen_service" select="$authen_service"/>
|
---|
| 167 | <xsl:with-param name="pro_action" select="$pro_action"/>
|
---|
| 168 | </xsl:call-template>
|
---|
[14413] | 169 |
|
---|
| 170 | </xsl:otherwise>
|
---|
[18318] | 171 | </xsl:choose>
|
---|
[14413] | 172 | </xsl:if>
|
---|
| 173 |
|
---|
| 174 | <!-- list users-->
|
---|
| 175 | <xsl:if test="$pro_action='ListUsers'">
|
---|
| 176 |
|
---|
| 177 | <xsl:if test="$asn='1' and $info='all-un'">
|
---|
| 178 | <xsl:call-template name="listusers" >
|
---|
| 179 | </xsl:call-template>
|
---|
| 180 | </xsl:if>
|
---|
| 181 |
|
---|
| 182 | <xsl:if test="$info='Login'">
|
---|
| 183 | <p align="left">
|
---|
| 184 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_2')"/><br/></p>
|
---|
| 185 | <xsl:if test="$err='no-permission' and $info='Login'">
|
---|
| 186 | <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p>
|
---|
| 187 | </xsl:if>
|
---|
| 188 | </xsl:if>
|
---|
| 189 | </xsl:if>
|
---|
| 190 |
|
---|
| 191 | <!-- add a new user-->
|
---|
| 192 | <xsl:if test="$pro_action='AddUser'">
|
---|
| 193 | <xsl:if test="$err!='' and $err!='no-permission' and $err!='un-exist' and $err!='un-err' and $err!='pw-err'">
|
---|
[18318] | 194 | <p align="left"><font color='red'><xsl:value-of select="$err" /></font></p>
|
---|
[14413] | 195 | </xsl:if>
|
---|
| 196 |
|
---|
| 197 | <xsl:if test="$asn!='1'">
|
---|
| 198 | <p align="left">
|
---|
| 199 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.login_descibe_line_2')"/><br/>
|
---|
[18318] | 200 | </p>
|
---|
[14413] | 201 | <xsl:if test="$err='no-permission'">
|
---|
| 202 | <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.no_permission')"/></font></p>
|
---|
| 203 | </xsl:if>
|
---|
| 204 | </xsl:if>
|
---|
| 205 |
|
---|
| 206 | <xsl:if test="count(/page/pageResponse/authenticationNode/service/userNodeList) = 1">
|
---|
| 207 | <xsl:call-template name="listusers" >
|
---|
| 208 | </xsl:call-template>
|
---|
| 209 | </xsl:if>
|
---|
| 210 |
|
---|
| 211 | <xsl:if test="$info='adduser_interface'">
|
---|
| 212 | <h2 align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.add_a_new_user_title')"/></h2>
|
---|
| 213 | <xsl:if test="$err='pw-err'">
|
---|
| 214 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_err')"/></font></p>
|
---|
| 215 | </xsl:if>
|
---|
| 216 | <xsl:if test="$err='un-err'">
|
---|
| 217 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.unsername_err')"/></font></p>
|
---|
| 218 | </xsl:if>
|
---|
[18318] | 219 | <xsl:if test="$err='un-exist'">
|
---|
[14413] | 220 | <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_has_existed')"/></font></p>
|
---|
| 221 | </xsl:if>
|
---|
| 222 | <xsl:call-template name="edituser" >
|
---|
| 223 | <xsl:with-param name="sub_action" select="$sub_action"/>
|
---|
| 224 | <xsl:with-param name="authen_service" select="$authen_service"/>
|
---|
| 225 | <xsl:with-param name="pro_action" select="$pro_action"/>
|
---|
| 226 | <xsl:with-param name="umun_s" />
|
---|
| 227 | <xsl:with-param name="umpw_s" />
|
---|
| 228 | <xsl:with-param name="umas_s" />
|
---|
| 229 | <xsl:with-param name="umgp_s" />
|
---|
| 230 | <xsl:with-param name="umc_s" />
|
---|
| 231 | <xsl:with-param name="oumun_s" />
|
---|
| 232 | <xsl:with-param name="un_s" select="$un_s"/>
|
---|
| 233 | <xsl:with-param name="pw_s" select="$pw_s"/>
|
---|
| 234 | <xsl:with-param name="asn" select="$asn"/>
|
---|
| 235 | </xsl:call-template>
|
---|
| 236 |
|
---|
| 237 | </xsl:if>
|
---|
| 238 | </xsl:if>
|
---|
| 239 |
|
---|
| 240 | <!-- modify the passwrod of a user-->
|
---|
| 241 | <xsl:if test="$pro_action='ModifyPassword'">
|
---|
| 242 |
|
---|
| 243 | <xsl:if test="$err!='' and $err!='umpw1-err' and $err!='umpw2-err' and $err!='pw-umpw-nm-err' and $err!='umpw-null-err' and $err!='umpw1-umpw2-nm-err' and $err!='umpw1-umpw2-null-err'"><p align="left"><font color='red'><xsl:value-of select="$err" /></font></p>
|
---|
| 244 | </xsl:if>
|
---|
| 245 |
|
---|
| 246 | <xsl:if test="$err=''">
|
---|
| 247 | <h2 align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_title')"/></h2>
|
---|
| 248 | <p align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_successed_content')"/></p>
|
---|
| 249 | </xsl:if>
|
---|
| 250 |
|
---|
| 251 | <xsl:if test="$asn!='0' and $info='modify_interface'">
|
---|
| 252 | <h2 align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_title')"/></h2>
|
---|
| 253 | <p align="left"><font color="grey"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.change_password_describe_line_1')"/></font></p>
|
---|
| 254 |
|
---|
| 255 | <xsl:if test="$err='umpw1-err'">
|
---|
| 256 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.new_password_invalid')"/></font></p>
|
---|
| 257 | </xsl:if>
|
---|
| 258 | <xsl:if test="$err='umpw2-err'">
|
---|
| 259 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.retyped_password_invalid')"/></font></p>
|
---|
| 260 | </xsl:if>
|
---|
| 261 | <xsl:if test="$err='pw-umpw-nm-err' or $err='umpw-null-err'">
|
---|
| 262 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.old_password_warning')"/></font></p>
|
---|
| 263 | </xsl:if>
|
---|
| 264 | <xsl:if test="$err='umpw1-umpw2-nm-err'">
|
---|
| 265 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.two_password_not_match')"/></font></p>
|
---|
| 266 | </xsl:if>
|
---|
| 267 | <xsl:if test="$err='umpw1-umpw2-null-err'">
|
---|
| 268 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_empty_warning')"/></font></p>
|
---|
| 269 | </xsl:if>
|
---|
| 270 |
|
---|
| 271 | <xsl:call-template name="modifypassword">
|
---|
| 272 | <xsl:with-param name="sub_action" select="$sub_action"/>
|
---|
| 273 | <xsl:with-param name="authen_service" select="$authen_service"/>
|
---|
| 274 | <xsl:with-param name="pro_action" select="$pro_action"/>
|
---|
| 275 | <xsl:with-param name="un_s" select="$un_s"/>
|
---|
| 276 | <xsl:with-param name="pw_s" select="$pw_s"/>
|
---|
| 277 | <xsl:with-param name="asn" select="$asn"/>
|
---|
| 278 | </xsl:call-template>
|
---|
| 279 | </xsl:if>
|
---|
| 280 | </xsl:if>
|
---|
| 281 |
|
---|
| 282 | <!-- delete a user -->
|
---|
| 283 | <xsl:if test="$pro_action='DeleteUser'">
|
---|
| 284 | <xsl:if test="$err!=''">
|
---|
| 285 | <p align="left"><font color='red'><xsl:value-of select="$err" /></font></p>
|
---|
| 286 | </xsl:if>
|
---|
| 287 |
|
---|
| 288 | <xsl:if test="$info='confirm'">
|
---|
| 289 | <xsl:call-template name="deleteuser">
|
---|
| 290 | <xsl:with-param name="sub_action" select="$sub_action"/>
|
---|
| 291 | <xsl:with-param name="authen_service" select="$authen_service"/>
|
---|
| 292 | <xsl:with-param name="pro_action" select="$pro_action"/>
|
---|
| 293 | <xsl:with-param name="un_s" select="$un_s"/>
|
---|
| 294 | <xsl:with-param name="umun_s" select="/page/pageResponse/authenticationNode/service/@umun"/>
|
---|
| 295 | <xsl:with-param name="asn" select="$asn"/>
|
---|
| 296 | </xsl:call-template>
|
---|
| 297 | </xsl:if>
|
---|
| 298 | <xsl:if test="count(/page/pageResponse/authenticationNode/service/userNodeList) = 1">
|
---|
| 299 | <xsl:call-template name="listusers" >
|
---|
| 300 | </xsl:call-template>
|
---|
| 301 | </xsl:if>
|
---|
| 302 | </xsl:if>
|
---|
| 303 |
|
---|
| 304 | <!-- edit the user's info -->
|
---|
| 305 | <xsl:if test="$pro_action='EditUser'">
|
---|
| 306 | <xsl:if test="$err!='' and $err!='umpw-err' and $err!='umun-err' and $err!='ini-umpw-err' and $err!='un-exist'">
|
---|
| 307 | <p align="left"><font color='red'><xsl:value-of select="$err" /></font></p>
|
---|
| 308 | </xsl:if>
|
---|
| 309 |
|
---|
| 310 | <xsl:if test="$info='edituser-interface'">
|
---|
| 311 | <h2 align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.edit_user_information')"/></h2>
|
---|
| 312 | <xsl:if test="$err='umpw-err'">
|
---|
| 313 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_err')"/></font></p>
|
---|
| 314 | </xsl:if>
|
---|
| 315 | <xsl:if test="$err='umun-err'">
|
---|
| 316 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.unsername_err')"/></font></p>
|
---|
| 317 | </xsl:if>
|
---|
| 318 | <xsl:if test="$err='ini-umpw-err'">
|
---|
| 319 | <p align="left"><font color="red"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_initial')"/></font></p>
|
---|
| 320 | </xsl:if>
|
---|
[18318] | 321 | <xsl:if test="$err='un-exist'">
|
---|
[14413] | 322 | <p align="left"><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_has_existed')"/></font></p>
|
---|
| 323 | </xsl:if>
|
---|
| 324 | <xsl:call-template name="edituser" >
|
---|
| 325 | <xsl:with-param name="sub_action" select="$sub_action"/>
|
---|
| 326 | <xsl:with-param name="authen_service" select="$authen_service"/>
|
---|
| 327 | <xsl:with-param name="pro_action" select="$pro_action"/>
|
---|
| 328 | <xsl:with-param name="umun_s" select="/page/pageResponse/authenticationNode/service/@umun"/>
|
---|
| 329 | <xsl:with-param name="umpw_s" select="/page/pageResponse/authenticationNode/service/@umpw"/>
|
---|
| 330 | <xsl:with-param name="umas_s" select="/page/pageResponse/authenticationNode/service/@umas"/>
|
---|
| 331 | <xsl:with-param name="umgp_s" select="/page/pageResponse/authenticationNode/service/@umgp"/>
|
---|
| 332 | <xsl:with-param name="umc_s" select="/page/pageResponse/authenticationNode/service/@umc"/>
|
---|
| 333 | <xsl:with-param name="oumun_s" select="/page/pageResponse/authenticationNode/service/@oumun"/>
|
---|
| 334 | <xsl:with-param name="un_s" select="$un_s"/>
|
---|
| 335 | <xsl:with-param name="pw_s" select="$pw_s"/>
|
---|
| 336 | <xsl:with-param name="asn" select="$asn"/>
|
---|
| 337 | </xsl:call-template>
|
---|
| 338 | </xsl:if>
|
---|
| 339 | <xsl:if test="$info='all-un'">
|
---|
| 340 | <xsl:if test="count(/page/pageResponse/authenticationNode/service/userNodeList) = 1">
|
---|
| 341 | <xsl:call-template name="listusers" >
|
---|
| 342 | </xsl:call-template>
|
---|
| 343 | </xsl:if>
|
---|
| 344 | </xsl:if>
|
---|
| 345 | </xsl:if>
|
---|
| 346 |
|
---|
| 347 | </div>
|
---|
| 348 | </td>
|
---|
| 349 | </tr>
|
---|
| 350 | </table>
|
---|
| 351 | <div id="navbar">
|
---|
| 352 | <xsl:call-template name="greenstoneFooter" />
|
---|
| 353 | </div>
|
---|
| 354 | </div>
|
---|
| 355 | </body>
|
---|
| 356 | </html>
|
---|
| 357 | </xsl:template>
|
---|
| 358 |
|
---|
[18318] | 359 | <!--template name="login"-->
|
---|
[14413] | 360 | <xsl:template name="login">
|
---|
| 361 | <xsl:param name="sub_action"/>
|
---|
| 362 | <xsl:param name="authen_service"/>
|
---|
| 363 | <xsl:param name="pro_action"/>
|
---|
| 364 | <div>
|
---|
| 365 | <form id="LoginForm" method="get" action="{$library_name}">
|
---|
| 366 | <input type='hidden' name='a' value='g'/>
|
---|
| 367 | <input type='hidden' name='sa' value='{$sub_action}'/>
|
---|
| 368 | <input type='hidden' name='s' value='{$authen_service}'/>
|
---|
| 369 | <input type='hidden' name='rt' value='r'/>
|
---|
| 370 | <input type='hidden' name='s1.asn' value='0'/>
|
---|
| 371 | <input type='hidden' name='s1.uan' value='1'/>
|
---|
| 372 | <input type='hidden' name='s1.aup' value='{$pro_action}'/>
|
---|
| 373 | <input type='hidden' name='s1.umpw1' value=''/>
|
---|
| 374 | <input type='hidden' name='s1.umpw2' value=''/>
|
---|
| 375 | <input type='hidden' name='s1.umc' value=''/>
|
---|
| 376 | <input type='hidden' name='s1.umgp' value=''/>
|
---|
| 377 | <input type='hidden' name='s1.umun' value=''/>
|
---|
| 378 | <input type='hidden' name='s1.umpw' value=''/>
|
---|
| 379 | <input type='hidden' name='s1.umas' value=''/>
|
---|
| 380 |
|
---|
| 381 | <table align="center">
|
---|
| 382 | <tr>
|
---|
| 383 | <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/></td><td><input type="string" name="s1.un" size="10" value=""/></td><td></td>
|
---|
| 384 | </tr>
|
---|
| 385 | <tr>
|
---|
| 386 | <td><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password')"/></td><td><input type="password" name="s1.pw" size="10" value=""/></td><td>
|
---|
| 387 | <input type="submit" value="submit"></input></td>
|
---|
| 388 | </tr>
|
---|
[18318] | 389 | </table>
|
---|
[14413] | 390 | </form>
|
---|
| 391 | </div>
|
---|
| 392 | </xsl:template>
|
---|
| 393 |
|
---|
[18318] | 394 | <!--template name="listusers"-->
|
---|
[14413] | 395 | <xsl:template name="listusers" >
|
---|
[18318] | 396 | <h2 align="left"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.list_of_current_users_title')"/></h2>
|
---|
[14413] | 397 |
|
---|
| 398 | <table id='mainTable' align="left" border="0" cellspacing="1" cellpadding="3" width="100%" >
|
---|
| 399 | <tr>
|
---|
| 400 | <th bgcolor="#d0d0d0"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/></th>
|
---|
| 401 | <th bgcolor="#d0d0d0"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.account_status')"/></th>
|
---|
| 402 | <th bgcolor="#d0d0d0"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.groups')"/></th>
|
---|
| 403 | <th bgcolor="#d0d0d0"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.comment')"/></th>
|
---|
| 404 | <th bgcolor="#d0d0d0"></th>
|
---|
| 405 | </tr>
|
---|
| 406 | <xsl:for-each select="/page/pageResponse/authenticationNode/service/userNodeList/userNode">
|
---|
[18318] | 407 | <tr>
|
---|
| 408 | <td bgcolor="#eeeeee"><xsl:value-of select="@umun"/></td>
|
---|
| 409 | <td id="status" bgcolor="#eeeeee">
|
---|
[14413] | 410 | <script type="text/javascript">
|
---|
| 411 | <xsl:text disable-output-escaping="yes">
|
---|
| 412 | var status="</xsl:text><xsl:value-of select="@umas"/><xsl:text disable-output-escaping="yes">";
|
---|
| 413 | if (status=="true"){
|
---|
[18318] | 414 | document.getElementById("status").innerHTML="enabled";
|
---|
[14413] | 415 | }
|
---|
| 416 | if (status=="false"){
|
---|
[18318] | 417 | document.getElementById("status").innerHTML="disabled";
|
---|
[14413] | 418 | }
|
---|
| 419 | </xsl:text>
|
---|
| 420 | </script>
|
---|
| 421 | </td>
|
---|
[18318] | 422 | <td id="group" bgcolor="#eeeeee">
|
---|
| 423 | <script type="text/javascript">
|
---|
[14413] | 424 | <xsl:text disable-output-escaping="yes">
|
---|
| 425 | var groups="</xsl:text><xsl:value-of select="@umgp"/><xsl:text disable-output-escaping="yes">";
|
---|
| 426 | var split_groups= groups.split(",");
|
---|
| 427 | var new_groups="";
|
---|
| 428 | for (j=0; j < split_groups.length ; j++){
|
---|
[18318] | 429 | new_groups+=split_groups[j]+" <br /> ";
|
---|
| 430 | }
|
---|
| 431 | document.getElementById('group').innerHTML=new_groups;
|
---|
[14413] | 432 | </xsl:text>
|
---|
| 433 | </script>
|
---|
| 434 | </td>
|
---|
[18318] | 435 | <td bgcolor="#eeeeee"><xsl:value-of select="@umc"/></td>
|
---|
| 436 | <td bgcolor="#eeeeee">
|
---|
[14413] | 437 | <form name="ListUsersForm" method="get" action="{$library_name}">
|
---|
| 438 | <input type='hidden' name='a' value='g'/>
|
---|
| 439 | <input type='hidden' name='sa' value='authen'/>
|
---|
| 440 | <input type='hidden' name='s' value='Authentication'/>
|
---|
| 441 | <input type='hidden' name='rt' value='r'/>
|
---|
| 442 | <input type='hidden' name='s1.asn' value='1'/>
|
---|
| 443 | <input type='hidden' name='s1.uan' value='1'/>
|
---|
| 444 |
|
---|
| 445 | <input type='hidden'><xsl:attribute name="name">s1.oumun</xsl:attribute><xsl:attribute name="value"><xsl:value-of select="@umun"/></xsl:attribute></input>
|
---|
| 446 | <input type='hidden'><xsl:attribute name="name">s1.umun</xsl:attribute><xsl:attribute name="value"><xsl:value-of select="@umun"/></xsl:attribute></input>
|
---|
| 447 | <input type='hidden' name='s1.cm' value=''/>
|
---|
| 448 |
|
---|
| 449 | <input type="submit"><xsl:attribute name="name">s1.aup</xsl:attribute><xsl:attribute name="value">EditUser</xsl:attribute></input>
|
---|
| 450 | <input type="submit"><xsl:attribute name="name">s1.aup</xsl:attribute><xsl:attribute name="value">DeleteUser</xsl:attribute></input>
|
---|
| 451 | </form>
|
---|
[18318] | 452 | </td>
|
---|
[14413] | 453 | </tr>
|
---|
[18318] | 454 | </xsl:for-each>
|
---|
[14413] | 455 | </table>
|
---|
| 456 | </xsl:template>
|
---|
| 457 |
|
---|
[18318] | 458 | <!--template name="modifypassword"-->
|
---|
| 459 | <xsl:template name="modifypassword" >
|
---|
[14413] | 460 | <xsl:param name="sub_action"/>
|
---|
| 461 | <xsl:param name="authen_service"/>
|
---|
| 462 | <xsl:param name="pro_action"/>
|
---|
| 463 | <xsl:param name="un_s"/>
|
---|
| 464 | <xsl:param name="pw_s"/>
|
---|
| 465 | <xsl:param name="asn"/>
|
---|
| 466 | <div>
|
---|
| 467 | <form id="modifyForm" method="get" action="{$library_name}">
|
---|
| 468 | <input type='hidden' name='a' value='g'/>
|
---|
| 469 | <input type='hidden' name='sa' value='{$sub_action}'/>
|
---|
| 470 | <input type='hidden' name='s' value='{$authen_service}'/>
|
---|
| 471 | <input type='hidden' name='rt' value='r'/>
|
---|
| 472 | <input type='hidden' name='s1.un' value='{$un_s}'/>
|
---|
| 473 | <input type='hidden' name='s1.pw' value='{$pw_s}'/>
|
---|
| 474 | <input type='hidden' name='s1.asn' value='{$asn}'/>
|
---|
| 475 | <input type='hidden' name='s1.uan' value='1'/>
|
---|
| 476 | <input type='hidden' name='s1.aup' value='{$pro_action}'/>
|
---|
| 477 |
|
---|
| 478 | <table align="center"><tr><td align="right">
|
---|
[18318] | 479 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.old_password')"/></td><td><input type="password" name="s1.umpw" size="10" value=""/></td></tr>
|
---|
[14413] | 480 | <tr><td align="right">
|
---|
[18318] | 481 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.new_password')"/></td><td><input type="password" name="s1.umpw1" size="10" value=""/></td></tr>
|
---|
[14413] | 482 | <tr><td align="right">
|
---|
[18318] | 483 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.retype_new_password')"/></td><td><input type="password" name="s1.umpw2" size="10" value=""/></td></tr>
|
---|
[14413] | 484 | <tr><td></td><td>
|
---|
[18318] | 485 | <input type="submit" value="submit"></input></td>
|
---|
| 486 | </tr>
|
---|
| 487 | </table>
|
---|
| 488 | </form>
|
---|
| 489 | </div>
|
---|
[14413] | 490 | </xsl:template>
|
---|
| 491 |
|
---|
[18318] | 492 | <!--template name="deleteuser"-->
|
---|
[14413] | 493 | <xsl:template name="deleteuser">
|
---|
| 494 | <xsl:param name="sub_action"/>
|
---|
| 495 | <xsl:param name="authen_service"/>
|
---|
| 496 | <xsl:param name="pro_action"/>
|
---|
| 497 | <xsl:param name="un_s"/>
|
---|
| 498 | <xsl:param name="umun_s"/>
|
---|
| 499 | <xsl:param name="asn"/>
|
---|
| 500 | <div >
|
---|
| 501 | <form id="deleteForm" method="get" action="{$library_name}">
|
---|
| 502 | <input type='hidden' name='a' value='g'/>
|
---|
| 503 | <input type='hidden' name='sa' value='{$sub_action}'/>
|
---|
| 504 | <input type='hidden' name='s' value='{$authen_service}'/>
|
---|
| 505 | <input type='hidden' name='rt' value='r'/>
|
---|
| 506 | <input type='hidden' name='s1.aup' value='{$pro_action}'/>
|
---|
| 507 | <input type='hidden' name='s1.asn' value='{$asn}'/>
|
---|
| 508 | <input type='hidden' name='s1.uan' value='1'/>
|
---|
| 509 | <input type='hidden' name='s1.umun' value='{$umun_s}'/>
|
---|
| 510 | <p><font color='red'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.do_you_really_want_to_permanently_remove_user')"/> <xsl:value-of select="$umun_s"/>" ?</font></p>
|
---|
| 511 | <input type="submit" value="yes"><xsl:attribute name="name">s1.cm</xsl:attribute></input>
|
---|
| 512 | <input type="submit" value="no"><xsl:attribute name="name">s1.cm</xsl:attribute></input>
|
---|
| 513 | </form>
|
---|
| 514 | </div>
|
---|
| 515 | </xsl:template>
|
---|
| 516 |
|
---|
[18318] | 517 | <!--template name="edituser"-->
|
---|
[14413] | 518 | <xsl:template name="edituser" >
|
---|
| 519 | <xsl:param name="sub_action"/>
|
---|
| 520 | <xsl:param name="authen_service"/>
|
---|
| 521 | <xsl:param name="pro_action"/>
|
---|
| 522 | <xsl:param name="un_s"/>
|
---|
| 523 | <xsl:param name="pw_s"/>
|
---|
| 524 | <xsl:param name="umun_s"/>
|
---|
| 525 | <xsl:param name="umpw_s"/>
|
---|
| 526 | <xsl:param name="umas_s"/>
|
---|
| 527 | <xsl:param name="umgp_s"/>
|
---|
| 528 | <xsl:param name="umc_s"/>
|
---|
| 529 | <xsl:param name="oumun_s"/>
|
---|
| 530 | <xsl:param name="asn"/>
|
---|
| 531 | <div>
|
---|
| 532 | <form id="editForm" method="get" action="{$library_name}">
|
---|
| 533 | <input type='hidden' name='a' value='g'/>
|
---|
| 534 | <input type='hidden' name='sa' value='{$sub_action}'/>
|
---|
| 535 | <input type='hidden' name='s' value='{$authen_service}'/>
|
---|
| 536 | <input type='hidden' name='rt' value='r'/>
|
---|
| 537 | <input type='hidden' name='s1.asn' value='{$asn}'/>
|
---|
| 538 | <input type='hidden' name='s1.uan' value='1'/>
|
---|
| 539 | <input type='hidden' name='s1.aup' value='{$pro_action}'/>
|
---|
| 540 | <input type='hidden' name='s1.un' value='{$un_s}'/>
|
---|
| 541 | <input type='hidden' name='s1.pw' value='{$pw_s}'/>
|
---|
| 542 |
|
---|
| 543 | <table align="left" ><tr><td>
|
---|
| 544 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/></td><td><input type="text" name="s1.umun" size="15" value="{$umun_s}"/></td><td><font color="gray"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username_describe')"/></font></td></tr>
|
---|
| 545 | <tr><td>
|
---|
| 546 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password')"/></td><td><input type="password" name="s1.umpw" size="15" value="{$umpw_s}"/></td><td><font color="gray"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.password_describe')"/></font></td></tr>
|
---|
| 547 | <tr><td>
|
---|
| 548 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.account_status')"/></td><td>
|
---|
| 549 | <select name="s1.umas">
|
---|
| 550 | <xsl:if test="$umas_s=''">
|
---|
| 551 | <option value="true" selected="selected"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.enabled')"/></option>
|
---|
| 552 | <option value="false"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.disabled')"/></option>
|
---|
| 553 | </xsl:if>
|
---|
| 554 | <xsl:if test="$umas_s='true'">
|
---|
| 555 | <option value="true" selected="selected"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.enabled')"/></option>
|
---|
| 556 | <option value="false"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.disabled')"/></option>
|
---|
| 557 | </xsl:if>
|
---|
| 558 | <xsl:if test="$umas_s='false'">
|
---|
| 559 | <option value="true"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.enabled')"/></option>
|
---|
| 560 | <option value="false" selected="selected"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.disabled')"/></option>
|
---|
| 561 | </xsl:if>
|
---|
| 562 | </select></td><td></td></tr>
|
---|
| 563 | <tr><td>
|
---|
| 564 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.groups')"/></td><td><input type="text" id="group" name="s1.umgp" size="70" value="{$umgp_s}"/></td><td><font color="gray"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.groups_describe')"/></font></td></tr>
|
---|
| 565 | <tr>
|
---|
| 566 | <td></td>
|
---|
| 567 | <td align="right"> <select id="groups" size="0">
|
---|
| 568 | <script type="text/javascript">
|
---|
[18318] | 569 | <xsl:text disable-output-escaping="yes">
|
---|
[14413] | 570 | var group_arr=Array("administrator","all-collections-editor","personal-collections-editor");
|
---|
| 571 | var group_string=document.getElementById("group").value;
|
---|
| 572 | var split_group_string=group_string.split(",");
|
---|
| 573 | var find=0;
|
---|
| 574 | for (i=0; i < group_arr.length; i++){
|
---|
[18318] | 575 | find=0;
|
---|
| 576 | for (j=0; j < group_arr.length; j++){
|
---|
| 577 | if (split_group_string[j]==group_arr[i]){
|
---|
| 578 | find=1;
|
---|
| 579 | }
|
---|
| 580 | }
|
---|
| 581 | if (find==0){
|
---|
| 582 | op = document.createElement('option');
|
---|
| 583 | op.innerHTML = group_arr[i];
|
---|
| 584 | op.setAttribute("value", group_arr[i]);
|
---|
| 585 | document.getElementById("groups").appendChild(op);
|
---|
| 586 | }
|
---|
[14413] | 587 | }
|
---|
[18318] | 588 |
|
---|
[14413] | 589 | </xsl:text>
|
---|
| 590 | </script>
|
---|
| 591 | </select></td><td><input type="button" name="addGroupButton" value="add" onClick="addGroup('groups')"/></td>
|
---|
| 592 | </tr>
|
---|
| 593 | <tr>
|
---|
| 594 | <td></td>
|
---|
| 595 | <td align="right">
|
---|
| 596 | <select id="collects" size="0">
|
---|
| 597 | <xsl:for-each select="/page/pageResponse/collectionList/collection">
|
---|
| 598 | <script type="text/javascript">
|
---|
| 599 | <xsl:text disable-output-escaping="yes">
|
---|
| 600 | var group="</xsl:text><xsl:value-of select="@name"/>-collection-editor<xsl:text disable-output-escaping="yes">";
|
---|
| 601 | var group_string=document.getElementById("group").value;
|
---|
| 602 | var split_group_string=group_string.split(",");
|
---|
| 603 | var find=0;
|
---|
| 604 | for (i=0; i < split_group_string.length; i++){
|
---|
[18318] | 605 | if (split_group_string[i]==group){
|
---|
| 606 | find=1;
|
---|
| 607 | }
|
---|
[14413] | 608 | }
|
---|
| 609 | if (find==0){
|
---|
[18318] | 610 | op = document.createElement('option');
|
---|
| 611 | op.innerHTML = group;
|
---|
| 612 | op.setAttribute("value", group);
|
---|
| 613 | document.getElementById("collects").appendChild(op);
|
---|
[14413] | 614 | }
|
---|
| 615 | </xsl:text>
|
---|
| 616 | </script>
|
---|
[18318] | 617 | </xsl:for-each>
|
---|
[14413] | 618 | </select>
|
---|
| 619 | </td>
|
---|
| 620 | <td><input type="button" name="addGroupButton" value="add" onClick="addGroup('collects')"/></td>
|
---|
| 621 | </tr>
|
---|
| 622 | <tr><td>
|
---|
| 623 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.comment')"/></td><td colspan="2"><div><textarea cols="40" rows="5" name="s1.umc"><xsl:value-of select="$umc_s"/>
|
---|
| 624 |
|
---|
[18318] | 625 | </textarea></div></td></tr>
|
---|
[14413] | 626 | <tr>
|
---|
| 627 |
|
---|
[18318] | 628 | <td></td><td>
|
---|
[14413] | 629 | <input type="submit" value="submit"><xsl:attribute name="name">s1.cm</xsl:attribute></input>
|
---|
[18318] | 630 | <xsl:if test="$pro_action!='AddUser'">
|
---|
| 631 | <input type="submit" value="cancel"><xsl:attribute name="name">s1.cm</xsl:attribute></input>
|
---|
| 632 | </xsl:if>
|
---|
[14413] | 633 | </td><td></td></tr>
|
---|
| 634 | </table>
|
---|
| 635 | <input type='hidden' name='s1.oumun' value='{$oumun_s}'/>
|
---|
| 636 | </form>
|
---|
| 637 | </div>
|
---|
| 638 | </xsl:template>
|
---|
| 639 |
|
---|
[18318] | 640 | <!-- addGroup() javascript -->
|
---|
[14413] | 641 | <xsl:template name="addGroup">
|
---|
| 642 | <script type="text/javascript">
|
---|
| 643 | <xsl:text disable-output-escaping="yes">
|
---|
| 644 | function addGroup(g){
|
---|
[18318] | 645 | var itemSelected;
|
---|
| 646 | var splitGroup;
|
---|
| 647 | var groupExit;
|
---|
[14413] | 648 |
|
---|
[18318] | 649 | if (document.getElementById("editForm")!=null){
|
---|
[14413] | 650 | //itemSelected=document.getElementById("editForm").groups.options.selectedIndex;
|
---|
| 651 | itemSelected=document.getElementById(g).options.selectedIndex;
|
---|
| 652 | if (document.getElementById(g).options[itemSelected].text!=""){
|
---|
[18318] | 653 | if (document.getElementById("group").value==""){
|
---|
| 654 | document.getElementById("group").value=document.getElementById("group").value+document.getElementById(g).options[itemSelected].text;
|
---|
| 655 | }else{
|
---|
| 656 | splitGroup=document.getElementById("group").value.split(",");
|
---|
| 657 | for (var i=0; i < splitGroup.length; i++){
|
---|
| 658 | if (splitGroup[i]==document.getElementById(g).options[itemSelected].text){
|
---|
| 659 | alert(document.getElementById(g).options[itemSelected].text + " has been added.");
|
---|
| 660 | groupExit=1;
|
---|
| 661 | break;
|
---|
| 662 | }
|
---|
| 663 | }
|
---|
| 664 | if (groupExit!=1) {
|
---|
| 665 | document.getElementById("group").value=document.getElementById("group").value+","+document.getElementById(g).options[itemSelected].text;
|
---|
| 666 | }
|
---|
| 667 | }
|
---|
| 668 | document.getElementById(g).options[itemSelected]=new Option("",itemSelected);
|
---|
| 669 | }
|
---|
| 670 | }
|
---|
[14413] | 671 | }
|
---|
| 672 | </xsl:text>
|
---|
| 673 | </script>
|
---|
| 674 | </xsl:template>
|
---|
| 675 |
|
---|
| 676 | </xsl:stylesheet>
|
---|
| 677 |
|
---|