SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

411 lines
17 KiB

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:HtmlUtils="de.superx.util.HtmlUtils">
<xsl:import href="pageComponents_html.xsl" />
<!--In diesem Stylesheet können Sie individuelle templates unterbringen,
die in ihrer Präzedenz das normale Stylesheet
pageComponents_html.xsl überragt. -->
<xsl:import href="pageComponents_html_final.xsl" />
<xsl:output method="html" indent="yes" />
<xsl:template match="/">
<xsl:variable name="user" select = "menue/user"/>
<xsl:variable name="useragent" select="'mozilla'" />
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
<html lang="de" class="ui-mobile">
<xsl:call-template name="head_jquery" >
<xsl:with-param name="title" select="'Standardberichte'" />
</xsl:call-template>
<!-- IE9 und frueher kennen die translate3d methode noch nicht, hier nachgeahmt -->
<script type="text/javascript">
<![CDATA[
function old_ie_adapt() {
var t=navigator.appVersion;
if(t.indexOf("MSIE 6")!=-1||t.indexOf("MSIE 7")!=-1||t.indexOf("MSIE 8")!=-1||t.indexOf("MSIE 9")!=-1)
document.getElementById('contentwrapper').style.left="260px";
}
]]>
</script>
<body id="ui-page-top" class="ui-mobile-viewport ui-overlay-a" onload="old_ie_adapt()">
<xsl:variable name="mandantenid">
<xsl:choose>
<xsl:when test="string-length(/menue/mandantenid) &gt; 0 and /menue/mandantenid !='default'">
<xsl:value-of select="concat(/menue/mandantenid,'/')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="''" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable><xsl:variable name="showPasswordChangeLink">
<xsl:call-template name="showPasswordChangeLink" />
</xsl:variable>
<xsl:variable name="showLogoutLink">
<xsl:call-template name="showLogoutLink" />
</xsl:variable>
<xsl:variable name="showAppletLink">
<xsl:call-template name="showAppletLink" />
</xsl:variable>
<xsl:variable name="showSaikuLink">
<xsl:call-template name="showSaikuLink" />
</xsl:variable>
<div id="navigation_on_off" style="visibility:hidden; position:absolute;top:0px; left:8px;min-width:95%;min-height:100%;background-color:white">
<a class="navigation_on_off_link" onclick="top.document.getElementById('superxframes').cols='255,*'; top.document.getElementById('menue').scrolling='auto'; document.getElementById('navigation_on_off').style.visibility='hidden';" style="cursor:pointer;"></a>
</div>
<xsl:call-template name="topbar_menue" />
<!-- ######## -->
<!-- # Page # -->
<!-- ######## -->
<div id="index" style="padding-bottom: 63px; min-height: 765px;" tabindex="0" data-url="/superx/servlet/" data-role="page" class="jqm-demos ui-page ui-page-theme-a ui-page-footer-fixed ui-page-active" data-quicklinks="true" >
<!-- ######### -->
<!-- # Menue # -->
<!-- ######### -->
<!-- <div id="menue" data-role="panel" class="menue ui-panel ui-panel-position-left ui-panel-display-overlay ui-panel-closed ui-body-a ui-panel-animate" data-position="left" data-display="overlay"> -->
<!-- <div id="left-panel" class="menue ui-panel ui-panel-position-left ui-panel-display-overlay ui-body-inherit ui-panel-animate ui-panel-open" data-display="overlay" data-position="left" data-role="panel"> -->
<div id="leftpanel3" class="menue ui-panel ui-panel-position-left ui-panel-display-push ui-body-a ui-panel-animate ui-panel-open" data-theme="a" data-display="push" data-dismissible="false" data-position="left" data-role="panel" style="top: 70px;width:250px;">
<div class="ui-panel-inner">
<!--<xsl:attribute name="action"><xsl:value-of select="HtmlUtils:encodeURL('SuperXmlMaske',/menue/@jsessionid)" /></xsl:attribute>-->
<xsl:variable name="showJavascriptMenue"><xsl:call-template name="showJavascriptMenue" /></xsl:variable>
<xsl:variable name="showThemenbaumMask"><xsl:call-template name="showThemenbaumMask" /></xsl:variable>
<xsl:choose>
<xsl:when test="$showJavascriptMenue='true'">
<xsl:call-template name="eintraege_js">
<xsl:with-param name="showLogoutLink" select="$showLogoutLink"/>
</xsl:call-template>
<noscript>
<xsl:call-template name="eintraege">
<xsl:with-param name="showLogoutLink" />
</xsl:call-template>
</noscript>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="eintraege">
<xsl:with-param name="showLogoutLink" select="$showLogoutLink"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
<!-- <a class="ui-btn ui-shadow ui-corner-all ui-btn-a ui-icon-delete ui-btn-icon-left ui-btn-inline" data-rel="close" href="#left-panel">Close panel</a>-->
</div>
</div>
<!--<div id="navigation_on_off" style="visibility:hidden; position:absolute;top:0px; left:8px;min-width:95%;min-height:100%;background-color:white">
<a class="navigation_on_off_link" onclick="top.document.getElementById('superxframes').cols='255,*'; top.document.getElementById('menue').scrolling='auto'; document.getElementById('navigation_on_off').style.visibility='hidden';" style="cursor:pointer;"></a>
</div>-->
<!-- ########## -->
<!-- # Header # -->
<!-- ########## -->
<!-- <div id="header" data-role="header" data-position="fixed" class="jqm-header ui-header ui-bar-inherit"> -->
<div id="header" data-role="header" data-position="fixed" class="jqm-header ui-header ui-bar-inherit">
<xsl:call-template name="topbar_menue" />
<!-- <a class="ui-btn ui-shadow ui-corner-all ui-btn-inline ui-btn-icon-left ui-icon-bars" href="#leftpanel3">Default panel</a> -->
</div>
<div id="contentwrapper" class="ui-panel-wrapper">
<!-- ########### -->
<!-- # Content # -->
<!-- ########### -->
<div role="main" class="ui-content jqm-content">
<div id="content">
<xsl:call-template name="initialContent" />
</div>
<!--<a href="#menue" class="ui-btn ui-shadow ui-corner-all ui-btn-inline ui-btn-mini">Navigation anzeigen</a>-->
</div>
</div>
<!-- ########## -->
<!-- # Footer # -->
<!-- ########## -->
<!-- <div data-role="footer" data-position="fixed" class="ui-footer ui-bar-inherit ui-footer-fixed" data-tap-toggle="false"> -->
<!-- <div class="jqm-footer ui-footer ui-bar-inherit ui-footer-fixed slideup" data-tap-toggle="false" data-position="fixed" data-role="footer" role="contentinfo">
<xsl:call-template name="bottombar_menue" >
<xsl:with-param name="showPasswordChangeLink" select="$showPasswordChangeLink"/>
<xsl:with-param name="mandantenid" select="$mandantenid"/>
<xsl:with-param name="showLogoutLink" select="$showLogoutLink"/>
<xsl:with-param name="showAppletLink" select="$showAppletLink" />
<xsl:with-param name="showSaikuLink" select="$showSaikuLink" />
</xsl:call-template>
<xsl:call-template name="menue_fuss" />
</div> -->
</div><!-- ende page -->
</body>
</html>
</xsl:template>
<xsl:template name="eintraege">
<xsl:param name="showLogoutLink" />
<ul data-role="listview">
<xsl:variable name="t_root"/>
<xsl:variable name="t_null" select = "null" />
<xsl:for-each select="menue/eintraege/eintrag">
<xsl:if test="parent='null'">
<xsl:call-template name="suche_kinder">
<xsl:with-param name="elter" select="id"/>
<xsl:with-param name="ebene" select="1"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each>
<!--
Vorbereitung für Link mit Datenanalyse (Saiku).
Soll später in foreach Schleife mit if Bedingung Style für "_Datenanalyse" einfügen Namen Hardcoded auf Datenanalyse setzen mit den eigenen Styles.
<li style="list-style:none"><p class="listlevel">&#160;</p></li>
<li style="list-style:none" class="ebene1"><p class="listlevel_h"><a class="ebene_his_1" tabindex="30" href="/superx/saiku" style="cursor:pointer;"><img src="/superx/images/datenanalyse.png" alt="Datenanalyse" style="width:12px;height:12px" />&#160;Datenanalyse</a></p></li> -->
<!--Wenn Recht auf "Maske suchen", dann auch Links für Manager und Entwicklung zeigen:-->
<xsl:if test="count(/menue/eintraege/eintrag [@isMaske='true' and tid=70510]) &gt; 0" >
<li data-icon="arrow-r" class="ebene1"><p class="listlevel"><a class="ebene_his_1 icon icon-wrench" tabindex="30" href="/superx/servlet/SuperXManager" target="_blank" style="cursor:pointer;">Webanwendung Manager</a></p></li>
<li data-icon="arrow-r" class="ebene2"><p class="listlevel"><a class="ebene_his_2" tabindex="30" href="/superx/servlet/SuperXManager?xupdater=true" target="_blank" style="cursor:pointer;">Masken-Sicherung</a></p></li>
<li data-icon="arrow-r" class="ebene2"><p class="listlevel"><a class="ebene_his_2" tabindex="30" href="/superx/servlet/de.superx.servlet.Entwicklung" target="_blank" style="cursor:pointer;">Masken-Entwicklung</a></p></li>
</xsl:if>
<!--<li data-icon="arrow-r"><p class="listlevel">&#160;</p></li>
<li data-icon="arrow-r" class="ebene1"><p class="listlevel"><a href="#demo-links" data-rel="close" class="ui-btn ui-shadow ui-corner-all ui-btn-a ui-icon-delete ui-btn-icon-left ui-btn-inline">Navigation ausblenden</a></p></li>
<li data-icon="arrow-r"><p class="listlevel">&#160;</p></li>
-->
<xsl:if test="$showLogoutLink='true'">
<li data-icon="arrow-r" class="ebene1"><p class="listlevel"><a class="ebene_his_1" tabindex="30" href="/superx/servlet/SuperXmlAbmeldung" target="_parent" style="cursor:pointer;">Logout</a></p></li>
</xsl:if></ul>
<!--<script language="Javascript">
versteckeText("toc_complete");
</script>-->
<!--#######################################################################-->
</xsl:template>
<xsl:template name="eintraege_js">
<xsl:param name="showLogoutLink" />
<script language="Javascript" src="../xml/dynapi/dynapi.js">
</script>
<script language="Javascript" src="../xml/texteffekte.js"></script>
<script language="Javascript">
dynapi.library.setPath('../xml/dynapi/');
dynapi.library.include('dynapi.api');
dynapi.library.include('dynapi.api.ext.DynLayerInline');
dynapi.library.include('TemplateManager');
dynapi.library.include('dynapi.gui.BorderManager');
dynapi.library.include('dynapi.gui.HTMLCalendar');
dynapi.library.include('ViewPane');
dynapi.library.include('Explorer');
dynapi.library.include('ExplorerBlockStyle');
<![CDATA[
ie5=(document.getElementById&&document.all&&document.styleSheets)?1:0;
nn6=(document.getElementById&&!document.all)?1:0;
]]>
</script>
<script language="Javascript">
<xsl:text>
var s = Styles.getStyle('Explorer');
var file1 = s.getStyleAttribute('imageFile');
var expl2 = new Explorer(0,0,null,null,'ExplorerBlock');
expl2.setBgColor('#EEEEEE');
menue = new Array();
var i=1;
</xsl:text>
<xsl:variable name="showThemenbaumMask"><xsl:call-template name="showThemenbaumMask" /></xsl:variable>
<xsl:for-each select="menue/eintraege/eintrag">
<!-- MB 2.6.08 passende Sortierung nach sort-Feld/Name wird jetzt vom Servlet schon gemacht-->
<!--<xsl:sort select="parent"/><xsl:sort select="titel"/>-->
<xsl:variable name="my_parent"><xsl:value-of select="parent" /></xsl:variable>
<!--nur wenn ein parent auch existiert wird der Eintrag eingefügt.-->
<xsl:if test="count(/menue/eintraege/eintrag[ id = $my_parent ]/id) &gt; 0 or id='1'">
<xsl:text>
menue[i] = new Array();
menue[i][4]= '</xsl:text><xsl:value-of select="id"/><xsl:text>';
menue[i][2]= '</xsl:text><xsl:value-of select="titel"/><xsl:text>';
menue[i][3]= '</xsl:text><xsl:value-of select="parent"/><xsl:text>';
menue[i][1]= '</xsl:text><xsl:value-of select="tid"/><xsl:text>';
i++;
var zeilenanzahl=i-1;
</xsl:text>
</xsl:if>
</xsl:for-each>
<xsl:text><![CDATA[
for (var i=1;i <= zeilenanzahl;i++)
{
if(menue[i][3]=="null") //parent null = root
{ expl2.addLeave(menue[i][4],menue[i][2],null,null,null,'null'); }
else
{
]]></xsl:text>
<xsl:choose>
<xsl:when test="$showThemenbaumMask='false'">
<xsl:text><![CDATA[
if(menue[i][1]=="null") //tid in maskeninfo
{
expl2.addLeave(menue[i][4],menue[i][2],menue[i][3],null,null,"]]></xsl:text>/superx/servlet/SuperXmlMenu<xsl:text><![CDATA[?tid="+menue[i][4]);
}]]></xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text><![CDATA[
if(menue[i][1]=="null") //tid in maskeninfo
{
expl2.addLeave(menue[i][4],menue[i][2],menue[i][3],null,null,'null');
}
else
{
expl2.addLeave(menue[i][4],menue[i][2],menue[i][3],file1,null,"]]></xsl:text>/superx/servlet/SuperXmlMaske<xsl:text><![CDATA[?tid="+menue[i][1]);
}]]></xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text>
<![CDATA[
}
}
expl2.unfold(1);
expl2.addEventListener({
onselect : function(e) {
status=("Current ID is: "+e.getSource().currentPos+" and currentUrl is: "+e.getSource().currentUrl);
if(e.getSource().currentUrl!="null") //{oeffneMaske(e.getSource().currentUrl);}
{
parent.maske.location.href="/superx/xml/maskload.htm";
window.setTimeout("parent.maske.location.href='"+e.getSource().currentUrl+"'", 300)
}
}
});
var lyr12=dynapi.document.addChild(expl2);
dynapi.document.insertChild(lyr12,'relative');
]]></xsl:text>
</script>
<xsl:if test="$showLogoutLink='true'">
<p class="listlevel"><a class="ebene_his_1" tabindex="30" href="/superx/servlet/SuperXmlAbmeldung" target="_parent" style="cursor:pointer;">Logout</a></p>
</xsl:if>
</xsl:template>
<xsl:template name="suche_kinder">
<xsl:param name="elter"/>
<xsl:param name="ebene"/>
<xsl:variable name="showThemenbaumMask"><xsl:call-template name="showThemenbaumMask" /></xsl:variable>
<xsl:for-each select="../eintrag">
<!-- MB 2.6.08 passende Sortierung nach sort-Feld/Name wird jetzt vom Servlet schon gemacht-->
<!--<xsl:sort select="parent"/><xsl:sort select="titel"/>-->
<xsl:variable name="i" select="parent"/>
<xsl:if test="$i=$elter">
<xsl:if test="tid='null'"> <!-- keine Maske -->
<li data-icon="arrow-r">
<!-- <div> -->
<xsl:attribute name="class">ebene<xsl:value-of select="$ebene" />
</xsl:attribute>
<xsl:choose>
<xsl:when test="$showThemenbaumMask='false'">
<!--wenn false, dann wird die Überschrift als Link angezeigt-->
<p class="listlevel"><a data-transition="slide"><xsl:attribute name="class">ebene_his_<xsl:value-of select="$ebene" />
</xsl:attribute>
<!-- Hier sollte der Link genau so aufgebaut werden wie in menue_html_dojo.xsl:244 damit die Seite
neu geladen wird und im Browser nach oben springt. Leider erscheinen dann immer 2 Bildlaufleisten
auf der rechten Seite und der Button "Nafigation ein/aus" geht nicht mehr. -->
<xsl:attribute name="onclick"><xsl:text>$('#content').load('/superx/servlet/SuperXmlMenu?tid=</xsl:text><xsl:value-of select="id"/><xsl:text>');$("html, body").animate({ scrollTop: 0 }, 200);</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="href">
<xsl:value-of select="HtmlUtils:encodeURL('/superx/servlet/SuperXmlMenu',/menue/@jsessionid)" /> <xsl:text>?tid=</xsl:text><xsl:value-of select="id"/><xsl:text>&amp;navi=true</xsl:text>
</xsl:attribute> -->
<!-- <xsl:attribute name="href"><xsl:text>../servlet/SuperXmlMenu?tid=</xsl:text><xsl:value-of select="id"/><xsl:text>&amp;navi=true</xsl:text></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="HtmlUtils:encodeURL('../servlet/SuperXmlMenu',$jsessionid)" /> <xsl:text>?tid=</xsl:text><xsl:value-of select="id"/><xsl:text>&amp;navi=true</xsl:text></xsl:attribute>
-->
<xsl:value-of select="titel"/>
</a></p>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="titel" />
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:if>
<xsl:if test="(tid!='null') and ($showThemenbaumMask!='false')"> <!-- wenn Menülinks keine Einzelmasken-->
<li style="list-style:none">
<p>
<xsl:attribute name="class">listlevel<xsl:value-of select="$ebene" />
</xsl:attribute>
<a target="maske" class="auflistung">
<xsl:attribute name="href"><xsl:text>/superx/servlet/SuperXmlMaske?tid=</xsl:text><xsl:value-of select="tid" />
</xsl:attribute>
<!--<xsl:attribute name="class">listlevel<xsl:value-of select="$ebene" />
</xsl:attribute>-->
<xsl:value-of select="titel" />
<!--<xsl:attribute name="href">javascript:parent.menue.document.forms[0].tid.value=<xsl:value-of select="tid" />;parent.menue.document.forms[0].submit();</xsl:attribute>
<xsl:value-of select="titel" />-->
</a></p></li>
</xsl:if>
<xsl:call-template name="suche_kinder">
<xsl:with-param name="elter" select="id"/>
<xsl:with-param name="ebene" select="$ebene+1"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="pannel_menue">
</xsl:template>
</xsl:stylesheet>