<?xml version="1.0"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx">
    <xsp:structure>
        <xsp:include>fr.gouv.culture.sdx.user.Group</xsp:include>
        <xsp:include>fr.gouv.culture.sdx.user.User</xsp:include>
        <xsp:include>fr.gouv.culture.sdx.documentbase.IndexParameters</xsp:include>
        <xsp:include>java.util.Vector</xsp:include>
        <xsp:include>java.util.Hashtable</xsp:include>
        <xsp:include>java.util.Enumeration</xsp:include>
        <xsp:include>fr.gouv.culture.sdx.documentbase.AbstractDocumentBase</xsp:include>
    </xsp:structure>
    <sdx:page langSession="lang" langParam="lang">
        <sdx:userIsAdminOrSu>
            <xsp:logic>
                <ul>
                    <xsp:logic>
											if( sdx_app!=null &amp;&amp; sdx_app.getDocumentBasesIds() != null ){
												for (java.util.Enumeration e=sdx_app.getDocumentBasesIds(); e.hasMoreElements();)
												{
														String id=(String)e.nextElement();
																		<li>
																				<xsp:expr>id</xsp:expr>
																		</li>
												}
											}
                </xsp:logic>
                </ul>
            </xsp:logic>
            <sdx:parameter valueParam="reconfigure">
                <sdx:parameter valueParam="app">
                    <reconfigure>
                        <xsp:attribute name="app"><xsp:expr>sdx_parameter</xsp:expr></xsp:attribute>
                    </reconfigure>
                    <xsp:logic>sdx_frame.reconfigureApplication(sdx_parameter);</xsp:logic>
                </sdx:parameter>
            </sdx:parameter>
            <sdx:fallback>
                <notadmin/>
            </sdx:fallback>
        </sdx:userIsAdminOrSu>
        <sdx:userIsAdminOrSu>
            <bar>
                <button id="welcome" href="index.xsp"/>
                <button id="login" href="login.xsp"/>
                <button id="identities" href="identities.xsp"/>
                <button id="bases" href="bases.xsp" self="true"/>
                <button id="explorer" href="explorer.xsp" self="true"/>
            </bar>
            <sdx:fallback>
                <bar>
                    <button id="welcome" href="index.xsp"/>
                    <button id="login" href="login.xsp"/>
                </bar>
            </sdx:fallback>
        </sdx:userIsAdminOrSu>
    </sdx:page>
</xsp:page>
