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.
 
 
 
 
 
 

442 lines
18 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:variable name="showJavascriptMenue"><xsl:call-template name="showJavascriptMenue" /></xsl:variable>
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
<html lang="de" class="ui-mobile">
<xsl:comment>XSL-File: menue_html.xsl Template /</xsl:comment>
<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>
<xsl:if test="$showJavascriptMenue='true'">
<base target="maske" />
</xsl:if>
<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:choose>
<xsl:when test="/menue/@hisinone_active='true'">
<xsl:call-template name="topbar_menue_hisinone" />
</xsl:when>
<xsl:otherwise>
<!-- <xsl:call-template name="topbar_menue" /> -->
</xsl:otherwise>
</xsl:choose>
<!-- ######## -->
<!-- # Page # -->
<!-- ######## -->
<div id="index" style="padding-bottom: 63px; min-height: 765px; padding-top: 75px;" 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" data-animate="false" style="top: 70px;width:250px;left:3px;">
<div class="ui-panel-inner">
<!--<xsl:attribute name="action"><xsl:value-of select="HtmlUtils:encodeURL('SuperXmlMaske',/menue/@jsessionid)" /></xsl:attribute>-->
<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" select="$showLogoutLink" />
<xsl:with-param name="showPasswordChangeLink" select="$showPasswordChangeLink" />
</xsl:call-template>
</noscript>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="eintraege">
<xsl:with-param name="showLogoutLink" select="$showLogoutLink"/>
<xsl:with-param name="showPasswordChangeLink" select="$showPasswordChangeLink" />
</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>-->
<xsl:call-template name="menue_fuss" />
</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:choose>
<xsl:when test="/menue/@hisinone_active='true'">
<xsl:call-template name="topbar_menue_hisinone" />
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="topbar_menue" />
</xsl:otherwise>
</xsl:choose>
<!-- <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 id="footer" data-role="footer" class="jqm-footer ui-footer ui-bar-inherit ui-state-persist" style="background-color: #f4f4ef;z-index: 1000;position: absolute;top: 0px;left: 0px;height: 40px;width: 100%;">
<h4>Powered by jQuery Mobile</h4>
</div>
<div id="footer" data-role="footer" class="jqm-footer ui-footer ui-bar-inherit" style="background-color: #f4f4ef;z-index: 1000;position: absolute;top: 0px;left: 0px;height: 40px;width: 100%;">
<h4>Powered by jQuery Mobile</h4>
</div>
<div id="footer" data-position="fixed" data-role="footer" class="jqm-footer ui-footer ui-bar-inherit" style="background-color: #f4f4ef;z-index: 1000;left: 0px;height: 40px;width: 100%;position: fixed;">
<h4>Powered by jQuery Mobile</h4>
</div> -->
<xsl:call-template name="footer" />
</div><!-- ende page -->
</body>
</html>
</xsl:template>
<xsl:template name="eintraege">
<xsl:param name="showLogoutLink" />
<xsl:param name="showPasswordChangeLink" />
<ul data-role="listview">
<xsl:variable name="t_root"/>
<xsl:variable name="t_null" select = "null" />
<xsl:variable name="is_admin"><xsl:value-of select = "/menue/user/@admin" /></xsl:variable>
<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>
<!--Wenn UserID/@admin=true, dann auch Links für Manager und Entwicklung zeigen:-->
<!-- <xsl:if test="$is_admin='true'"> -->
<xsl:if test="count(/menue/eintraege/eintrag [@isMaske='true' and tid=70510]) &gt; 0" >
<li style="list-style:none"><p class="listlevel">&#160;</p></li>
<li style="list-style:none" class="ebene1"><p class="listlevel"><a class="ebene_his_1 icon icon-wrench" tabindex="30" href="/superx/edit/kern/webapp_manager.jsp" target="_blank" style="cursor:pointer;">Webanwendung Manager</a></p></li>
<li style="list-style:none" 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 style="list-style:none" 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 style="list-style:none"><p class="listlevel">&#160;</p></li>
<xsl:choose>
<xsl:when test="$showPasswordChangeLink='true'">
<li style="list-style:none" class="ebene1"><p class="listlevel"><a class="ebene_his_1 icon icon-arrows-cw" tabindex="30" href="/superx/servlet/de.superx.servlet.SuperXmlPwChanger" target="_parent" style="cursor:pointer;">Passwort ändern</a></p></li>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<li style="list-style:none"><p class="listlevel">&#160;</p></li>
<xsl:if test="$showLogoutLink='true'">
<li style="list-style:none" class="ebene1"><p class="listlevel"><a class="ebene_his_1 icon icon-logout" tabindex="30" href="/superx/servlet/SuperXmlAbmeldung" target="_parent" style="cursor:pointer;">Abmelden</a></p></li>
</xsl:if></ul>
<!--#######################################################################-->
</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);}
{
window.open(e.getSource().currentUrl+"&navi=false","maske","");
//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 icon icon-logout" tabindex="30" href="/superx/servlet/SuperXmlAbmeldung" target="_parent" style="cursor:pointer;">Abmelden</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:value-of select="concat(' ',css_class)" />
</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>/superx/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('/superx/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>