<?xml version="1.0"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx">
    <sdx:page langSession="lang" langParam="lang">
        <xsp:logic>
            <!-- show modify page if no superuser -->
    if (!sdx_frame.isSuperUserSet())
    {
            <superuser-not-set/>
    }
    else {
            <sdx:userIsSu>
                <enter/>
                <sdx:fallback>
                    <login/>
                    <sdx:loginSu>
                        <enter/>
                        <sdx:fallback>
                            <xsp:logic>
                                <!-- only if someone want to go in -->
        if (request.getParameter("id")!=null &amp;&amp; !"".equals(request.getParameter("id"))) {<refused/>}
                            </xsp:logic>
                        </sdx:fallback>
                    </sdx:loginSu>
                </sdx:fallback>
            </sdx:userIsSu>
    }
    </xsp:logic>
        <sdx:userIsSu>
            <bar>
                <button id="welcome" href="index.xsp"/>
                <button id="login" href="loginsu.xsp" self="true"/>
                <button id="apps" href="apps.xsp"/>
                <button id="su" href="superuser.xsp"/>
                <button id="reconfigure" href="reconfigure.xsp"/>
            </bar>
            <sdx:fallback>
                <bar>
                    <button id="welcome" href="index.xsp"/>
                    <button id="login" href="loginsu.xsp" self="true"/>
                </bar>
            </sdx:fallback>
        </sdx:userIsSu>
    </sdx:page>
</xsp:page>
