Test Bowl
04.03.2016, 09:00
bis
04.03.2016, 17:00
Adresse
Turnier Spiele
Vorrunde
Spiel
Beginn
Spielfeld
Mannschaften
Gruppe
Ergebnis
Status
Halbfinale
Spiel
Beginn
Spielfeld
Mannschaften
Gruppe
Ergebnis
Status
0 | file:/www/deutrik/sportweb/class/sport/tournament/sport/Default.php line:538 Invalid argument supplied for foreach()(2) |
0 | 2 |
1 | Invalid argument supplied for foreach() |
2 | /www/deutrik/sportweb/class/sport/tournament/sport/Default.php |
3 | 538 |
4 | Array(9) a:9:{s:4:"game";O:10:"DOMElement":0:{}s:3:"gsd";a:3:{s:5:"names";a:14:{s:5:"score";s:5:"Punkt";s:8:"score_mz";s:6:"Punkte";s:8:"score_wp";s:9:"der Punkt";s:7:"setname";a:5:{i:1;s:19:"reguläre Spielzeit";i:2;s:8:"Halbzeit";i:3;s:7:"Drittel";i:4;s:7:"Viertel";i:5;s:8:"Fünftel";}s:7:"penalty";s:7:"Penalty";s:12:"overtime_set";s:13:"Verlängerung";s:12:"shootout_set";s:0:"";s:9:"free_kick";s:9:"Freistoß";s:10:"gameresult";s:13:"sum_SetPoints";s:10:"gamepoints";a:2:{i:0;a:8:{s:4:"when";s:4:"ever";s:3:"how";s:3:"sum";s:4:"what";s:9:"setPoints";s:5:"where";s:8:"all_Sets";s:10:"deco_start";s:4:"bold";s:8:"deco_end";s:0:"";s:14:"deco_won_start";s:0:"";s:12:"deco_won_end";s:0:"";}i:1;a:8:{s:4:"when";s:14:"exists_Penalty";s:3:"how";s:3:"sum";s:4:"what";s:9:"setPoints";s:5:"where";s:11:"w/o_Penalty";s:10:"deco_start";s:1:"(";s:8:"deco_end";s:1:")";s:14:"deco_won_start";s:0:"";s:12:"deco_won_end";s:0:"";}}s:8:"gameview";a:2:{s:14:"scorePerPlayer";s:1:"1";s:7:"display";s:4:"game";}s:9:"tablehead";a:3:{i:0;a:3:{s:4:"name";s:6:"Spiele";s:2:"v1";s:5:"games";s:2:"v2";s:0:"";}i:1;a:3:{s:4:"name";s:6:"Punkte";s:2:"v1";s:6:"points";s:2:"v2";s:0:"";}i:2;a:3:{s:4:"name";s:3:"+/-";s:2:"v1";s:7:"points1";s:2:"v2";s:7:"points2";}}s:10:"withScorer";b:1;s:12:"teamOrPlayer";a:2:{i:0;s:4:"Team";i:1;s:5:"Teams";}}s:6:"events";a:12:{i:1;a:3:{s:4:"name";a:4:{i:1;s:21:"Point after Touchdown";i:6;s:9:"Touchdown";i:2;s:17:"Conversion/Safety";i:3;s:9:"Fieldgoal";}s:7:"tooltip";s:17:"den Punkt gemacht";s:5:"image";s:4:"goal";}i:2;a:3:{s:4:"name";a:1:{i:1;s:9:"Eigentor ";}s:7:"tooltip";s:25:" das Eigentor geschossen ";s:5:"image";s:4:"goal";}i:3;a:2:{s:4:"name";a:1:{i:0;s:28:"Entscheidung durch Los für ";}s:5:"image";s:4:"goal";}i:5;a:2:{s:4:"name";s:17:"Neuer Spielstand ";s:5:"image";s:6:"result";}i:6;a:2:{s:4:"name";s:8:"Anpfiff ";s:5:"image";s:10:"game_start";}i:61;a:2:{s:4:"name";s:8:"Anpfiff ";s:5:"image";s:10:"game_start";}i:62;a:2:{s:4:"name";s:12:"Fortsetzung ";s:5:"image";s:10:"game_start";}i:63;a:2:{s:4:"name";s:9:"Neustart ";s:5:"image";s:10:"game_start";}i:7;a:2:{s:4:"name";s:8:"Abpfiff ";s:5:"image";s:8:"game_end";}i:71;a:2:{s:4:"name";s:8:"Abpfiff ";s:5:"image";s:8:"game_end";}i:72;a:2:{s:4:"name";s:14:"Unterbrechung ";s:5:"image";s:8:"game_end";}i:73;a:2:{s:4:"name";s:8:"Abbruch ";s:5:"image";s:8:"game_end";}}s:13:"pointsPerGame";a:6:{s:3:"win";i:4;s:6:"win_ot";i:4;s:3:"tie";i:2;s:6:"defeat";i:0;s:9:"defeat_ot";i:0;s:18:"defeat_not_started";i:0;}}s:3:"ret";s:0:"";s:4:"sets";N;s:7:"setstag";N;s:12:"shootoutsets";i:0;s:1:"i";i:0;s:2:"p1";i:0;s:2:"p2";i:0;} |
0 | Object(DOMElement) O:10:"DOMElement":0:{} |
0 | Object(DOMDocument) O:11:"DOMDocument":0:{} |
0 | mod_tournamentgames |
1 | 269 |
2 | publisher |
0 | 269 |
0 | Object(DOMDocument) O:11:"DOMDocument":0:{} |
0 | <?xml version="1.0"?> <content menufilename="tournament" nr="268" holderlogin="publisher" caption="Test Bowl - Turnier Spiele" url_caption="Turnier-Spiele"><metadata><nr>268</nr><same_alias_count>0</same_alias_count><publisher_content_id/><title>Turnier Spiele</title><holder>4684</holder><visible_start>2015-12-17 10:45:51.847939</visible_start><visible_end/><publishtype>page_tournamentpage</publishtype><created>2015-12-17 10:45:07.109151</created><img/><rss_date>Thu, 17 Dec 2015 10:45:51 +0100</rss_date><author>17195</author><alias>games</alias><publish_id>321</publish_id><imgtype/><imgmime/><holderlogin>publisher</holderlogin><authorname>Publisher Lexid</authorname><auth_type>none</auth_type><auth_page/><visible>t</visible><publisher_login/><menu>Spiele</menu><indexation>yes</indexation><schema>WebSite</schema><alias>games</alias><menu>Spiele</menu><headline>yes</headline><advise>yes</advise><pdf>no</pdf><auth_type>none</auth_type><mappings/><text/><holder>4684</holder><Tags/><modgroups><modgroup layout="" place="content" nr="37" name="Spiele Turnier"><module nr="269" holderlogin="publisher" publishtype="mod_tournamentgames" language=""/><params/></modgroup></modgroups><layout type="layout" name="page">page</layout><Translations/><language/><imagemeta/></metadata><text><div id="page_page_268" class="page_tournamentpage" itemscope="itemscope" itemtype="http://schema.org/SportsEvent"><h3 itemprop="name">Test Bowl</h3><meta itemprop="organizer" content="Münster Fireflags"/><div class="fad-sport-div sport-div-tournament"><span class="fad-sport-span sport-span-startDate" itemprop="startDate" content="2016-03-04 09:00:00">04.03.2016, 09:00</span> bis <span class="fad-sport-span sport-span-endDate" itemprop="endDate" content="2016-03-04 17:00:00">04.03.2016, 17:00</span></div><div class="sport_address" itemprop="location" itemscope="itemscope" itemtype="http://schema.org/Place"><meta itemprop="name" content="Adresse"/><div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress"><span class="fad-sport-span sport-location-name" itemprop="name">Adresse</span><span class="fad-sport-span sport-postalcode" itemprop="postalCode"/><span class="fad-sport-span sport-locality" itemprop="addressLocality"/><span class="fad-sport-span sport-street" itemprop="streetAddress"/></div></div></div></text></content> |
1 | <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:php="http://php.net/xsl" xmlns:inveda="http://www.inveda.de" xmlns:fad="http://www.fad-server.org" exclude-result-prefixes="php inveda fad"> <!-- HTML 5 Doctype --> <!-- <xsl:output --> <!-- encoding="utf-8" --> <!-- method="xml" --> <!-- omit-xml-declaration="yes" --> <!-- doctype-system="about:legacy-compat" --> <!-- indent="no"/> --> <xsl:output encoding="utf-8" method="xml" omit-xml-declaration="yes" indent="no" cdata-section-elements="script"/> <xsl:include href="arg://lib"/> <xsl:include href="arg://lib2"/> <xsl:include href="arg://skin"/> <xsl:include href="arg://schema"/> <xsl:variable name="registerSkin" select="php:function('web_Session::registerSkin')"/> <xsl:variable name="secure"> <xsl:choose> <xsl:when test="document('ibs://issecure')/result/@value='yes'">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="skin"> <xsl:choose> <xsl:when test="$secure = '0'"> <xsl:value-of select="document('ibs://holder_value,skin_filename')/content/@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="document('ibs://user_value,skin_filename')/content/@value"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="skin_scheme"> <xsl:choose> <xsl:when test="$secure = '0'"> <xsl:value-of select="document('ibs://holder_value,skin_scheme')/content/@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="document('ibs://user_value,skin_scheme')/content/@value"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="skin_scheme_default"> <xsl:choose> <xsl:when test="$secure = '0'"> <xsl:value-of select="document('ibs://holder_value,skin_scheme_default')/content/@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="document('ibs://user_value,skin_scheme_default')/content/@value"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:template name="onbeforeunload"> <script type="text/javascript" > function setsubmit(t) { submit = t; }; </script> </xsl:template> </xsl:stylesheet> |
2 | Array(6) a:6:{s:10:"/inveda_cm";s:1283:"<?xml version="1.0" encoding="utf-8" ?><inveda_cm><coverage></coverage><description></description><holder_headline></holder_headline><page_title></page_title><holder_page_title></holder_page_title><holder_adresse1>Münster Fireflags</holder_adresse1><holder_strasse></holder_strasse><holder_plz></holder_plz><holder_ort></holder_ort><holder_telefon></holder_telefon><holder_telefax></holder_telefax><holder_email>rainer.bluemle@gmail.com</holder_email><holder_news></holder_news><holder_accountlevel></holder_accountlevel><holder_url>https://rayboon.lexid.de/</holder_url><holder_domain>rayboon.lexid.de</holder_domain><skin_scheme>default</skin_scheme><skin_scheme_default>default</skin_scheme_default><preview_mode></preview_mode><user></user><keywords></keywords><slogan>Eigene Homepage erstellen - Sofort Online</slogan><page>games</page><page_para>tournament/5984/game/356738</page_para><request_type>html</request_type><site_url>https://www.lexid.de/</site_url><site_name>default</site_name><session>PHPSESSID=p527a3pqgfea5u110e3mmpv98d</session><date>09.05.2025</date><time>19:15:40</time><now>2025-05-09 19:15:40</now><inveda_cm_debug></inveda_cm_debug><inveda_cm_debug_webcontrol></inveda_cm_debug_webcontrol><skin>sportweb1</skin><skin_original></skin_original></inveda_cm>";s:5:"/skin";s:72730:"<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:php="http://php.net/xsl" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:exslt="http://exslt.org/common" xmlns:str="http://exslt.org/strings" xmlns:inveda="http://www.inveda.de" xmlns:fad="http://www.fad-server.org" exclude-result-prefixes="php exslt inveda xs fad"> <inveda:skin> <images> <size>16x16</size> <size>20x20</size> <size>32x32</size> <size>30x18</size> <size>60x60</size> <size name="newsletter_news">100x100</size> <size>130x130</size> <size>130x60</size> <size>210x130</size> <size name="rss">300x200</size> <size>420x260</size> <size>610x300</size> </images> <logo> <size>60x60</size> </logo> <news> <images> <size-small>60x60</size-small> <size-medium>250x120</size-medium> <width-big>420</width-big> </images> </news> <fonts> <font name="Arial" className="fad-font-arial"></font> <font name="Times New Roman" className="fad-font-times"></font> </fonts> <lists> <ul name="Pfeile" className="fad-ulist-test1" description="Testliste 1"></ul> <ul name="Pfeile2" className="fad-ulist-test2" description="Testliste 2"></ul> <ol name="ol1" className="fad-olist-decimal" description="Dezimalzahlen (1., 2.,3., ...)"/> <ol name="ol1-c" className="fad-olist-decimal-counter" description="Dezimalzahlen (1., 2.,3., ...) ein Zähler"/> <ol name="ol2" className="fad-olist-upper-roman" description="Große römische Zahlen (I., II., III., ...)"/> <ol name="ol2-c" className="fad-olist-upper-roman-counter" description="Große römische Zahlen (I., II., III., ...) ein Zähler"/> <ol name="ol3" className="fad-olist-upper-latin" description="Großbuchstaben (A., B., C., ...)"/> <ol name="ol3-c" className="fad-olist-upper-latin-counter" description="Großbuchstaben (A., B., C., ...) ein Zähler"/> <ol name="ol4" className="fad-olist-lower-latin" description="Kleinbuchstaben (a., b., c., ...)"/> <ol name="ol4-c" className="fad-olist-lower-latin-counter" description="Kleinbuchstaben (a., b., c., ...) ein Zähler"/> </lists> <colors> <color name="Rot" className="fad-color-red" description="rote Farbe" value="#ff0000"/> <color name="Grün" className="fad-color-green" description="grüne Farbe" value="#00ff00"/> <color name="Gelb" className="fad-bgcolor-yellow" description="gelbe Farbe" value="#efef00"/> </colors> <table> <style name="ohne Rahmen" className="position" description="Tabelle und Tabellenzellen ohne Rahmen"/> <style name="einfacher Rahmen" className="simple_border" description="Tabelle und Tabellenzellen mit Rahmen"/> <style name="1.Zeile hervorgehoben" className="fad_table_first_row_head" description="Die erste Tabellenzeile enthält den Tabellenkopf"/> <style name="1.Spalte hervorgehoben" className="fad_table_first_col_head" description="Die erste Tabellenspalte enthält den Tabellenkopf"/> </table> <layouts> <layout name="Startseite" value="start" type="page" description="lexid.de Startseite mit Sport-Slidern"> <place>top</place> <place>foot</place> <place>right</place> <place>content</place> </layout> <layout name='Blogstartseite' value='blogstart' type="blog" description='Nachrichtenüberblick mit Slidern'> <place>top</place> <place>foot</place> <place>right</place> <place>content</place> </layout> <layout name='News' value='blog' type="blog" description='Nachrichtenseite'> <place>top</place> <place>content</place> <place>foot</place> <place>right</place> </layout> <layout name='News ohne Bild' value='blog_wo_img' type="blog" description='Nachrichtenseite ohne Hauptbild'> <place>top</place> <place>content</place> <place>foot</place> <place>right</place> </layout> <layout name='Webseite' value='page' type="page" description='Webseite'> <place>top</place> <place>content</place> <place>foot</place> <place>right</place> </layout> <layout name='Webseite ohne Bild' value='page_wo_img' type="page" description='Webseite ohne Hauptbild'> <place>top</place> <place>content</place> <place>foot</place> <place>right</place> </layout> <layout name='Show' value='show' type="page" description='Show'> <place>content</place> <place>foot</place> </layout> <layout name='Newsletter' value="newsletter" type="newsletter" description="Newsletter"> <place>head</place> <place>top</place> <place>content</place> <place>foot</place> <place>right</place> <place>nl_unsubscribe</place> </layout> </layouts> <places> <place name="Linker Rand" value="left"/> <place name="Seiteninhalt" value="content"/> <place name="Rechter Rand" value="right"/> <place name="Seitenfuß" value="foot"/> <place name="Oben" value="top"/> <place name="Header" value="head"/> <place name="Newsletter Abmeldelink" value="nl_unsubscribe"/> </places> <designs> <design name="Einfache Liste" value="list"/> <design name="Slider" value="slider"/> <design name="Akkordeon" value="accordeon"/> <design name="TabView" value="tabview"/> <design name="Html_Baustein" value="html"/> </designs> </inveda:skin> <xsl:variable name="svnversion" select="php:function('system_SVN::version')"/> <xsl:variable name="menu" select="php:function('web_Menu::getSiteMenu',string(/content/@menufilename))/content" /> <xsl:variable name="sysmenu" select="document('ibs:/sysmenu')/content" /> <xsl:variable name="sitemap" select="document('ibs:/sitemap')/sitemap" /> <xsl:variable name="issecure" select="php:function('web_Session::isSecure')" /> <xsl:variable name="currTournament" select="php:function('web_Session::getGlobal','GET','tournament')"/> <xsl:variable name="topic" select="php:function('web_Session::getGlobal','GET','topic')"/> <xsl:variable name="tag" select="php:function('web_Session::getGlobal','GET','tag')"/> <xsl:variable name="withSidebar"> <xsl:if test="not($issecure)"> <xsl:variable name="tour" select="php:function('web_Session::getGlobal','GET','tournament')"/> <xsl:if test="$tour=''">1</xsl:if> </xsl:if> </xsl:variable> <xsl:variable name="back" select="php:function('web_Menu::getHistoryBack',string(/content/@menufilename),string(/content/@history))"/> <xsl:variable name="current_page" select="php:function('web_Session::getCurrentPage')"/> <xsl:variable name="facebook"><xsl:if test="not($issecure)"><xsl:value-of select="php:function('web_Session::getCurrentHolderParam','facebook.fanpage_id')"/></xsl:if></xsl:variable> <xsl:variable name="twitter"><xsl:if test="not($issecure)"><xsl:value-of select="php:function('web_Session::getCurrentHolderParam','twitter_id')"/></xsl:if></xsl:variable> <xsl:variable name="rss" select="not($issecure) and php:function('web_Session::pageAllowed','news.customer.index')"/> <xsl:variable name="footbar_layout"><xsl:if test="not($issecure)"><xsl:value-of select="php:function('web_Session::getCurrentHolderParam','footbar_layout')"/></xsl:if></xsl:variable> <xsl:variable name="message" select="php:function('web_Session::getMessage')"/> <xsl:variable name="posts_t"><xsl:if test="not($issecure)"><xsl:copy-of select="php:function('cms_blog_Interface::getPosts')"/></xsl:if></xsl:variable> <xsl:variable name="posts" select="exslt:node-set($posts_t)"/> <xsl:variable name="blog_id" select="/content/@nr"/> <xsl:variable name="pages" select="php:function('cms_page_Interface::getPages')"/> <xsl:variable name="current_c" select="exslt:node-set(php:function('cms_page_Interface::getPublicPage',$current_page))/content[1]"/> <xsl:variable name="current" select="$pages/Data/Content/DataSet[@nr=$current_c/@nr]"/> <xsl:variable name="host" select="php:function('web_Session::getGlobal','FADSESSION','host')"/> <xsl:variable name="domain" select="concat($host,'/')"/> <xsl:variable name="meta" select="/content/metadata"/> <xsl:variable name="modgroup" select="$meta/modgroup"/> <!-- xsl:variable name="modgroups" select="php:function('cms_mod_Interface::getModGroups')"/ --> <xsl:variable name="modgroups" select="$meta/modgroups"/> <xsl:template match="/"> <xsl:variable name="body"> <div id="fad-main"> <xsl:choose> <!-- PUBLIC mit Default-Menü --> <xsl:when test="not($issecure)"> <div id="fad-hmenu-bg" class="fad-bar fad-nav"> </div> <header class="fad-header"> <div class="fad-shapes"> </div> <xsl:variable name="logo" select="php:function('sport_Skin::getLogoLink')"/> <a href="{$domain}" class="fad-logo fad-logo-1513905982"> <img src="{$logo}" alt=""/> <h2 class="logo title"><xsl:value-of select="document('ibs:/holder_page_title')/content" /></h2> </a> <nav class="fad-nav"> <div class="fad-nav-inner"> <xsl:call-template name="menu" /> </div> </nav> </header> <div class="fad-sheet clearfix"> <xsl:choose> <xsl:when test="$meta/layout='blogstart' or $meta/layout='start'"> <xsl:if test="$topic='' and $tag=''"> <xsl:variable name="x"> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'slider'"/> </xsl:call-template> </xsl:variable> <xsl:apply-templates select="exslt:node-set($x)" mode="slider"/> </xsl:if> </xsl:when> <xsl:when test="$meta/layout='page'"> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'top'"/> </xsl:call-template> </xsl:when> </xsl:choose> <xsl:variable name="wrapperClass"> <xsl:if test="not($issecure) and $currTournament=''">public</xsl:if> </xsl:variable> <div class="fad-layout-wrapper {$wrapperClass}"> <div class="fad-content-layout"> <div class="fad-content-layout-row fad-postcontent"> <xsl:call-template name="pagecontent"> <xsl:with-param name="content" select="/content"/> </xsl:call-template> <xsl:choose> <xsl:when test="$meta/layout='show'"> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'content'"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'content'"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> <xsl:if test="$withSidebar='1'"> <xsl:call-template name="pagesidebar"/> </xsl:if> </div> </div> </div> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'foot'"/> </xsl:call-template> <footer class="fad-footer"> <p><a href="http://www.lexid.de">lexid.de</a> | <a href="/impressum.html">Impressum</a>| <a href="/datenschutz.html">Datenschutz</a> | <a href="/"><xsl:value-of select="document('ibs:/holder_page_title')/content" /></a></p> <p>Copyright © 2011-<xsl:value-of select="php:function('date','Y')"/>. All Rights Reserved.</p> </footer> </div> </xsl:when> <xsl:otherwise> <div id="fad-hmenu-bg" class="fad-bar fad-nav"> </div> <header class="fad-header"> <div class="fad-shapes"> </div> <xsl:variable name="logo" select="php:function('sport_Skin::getLogoLink')"/> <a href="#" class="fad-logo fad-logo-1513905982" style="position:absolute"> <img src="{$logo}" alt="" height="38px"/> </a> <h2 class="logo title"> <xsl:value-of select="document('ibs:/holder_page_title')/content" /></h2> <nav class="fad-nav"> <div class="fad-nav-inner"> <xsl:call-template name="menu" /> </div> </nav> </header> <div class="fad-sheet clearfix"> <xsl:if test="$meta/layout='page'"> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'top'"/> </xsl:call-template> </xsl:if> <div class="fad-layout-wrapper"> <div class="fad-content-layout"> <div class="fad-content-layout-row fad-postcontent"> <div class="fad-post fad-article"> <xsl:apply-templates select="/content"/> <xsl:if test="$meta/layout='page'"> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'content'"/> </xsl:call-template> </xsl:if> </div> <xsl:if test="$meta/layout='page'"> <xsl:call-template name="pagesidebar"/> </xsl:if> </div> </div> </div> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'foot'"/> </xsl:call-template> <footer class="fad-footer"> <p><a href="/logout.html">Abmelden</a></p> <p>Copyright © 2011-<xsl:value-of select="php:function('date','Y')"/>. All Rights Reserved.</p> </footer> </div> </xsl:otherwise> </xsl:choose> </div> </xsl:variable> <xsl:variable name="language"><xsl:choose> <xsl:when test="not($meta/language)"><xsl:value-of select="php:function('web_Session::getGlobal','SESSION','language')"/></xsl:when> <xsl:otherwise><xsl:value-of select="$meta/language"/></xsl:otherwise> </xsl:choose> </xsl:variable> <html lang="{$language}"> <head> <meta charset="utf-8"/> <xsl:variable name="title"> <xsl:choose> <xsl:when test="/content/@browser_caption!=''"> <xsl:value-of select="concat(/content/@browser_caption,'-',document('arg:/inveda_cm' )/inveda_cm/page_title)"/> </xsl:when> <xsl:when test="/content/@caption!=''"> <xsl:value-of select="concat(/content/@caption,'-',document('arg:/inveda_cm' )/inveda_cm/page_title)"/> </xsl:when> <xsl:otherwise> mein team - mein verein - mein turnier </xsl:otherwise> </xsl:choose> </xsl:variable> <title> <xsl:value-of select="$title" /> </title> <meta property="og:title" content="{$title}"/> <meta property="og:type" content="article"/> <xsl:if test="$meta/topic!=''"> <meta property="article:section" content="{$meta/topic}"/> </xsl:if> <xsl:for-each select="$meta/Tags/Tag"> <meta property="article:tag" content="{.}"/> </xsl:for-each> <xsl:variable name="twitter" select="php:function('mandant_Holder::getCurrentParam','twitter_id')"/> <xsl:if test="/content/@image!=''"> <meta property="og:image" content="{$host}{/content/@image}"/> <xsl:if test="/content/@image_width!=''"> <meta property="og:image:width" content="{/content/@image_width}"/> </xsl:if> <xsl:if test="/content/@image_height!=''"> <meta property="og:image:height" content="{/content/@image_height}"/> </xsl:if> <xsl:if test="$twitter != ''"> <meta property="twitter:image" content="{$host}{/content/@image}"/> </xsl:if> </xsl:if> <xsl:variable name="my_url" select="php:function('web_Session::getGlobal','FADSESSION','url')"/> <meta property="og:url" content="{$my_url}"/> <xsl:if test="$twitter != ''"> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:site" content="@{$twitter}"/> <xsl:variable name="twitter_id_author" select="/content/author/twitter_id"/> <xsl:if test="$twitter_id_author!=''"> <meta name="twitter:creator" content="@{$twitter_id_author}"/> </xsl:if> <meta name="twitter:title" content="{$title}"/> <meta name="twitter:description" content="{substring($meta-description,1,160)}"/> </xsl:if> <link rel="stylesheet" href="/cms.share.css.iconfont.css" media="all"/> <meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width"/> <xsl:comment>[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]</xsl:comment> <link rel="stylesheet" href="/skins/sportweb1/style.css?{$svnversion}" media="screen"/> <xsl:comment>[if lte IE 7]><link rel="stylesheet" href="/skins/sportweb1/style.ie7.css" media="screen" /><![endif]</xsl:comment> <link rel="stylesheet" href="/skins/sportweb1/style.responsive.css?{$svnversion}" media="all"/> <link rel="stylesheet" href="/skins/sportweb1/jquery-ui.structure.css" media="screen"/> <link rel="stylesheet" href="/skins/sportweb1/jquery-ui.theme.css?{$svnversion}" media="screen"/> <link rel="stylesheet" href="/skins/sportweb1/jquery-ui.css" media="screen"/> <link rel="stylesheet" href="/scripts/public.css?{$svnversion}" media="screen"/> <link rel="stylesheet" href="/skins/sportweb1/specials.css?{$svnversion}" media="screen"/> <link rel="stylesheet" href="skin.sportweb1.customcolors.css?{$svnversion}" media="screen"/> <meta name="keywords" content="{/content/@keywords}, {document('arg:/inveda_cm')/inveda_cm/keywords}" /> <xsl:variable name="meta-description"> <xsl:choose> <xsl:when test="/content/@description != ''"><xsl:value-of select="/content/@description"/></xsl:when> <xsl:when test="$meta/description != ''"><xsl:value-of select="$meta/description"/></xsl:when> <xsl:when test="document('arg:/inveda_cm' )/inveda_cm/description != ''"><xsl:value-of select="document('arg:/inveda_cm' )/inveda_cm/description"/></xsl:when> <xsl:otherwise><xsl:value-of select="//highlight[position()=1]/text()"/></xsl:otherwise> </xsl:choose> </xsl:variable> <meta name="description" lang="de" content="{substring($meta-description,1,160)}" /> <xsl:variable name="faviconsrc" select="php:function('sport_Skin::getFavIconLink')"/> <link rel="SHORTCUT ICON" href="{$faviconsrc}" /> <link rel="apple-touch-icon" href="{$faviconsrc}" /> <script type="text/javascript" src="/scripts/jquery/jquery.min.js">/**/</script> <script type="text/javascript" src="/scripts/jquery/jquery-ui/ui/minified/jquery-ui_min.js">/**/</script> <script type="text/javascript" src="/skins/sportweb1/script.js">/**/</script> <script type="text/javascript" src="/skins/sportweb1/script.responsive.js">/**/</script> <xsl:choose> <xsl:when test="$rss"> <link rel="alternate" type="application/rss+xml" href="sport.tournament.public.events.rss" title="Ereignisse {document('ibs:/holder_page_title')/content}" /> <link rel="alternate" type="application/rss+xml" href="/news.customer.index_rss.script" title="News {document('ibs:/holder_page_title')/content}" /> </xsl:when> </xsl:choose> <meta name="msvalidate.01" content="F354FB9BE44B6FECD0A1F9E4CBD45C8A" /> <xsl:if test="/content/@refresh!=''"> <meta http-equiv="refresh" content="{/content/@refresh}" /> </xsl:if> <xsl:call-template name="ajaxcode" /> <!-- <link href="styles.imgareaselect.css" type="text/css" rel="stylesheet"/>--> <script type="text/javascript"> submit=''; function setsubmit(t) { submit = t; }; </script> <xsl:for-each select="php:function('web_Content::getScripts')/scripts/*"> <xsl:choose> <xsl:when test="@src != ''"> <xsl:copy-of select="."/> </xsl:when> <xsl:otherwise> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:text disable-output-escaping="yes">//<![CDATA[ </xsl:text> <xsl:value-of select="." disable-output-escaping="yes"/> <xsl:text disable-output-escaping="yes"> //]]></xsl:text> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:call-template name="google_analytics_sw"/> <xsl:copy-of select="/content/header/*[name()!='script']"/> <!-- benötigte Styles einbinden --> <xsl:for-each select="php:function('web_Content::getStyles')/styles/*"> <xsl:copy-of select="."/> </xsl:for-each> <style>.fad-content .fad-postcontent-0 .layout-item-0 { padding-right: 10px;padding-left: 10px; } .ie7 .fad-post .fad-layout-cell {border:none !important; padding:0 !important; } .ie6 .fad-post .fad-layout-cell {border:none !important; padding:0 !important; } </style> <xsl:if test="not(php:function('web_Session::isSecure')) and ($request_type = 'html') and (php:function('web_Session::isDirectMode'))"> <script type="text/javascript">var fad_secure_url="<xsl:value-of select="php:function('web_Session::getURLSecure')"/>";</script> <script type="text/javascript" src="/scripts/directmode.js">/**/</script> </xsl:if> <xsl:call-template name="cookieconsent"/> </head> <body itemtype="http://schema.org/WebPage" itemscope="itemscope" class="layout_{$meta/layout}"> <xsl:if test="document('ibs:/message')/content/sysmessage != '' or /content/message !='' or /content/sysmessage !=''"> <div id="sysmessage" style="display:none;"> <div class="fad-message"> <div class="fad-message-body"> <xsl:apply-templates select="document('ibs:/message')/content/sysmessage" /> <xsl:apply-templates select="/content/message" /> <xsl:apply-templates select="/content/sysmessage" /> <a href="#" onclick="sysmessageOff('300');return false;" class="sysmessage_hide"> </a> </div> </div> </div> </xsl:if> <xsl:copy-of select="$body"/> <xsl:copy-of select="/content/header/*[name()='script']"/> </body> </html> </xsl:template> <xsl:template name="pagesidebar"> <div class="fad-layout-cell fad-sidebar1"> <xsl:call-template name="sidebarContent"/> </div> </xsl:template> <xsl:template match="a[@class='button']"> <span class="fad-button-wrapper"> <a class="fad-button"> <xsl:copy-of select="@onclick|@href"/> <xsl:value-of select="."/> </a> </span> </xsl:template> <!-- Menüs generisch --> <xsl:template match="menu[@name='sysmenu']"> <xsl:variable name="vorname" select="php:function('web_Session::getCurrentUserValue','vorname')"/> <xsl:variable name="name" select="php:function('web_Session::getCurrentUserValue','name')"/> <xsl:variable name="login" select="php:function('web_Session::getCurrentUserValue','login')"/> <li class="spec_nav_right"> <xsl:if test="php:function('web_Session::getCurrentUserValue','login') != ''"> <a href="#" onclick="return(false);"> <xsl:choose> <xsl:when test="$name!=''"> <xsl:choose> <xsl:when test="$vorname!=''"> <xsl:value-of select="concat($vorname,' ',$name)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$name"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:value-of select="$login"/> </xsl:otherwise> </xsl:choose> </a> </xsl:if> <xsl:if test="count(item)>0"> <ul> <xsl:for-each select="item"> <li> <a href="{@link}"> <xsl:value-of select="@title" /> </a> </li> </xsl:for-each> </ul> </xsl:if> </li> </xsl:template> <xsl:template match="*" mode="slider"> <xsl:variable name="statistics" select="./div/div[@class='sport_statistics']"/> <xsl:variable name="article" select="./div/div/article"/> <xsl:if test="count($statistics) > 0"> <script type="text/javascript" src="/scripts/jquery/countUp/countUp.min.js"><xsl:comment></xsl:comment></script> </xsl:if> <div class="fad-pageslider"> <div class="fad-shapes"><xsl:comment></xsl:comment></div> <div class="fad-slider fad-slidecontainerpageslider" data-width="1920" data-height="300" itemscope="itemscope" itemtype="http://schema.org/ItemList"> <meta itemprop="name" content="News auf Lexid.de"/> <div class="fad-slider-inner" > <xsl:for-each select="$statistics"> <div class="fad-slide-item fad-slidepageslider{position()-1}"> <div id="sport-statistics-wrapper" class="fad-textblock-1 fad-sportblock"> <xsl:for-each select="./div[@id='sports-box']"> <div id="sports-box" class="fad-sportblock-inner"> <xsl:copy-of select="./*[name() != 'script']"/> </div> </xsl:for-each> <xsl:for-each select="./div[@id='events-box']"> <div id="events-box" class="fad-sportblock-inner"> <xsl:copy-of select="./*[name() != 'script']"/> </div> </xsl:for-each> <xsl:for-each select="./div[@id='tournaments-box']"> <div id="tournaments-box" class="fad-sportblock-inner"> <xsl:copy-of select="./*[name() != 'script']"/> </div> </xsl:for-each> </div> </div> <xsl:for-each select="$statistics"> <xsl:for-each select="./div[@id='sports-box']"> <xsl:copy-of select="./*[name() = 'script']"/> </xsl:for-each> <xsl:for-each select="./div[@id='events-box']"> <xsl:copy-of select="./*[name() = 'script']"/> </xsl:for-each> <xsl:for-each select="./div[@id='tournaments-box']"> <xsl:copy-of select="./*[name() = 'script']"/> </xsl:for-each> </xsl:for-each> </xsl:for-each> <xsl:for-each select="$article"> <div class="fad-slide-item fad-slidepageslider{position()}" itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"> <xsl:variable name="i_url" select="a/@href"/> <xsl:variable name="bild" select="a/figure/img"/> <xsl:variable name="date" select="a/time"/> <xsl:variable name="topic" select="a/div[@class='topic']"/> <xsl:variable name="caption" select="a/h3/span[@class='fad_blog_article_title']"/> <div class="fad-slidepageslider{position()}-image" style="background-image:url('{concat($bild/@path,'.610x300.',$bild/@type)}');width:100%;max-width:610px;" > </div> <div class="fad-textblock fad-slidepageslider-object fad-slidepageslider{position()}-object"> <div class="fad-slidepageslider-text-container"> <div class="fad-slidepageslider-text"> <xsl:if test="$date != ''"><h5 class="slider-date"><xsl:value-of select="$date"/></h5></xsl:if> <h3 class="slider-headline" itemprop="name"> <a title="{$caption}" target="_self"> <xsl:copy-of select="a/@*[name()!='title' and name()!='target' ]"/> <xsl:value-of select="$caption"/></a></h3> <p> <xsl:value-of select="./a/div[@class='fad_blog_article_text']"/> </p> <a href="{$i_url}" title="{$caption}" target="_self">mehr...</a> </div> </div> </div> </div> </xsl:for-each> </div> </div> <div class="fad-slidenavigator fad-slidenavigatorpageslider" data-left="0.5" data-top="1"> <xsl:for-each select="$statistics"> <a href="#" class="fad-slidenavigatoritem"><xsl:comment></xsl:comment></a> </xsl:for-each> <xsl:for-each select="$article"> <a href="#" class="fad-slidenavigatoritem"><xsl:comment></xsl:comment></a> </xsl:for-each> </div> </div> </xsl:template> <xsl:template match="div[@class='fad_tournament_news_list']"> <article class="fad-post fad-article" itemscope="itemscope" itemtype="http://schema.org/ItemList"> <h1 class="fad-postheader" itemprop="name"><xsl:value-of select="./h1[1]"/></h1> <xsl:for-each select="./article"> <xsl:variable name="i_url" select="./a/@href"/> <xsl:variable name="bild" select="./a/figure/img"/> <xsl:variable name="date" select="./a/date"/> <xsl:variable name="topic" select="./a/div[@class='topic']"/> <xsl:variable name="caption" select="./a/h3/span[@class='title']"/> <div class="news_entry" style="clear:both;padding-top:20px" itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"> <div class="news_content fad-postcontent fad-postcontent-1 clearfix"> <meta name="position" itemprop="position" content="{position()}"/> <xsl:if test="$bild"> <div class="image-caption-wrapper" style="width: 55%; max-width:450px; float: left"> <xsl:if test="$bild/@src!=''"> <a href="{$i_url}" rel="bookmark" title="{$caption}"> <img itemprop="image" src="{concat($bild/@path,'.420x260.',$bild/@type)}" style="width:100%;max-width:420px;" title="{$bild/@title}" alt="{$caption}"/> </a> </xsl:if> </div> </xsl:if> <xsl:if test="./a/span[@class='teaser']"> <p class="news_teaser"><xsl:value-of select="./a/span[@class='teaser']"/></p> </xsl:if> <div class="info_right"> <div class="news_date"><xsl:value-of select="$date"/></div> </div> <div class="news_title"> <h2 itemprop="name" class="fad-postheader"> <a><xsl:copy-of select="a/@*"/> <xsl:value-of select="$caption"/> </a> </h2> </div> <p class="news_text"> <xsl:value-of select="./a/div[@class='text']"/> </p> <p><a> <xsl:copy-of select="a/@*"/> weiter lesen...</a></p> </div> <xsl:apply-templates select="./div"/> </div> </xsl:for-each> </article> </xsl:template> <xsl:template match="div[@class='mod_articlelist']"> <h2>Artikelliste</h2> <article class="fad-post fad-article"> <xsl:if test="count(./div[@class='fad-articlelist']/h3[@class='fad-articlelist-header'])=1"> <h1 class="fad-postheader"><xsl:value-of select="./div[@class='fad-articlelist']/h3[@class='fad-articlelist-header']"/></h1> </xsl:if> <div class="fad-postcontent fad-postcontent-0 clearfix"> <xsl:for-each select="./div[@class='fad-articlelist']/ul[@class='fad-articlelist']/li"> <xsl:variable name="image" select="./a/figure[@class='fad_blog_article_figure']/img"/> <xsl:variable name="link" select="./a/@href"/> <xsl:variable name="caption" select="./a/h3"/> <xsl:variable name="text" select="./a/div[@class='fad_blog_article_text']"/> <div class="news_entry" style="clear:both;padding-top:20px"> <div class="news_content fad-postcontent fad-postcontent-1 clearfix"> <xsl:if test="$image"> <div class="image-caption-wrapper" style="width: 55%; float: left"> <xsl:if test="$image/@src!=''"> <a href="{$link}" rel="bookmark" title="{$caption}"> <img src="{$image/@path}.60x60.{$image/@type}" style="width:100%;max-width:420px;" title="{$image/@title}" alt="{$caption}"/> </a> </xsl:if> </div> </xsl:if> <xsl:if test="./span[@class='fad-artlistitem-teaser']"> <p class="news_teaser"><xsl:value-of select="./span[@class='fad-artlistitem-teaser']"/></p> </xsl:if> <div class="info_right"> <div class="news_date"><xsl:value-of select="./div[@class='fad-artlistitem-date']/text()"/></div> </div> <div class="news_title"> <h2 class="fad-postheader"> <a><xsl:copy-of select="a/@*"/> <xsl:value-of select="$caption"/> </a> </h2> </div> <p class="news_text"> <xsl:value-of select="$text"/> </p> <p><a href="{$link}">weiter lesen...</a></p> </div> </div> </xsl:for-each> </div> </article> </xsl:template> <xsl:template name="pagecontent"> <xsl:param name="content"/> <article class="fad-post fad-article"> <xsl:apply-templates select="$content/text"/> <xsl:apply-templates select="$content/chapter"/> </article> </xsl:template> <xsl:template name="pagecontent2"> <xsl:param name="content"/> <article class="fad-post fad-article"> <xsl:apply-templates select="$content/*"/> </article> </xsl:template> <xsl:template match="metadata"> </xsl:template> <xsl:template match="img[@class='page-image']"> </xsl:template> <xsl:template match="img[@class='mod-html-image']"> </xsl:template> <xsl:template match="img[@class='fad_logo']"> <xsl:variable name="logo"> <img alt="{./@alt}.130x130" src="{./@src}" holderlogin="{./@holderlogin}" style="width:25%;max-width:130px;" page="{./@page}"/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($logo)/img"/> </xsl:template> <xsl:template match="img[@class='commentlist_img']"> <img src="{./@path}.130x130.{@type}" style="width:100%;max-width:130px;" alt=""/> </xsl:template> <xsl:template match="div[@class='fad_cms_youtube']"> </xsl:template> <xsl:template match="img[@class='fad_page_pagelist_img']"> <img src="{./@path}.130x130.{./@type}" style="width:100%;max-width:130px;"/> </xsl:template> <xsl:template name="menu"> <xsl:variable name="tour"><xsl:value-of select="php:function('web_Session::getGlobal','GET','tournament')"/></xsl:variable> <xsl:variable name="team"><xsl:value-of select="php:function('web_Session::getGlobal','GET','team')"/></xsl:variable> <xsl:variable name="game"><xsl:value-of select="php:function('web_Session::getGlobal','GET','game')"/></xsl:variable> <xsl:variable name="link-prefix"><xsl:if test="$tour != ''">/tournament/<xsl:value-of select="$tour"/></xsl:if><xsl:if test="$team != ''">/team/<xsl:value-of select="$team"/></xsl:if><xsl:if test="$game != ''">/game/<xsl:value-of select="$game"/></xsl:if></xsl:variable> <ul class="fad-hmenu"> <xsl:choose> <xsl:when test="/content/@menufilename!='' "> <xsl:if test="$back!=''"> <li> <a href="{$back}">Zurück</a> </li> </xsl:if> <xsl:for-each select="$menu/menu/item"> <li itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <a href="{$link-prefix}{@link}" itemprop="url"> <xsl:if test="@selected='true' or .//item[@selected='true']"> <xsl:attribute name="class">active</xsl:attribute> </xsl:if> <span itemprop="name"><xsl:value-of select="@title" /></span> </a> </li> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="$sitemap/item[@level='1']"> <li itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <a href="{@link}" itemprop="url"> <xsl:if test="@selected='true' or .//item[@selected='true']"> <xsl:attribute name="class">active</xsl:attribute> </xsl:if> <xsl:if test="@link_target and @link_target!=''"> <xsl:attribute name="target"><xsl:value-of select="@link_target"/></xsl:attribute> </xsl:if> <span itemprop="name"><xsl:value-of select="@title" /></span> </a> <xsl:if test="count(item[@level='2'])>0"> <ul> <xsl:for-each select="item[@level='2']"> <li itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <a href="{@link}" itemprop="url"> <xsl:if test="@link_target and @link_target!=''"> <xsl:attribute name="target"><xsl:value-of select="@link_target"/></xsl:attribute> </xsl:if> <span itemprop="name"><xsl:value-of select="@title" /></span> </a> <xsl:if test="count(item[@level='3'])>0"> <ul> <xsl:for-each select="item[@level='3']"> <li itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <a href="{@link}" itemprop="url"> <xsl:if test="@link_target and @link_target!=''"> <xsl:attribute name="target"><xsl:value-of select="@link_target"/></xsl:attribute> </xsl:if> <span itemprop="name"><xsl:value-of select="@title" /></span> </a> <xsl:if test="count(item[@level='4'])>0"> <ul> <xsl:for-each select="item[@level='4']"> <li itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement"> <a href="{@link}" itemprop="url"> <xsl:if test="@link_target and @link_target!=''"> <xsl:attribute name="target"><xsl:value-of select="@link_target"/></xsl:attribute> </xsl:if> <span itemprop="name"><xsl:value-of select="@title" /></span> </a> </li> </xsl:for-each> </ul> </xsl:if> </li> </xsl:for-each> </ul> </xsl:if> </li> </xsl:for-each> </ul> </xsl:if> </li> </xsl:for-each> </xsl:otherwise> </xsl:choose> <xsl:apply-templates select="$sysmenu/menu[@name='sysmenu']" /> </ul> <xsl:if test="not($issecure)"> <a href="{php:function('constant','SITE_URL_SECURE')}" class="fad-menu-login">Login</a> </xsl:if> </xsl:template> <xsl:template match="menu[@name='menu' and @level='2']"> <xsl:call-template name="inveda_menu"> <xsl:with-param name="css_family" select="'menu_2'" /> <xsl:with-param name="type" select="'horizontal_table'" /> </xsl:call-template> </xsl:template> <xsl:template match="menu[@name='menu' and @level='3']"> <xsl:call-template name="inveda_menu"> <xsl:with-param name="css_family" select="'menu_3'" /> <xsl:with-param name="type" select="'horizontal_table'" /> </xsl:call-template> </xsl:template> <xsl:template match="webboxmenu"> <div class="webboxmenu"> <xsl:for-each select="item"> <span class="fad-button-wrapper"> <xsl:if test="@selected='true' or .//item[@selected='true']"> <xsl:attribute name="class">fad-button-wrapper active</xsl:attribute> </xsl:if> <a class="fad-button" href="/{@link}"> <xsl:value-of select="@title" /> </a> </span> </xsl:for-each> </div> </xsl:template> <xsl:template match="pagemenu"> <xsl:call-template name="inveda_menu"> <xsl:with-param name="css_family" select="'pagemenu'" /> <xsl:with-param name="type" select="'vertical_table'" /> </xsl:call-template> </xsl:template> <xsl:template match="content" mode="include"> <xsl:apply-templates select="text|textbox_list" /> </xsl:template> <xsl:template match="content"> <div class="fad-content-layout"> <div class="fad-content-layout-row fad-postcontent"> <div class="fad-layout-cell layout-item-0" style="width: 100%" > <xsl:if test="/content/@pdf='yes' or /content/@pdf='true' or /content/@rss='yes' or /content/@rss='true'"> <div class="page_functions_wrapper"> <xsl:if test="/content/@pdf='yes' or /content/@pdf='true'"> <xsl:variable name="saveFilename"> <xsl:choose> <xsl:when test="$meta/title">?save_filename=<xsl:value-of select="$meta/title"/></xsl:when> <xsl:when test="/content/@browser_caption">?save_filename=<xsl:value-of select="/content/@browser_caption"/></xsl:when> <xsl:when test="/content/@caption">?save_filename=<xsl:value-of select="/content/@caption"/></xsl:when> </xsl:choose> </xsl:variable> <a class="page_function" href="{$page}.pdf{$saveFilename}" target="_pdf" type="application/pdf"> <i class="ii ii-mime_pdf">als *.pdf ausgeben </i> </a> </xsl:if> <xsl:if test="/content/@rss='yes' or /content/@rss='true'"> <a class="page_function" href="{$page}.rss" target="_rss" type="application/rss+xml"> <img src="/skins/icons/rss.gif" title="Seite als RSS ausgeben" border="0" alt=""/> </a> </xsl:if> </div> </xsl:if> <xsl:apply-templates select="text" /> </div> </div> </div> </xsl:template> <xsl:template match="text"> <xsl:apply-templates select="node()|text()" /> </xsl:template> <xsl:template match="WebBox"> <div class="fad-content-layout"> <div class="fad-content-layout-row fad-postcontent"> <div class="fad-layout-cell layout-item-0" style="width: 100%" > <xsl:if test="@caption!=''"> <h2 class="fad-postheader"> <xsl:value-of select="@caption" /> <xsl:if test="@filter='toggle'"> <span class="WebBox_caption_togglefilter"> <a onclick="toggleFilter(this, '{@name}');" id="{concat(@name, '_togglefilter')}"><i class="ii ii-details_minus" title="Filter ein/ausblenden">Filter ein/ausblenden</i></a> </span> </xsl:if> <xsl:if test="@help!=''"> <span class="WebBox_caption_help"> <a href="{@help}" target="fad_help"><i class="ii ii-info" title="Hilfe">Hilfe</i></a> </span> </xsl:if> </h2> </xsl:if> <div class="fad-postcontent"> <xsl:if test="count(form/*[name()='ControlGroup' or name()='ControlElement']) > 0 or table"> <xsl:apply-templates select="form" /> </xsl:if> <xsl:if test="webboxmenu"> <xsl:apply-templates select="webboxmenu" /> </xsl:if> <xsl:if test="Data"> <xsl:apply-templates select="Data" /> </xsl:if> </div> </div> </div> </div> </xsl:template> <xsl:template match="form"> <div class="form"> <form> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute> </xsl:for-each> <xsl:apply-templates select="*" /> </form> </div> </xsl:template> <xsl:template match="ControlGroup"> <div class="controlgroup {./@type}"> <xsl:if test="@caption != ''"> <h3><xsl:value-of select="@caption" /></h3> </xsl:if> <div class="fad-content-layout overview-table" style="width:100%;"> <xsl:if test="Data|ControlElement|ControlButton|div"> <xsl:if test="Data"> <div class="fad-content-layout-row"> <div class="fad-layout-cell data-cell"> <div class="spec-layout overview-table-inner"> <xsl:apply-templates select="Data" /> </div> </div> </div> <div class="cleared"><xsl:comment></xsl:comment></div> </xsl:if> <xsl:if test="Description"> <div class="fad-content-layout-row"> <div class="fad-layout-cell description-cell" > <div class="spec-layout overview-table-inner"> <xsl:apply-templates select="Description" /> </div> </div> </div> <div class="cleared"><xsl:comment></xsl:comment></div> </xsl:if> <xsl:if test="div"> <xsl:apply-templates select="div" /> </xsl:if> <xsl:if test="count(ControlElement) > 0"> <xsl:variable name="centerwidth" > <xsl:choose> <xsl:when test="(count(ControlElement[@location='right']) > 0) and (count(ControlElement[@location='left']) > 0)">50</xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="(count(ControlElement[@location='right']) > 0) or (count(ControlElement[@location='left']) > 0)">75</xsl:when> <xsl:otherwise>100</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:variable> <div class="fad-content-layout-row"> <xsl:if test="count(ControlElement[@location='left']) > 0"> <div class="fad-layout-cell location-left" style="width:25%;"> <div class="spec-layout overview-table-inner"> <xsl:for-each select="ControlElement[@location='left']"> <xsl:apply-templates select="." /> </xsl:for-each> </div> </div> </xsl:if> <div class="fad-layout-cell location-c" style="width:{$centerwidth}%"> <div class="spec-layout overview-table-inner"> <xsl:for-each select="ControlElement[@location!='left' and @location!='right']"> <xsl:apply-templates select="." /> </xsl:for-each> </div> </div> <xsl:if test="count(ControlElement[@location='right']) > 0"> <div class="fad-layout-cell location-right" style="width:25%;"> <div class="spec-layout overview-table-inner"> <xsl:for-each select="ControlElement[@location='right']"> <xsl:apply-templates select="." /> </xsl:for-each> </div> </div> </xsl:if> <div class="cleared"><xsl:comment></xsl:comment></div> </div> </xsl:if> <xsl:if test="@confirm_question!=''"> <div class="fad-content-layout-row"> <div class="fad-layout-cell question-cell"> <div class="overview-table-inner"> <xsl:value-of select="@confirm_question" /> </div> </div> </div> </xsl:if> <xsl:if test="count(ControlButton) > 0"> <div class="fad-content-layout-row"> <div class="fad-layout-cell buttons-cell"> <div class="spec-layout overview-table-inner"> <div class="spec-layout-row"> <xsl:apply-templates select="ControlButton" /> </div> </div> </div> </div> </xsl:if> </xsl:if> </div> </div> <div class="cleared"><xsl:comment></xsl:comment></div> </xsl:template> <xsl:template match="div[contains(@class,'fad-groupcontainer')]"> <div class="{@class}" id="{@id}"> <xsl:apply-templates select="*|node()|text()" /> </div> </xsl:template> <xsl:template match="div[contains(@class,'fad-groupcontaineritem')]"> <div class="{@class}" id="{@id}"> <div class="fad-groupcontaineritem-head"> <xsl:if test="@caption!=''"> <h5><xsl:value-of select="@caption"/><span class="fad-groupcontaineritem-toggle" onclick="groupItemToggle(this);return false;"> </span></h5> </xsl:if> <xsl:if test="@caption=''"> <span class="fad-groupcontaineritem-toggle" onclick="groupItemToggle(this);return false;"> </span> </xsl:if> </div> <div class="fad-groupcontaineritem-body"> <xsl:apply-templates select="*|node()|text()" /> </div> </div> </xsl:template> <xsl:template match="input[@type='button' or (@type='submit' and @name!='')]"> <div class="spec-layout-cell"> <span class="fad-button-wrapper"> <input id="{@id}" onclick="{@onclick}" class="fad-button" type="{@type}" name="{@name}" value="{@value}" /> </span> </div> </xsl:template> <xsl:template match="button"> <span class="fad-button-wrapper {@disabled}"> <xsl:variable name="textBold"> <xsl:if test="count(./b) >0">font-weight:bold; </xsl:if> </xsl:variable> <a href="{@href}" class="fad-button {@disabled}" style="{$textBold}" target="{@target}" onclick="{@onclick}" title="{@title}"> <xsl:value-of select="."/> </a> </span> </xsl:template> <xsl:template match="ControlElement"> <xsl:variable name="myCssFamily"> <xsl:choose> <xsl:when test="@required='true'">ControlElement_required ControlElement</xsl:when> <xsl:otherwise>ControlElement</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="@type='ida'"> <xsl:apply-templates select="*|node()|text()" /> </xsl:when> <xsl:when test="@type='simple'"> <div class="spec-layout-row"> <div class="spec-layout-cell"><xsl:comment></xsl:comment></div> <div class="spec-layout-cell {$myCssFamily}"> <div class="spec-layout-cell-inner"> <xsl:call-template name="Control1"> </xsl:call-template> </div> </div> </div> </xsl:when> <xsl:when test="@type='extended'"> <xsl:choose> <xsl:when test="@label_position = 'above'"> <div class="spec-layout-row"> <div class="spec-layout-cell {$myCssFamily}"> <div class="spec-layout-cell-inner"> <xsl:call-template name="Label"> </xsl:call-template> </div> </div> </div> <div class="spec-layout-row"> <div class="spec-layout-cell {$myCssFamily}"> <div class="spec-layout-cell-inner"> <xsl:call-template name="Control1"> </xsl:call-template> </div> </div> </div> </xsl:when> <xsl:otherwise> <div class="spec-layout-row"> <div class="spec-layout-cell"> <div class="spec-layout-cell-inner"> <xsl:value-of select="@caption" /><xsl:comment></xsl:comment> </div> </div> <div class="spec-layout-cell {$myCssFamily}"> <div class="spec-layout-cell-inner"> <xsl:call-template name="Control1"> </xsl:call-template> <div class="cleared"><xsl:comment></xsl:comment></div> </div> </div> <div class="spec-layout-cell"> <div class="spec-layout-cell-inner"><xsl:comment></xsl:comment> </div> </div> </div> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="@type='hidden'"> <xsl:apply-templates select="node()|text()" /> </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="Control2"> <xsl:param name="colspan"/> <xsl:param name="css_family"/> <xsl:variable name="css_err"> <xsl:choose> <xsl:when test="@error!=''">_error_</xsl:when> <xsl:otherwise>_</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="css_family_cell"> <xsl:value-of select="concat($css_family,$css_err,'cell')"/> </xsl:variable> <xsl:if test="$colspan!=''"> <xsl:attribute name="colspan"> <xsl:value-of select="$colspan"/> </xsl:attribute> </xsl:if> <div class="spec-layout"> <xsl:attribute name="width"> <xsl:choose> <xsl:when test="@width!=''"> <xsl:value-of select="@width"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'100%'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <div class="spec-layout-row"> <div class="{$css_family_cell} spec-layout-cell" > <xsl:if test="@icon != ''"> <div class="{$css_family_cell}" style="float:left;padding-right:3px;"> <img src="/skins/icons/{@icon}" alt="" title="{@title}"/> </div> </xsl:if> <xsl:variable name="highlight"> <xsl:if test="@highlight != ''">|<xsl:value-of select="concat(' ',$css_family_cell,'_highlight')"/></xsl:if> </xsl:variable> <div class="{$css_family_cell}{$highlight}" style="float:left;"> <xsl:choose> <xsl:when test="@error!=''"> <div class="error_control" nowrap="nowrap" style="float:left;"> <xsl:apply-templates select="*|node()|text()"/> </div> <div class="error_control" style="float:left; margin-left:2px;"> <xsl:value-of select="@error"/> </div> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="*|node()|text()"/> </xsl:otherwise> </xsl:choose> <div class="cleared"><xsl:comment></xsl:comment></div> </div> <xsl:if test="@help_page != ''"> <div class="{$css_family_cell}" style="float:left;" width="16"> <a href="{@help_page}" onclick="getHelp('{@help_page}');return false;" target="sportweb_help"> <i class="ii ii-info" alt="Hilfe zu diesem Bedienelement" title ="Hilfe zu diesem Bedienelement">help</i> </a> </div> </xsl:if> <xsl:if test="@ima_help != ''"> <div class="{$css_family_cell}" style="float:left;" width="16"> <a href="{@ima_help}" target="inveda_help"> <img src="/skins/icons/help.gif" width="16" height="16" alt="Hilfe zu diesem Bedienelement" title ="Hilfe zu diesem Bedienelement" /> </a> </div> </xsl:if> <div class="cleared"><xsl:comment></xsl:comment></div> </div> <!-- <td class="{$css_family_cell}" align="right"> <xsl:choose> <xsl:when test="@error!=''"> <span class="{$css_family_cell}_text"> <xsl:value-of select="@error"/> </span> </xsl:when> <xsl:otherwise> <img src="/skins/images/1pix_trans.gif" width="1" height="1" alt=""/> </xsl:otherwise> </xsl:choose> </td>/--> </div> </div> </xsl:template> <xsl:template name="Control1"> <xsl:if test="@icon != ''"> <img src="/skins/icons/{@icon}" title="{@title}" alt=""/> </xsl:if> <xsl:choose> <xsl:when test="@error!=''"> <xsl:apply-templates select="*|node()|text()" /> <span class="error_span"><xsl:value-of select="@error" /></span> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="*|node()|text()" /> </xsl:otherwise> </xsl:choose> <xsl:if test="@help_page != ''"> <a href="{@help_page}" target="lexid_help" class="float-left" onclick="getHelp('{@help_page}');return false;"> <i class="ii ii-info" alt="Hilfe zu diesem Bedienelement" title ="Hilfe zu diesem Bedienelement">help</i> </a> </xsl:if> <xsl:if test="@ima_help != ''"> <a href="{@ima_help}" target="lexid_help" class="float-left"> <img src="/skins/icons/help.gif" width="16" height="16" alt="Hilfe zu diesem Bedienelement" title="Hilfe zu diesem Bedienelement" /> </a> </xsl:if> </xsl:template> <xsl:template match="ControlButton"> <xsl:apply-templates select="node()" /> </xsl:template> <xsl:template name="sidebarContent"> <xsl:param name="sb_caption" /> <xsl:param name="sb_caption_link" /> <xsl:param name="sb_content_id" /> <div class="fad-block"> <xsl:call-template name="render_place"> <xsl:with-param name="place" select="'right'"/> </xsl:call-template> </div> </xsl:template> <xsl:template match="div[@class='sidebarBlock']"> <div class="fad-block"> <div class="fad-blockcontent"> <div class="fad-blockcontent-body"> <div id="{./@id}"> <xsl:apply-templates select="*|text()" /> </div> <div class="cleared"><xsl:comment></xsl:comment></div> </div> </div> </div> </xsl:template> <xsl:template match="div[contains(@class,'art-post') and not(contains(@class,'art-post-'))]"> <div> <xsl:for-each select="@*"> <xsl:if test="name(.)='class'"> <xsl:attribute name="class">fad-post<xsl:value-of select="."/></xsl:attribute> </xsl:if> <xsl:if test="name(.)!='class'"> <xsl:attribute name="{name(.)}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:if> </xsl:for-each> <xsl:apply-templates select="*|text()"/> </div> </xsl:template> <xsl:template match="div[contains(@class,'art-block-')]"> <xsl:apply-templates select="*|text()"/> </xsl:template> <xsl:template match="div[contains(@class,'art-post-')]"> <xsl:if test="contains(@class,'art-post-body')"> <div class="fad-post-body"> <xsl:apply-templates select="*|text()"/> </div> </xsl:if> <xsl:if test="not(contains(@class,'art-post-body'))"> <xsl:apply-templates select="*|text()"/> </xsl:if> </xsl:template> <xsl:template match="textbox_list"> <div style="width:100%"> <xsl:variable name="allowed_boxes"> <xsl:copy-of select="box[not(@link) or @link='' or substring(@link,1,7)='http://' or substring(@link,1,8)='https://' or php:function('web_Session::pageAllowed',string(@link))]" /> </xsl:variable> <xsl:variable name="autocols" select="@autocols" /> <xsl:variable name="cols"> <xsl:choose> <xsl:when test="@cols > 1"> <xsl:value-of select="@cols" /> </xsl:when> <xsl:otherwise> 1 </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="width"> <xsl:choose> <xsl:when test="string-length(@boxwidth)>0"> <xsl:value-of select="@boxwidth" /> </xsl:when> <xsl:when test="@cols < 2 or document('ibs:/mobile_device')/content/@value='yes'"> <xsl:value-of select="'100%'" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat((100 - @cols) div @cols,'%')" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="height"> <xsl:value-of select="@boxheight" /> </xsl:variable> <xsl:variable name="padding"> <xsl:value-of select="concat('1', '%')" /> </xsl:variable> <xsl:for-each select="box"> <xsl:choose> <xsl:when test="(position() mod $cols != 0) or ($autocols = 'yes')"> <div class="page_box_col" style="float:left;width:{$width};padding-right:{$padding};overflow:hidden;"> <xsl:call-template name="box"> <xsl:with-param name="height" select="$height" /> <xsl:with-param name="id" select="@id" /> </xsl:call-template> </div> </xsl:when> <xsl:when test="document('ibs:/mobile_device')/content/@value='yes'"> <xsl:call-template name="box"> <xsl:with-param name="height" select="$height" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <div style="float:left;width:{$width};"> <xsl:call-template name="box"> <xsl:with-param name="height" select="$height" /> </xsl:call-template> </div> <div style="clear:both;height:1px;line-height:1px;font-size:1px"><xsl:comment></xsl:comment></div> </xsl:otherwise> </xsl:choose> </xsl:for-each> </div> <div style="clear:both;height:1px;line-height:1px;font-size:1px"><xsl:comment></xsl:comment></div> </xsl:template> <xsl:template match="div[@class='tag_list']"> <article class="fad-post fad-article" itemtype="http://schema.org/ItemList" itemscope="itemscope"> <div id="{@id}" class="tag_list"> <h3>Artikel zum Schlagwort:</h3> <h1 itemprop="name" class="fad-postheader"><xsl:value-of select="./h1[1]"/></h1> <xsl:for-each select="./article"> <xsl:call-template name="article-preview"> <xsl:with-param name="article" select="."/> </xsl:call-template> </xsl:for-each> </div> </article> </xsl:template> <xsl:template match="div[@class='topic_list']"> <article class="fad-post fad-article" itemtype="http://schema.org/ItemList" itemscope="itemscope"> <div id="{@id}" class="tag_list"> <h3>Artikel zum Thema:</h3> <h1 itemprop="name" class="fad-postheader"><xsl:value-of select="./h1[1]"/></h1> <xsl:for-each select="./article"> <xsl:call-template name="article-preview"> <xsl:with-param name="article" select="."/> </xsl:call-template> </xsl:for-each> </div> </article> </xsl:template> <xsl:template match="div[@class='date_list']"> <article class="fad-post fad-article" itemtype="http://schema.org/ItemList" itemscope="itemscope"> <div id="{@id}" class="date_list"> <h3>Artikel vom:</h3> <h1 itemprop="name" class="fad-postheader"><xsl:value-of select="./h1[1]"/></h1> <xsl:for-each select="./article"> <xsl:call-template name="article-preview"> <xsl:with-param name="article" select="."/> </xsl:call-template> </xsl:for-each> </div> </article> </xsl:template> <xsl:template name="article-preview"> <xsl:param name="article"/> <xsl:variable name="i_url" select="$article/a/@href"/> <xsl:variable name="bild" select="$article/a/figure/img"/> <xsl:variable name="date" select="$article/a/time"/> <xsl:variable name="topic" select="$article/a/div[@class='fad_blog_article_topic']"/> <xsl:variable name="caption" select="$article/a/h3/span[@class='fad_blog_article_title']"/> <div class="news_entry" style="clear:both;padding-top:20px" itemtype="http://schema.org/ListItem" itemscope="itemscope" itemprop="itemListElement"> <div class="news_content fad-postcontent fad-postcontent-1 clearfix"> <xsl:copy-of select="$article/meta"/> <xsl:if test="$bild"> <div class="image-caption-wrapper" style="width: 55%; max-width:450px; float: left"> <xsl:if test="$bild/@src!=''"> <a href="{$i_url}" rel="bookmark" title="{$caption}"> <img itemprop="image" src="{concat($bild/@path,'.420x260.',$bild/@type)}" style="width:100%;max-width:420px;" title="{$bild/@title}" alt="{$caption}"/> </a> </xsl:if> </div> </xsl:if> <xsl:if test="$article/a/span[@class='fad_blog_article_teaser']"> <p class="news_teaser"><xsl:value-of select="./a/span[@class='fad_blog_article_teaser']"/></p> </xsl:if> <div class="info_right"> <div class="news_date"><xsl:value-of select="$date"/></div> </div> <div class="news_title"> <h2 class="fad-postheader" itemprop="name"> <a> <xsl:copy-of select="a/@*"/> <xsl:value-of select="$caption"/> </a> </h2> </div> <p class="news_text" itemprop="item"> <xsl:value-of select="$article/a/div[@class='fad_blog_article_text']"/> </p> <p><a> <xsl:copy-of select="a/@*[name()!='title' and name()!='target' ]"/>weiter lesen...</a></p> </div> </div> </xsl:template> <xsl:template name="google_analytics_sw"> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-27720342-1', 'auto'); ga('set', 'anonymizeIp', true); ga('send', 'pageview'); </script> </xsl:template> <xsl:template match="div[@class='block']"> <div class="fad-block"> <div class="fad-blockcontent"> <div class="fad-blockcontent-body"> <xsl:apply-templates select="*|text()"/> </div> </div> </div> <div class="cleared"><xsl:comment></xsl:comment></div> </xsl:template> <xsl:template name="visible_start"> <xsl:value-of select="concat(substring(@visible_start,9,2),'.',substring(@visible_start,6,2),'.',substring(@visible_start,1,4))"/> </xsl:template> <xsl:template match="chapter"> <div class="chapter"> <a class="anker" name="{generate-id(@caption)}"><xsl:comment></xsl:comment></a> <h3 class="h_chapter"> <a href="#chapter_start" title="nach oben" class="chapter_start"><xsl:comment></xsl:comment></a> <xsl:value-of select="@caption"/> </h3> <xsl:apply-templates select="*|processing-instruction()|text()"/> </div> </xsl:template> <xsl:template match="input[@type='submit'][contains(@name,'[cancel]')]"> <input id="{@id}" class="button fad-button" type="submit" value="{@value}" name="{@name}" /> <!-- xsl:choose> <xsl:when test="$back=''"> <input id="{@id}" class="button fad-button" type="submit" value="{@value}" name="{@name}" /> </xsl:when> <xsl:otherwise> <a href="{$back}" class="button fad-button"><xsl:value-of select="./@value"/></a> </xsl:otherwise> </xsl:choose --> </xsl:template> <!-- --> <xsl:template match="div[@class='page_blogreader' or @class='page_tournamentnews']" > <xsl:variable name="topic" select="./div[@class='topic']/a"/> <xsl:variable name="date" select="./div[@class='date']"/> <xsl:variable name="teaser" select="./h1/span[@class='teaser']"/> <xsl:variable name="title" select="./h1/span[@class='title']"/> <xsl:variable name="img" select="./img[@class='post-image']"/> <xsl:variable name="tags" select="./div[@class='tags']"/> <div id="{@id}" class="{@class}"> <div class="fad-postmetadataheader"> <xsl:if test="$img/@src != '' and $meta/layout != 'blog_wo_img' and $meta/layout != 'page_wo_img'"> <xsl:variable name="i1"> <img src="{$img/@src}" class="{$img/@class}" imgclass="fad-lightbox" alt="{$img/@alt}.610x300" meta_nr="{$img/@meta_nr}" holderlogin="{$img/@holderlogin}"></img> </xsl:variable> <div id="post-image" class="{$img/@class}"> <xsl:apply-templates select="exslt:node-set($i1)/img"/> </div> </xsl:if> <xsl:copy-of select="./div[@class='fad_cms_youtube']"/> <xsl:if test="$teaser!=''"> <xsl:copy-of select="$teaser"/> </xsl:if> <h1 class="fad-postheader"><xsl:value-of select="$title"/></h1> </div> <div class="fad-postcontent fad-postcontent-0 clearfix"> <xsl:apply-templates select="./div[@class='post_content']/*"/> </div> <xsl:if test="$date!=''"> <div class="fad-postheadericons fad-metadata-icons"> <span class="fad-postdateicon"><xsl:value-of select="$date"/> <xsl:if test="$topic!=''"> | <xsl:copy-of select="$topic"/> </xsl:if> </span> </div> </xsl:if> <xsl:if test="count($tags/ul/li) > 0"> <div class="fad-posttags"> <span class="fad-posttags-title">Stichworte:</span> <xsl:for-each select="$tags/ul/li"> <xsl:copy-of select="./a"/> </xsl:for-each> </div> </xsl:if> </div> </xsl:template> <xsl:template match="div[starts-with(@class,'page_page') or starts-with(@class,'page_wbtmodule')]"> <div> <xsl:for-each select="./@*"> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute> </xsl:for-each> <xsl:if test="count(./img[@class='page-image'])>0"> <xsl:variable name="postimg"> <img alt="{./img[@class='page-image']/@alt}.610x300" src="{./img[@class='page-image']/@src}" meta_nr="{./img[@class='page-image']/@meta_nr}" holderlogin="{./img[@class='page-image']/@holderlogin}" style="width:100%;max-width:685px;" page="{./img[@class='page-image']/@page}"/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($postimg)/img"/> </xsl:if> <xsl:copy-of select="./div[@class='fad_cms_youtube']"/> <xsl:for-each select="./h1"> <h1 class="fad-postheader" itemprop="name"><xsl:value-of select="."/> </h1> </xsl:for-each> <div class="fad-postcontent fad-postcontent-0 clearfix"> <xsl:for-each select="./*"> <xsl:if test="not(@class='page-image') and name()!='h1'"> <xsl:apply-templates select="."/> </xsl:if> </xsl:for-each> </div> </div> </xsl:template> <xsl:template match="div[starts-with(@class,'page_jobreader')]"> <div> <xsl:for-each select="./@*"> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute> </xsl:for-each> <xsl:if test="count(./img[@class='page-image'])>0"> <xsl:variable name="postimg"> <img alt="{./img[@class='page-image']/@alt}.610x300" src="{./img[@class='page-image']/@src}" meta_nr="{./img[@class='page-image']/@meta_nr}" holderlogin="{./img[@class='page-image']/@holderlogin}" style="width:100%;max-width:685px;"/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($postimg)/img"/> </xsl:if> <xsl:copy-of select="./div[@class='fad_cms_youtube']"/> <xsl:for-each select="./h1"> <h1 class="fad-postheader" itemprop="name"><xsl:apply-templates select="*|text()"/> </h1> </xsl:for-each> <div class="fad-postcontent fad-postcontent-0 clearfix"> <xsl:for-each select="./*"> <xsl:if test="not(@class='page-image') and name()!='h1'"> <xsl:apply-templates select="."/> </xsl:if> </xsl:for-each> </div> </div> </xsl:template> <xsl:template name="render_place"> <xsl:param name="place"/> <xsl:variable name="place1"> <xsl:choose> <xsl:when test="$place='slider'">top</xsl:when> <xsl:otherwise><xsl:value-of select="$place"/></xsl:otherwise> </xsl:choose> </xsl:variable> <div id="fad_place_{$place1}"> <xsl:variable name="mg" select="$modgroups/modgroup[@place=$place1]"/> <div> <xsl:if test="$mg"><xsl:attribute name="id">modgroup_<xsl:value-of select="$mg/@id"/></xsl:attribute></xsl:if> <xsl:for-each select="$mg/module"> <xsl:choose> <xsl:when test="$place='right'"> <xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*" mode="sidebar"/> </xsl:when> <xsl:when test="$place='slider'"> <xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*" mode="slide"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </div> </div> </xsl:template> <xsl:template name="render_place_ajax"> <xsl:param name="place"/> <div id="fad_place_{$place}"> <xsl:variable name="mg" select="$modgroup[@place=$place]/@nr"/> <div id="modgroup_{$mg}" itemscope="itemscope" itemtype="http://schema.org/ItemList"> <xsl:for-each select="$modgroups/Data/Content/DataSet[@nr=$mg]/modules/module"> <div id="modgroup_{$mg}_{@nr}"><xsl:comment/></div> <script> $('div#modgroup_<xsl:value-of select="$mg"/>_<xsl:value-of select="@nr"/>').load("mod/<xsl:value-of select="@nr"/>/cms.mod.public.show.xml"); </script> </xsl:for-each> </div> </div> </xsl:template> <xsl:template match="div[@class='mod_html']"> <div> <xsl:for-each select="./@*"> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute> </xsl:for-each> <xsl:if test="count(./img[@class='mod-html-image'])>0"> <xsl:variable name="postimg"> <img alt="{./img[@class='mod-html-image']/@alt}.210x130" src="{./img[@class='mod-html-image']/@src}" meta_nr="{./img[@class='mod-html-image']/@meta_nr}" holderlogin="{./img[@class='mod-html-image']/@holderlogin}" style="width:100%;max-width:210px;" page="{./img[@class='mod-html-image']/@page}"/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($postimg)/img"/> </xsl:if> <xsl:copy-of select="./div[@class='fad_cms_youtube']"/> <xsl:apply-templates select="*|text()"/> </div> </xsl:template> <xsl:template match="div[@class='mod_html']" mode="sidebar"> <div> <xsl:for-each select="./@*"> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute> </xsl:for-each> <xsl:if test="count(./img[@class='mod-html-image'])>0"> <xsl:variable name="postimg"> <img alt="{./img[@class='mod-html-image']/@alt}.130x130" src="{./img[@class='mod-html-image']/@src}" meta_nr="{./img[@class='mod-html-image']/@meta_nr}" holderlogin="{./img[@class='mod-html-image']/@holderlogin}" style="width:100%;max-width:130px;" page="{./img[@class='mod-html-image']/@page}"/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($postimg)/img"/> </xsl:if> <xsl:copy-of select="./div[@class='fad_cms_youtube']"/> <xsl:apply-templates select="*|text()"/> </div> </xsl:template> <xsl:template match="div[@class='mod_page_preview']"> <div itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem"> <xsl:copy-of select="@*"/> <xsl:apply-templates select="*" mode="page_preview"/> </div> </xsl:template> <xsl:template match="*" mode="page_preview"> <xsl:element name="{name()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="page_preview"/> </xsl:element> </xsl:template> <xsl:template match="img[@class!='attachment']" mode="page_preview"> <img src="{@path}.300x200.{@type}" width="300" height="200" alt="preview {@path}.300x200.{@type}"> <xsl:copy-of select="@*[name()!='src' and name()!='width' and name!='height']"/> </img> </xsl:template> <xsl:template match="img[@class='attachment']" mode="page_preview"> <xsl:apply-templates select="."/> </xsl:template> <xsl:template match="a" mode="page_preview"> <a itemprop="url"> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="page_preview"/> </a> </xsl:template> <xsl:template match="h3" mode="page_preview"> <h3 itemprop="name"> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="page_preview"/> </h3> </xsl:template> <xsl:template match="div[@class='mod_blog_newslist' or @class='mod_articlelist']"> <xsl:if test=".//article[1]"> <div> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="mod_blog_newslist"/> </div> </xsl:if> </xsl:template> <xsl:template match="*" mode="sidebar"> <xsl:apply-templates select="."/> </xsl:template> <xsl:template match="*" mode="slide"> <xsl:element name="{name()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="slide"/> </xsl:element> </xsl:template> <xsl:template match="article" mode="mod_blog_newslist"> <xsl:call-template name="article-preview"> <xsl:with-param name="article" select="."/> </xsl:call-template> </xsl:template> <xsl:template match="*" mode="mod_blog_newslist"> <xsl:element name="{name()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="mod_blog_newslist"/> </xsl:element> </xsl:template> <xsl:template match="img" mode="mod_blog_newslist"> <img src="{@path}.300x200.{@type}" width="300" height="200" alt="preview {@path}.300x200.{@type}"> <xsl:copy-of select="@*[name()!='src' and name()!='width' and name!='height']"/> </img> </xsl:template> </xsl:stylesheet> ";s:5:"/lib2";s:124597:"<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:php="http://php.net/xsl" xmlns:inveda="http://www.inveda.de" xmlns:fad="http://www.fad-server.org" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:exslt="http://exslt.org/common" xmlns:str="http://exslt.org/strings" xmlns:xlink="http://www.w3.org/1999/xlink" exclude-result-prefixes="php inveda exslt str xs fb fad xlink"> <xsl:variable name="d_document" select="/*"/> <xsl:variable name="d_page" select="php:function('web_Session::getPage')"/> <xsl:variable name="d_page_para" select="php:function('web_Session::getPageParams')"/> <xsl:variable name="d_request_type" select="php:function('web_Session::getRequestType')"/> <xsl:variable name="d_ajax_window" select="content/@ajax_window"/> <xsl:variable name="ajax_params"> <xsl:if test="($d_ajax_window = 'true' or $d_ajax_window = 'yes' or $d_request_type='ajax') and $d_page_para != ''"> <xsl:value-of select="concat('/',$d_page_para,'/')"/> </xsl:if> </xsl:variable> <xsl:variable name="inveda:definitions"> <table> <datatable> <step> <item step="1" caption="1"/> <item step="5" caption="5"/> <item step="10" caption="10"/> <item step="25" caption="25"/> <item step="50" caption="50"/> <item step="-1" caption="alle"/> </step> </datatable> </table> <actions> <action type="view" icon="view" title="Eintrag ansehen">ansehen</action> <action type="details" icon="details" title="Datensatzänderungen" ajax="true" page="/system.datalogviewer.details">Datensatzänderungen</action> <action type="edit" icon="update" title="Eintrag bearbeiten">bearbeiten</action> <action type="copy" icon="copy" title="Eintrag als Vorlage übernehmen">übernehmen</action> <action type="update" icon="update" title="Eintrag bearbeiten">bearbeiten</action> <action type="delete" icon="delete" title="Eintrag löschen">löschen</action> <action type="stunden" icon="stunden" title="Stunden anlegen">Stunden anlegen</action> <action type="pw_change" icon="pw_change" title="Passwort ändern">Passwort ändern</action> <action type="permissions" icon="permission" title="Rechte ändern">Rechte ändern</action> <action type="become_user" icon="become_user" title="Identität des Benutzers annehmen">Identität des Benutzers annehmen</action> <action type="mark" icon="checkbox" title="Eintrag markieren">Eintrag markieren</action> </actions> </xsl:variable> <xsl:template name="DataHeader"> <xsl:param name="data"/> <xsl:param name="header"/> <xsl:param name="dataname"/> <xsl:param name="webbox"/> <xsl:param name="sortable"/> <tr class="data_header_row"> <xsl:for-each select="$header/*"> <xsl:call-template name="RenderDataHeaderElement"> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="data" select="$data"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="sortable" select="$sortable"/> </xsl:call-template> </xsl:for-each> </tr> </xsl:template> <xsl:template match="Data"> <xsl:apply-templates select="div"/> <xsl:apply-templates select="Header/Path"/> <xsl:apply-templates select="Error|Content"/> <!-- xsl:apply-templates select="Footer"/ --> </xsl:template> <xsl:template match="definitions"/> <xsl:template match="Content"> <xsl:call-template name="Content"/> </xsl:template> <xsl:template name="Content"> <xsl:param name="dataname" select="../@name"/> <xsl:param name="header" select="$d_document/definitions/header[@name = $dataname]|document('arg:/schema')/*/inveda:header/header[./@name = $dataname]|/*/definitions/header[./@name = $dataname]|php:function('web_content_HTML::getDefinition',string($dataname))/header"/> <xsl:param name="body" select="$d_document/definitions/body[@name = $dataname]|/*/definitions/body[@name = $dataname]|document('arg:/schema')/*/inveda:header/body[@name = $dataname]"/> <xsl:variable name="webbox"> <xsl:choose> <xsl:when test="../../@name"> <xsl:value-of select="../../@name"/> </xsl:when> <xsl:when test="../../../@name"> <xsl:value-of select="../../../@name"/> </xsl:when> <xsl:when test="../@name"> <xsl:value-of select="concat(../@name,'DSH')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($d_page,'Data')"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="start_key" select="concat($webbox,'[fad_t_offset]')"/> <xsl:variable name="step_key" select="concat($webbox,'[fad_t_limit]')"/> <xsl:variable name="start_dataname" select="concat($dataname,'_start')"/> <xsl:variable name="start1" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_offset')"/> <xsl:variable name="size"> <xsl:choose> <xsl:when test="../Header/Filter/limit"> <xsl:value-of select="@rows"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="count(DataSet)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="start"> <xsl:choose> <xsl:when test="$start1!=''"> <xsl:value-of select="$start1"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="orderby_key" select="concat($webbox,'[fad_t_order]')"/> <xsl:variable name="raw_orderby" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_order')"/> <xsl:variable name="orderby" select="substring-before($raw_orderby,'@')"/> <xsl:variable name="tmp" select="substring-after($raw_orderby,'@')"/> <xsl:variable name="orderveer" select="substring-after($tmp,'@')"/> <xsl:variable name="columns" select="$header/column"/> <xsl:variable name="step1" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_limit')"/> <xsl:variable name="step"> <xsl:choose> <xsl:when test="$step1!=''"> <xsl:value-of select="$step1"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$header/@step"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="type" select="$header/@type"/> <xsl:variable name="width" select="$header/@width"/> <xsl:variable name="height" select="$header/@height"/> <xsl:variable name="limit" select="$header/@limit"/> <xsl:variable name="mode" select="$header/@mode"/> <xsl:variable name="alternation_key" select="$header/@alternation_key"/> <xsl:variable name="display_mode1" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_mode')"/> <xsl:variable name="display_mode"> <xsl:choose> <xsl:when test="$display_mode1!=''"> <xsl:value-of select="$display_mode1"/> </xsl:when> <xsl:otherwise>row</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$type='Details'"> <xsl:variable name="dataset" select="DataSet"/> <table class="data_realm_table"> <tr> <xsl:for-each select="$header/group"> <td valign="top"> <table class="WebBox_group" cellpadding="0" cellspacing="0"> <xsl:if test="@caption!=''"> <tr> <td colspan="2" class="WebBox_caption WebBox_group_caption"> <xsl:value-of select="@caption"/> </td> </tr> </xsl:if> <xsl:for-each select="item"> <xsl:variable name="alternation"> <xsl:choose> <xsl:when test="position() mod 2 = 0">_row_1</xsl:when> <xsl:otherwise>_row_2</xsl:otherwise> </xsl:choose> </xsl:variable> <tr class="{concat('data_body',$alternation)}"> <xsl:if test="string-length(@caption) > 0"> <td class="WebBox_group_item_caption"> <xsl:value-of select="@caption"/> </td> </xsl:if> <xsl:call-template name="RenderDataSetAttribute"> <xsl:with-param name="item" select="."/> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="align" select="'left'"/> <xsl:with-param name="class" select="'WebBox_group_item_value'"/> </xsl:call-template> </tr> </xsl:for-each> </table> </td> </xsl:for-each> </tr> </table> <xsl:apply-templates select="$body" mode="user"> <xsl:with-param name="dataset" select="$dataset"/> </xsl:apply-templates> </xsl:when> <xsl:when test="$type='DataTable'"> <div class="data_realm_table"> <xsl:if test="$header/@checkbox = 'yes' and count(./DataSet) > 0"> <input type="hidden" name="{$webbox}[table_id]" value=""/> </xsl:if> <div class="data_table_wrapper" valign="top"> <xsl:if test="$height != ''"> <xsl:attribute name="height"> <xsl:value-of select="concat(height,'px')"/> </xsl:attribute> </xsl:if> <table cellspacing="0" cellpadding="2"> <xsl:attribute name="class"> <xsl:value-of select="'data_table'"/> <xsl:if test="$header/*/@role = 'primary'"> <xsl:value-of select="' with_primary_role'"/> </xsl:if> </xsl:attribute> <xsl:if test="$width != ''"> <xsl:attribute name="width"> <xsl:value-of select="concat(width,'px')"/> </xsl:attribute> </xsl:if> <xsl:if test="(not($header/@header) or $header/@header!='no') and ($display_mode='row' or $type!='DataTable')"> <thead> <xsl:call-template name="DataHeader"> <xsl:with-param name="data" select="."/> <xsl:with-param name="header" select="$header"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="sortable"> <xsl:if test="$limit > 0"> <xsl:value-of select="'false'"/> </xsl:if> </xsl:with-param> </xsl:call-template> </thead> </xsl:if> <tbody> <xsl:choose> <xsl:when test="$type='DataTable' and $mode='user'"> <xsl:for-each select="DataSet"> <xsl:call-template name="RenderUserDataSet"> <xsl:with-param name="dataset" select="."/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="type" select="$type"/> <xsl:with-param name="display_mode" select="$display_mode"/> <xsl:with-param name="columns" select="$columns"/> <xsl:with-param name="header" select="$header"/> </xsl:call-template> </xsl:for-each> </xsl:when> <xsl:when test="$type='DataTable' and $display_mode!='col'"> <xsl:choose> <xsl:when test="../Header/Filter/limit or $step='' or $step < 1"> <xsl:for-each select="DataSet[$step = '' or $step < 1 or position() <= $step]"> <xsl:call-template name="RenderDataSet"> <xsl:with-param name="dataset" select="."/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="type" select="$type"/> <xsl:with-param name="display_mode" select="$display_mode"/> <xsl:with-param name="columns" select="$columns"/> <xsl:with-param name="header" select="$header"/> <xsl:with-param name="alternation_key" select="$alternation_key"/> </xsl:call-template> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:for-each select="DataSet[($start < position()) and (position() <= ($start + $step))]"> <xsl:call-template name="RenderDataSet"> <xsl:with-param name="dataset" select="."/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="type" select="$type"/> <xsl:with-param name="display_mode" select="$display_mode"/> <xsl:with-param name="columns" select="$columns"/> <xsl:with-param name="header" select="$header"/> <xsl:with-param name="alternation_key" select="$alternation_key"/> </xsl:call-template> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="$type='DataTable' and $display_mode='col'"> <xsl:choose> <xsl:when test="../Header/Filter/limit or $step='' or $step < 1"> <xsl:variable name="datasets" select="DataSet "/> <xsl:for-each select="$columns"> <tr> <xsl:variable name="key"> <xsl:choose> <xsl:when test="@value"> <xsl:value-of select="@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@key"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:call-template name="RenderDataColAsRow"> <xsl:with-param name="datasets" select="$datasets"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="type" select="@type"/> <xsl:with-param name="column" select="."/> </xsl:call-template> </tr> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:variable name="datasets" select="DataSet[($start < position()) and (position() <= ($start + $step))]"/> <xsl:value-of select="count(exslt:node-set($datasets))"/> <xsl:value-of select="exslt:node-set($datasets)/@produkt"/> <xsl:for-each select="$columns"> <tr> <xsl:variable name="key"> <xsl:choose> <xsl:when test="@value"> <xsl:value-of select="@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@key"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:call-template name="RenderDataColAsRow"> <xsl:with-param name="datasets" select="$datasets"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="type" select="@type"/> <xsl:with-param name="column" select="."/> </xsl:call-template> </tr> </xsl:for-each> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="../Header/Filter/limit or $step = '' or $step = -1"> <xsl:apply-templates select="DataSet"> <xsl:with-param name="webbox" select="$webbox"/> </xsl:apply-templates> </xsl:when> <xsl:when test="$limit > 0"> <xsl:apply-templates select="DataSet[position() <= $limit]"> <xsl:with-param name="webbox" select="$webbox"/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="DataSet[($start < position()) and (position() <= ($start + $step))]"> <xsl:with-param name="webbox" select="$webbox"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </tbody> </table> <xsl:call-template name="DataFooter"> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="data" select="./DataSet"/> </xsl:call-template> <xsl:apply-templates select="DataError"> <xsl:with-param name="webbox" select="$webbox"/> </xsl:apply-templates> </div> <!--xsl:variable name="size"><xsl:choose><xsl:when test="../Header/Filter/limit"><xsl:value-of select="@rows"/></xsl:when><xsl:otherwise><xsl:value-of select="count(DataSet)"/></xsl:otherwise></xsl:choose></xsl:variable--> <xsl:if test="(($step >0 and ($size - $step)>0) or ($type='DataTable')) and not($step='')"> <div class="data_nav"> <div class="data_nav_content"> <!-- needed for invers skin with shadow ;) --> <!-- STEPHAN: damit man alternative templates zur darstellung der blaetterfunktion nutzen kann tag <tableBrowser> eingebaut --> <xsl:variable name="TableInfo"> <tableInfo/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($TableInfo)" mode="user"> <xsl:with-param name="step" select="$step"/> <xsl:with-param name="start_key" select="$start_key"/> <xsl:with-param name="step_key" select="$step_key"/> <xsl:with-param name="start" select="$start"/> <xsl:with-param name="link" select="concat($d_page,'.',$d_request_type,'?',$webbox,'[fad_t_offset]')"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="size" select="$size"/> <xsl:with-param name="type" select="$type"/> <xsl:with-param name="header" select="$header"/> </xsl:apply-templates> <!-- STEPHAN: damit man alternative templates zur darstellung der blaetterfunktion nutzen kann tag <tableBrowser> eingebaut --> <xsl:variable name="TableBrowser"> <tableBrowser/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($TableBrowser)" mode="user"> <xsl:with-param name="step" select="$step"/> <xsl:with-param name="start_key" select="$start_key"/> <xsl:with-param name="step_key" select="$step_key"/> <xsl:with-param name="start" select="$start"/> <xsl:with-param name="link" select="concat($d_page,'.',$d_request_type,'?',$webbox,'[fad_t_limit]')"/> <xsl:with-param name="dataname" select="$dataname"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="size" select="$size"/> <xsl:with-param name="header" select="$header"/> </xsl:apply-templates> </div> </div> </xsl:if> <xsl:if test="$header/@checkbox = 'yes' and count(./DataSet) > 0"> <div class="data_nav"> <input type="submit" class="button" name="{$webbox}[action][show_delete_list]" value="Löschen"/> <xsl:apply-templates select="../../ControlElement/node()"/> </div> </xsl:if> </div> </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="RenderSteps"> <xsl:param name="size"/> <xsl:param name="steps"/> <xsl:param name="step"/> <xsl:param name="link"/> <xsl:param name="webbox"/> <xsl:variable name="ajax_id"> <xsl:choose> <xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'">ajaxFrame</xsl:when> <xsl:otherwise>ajaxFrame1</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="ajax_frame"> <xsl:if test="$d_ajax_window != 'true' and $d_ajax_window != 'yes'"> <xsl:value-of select="'mainframe'"/> </xsl:if> </xsl:variable> <span class="data_nav_steps"> <xsl:if test="not($step >0 and ($size - $step)>0)"> <xsl:attribute name="class">data_nav_steps no_data_nav</xsl:attribute> </xsl:if> <xsl:value-of select="'Zeilen:'"/> </span> <xsl:for-each select="exslt:node-set($steps)/step/item"> <xsl:choose> <xsl:when test="$step=@step"> <span class="data_nav_button selected"> <xsl:value-of select="@caption"/> </span> </xsl:when> <xsl:otherwise> <xsl:variable name="title"> <xsl:choose> <xsl:when test="@step = '1'">einzeln</xsl:when> <xsl:when test="@step = '-1'">alle auf einmal</xsl:when> <xsl:otherwise> <xsl:value-of select="@step"/> pro Seite </xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$ajax_params}{$link}={@step}" title="{$title}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick">requestNewWebbox('<xsl:value-of select="concat($ajax_params,$link,'=',@step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>')); return false;</xsl:attribute> </xsl:if> <xsl:value-of select="@caption"/> </a> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> <!--xsl:template name="RenderDataTableStepNav"--> <xsl:template match="tableInfo" mode="user"> <xsl:param name="type"/> <xsl:param name="step_key"/> <xsl:param name="start_key"/> <xsl:param name="start"/> <xsl:param name="size"/> <xsl:param name="step"/> <xsl:param name="link"/> <xsl:param name="dataname"/> <xsl:param name="webbox"/> <xsl:if test="$type='DataTable'"> <span align="right" style="float:right;" class="data_nav_entries"> <xsl:choose> <xsl:when test="$size = 1">1 Eintrag</xsl:when> <xsl:otherwise> <xsl:value-of select="$size"/> Einträge </xsl:otherwise> </xsl:choose> </span> </xsl:if> </xsl:template> <xsl:template match="tableBrowser" mode="user"> <xsl:param name="step_key"/> <xsl:param name="start_key"/> <xsl:param name="start"/> <xsl:param name="size"/> <xsl:param name="step"/> <xsl:param name="link"/> <xsl:param name="dataname"/> <xsl:param name="webbox"/> <xsl:param name="header"/> <xsl:if test="($step >0 and ($size - $step)>0)"> <span class="data_nav_pages">Navigation:</span> <xsl:call-template name="DataNav"> <xsl:with-param name="size" select="$size"/> <xsl:with-param name="step" select="$step"/> <xsl:with-param name="start_key" select="$start_key"/> <xsl:with-param name="step_key" select="$step_key"/> <xsl:with-param name="start" select="$start"/> <xsl:with-param name="webbox" select="$webbox"/> </xsl:call-template> </xsl:if> <xsl:variable name="steps"> <xsl:choose> <xsl:when test="$d_document/definitions/step[@name = $dataname]"> <xsl:copy-of select="$d_document/definitions/step[@name = $dataname]"/> </xsl:when> <xsl:when test="document('arg:/schema')/*/inveda:header/step[@name = $dataname]"> <xsl:copy-of select="document('arg:/schema')/*/inveda:header/step[@name = $dataname]"/> </xsl:when> <xsl:when test="/*/definitions/step[@name = $dataname]"> <xsl:copy-of select="/*/definitions/step[@name = $dataname]"/> </xsl:when> <xsl:otherwise> <xsl:copy-of select="exslt:node-set($inveda:definitions)/table/datatable/step"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$size > 0"> <xsl:if test="not($header/@step_selectable) or $header/@step_selectable != 'false'"> <xsl:call-template name="RenderSteps"> <xsl:with-param name="size" select="$size"/> <xsl:with-param name="step" select="$step"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="link" select="$link"/> <xsl:with-param name="steps" select="$steps"/> </xsl:call-template> </xsl:if> </xsl:if> <xsl:if test="$header/@csv = 'yes' or $header/@csv = 'true' or $header/@pdf = 'yes' or $header/@pdf = 'true' or $header/@xls = 'yes' or $header/@xlsx = 'true'"> <span class="data_nav_export"> <xsl:value-of select="'Export:'"/> </span> <xsl:if test="$header/@csv = 'yes' or $header/@csv = 'true'"> <a class="data_nav_button" href="{$d_page}.csv" title="CSV-Export">CSV</a> </xsl:if> <xsl:if test="$header/@pdf = 'yes' or $header/@pdf = 'true'"> <a class="data_nav_button" href="{$d_page}.pdf" title="PDF-Export">PDF</a> </xsl:if> <xsl:if test="$header/@xls = 'yes' or $header/@xls = 'true'"> <a class="data_nav_button" href="{$d_page}.xls" title="XLS-Export">XLS</a> </xsl:if> <xsl:if test="$header/@xlsx = 'yes' or $header/@xlsx = 'true'"> <a class="data_nav_button" href="{$d_page}.xlsx" title="XLS-Export">XLSX</a> </xsl:if> </xsl:if> </xsl:template> <xsl:template name="RenderDataTableStepNav"> <xsl:param name="step"/> <xsl:param name="link"/> <xsl:param name="dataname"/> <xsl:param name="webbox"/> <xsl:variable name="steps"> <xsl:choose> <xsl:when test="$d_document/definitions/step[@name = $dataname]"> <xsl:copy-of select="$d_document/definitions/step[@name = $dataname]"/> </xsl:when> <xsl:when test="document('arg:/schema')/*/inveda:header/step[@name = $dataname]"> <xsl:copy-of select="document('arg:/schema')/*/inveda:header/step[@name = $dataname]"/> </xsl:when> <xsl:when test="/*/definitions/step[@name = $dataname]"> <xsl:copy-of select="/*/definitions/step[@name = $dataname]"/> </xsl:when> <xsl:otherwise> <xsl:copy-of select="exslt:node-set($inveda:definitions)/table/datatable/step"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:call-template name="RenderSteps"> <xsl:with-param name="step" select="$step"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="link" select="$link"/> <xsl:with-param name="steps" select="$steps"/> </xsl:call-template> </xsl:template> <xsl:template name="DataFooter"> <xsl:param name="webbox"/> <xsl:param name="dataname"/> <xsl:param name="data"/> <xsl:variable name="footer" select="$d_document/definitions/footer[./@name = $dataname]|document('arg:/schema')/*/inveda:header/footer[@name=$dataname]"/> <xsl:if test="count($footer) > 0"> <xsl:for-each select="$footer"> <table class="data_table" cellspacing="0" cellpadding="0" width="100%"> <xsl:for-each select="row"> <xsl:variable name="key" select="@key"/> <xsl:variable name="value" select="sum($data/@*[name()=$key][.!=''])"/> <tr> <td class="data_label"> <xsl:choose> <xsl:when test="@caption=''"/> <xsl:otherwise> <xsl:value-of select="@caption"/>: </xsl:otherwise> </xsl:choose> </td> <td class="data_footer_last"> <xsl:choose> <xsl:when test="@type='number'"> <xsl:call-template name="RenderNumberElement"> <xsl:with-param name="value" select="$value"/> </xsl:call-template> </xsl:when> <xsl:when test="@type='money'"> <xsl:call-template name="RenderMoneyElement"> <xsl:with-param name="value" select="$value"/> </xsl:call-template> </xsl:when> <xsl:when test="@type='option'"> <xsl:call-template name="RenderOptionElement"> <xsl:with-param name="value" select="$value"/> </xsl:call-template> </xsl:when> <xsl:when test="@type='user'"> <xsl:apply-templates select="." mode="user"> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="value" select="$value"/> <xsl:with-param name="data" select="$data"/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:value-of select="$value"/> </xsl:otherwise> </xsl:choose> </td> </tr> </xsl:for-each> </table> </xsl:for-each> </xsl:if> </xsl:template> <xsl:template match="DataError"> <xsl:param name="webbox"/> <xsl:variable name="id" select="generate-id()"/> <table width="100%" cellspacing="0" cellpadding="0" border="0" id="{$id}"> <tr> <td class="data_body_row_1_error"> <xsl:value-of select="."/> </td> </tr> </table> <xsl:if test="@reload > 0"> <script> <xsl:choose> <xsl:when test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:variable name="ajax_id"> <xsl:choose> <xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:value-of select="'ajaxFrame'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'ajaxFrame1'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="ajax_frame"> <xsl:if test="$d_ajax_window != 'true' and $d_ajax_window != 'yes'"> <xsl:value-of select="'mainframe'"/> </xsl:if> </xsl:variable> window.setTimeout( function () { requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type)"/>?ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(document.getElementById('<xsl:value-of select="$id"/>'),'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(document.getElementById('<xsl:value-of select="$id"/>'),'<xsl:value-of select="$ajax_frame"/>')); }, <xsl:value-of select="@reload * 1000"/> ); </xsl:when> <xsl:otherwise> window.setTimeout( function () { self.location.href = '<xsl:value-of select="concat($d_page,'.',$d_request_type)"/>'; }, <xsl:value-of select="@reload * 1000"/> ); </xsl:otherwise> </xsl:choose> </script> </xsl:if> </xsl:template> <xsl:template name="DataNav"> <xsl:param name="start"/> <xsl:param name="start_key"/> <xsl:param name="step_key"/> <xsl:param name="size"/> <xsl:param name="step"/> <xsl:param name="webbox"/> <xsl:variable name="current_page"> <xsl:value-of select="ceiling(($start+1) div $step)"/> </xsl:variable> <xsl:variable name="last_page"> <xsl:value-of select="ceiling($size div $step)"/> </xsl:variable> <xsl:variable name="end" select="$start+$step"/> <xsl:variable name="ajax_id"> <xsl:choose> <xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:value-of select="'ajaxFrame'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'ajaxFrame1'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="ajax_frame"> <xsl:if test="$d_ajax_window != 'true' and $d_ajax_window != 'yes'"> <xsl:value-of select="'mainframe'"/> </xsl:if> </xsl:variable> <xsl:variable name="skin_dir" select="php:function('constant', 'SKIN_DIR')"/> <xsl:variable name="nav_img" select="concat('/skins/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/images')"/> <xsl:variable name="nav_img_path" select="concat($skin_dir, 'public/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/images/')"/> <span class="data_nav_page"> <xsl:value-of select="'Seite '"/> <span class="data_nav_range"> <xsl:value-of select="concat($current_page,' von ',$last_page)"/> </span> </span> <xsl:if test="number($last_page) > 1"> <!-- Erste Seite + 1 Seite zurück --> <xsl:if test="number($current_page) > 3"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}=0&{$step_key}={$step}" title="Anfang" class="data_nav_button first_page"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=0')"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_first.gif'))"> <img src="{$nav_img}/nav_first.gif" width="7px" height="7px"/> </xsl:when> <xsl:otherwise> <svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555"> <path d="M0 0h2v7H0zm7 7L2.7 3.5 7 0z"/> </svg> </xsl:otherwise> </xsl:choose> </a> </xsl:if> <xsl:if test="number($current_page) > 1"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - $step}&{$step_key}={$step}" title="zurück" class="data_nav_button prev_page"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - $step)"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_prev.gif'))"> <img src="{$nav_img}/nav_prev.gif" width="7px" height="7px"/> </xsl:when> <xsl:otherwise> <svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555"> <path d="M6 7L1.7 3.5 6 0z"/> </svg> </xsl:otherwise> </xsl:choose> </a> </xsl:if> <!-- Falls am Ende angekommen, dann mehr vorherige Seiten anzeigen, um immer auf 5 Buttons zu kommen --> <xsl:if test="number($current_page) = number($last_page) and number($current_page)-4 > 0"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - ($step * 4)}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - ($step * 4))"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)-4"/> </a> </xsl:if> <xsl:if test="number($current_page) > number($last_page)-2 and number($current_page)-3 > 0"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - ($step * 3)}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - ($step * 3))"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)-3"/> </a> </xsl:if> <!-- 2 Seiten vor der aktuellen Seite --> <xsl:if test="number($current_page)-2 > 0"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - ($step * 2)}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - ($step * 2))"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)-2"/> </a> </xsl:if> <xsl:if test="number($current_page)-1 > 0"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - $step}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - $step)"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)-1"/> </a> </xsl:if> <!-- aktuelle Seite --> <span class="data_nav_button selected"> <xsl:value-of select="$current_page"/> </span> <!-- 2 Seiten nach der aktuellen Seite --> <xsl:if test="number($current_page)+1 <= $last_page"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end)"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)+1"/> </a> </xsl:if> <xsl:if test="number($current_page)+2 <= $last_page"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end + $step}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end + $step)"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)+2"/> </a> </xsl:if> <!-- Falls ganz am Anfang, dann mehr Seiten nach der aktuellen Seite darstellen (siehe "Falls am Ende") --> <xsl:if test="number($current_page) < 3 and number($current_page)+3 <= number($last_page)"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end + ($step * 2)}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end + ($step * 2))"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)+3"/> </a> </xsl:if> <xsl:if test="number($current_page) = 1 and number($current_page)+4 <= number($last_page)"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end + ($step* 3)}&{$step_key}={$step}" class="data_nav_button"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end + ($step * 3))"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:value-of select="number($current_page)+4"/> </a> </xsl:if> <!-- 1 Seite weiter + Letzte Seite --> <xsl:if test="number($current_page) < number($last_page)"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end}&{$step_key}={$step}" title="vor" class="data_nav_button next_page"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end)"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_next.gif'))"> <img src="{$nav_img}/nav_next.gif" width="7px" height="7px"/> </xsl:when> <xsl:otherwise> <svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555"> <path d="M1 0l4.3 3.5L1 7z"/> </svg> </xsl:otherwise> </xsl:choose> </a> <xsl:if test="number($current_page) < number($last_page)-2"> <a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$step * (floor(($size - 1) div $step))}&{$step_key}={$step}" title="Ende" class="data_nav_button last_page"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> <xsl:attribute name="onclick"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$step * (floor(($size - 1) div $step)))"/>&<xsl:value-of select="concat($step_key,'=',$step)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_last.gif'))"> <img src="{$nav_img}/nav_last.gif" width="7px" height="7px"/> </xsl:when> <xsl:otherwise> <svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555"> <g> <path transform="rotate(-180 6 3.5)" d="M5 0h2v7H5z"/> <path d="M0 0l4.3 3.5L0 7z"/> </g> </svg> </xsl:otherwise> </xsl:choose> </a> </xsl:if> </xsl:if> </xsl:if> </xsl:template> <xsl:template name="RenderDataSet"> <xsl:param name="columns"/> <xsl:param name="header"/> <xsl:param name="dataset"/> <xsl:param name="webbox"/> <xsl:param name="dataname"/> <xsl:param name="type"/> <xsl:param name="position" select="position()"/> <xsl:param name="display_mode" select="'row'"/> <xsl:param name="alternation_key" select="''"/> <xsl:choose> <xsl:when test="$type='DataTable' and $display_mode='row'"> <xsl:variable name="alternation_value"> <xsl:choose> <xsl:when test="$alternation_key != ''"> <xsl:value-of select="$dataset/@*[name() = $alternation_key]"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$position"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="alternation"> <xsl:choose> <xsl:when test="$alternation_value mod 2 = 0">_row_1</xsl:when> <xsl:otherwise>_row_2</xsl:otherwise> </xsl:choose> </xsl:variable> <tr class="{concat('data_body',$alternation)}"> <xsl:for-each select="$columns"> <xsl:call-template name="RenderDataSetAttribute"> <xsl:with-param name="item" select="."/> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="position" select="$position"/> </xsl:call-template> </xsl:for-each> </tr> </xsl:when> <xsl:when test="$type='DataTable' and $display_mode='block'"> <xsl:variable name="alternation"> <xsl:choose> <xsl:when test="$position mod 2 = 0">_row_1</xsl:when> <xsl:otherwise>_row_2</xsl:otherwise> </xsl:choose> </xsl:variable> <tr> <td colspan="2" height="5"> <img src="/web.images.1pix_trans.gif" width="5" height="5" alt=""/> </td> </tr> <xsl:for-each select="exslt:node-set($columns)"> <tr class="{concat('data_body',$alternation)}"> <xsl:call-template name="RenderDataHeaderElement"> <xsl:with-param name="data" select="$dataset/.."/> <xsl:with-param name="header" select="$header"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="align" select="'right'"/> <xsl:with-param name="dataname" select="$dataname"/> </xsl:call-template> <xsl:call-template name="RenderDataSetAttribute"> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="position" select="$position"/> <xsl:with-param name="align" select="'left'"/> </xsl:call-template> </tr> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="exslt:node-set($dataset)"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="RenderDataColAsRow"> <xsl:param name="datasets"/> <xsl:param name="webbox"/> <xsl:param name="dataname"/> <xsl:param name="type"/> <xsl:variable name="key"> <xsl:choose> <xsl:when test="@value"> <xsl:value-of select="@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@key"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:call-template name="RenderDataHeaderElement"> <xsl:with-param name="data" select="$datasets"/> <xsl:with-param name="key" select="$key"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="dataname" select="$dataname"/> </xsl:call-template> <xsl:for-each select="$datasets"> <xsl:call-template name="RenderDataSetAttribute"> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="dataset" select="."/> <xsl:with-param name="key" select="$key"/> <xsl:with-param name="type" select="$type"/> <xsl:with-param name="position" select="position()"/> </xsl:call-template> </xsl:for-each> </xsl:template> <xsl:template name="RenderDataSetAttribute"> <xsl:param name="dataset"/> <xsl:param name="position"/> <xsl:param name="webbox"/> <xsl:param name="key"/> <xsl:param name="type"/> <xsl:param name="align"/> <xsl:param name="class"/> <xsl:param name="item"/> <td> <!-- René: auf Dirks Wunsch nowrap wieder eingefügt, Parameter soll bei nicht passenden Ansichten individuell gesetzt werden --> <!-- Frank: nowrap ist standardmäßig wieder deaktiviert außer der Parameter ist bei nicht passenden Ansichten individuell auf "yes" gesetzt. nowrap ist per css abhängig vom viewport gesetzt. --> <xsl:if test="@nowrap = 'yes'"> <xsl:attribute name="nowrap">nowrap</xsl:attribute> </xsl:if> <xsl:variable name="render_type"> <xsl:choose> <xsl:when test="$type"> <xsl:value-of select="$type"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@type"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="render_key"> <xsl:choose> <xsl:when test="$key"> <xsl:value-of select="$key"/> </xsl:when> <xsl:when test="@value"> <xsl:value-of select="@value"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@key"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$class"> <xsl:attribute name="class"> <xsl:value-of select="$class"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="class"> <xsl:value-of select="'data_table_cell'"/> <xsl:if test="string-length($render_key) > 0"> <xsl:value-of select="concat(' column_',$render_key)"/> </xsl:if> <xsl:if test="string-length(@role) > 0"> <xsl:value-of select="concat(' role_',@role)"/> </xsl:if> <xsl:choose> <xsl:when test="$render_type = 'action'"> <xsl:value-of select="concat(' column_',$render_type, ' ',$render_type)"/> </xsl:when> <xsl:when test="$render_type = 'status'"> <xsl:value-of select="concat(' column_',$render_type, ' ',$render_type)"/> </xsl:when> </xsl:choose> </xsl:attribute> <xsl:if test="string-length(@caption) > 0"> <xsl:attribute name="data-colname"> <xsl:value-of select="@caption"/> </xsl:attribute> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:variable name="render_align"> <xsl:choose> <xsl:when test="$align"> <xsl:value-of select="$align"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@align"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="string-length($render_align) > 0"> <xsl:attribute name="align"> <xsl:value-of select="$render_align"/> </xsl:attribute> </xsl:if> <xsl:variable name="render_format"> <xsl:value-of select="@format"/> </xsl:variable> <xsl:variable name="description_key"> <xsl:choose> <xsl:when test="@description"> <xsl:value-of select="@description"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@render_key"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="description"> <xsl:value-of select="exslt:node-set($dataset)/@*[name()=$description_key]"/> </xsl:variable> <xsl:variable name="maxlength"> <xsl:choose> <xsl:when test="@maxlength"> <xsl:value-of select="@maxlength"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="render_value"> <xsl:value-of select="exslt:node-set($dataset)/@*[name()=$render_key]"/> </xsl:variable> <xsl:if test="@prerender = 'yes'"> <xsl:apply-templates select="." mode="prerender"> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="position" select="$position"/> </xsl:apply-templates> </xsl:if> <xsl:choose> <xsl:when test="@mode='user'"> <xsl:apply-templates select="." mode="user"> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="position" select="$position"/> </xsl:apply-templates> </xsl:when> <xsl:when test="$render_type='tag'"> <xsl:apply-templates select="exslt:node-set($dataset)/*[name()=$render_key]"/> </xsl:when> <xsl:when test="$render_type='text'"> <xsl:call-template name="RenderDataElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="title" select="$description"/> <xsl:with-param name="maxlength" select="$maxlength"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='date'"> <xsl:call-template name="RenderDateElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="title" select="$description"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='datetime'"> <xsl:call-template name="RenderDateTimeElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='email'"> <xsl:call-template name="RenderMailDataElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='bool'"> <xsl:call-template name="RenderBooleanDataElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='number'"> <xsl:call-template name="RenderNumberElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> <xsl:with-param name="format" select="$render_format"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='vcard'"> <xsl:call-template name="RenderVCardElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='money'"> <xsl:call-template name="RenderMoneyElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='popup'"> <xsl:call-template name="popup-link"> <xsl:with-param name="site" select="@site"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="target"> <xsl:variable name="target_id" select="@target_id"/> <xsl:choose> <xsl:when test="@target_id!='' and $dataset/@*[name()=$target_id]!=''"> <xsl:value-of select="concat(@target,'/',$dataset/@*[name()=$target_id])"/> </xsl:when> <xsl:when test="not(@target_id) and $dataset/@nr!=''"> <xsl:value-of select="concat(@target,'/',$dataset/@nr)"/> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> </xsl:with-param> <xsl:with-param name="caption" select="$render_value"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='plink'"> <xsl:call-template name="RenderLinkElement"> <xsl:with-param name="value"> <xsl:variable name="target_id" select="@target_id"/> <xsl:choose> <xsl:when test="@target_id!='' and $dataset/@*[name()=$target_id]!=''"> <xsl:value-of select="concat(@target,'/',$dataset/@*[name()=$target_id],'/',@site)"/> </xsl:when> <xsl:when test="not(@target_id) and $dataset/@nr!=''"> <xsl:value-of select="concat(@target,'/',$dataset/@nr,'/',@site)"/> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> </xsl:with-param> <xsl:with-param name="caption" select="$render_value"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='option'"> <xsl:call-template name="RenderOptionElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="item" select="$item"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='percent'"> <xsl:call-template name="RenderPercentElement"> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> </xsl:call-template> </xsl:when> <xsl:when test="$render_type='link'"> <xsl:call-template name="RenderLinkElement"> <xsl:with-param name="caption" select="$render_value"/> <xsl:with-param name="value" select="$render_value"/> <xsl:with-param name="align" select="$render_align"/> <xsl:with-param name="link_target"> <xsl:if test="@target!=''"> <xsl:value-of select="@target"/> </xsl:if> </xsl:with-param> <xsl:with-param name="caption"> <xsl:if test="@title_key!=''"> <xsl:variable name="title_key" select="@title_key"/> <xsl:value-of select="exslt:node-set($dataset)/@*[name()=$title_key]"/> </xsl:if> </xsl:with-param> </xsl:call-template> </xsl:when> <!-- entry's action links /--> <xsl:when test="$render_type='action'"> <xsl:attribute name="align"> <xsl:choose> <xsl:when test="$render_align != ''"> <xsl:value-of select="$render_align"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'right'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:variable name="primary_key"> <xsl:choose> <xsl:when test="@primary_key"> <xsl:value-of select="@primary_key"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'nr'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="linkBox"> <LinkBox id="{$dataset/@*[name()=$primary_key]}"> <xsl:for-each select="action"> <xsl:variable name="action_type" select="@type"/> <xsl:variable name="action" select="exslt:node-set($inveda:definitions)/actions/action[@type=$action_type]"/> <xsl:variable name="pagename"> <xsl:choose> <xsl:when test="$action/@page!=''"> <xsl:value-of select="$action/@page"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$d_page"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$action/@type='details'"> <xsl:if test="document(concat('ibs:/page_allowed,',$action/@page))/result/@value='yes'"> <xsl:variable name="jsclick"> <xsl:value-of select="concat('/tab/',@table,'/id/',exslt:node-set($dataset)/@*[name()=$primary_key],'/',$pagename,'.ajax')"/> </xsl:variable> <xsl:call-template name="RenderActionElement"> <xsl:with-param name="icon" select="$action/@icon"/> <xsl:with-param name="title" select="$action/@title"/> <xsl:with-param name="caption" select="$action"/> <xsl:with-param name="class" select="$action/@class"/> <xsl:with-param name="jsclick" select="$jsclick"/> <xsl:with-param name="link_type" select="'ajax'"/> <xsl:with-param name="link" select="concat('/tab/',@table,'/id/',exslt:node-set($dataset)/@*[name()=$primary_key],'/',$pagename)"/> </xsl:call-template> </xsl:if> </xsl:when> <xsl:when test="$action/@type='mark'"> <i class="ii-checkbox"> <input type="checkbox" id="{$webbox}.mark_element{exslt:node-set($dataset)/@*[name()=$primary_key]}" name="{$webbox}[marked_element][]" value="{exslt:node-set($dataset)/@*[name()=$primary_key]}" title="Markieren" autocomplete="off"/> </i> </xsl:when> <xsl:when test="$action/@type or @icon!=''"> <xsl:variable name="dialog"> <xsl:choose> <xsl:when test="@dialog"> <xsl:value-of select="@dialog"/> </xsl:when> <xsl:when test="../@dialog"> <xsl:value-of select="../@dialog"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="jsclick"> <xsl:if test="@ajax = 'true' or $action/@ajax='true'"> <xsl:value-of select="concat('/box/',$webbox,'/dialog/',$dialog,'/id/',exslt:node-set($dataset)/@*[name()=$primary_key],'/',$pagename,'.ajax?action=show_',@type,'&',$webbox,'[action]=show_',@type)"/> </xsl:if> </xsl:variable> <xsl:variable name="link_type"> <xsl:if test="@ajax = 'true' or $action/@ajax='true'"> <xsl:value-of select="'ajax'"/> </xsl:if> </xsl:variable> <xsl:variable name="icon"> <xsl:choose> <xsl:when test="$action/@icon!=''"> <xsl:value-of select="$action/@icon"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@icon"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="title"> <xsl:choose> <xsl:when test="$action/@title!=''"> <xsl:value-of select="$action/@title"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@title"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="action_class"> <xsl:choose> <xsl:when test="$action/@class!=''"> <xsl:value-of select="$action/@class"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@class"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:call-template name="RenderActionElement"> <xsl:with-param name="icon" select="$icon"/> <xsl:with-param name="title" select="$title"/> <xsl:with-param name="caption" select="$action"/> <xsl:with-param name="class" select="$action_class"/> <xsl:with-param name="jsclick" select="$jsclick"/> <xsl:with-param name="link_type" select="$link_type"/> <xsl:with-param name="link" select="concat('?',$webbox,'[action]=show_',@type,@suffix,'&',$webbox,'[id]=',exslt:node-set($dataset)/@*[name()=$primary_key])"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="user"> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="primary_key" select="$primary_key"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:for-each> </LinkBox> </xsl:variable> <xsl:apply-templates select="exslt:node-set($linkBox)/LinkBox/*"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="user"> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="position" select="$position"/> <xsl:with-param name="align" select="$align"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> <xsl:if test="string-length(@role) > 0"> <button type="button" class="toggle_data_table_row" title="{@role}"> <span>Mehr Details anzeigen</span> </button> </xsl:if> </td> </xsl:template> <xsl:template name="RenderActions"> <xsl:param name="class"/> <xsl:param name="webbox"/> <xsl:param name="dataset"/> <xsl:param name="primary_key"/> <xsl:variable name="type" select="@type"/> <xsl:variable name="action" select="exslt:node-set($inveda:definitions)/actions/action[@type=$type]"/> <xsl:choose> <xsl:when test="$action"> <xsl:call-template name="RenderActionElement"> <xsl:with-param name="class" select="$action/@class"/> <xsl:with-param name="icon" select="$action/@icon"/> <xsl:with-param name="title" select="$action/@title"/> <xsl:with-param name="link" select="concat('?',$webbox,'[action]=show_',@type,@suffix,'&',$webbox,'[id]=',$primary_key)"/> </xsl:call-template> </xsl:when> <xsl:when test="@icon!=''"> <xsl:call-template name="RenderActionElement"> <xsl:with-param name="class" select="$action/@class"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="title" select="@title"/> <xsl:with-param name="link" select="concat('?',$webbox,'[action]=show_',@type,@suffix,'&',$webbox,'[id]=',$primary_key)"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="user"> <xsl:with-param name="dataset" select="$dataset"/> <xsl:with-param name="webbox" select="$webbox"/> <xsl:with-param name="primary_key" select="$primary_key"/> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="RenderActionElement"> <xsl:param name="align"/> <xsl:param name="icon"/> <xsl:param name="title"/> <xsl:param name="class"/> <xsl:param name="caption" select="$title"/> <xsl:param name="link"/> <xsl:param name="link_type"/> <xsl:param name="jsclick"/> <xsl:param name="link_target"/> <xsl:param name="maxlength"/> <xsl:if test="$align != ''"> <xsl:attribute name="align"> <xsl:value-of select="$align"/> </xsl:attribute> </xsl:if> <xsl:variable name="caption1"> <xsl:choose> <xsl:when test="$maxlength > 0 and string-length($caption) > $maxlength"> <xsl:value-of select="concat(substring($caption,0,number($maxlength)-3),'...')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$caption"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$link and $link!=''"> <xsl:variable name="popup_target"> <xsl:choose> <xsl:when test="$link_target!=''"> <xsl:value-of select="$link_target"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'popup'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="real_link"> <xsl:choose> <xsl:when test="$link_type='popup'"> <xsl:value-of select="concat('javascript:window.open("',$link,'","',$popup_target,'","width=300,height=500,left=(screen.width - 400),top=50");',$popup_target,'.focus();self.reload;')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$link"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="real_jsclick"> <xsl:choose> <xsl:when test="$link_type='ajax'"> <xsl:value-of select="concat('requestWebbox("',$jsclick,'");return false;')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$jsclick"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$real_link}" title="{$title}"> <xsl:if test="$link_target"> <xsl:attribute name="target"><xsl:value-of select="$link_target"/></xsl:attribute> </xsl:if> <xsl:if test="$jsclick"> <xsl:attribute name="onclick"><xsl:value-of select="$real_jsclick"/></xsl:attribute> </xsl:if> <xsl:if test="$icon!=''"> <xsl:call-template name="icon"> <xsl:with-param name="icon" select="$icon"/> <xsl:with-param name="title" select="$title"/> <xsl:with-param name="class" select="$class"/> </xsl:call-template> </xsl:if> <xsl:if test="$icon='' and $caption1!=''"> <xsl:value-of select="$caption1"/> </xsl:if> </a> </xsl:when> <xsl:otherwise> <i class="ii ii-{$icon}" title="{$title}" alt="{$title}"><xsl:value-of select="$title"/></i> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="RenderCheckBoxElement"> <xsl:param name="value"/> <xsl:param name="nowrap" select="'nowrap'"/> <xsl:param name="webbox"/> <xsl:param name="key"/> <input type="checkbox" class="checkbox" name="{concat($webbox,'[table_id][',$key,']')}" value="{$key}"/> <input type="hidden" name="{concat($webbox,'[table_id_name][',$key,']')}" value="{$value}"/> </xsl:template> <xsl:template name="RenderDataElement"> <xsl:param name="title"/> <xsl:param name="value"/> <xsl:param name="description"/> <xsl:param name="maxlength"/> <xsl:param name="nowrap" select="'nowrap'"/> <xsl:choose> <xsl:when test="string-length($title) > 0"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:when> <xsl:when test="$maxlength > 0 and string-length($value) > $maxlength"> <xsl:attribute name="title"> <xsl:value-of select="$value"/> </xsl:attribute> </xsl:when> </xsl:choose> <xsl:choose> <xsl:when test="$maxlength > 0 and string-length($value) > $maxlength"> <xsl:value-of select="concat(substring($value,0,number($maxlength)-3),'...')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$value"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="RenderBooleanDataElement"> <xsl:param name="title"/> <xsl:param name="align"/> <xsl:param name="value"/> <xsl:param name="nowrap" select="'nowrap'"/> <xsl:attribute name="align"> <xsl:choose> <xsl:when test="$align != ''"> <xsl:value-of select="$align"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'left'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="$title"> <xsl:attribute name="title"><xsl:value-of select="$title"/></xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="$value = 't' or $value = 'true' or $value = 'yes' or $value = '1'"><i class="ii ii-ok" title="Ja">Ja</i></xsl:when> <xsl:when test="$value = 'f' or $value = 'false' or $value = 'no' or $value = '0'"><i class="ii ii-no" title="Nein">Nein</i></xsl:when> <xsl:when test="$value != ''"><i class="ii ii-ok" title="Ja">Ja</i></xsl:when> <xsl:otherwise><i class="ii ii-no" title="Nein">Nein</i></xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="RenderDateElement"> <xsl:param name="value"/> <xsl:param name="title"/> <xsl:param name="nowrap" select="'nowrap'"/> <xsl:if test="$title"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:if> <xsl:if test="$value != ''"> <xsl:value-of select="concat(substring($value,9,2),'.',substring($value,6,2),'.',substring-before($value,'-'))"/> </xsl:if> </xsl:template> <xsl:template name="RenderDateTimeElement"> <xsl:param name="value"/> <xsl:param name="title"/> <xsl:param name="nowrap" select="'nowrap'"/> <xsl:if test="$title"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:if> <xsl:variable name="day" select="concat(substring($value,9,2),'.',substring($value,6,2),'.',substring-before($value,'-'))"/> <xsl:variable name="time" select="substring($value,12,5)"/> <xsl:if test="$value!=''"> <xsl:value-of select="concat($day,' ',$time)"/> </xsl:if> </xsl:template> <xsl:template name="RenderRFC822DateTime"> <xsl:param name="value"/> <xsl:variable name="timestamp" select="php:functionString('strtotime',$value)"/> <xsl:variable name="rfc822time" select="php:functionString('date','r',$timestamp)"/> <xsl:value-of select="$rfc822time"/> </xsl:template> <xsl:template name="RenderVCardElement"> <xsl:param name="value"/> <i class="ii ii-details" onclick="requestWebbox('{$value}.vc'); return false;" alt="" title="Visitenkarte anzeigen">Visitenkarte anzeigen</i> </xsl:template> <xsl:template name="RenderOptionElement"> <xsl:param name="value"/> <xsl:param name="title"/> <xsl:param name="align"/> <xsl:param name="item"/> <xsl:param name="dataset"/> <xsl:choose> <xsl:when test="$item/options/option[@value=$value]"> <xsl:apply-templates select="$item/options/option[@value=$value]/node()"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="$item/options/default/node()"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="RenderMoneyElement"> <xsl:param name="value"/> <xsl:param name="title"/> <xsl:param name="currency" select="'€'"/> <xsl:param name="align"/> <xsl:param name="prefix"/> <xsl:param name="format"/> <xsl:attribute name="align"> <xsl:choose> <xsl:when test="$align!=''"> <xsl:value-of select="$align"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'right'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="$title"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:if> <!-- Andre: wird für die Invers-Abfragen in lesbarem 1000er-Format benötigt --> <xsl:variable name="money_format"> <xsl:choose> <xsl:when test="string-length($format) > 0"> <xsl:value-of select="$format"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'0,00'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <nobr> <xsl:if test="$value != ''"> <xsl:value-of select="$prefix"/> <xsl:value-of select="concat(format-number($value ,$money_format),' ',$currency)"/> </xsl:if> </nobr> </xsl:template> <xsl:template name="RenderNumberElement"> <xsl:param name="value"/> <xsl:param name="align"/> <xsl:param name="title"/> <xsl:param name="format"/> <xsl:attribute name="align"> <xsl:choose> <xsl:when test="$align != ''"> <xsl:value-of select="$align"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'right'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="$title"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:if> <xsl:if test="$value != ''"> <xsl:choose> <xsl:when test="$format != ''"> <xsl:value-of select="format-number($value, $format)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$value"/> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <xsl:template name="RenderPercentElement"> <xsl:param name="value"/> <xsl:param name="align"/> <xsl:param name="title"/> <xsl:attribute name="align"> <xsl:choose> <xsl:when test="$align != ''"> <xsl:value-of select="$align"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'right'"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="$title"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:if> <xsl:if test="$value != ''"> <xsl:value-of select="format-number($value,'0,00')"/><xsl:value-of select="' %'"/> </xsl:if> </xsl:template> <xsl:template name="RenderLinkElement"> <xsl:param name="value"/> <xsl:param name="title"/> <xsl:param name="caption"/> <xsl:param name="align" select="'left'"/> <xsl:param name="nowrap" select="'nowrap'"/> <xsl:param name="link_target"/> <xsl:variable name="link"> <xsl:choose> <xsl:when test="@link"> <xsl:value-of select="@link"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$value"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="substring($link,4)!='http' or $link='' or document(concat('ibs:/page_allowed,',$link))/result/@value='yes'"> <xsl:if test="$value != ''"> <a href="{$link}"> <xsl:if test="$link_target"> <xsl:attribute name="target"> <xsl:value-of select="$link_target"/> </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="@title"> <xsl:value-of select="@title"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$caption"/> </xsl:otherwise> </xsl:choose> </a> </xsl:if> </xsl:if> </xsl:template> <xsl:template name="RenderDataHeaderElement"> <xsl:param name="data"/> <xsl:param name="webbox"/> <xsl:param name="dataname"/> <xsl:param name="sortable"/> <xsl:param name="align"/> <xsl:variable name="start_key" select="concat($webbox,'[fad_t_offset]')"/> <xsl:variable name="step_key" select="concat($webbox,'[fad_t_limit]')"/> <xsl:variable name="start_dataname" select="concat($dataname,'_start')"/> <xsl:variable name="start"> <xsl:choose> <xsl:when test="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_offset')"> <xsl:value-of select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_offset')"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="orderby_key" select="concat($webbox,'[fad_t_order]')"/> <xsl:variable name="raw_orderby"> <xsl:choose> <xsl:when test="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_order')"> <xsl:value-of select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_order')"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="orderby" select="substring-before($raw_orderby,'@')"/> <xsl:variable name="tmp" select="substring-after($raw_orderby,'@')"/> <xsl:variable name="order" select="substring-after($tmp,'@')"/> <xsl:variable name="orderveer"> <xsl:choose> <xsl:when test="$order=''"> <xsl:value-of select="@order"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$order"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="is_sortable"> <xsl:choose> <xsl:when test="$sortable = 'false'">false</xsl:when> <xsl:when test="count($data/*) < 2">false</xsl:when> <xsl:otherwise> <xsl:value-of select="@sortable"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="is_disabled"> <xsl:if test="$is_sortable='false' or @type='action'">_disabled</xsl:if> </xsl:variable> <xsl:variable name="is_selected"> <xsl:if test="@key=$orderby">_selected</xsl:if> </xsl:variable> <xsl:variable name="mime"> <xsl:choose> <xsl:when test="@order-type"> <xsl:value-of select="@order-type"/> </xsl:when> <xsl:when test="@type='money'">number</xsl:when> <xsl:when test="@type='number'">number</xsl:when> <xsl:otherwise>text</xsl:otherwise> </xsl:choose> </xsl:variable> <!--Diese Leerspalte ist wichtig für alle DataListDialoge (interner Bereich)! --> <xsl:if test="@caption=''"> <th class="data_header"> <xsl:attribute name="class"> <xsl:value-of select="'data_header'"/> <xsl:if test="string-length(@key) > 0"> <xsl:value-of select="concat(' column_',@key)"/> </xsl:if> <xsl:if test="@type = 'action'"> <xsl:value-of select="' column_action'"/> </xsl:if> <xsl:if test="string-length(@role) > 0"> <xsl:value-of select="concat(' role_',@role)"/> </xsl:if> </xsl:attribute> </th> </xsl:if> <xsl:if test="@caption!=''"> <th> <xsl:attribute name="class"> <xsl:value-of select="'data_header'"/> <xsl:value-of select="$is_selected"/> <xsl:value-of select="$is_disabled"/> <xsl:if test="$is_sortable != 'false'"> <xsl:value-of select="' sortable'"/> </xsl:if> <xsl:if test="string-length(@key) > 0"> <xsl:value-of select="concat(' column_',@key)"/> </xsl:if> <xsl:if test="@type = 'action'"> <xsl:value-of select="' column_action'"/> </xsl:if> <xsl:if test="string-length(@role) > 0"> <xsl:value-of select="concat(' role_',@role)"/> </xsl:if> </xsl:attribute> <xsl:if test="not(@nowrap='false')"> <xsl:attribute name="nowrap">nowrap</xsl:attribute> </xsl:if> <xsl:attribute name="align"> <xsl:choose> <xsl:when test="@align!=''"> <xsl:value-of select="@align"/> </xsl:when> <xsl:when test="$align!=''"> <xsl:value-of select="$align"/> </xsl:when> <xsl:when test="@type='money'">right</xsl:when> <xsl:when test="@type='action'">right</xsl:when> <!--<xsl:when test="@type='number'">right</xsl:when> --> <xsl:otherwise>left</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="@width"> <xsl:attribute name="width"><xsl:value-of select="@width"/>px</xsl:attribute> </xsl:if> <xsl:variable name="ajax_id"> <xsl:choose> <xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'">ajaxFrame</xsl:when> <xsl:otherwise>ajaxFrame1</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="ajax_frame"> <xsl:choose> <xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'"></xsl:when> <xsl:otherwise>mainframe</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="@header='user'"> <xsl:apply-templates select="." mode="user_header"/> </xsl:when> <xsl:when test="$is_sortable='false' or @type='action'"> <xsl:value-of select="@caption"/> </xsl:when> <xsl:when test="@key=$orderby"> <xsl:variable name="sort"> <xsl:choose> <xsl:when test="$orderveer = 'descending'">_desc</xsl:when> <xsl:when test="$orderveer = 'ascending'">_asc</xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="veer"> <xsl:choose> <xsl:when test="$orderveer = 'ascending'">descending</xsl:when> <xsl:when test="$orderveer = 'descending'"/> <xsl:otherwise>ascending</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="order_value"> <xsl:if test="$veer!=''"> <xsl:value-of select="concat(@key, '@', $mime, '@', $veer)"/> </xsl:if> </xsl:variable> <xsl:variable name="onclick"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page)"/>.ajax?<xsl:value-of select="concat($webbox,'[fad_t_offset]=0')"/>&<xsl:value-of select="concat($orderby_key,'=',$order_value)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>','', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:if> </xsl:variable> <a href="?{$webbox}[fad_t_offset]=0&{$orderby_key}={$order_value}"> <xsl:attribute name="class"> <xsl:value-of select="'data_header_link_selected'"/> <xsl:value-of select="concat(' sort',$sort)"/> <xsl:if test="string-length(@key) > 0"> <xsl:value-of select="concat(' column_',@key)"/> </xsl:if> <xsl:if test="string-length(@role) > 0"> <xsl:value-of select="concat(' role_',@role)"/> </xsl:if> </xsl:attribute> <xsl:attribute name="onclick"> <xsl:value-of select="$onclick"/> </xsl:attribute> <xsl:value-of select="@caption"/> <img src="/web.images.sort{$sort}.png" alt="" class="data_col_nav data_col_sort{$sort}"/> </a> </xsl:when> <xsl:otherwise> <xsl:variable name="order_value" select="concat(@key, '@', $mime, '@ascending')"/> <xsl:variable name="onclick"> <xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'"> requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page)"/>.ajax?<xsl:value-of select="concat($webbox,'[fad_t_offset]=0')"/>&<xsl:value-of select="concat($orderby_key,'=',$order_value)"/>&ajaxmode=data&<xsl:value-of select="concat('box_name=',$webbox)"/>','', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false; </xsl:if> </xsl:variable> <a href="?{$webbox}[fad_t_offset]=0&{$orderby_key}={$order_value}"> <xsl:attribute name="class"> <xsl:value-of select="'data_header_link'"/> <xsl:value-of select="' sort'"/> <xsl:if test="string-length(@key) > 0"> <xsl:value-of select="concat(' column_',@key)"/> </xsl:if> <xsl:if test="string-length(@role) > 0"> <xsl:value-of select="concat(' role_',@role)"/> </xsl:if> </xsl:attribute> <xsl:attribute name="onclick"> <xsl:value-of select="$onclick"/> </xsl:attribute> <xsl:value-of select="@caption"/> <img src="/web.images.sort.png" alt="" class="data_col_nav data_col_sort"/> </a> </xsl:otherwise> </xsl:choose> <xsl:if test="@multidelete='true'"> <input class="data_header_mark_all" title="alle markieren" name="mark_all" type="checkbox" checked="checked"> <xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked','checked').attr('style','border:solid 1px #f00;');}return false;</xsl:attribute> </input> <input class="data_header_unmark_all" title="keins markieren" name="unmark_all" type="checkbox"> <xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked',false).attr('style','border:dotted 2px #00f;');}return false;</xsl:attribute> </input> <a title="Markierte löschen" onclick="document.getElementById('{$webbox}_autosubmit').name='{$webbox}[action][show_multidelete]';document.getElementById('{$webbox}_autosubmit').click();return false;" href="#"> <i class="ii ii-delete" alt="Markierte löschen" title="Markierte löschen">Markierte löschen</i> </a> </xsl:if> <xsl:if test="@multiselect and not(@multiselect='')"> <input class="data_header_mark_all" title="alle markieren" name="mark_all" type="checkbox" checked="checked"> <xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked','checked').attr('style','border:solid 1px #f00;');}return false;</xsl:attribute> </input> <input class="data_header_unmark_all" title="keins markieren" name="unmark_all" type="checkbox"> <xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked',false).attr('style','border:dotted 2px #00f;');}return false;</xsl:attribute> </input> <a title="Markierte auswählen" onclick="document.getElementById('{$webbox}_autosubmit').name='{$webbox}[action][show_multiselect]';document.getElementById('{$webbox}_autosubmit').click();return false;" href="#"> <i class="ii ii-{@multiselect}" alt="Markierte auswählen" title="Markierte auswählen">Markierte auswählen</i> </a> </xsl:if> <xsl:if test="multiselect"> <input class="data_header_mark_all" title="alle markieren" name="mark_all" type="checkbox" checked="checked"> <xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked','checked').attr('style','border:solid 1px #f00;');}return false;</xsl:attribute> </input> <input class="data_header_unmark_all" title="keins markieren" name="unmark_all" type="checkbox"> <xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked',false).attr('style','border:dotted 2px #00f;');}return false;</xsl:attribute> </input> <xsl:for-each select="multiselect"> <xsl:variable name="apos">'</xsl:variable> <xsl:variable name="onclick"> <xsl:value-of select="concat('document.getElementById(', $apos, $webbox, '_autosubmit', $apos, ').name=', $apos, $webbox, '[action][', @action, ']', $apos, ';')"/> <xsl:if test="@form_action != ''"> <xsl:value-of select="concat('action = document.getElementById(', $apos, $webbox, $apos, ').action;')"/> <xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').action = ', $apos, @form_action, $apos, ';')"/> </xsl:if> <xsl:if test="@target != ''"> <xsl:value-of select="concat('target = document.getElementById(', $apos, $webbox, $apos, ').target;')"/> <xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').target = ', $apos, @target, $apos, ';')"/> </xsl:if> <xsl:value-of select="concat('document.getElementById(', $apos, $webbox, '_autosubmit', $apos, ').click();')"/> <xsl:if test="@target != ''"> <xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').target = target;')"/> </xsl:if> <xsl:if test="@form_action != ''"> <xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').action = action;')"/> </xsl:if> <xsl:value-of select="'return false;'"/> </xsl:variable> <a title="{@title}" onclick="{$onclick}" href="#"> <i class="ii ii-{@icon}" alt="{@title}" title="{@title}"> <xsl:value-of select="@title"/> </i> </a> </xsl:for-each> </xsl:if> </th> </xsl:if> </xsl:template> <xsl:template name="icon"> <xsl:param name="icon"/> <xsl:param name="alt"/> <xsl:param name="title"/> <xsl:param name="class"/> <i> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$class != ''"> <xsl:value-of select="concat($class,' ii ii-',$icon)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('ii ii-',$icon)"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="$title != ''"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:if> <xsl:if test="$alt != ''"> <xsl:attribute name="alt"> <xsl:value-of select="$alt"/> </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="$title!=''"> <xsl:value-of select="$title"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$icon"/> </xsl:otherwise> </xsl:choose> </i> </xsl:template> </xsl:stylesheet>";s:4:"/lib";s:254203:"<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:php="http://php.net/xsl" xmlns:inveda="http://www.inveda.de" xmlns:fad="http://www.fad-server.org" xmlns:exslt="http://exslt.org/common" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:str="http://exslt.org/strings" xmlns:xlink="http://www.w3.org/1999/xlink" exclude-result-prefixes="php inveda exslt str xs fb fad xlink"> <!--xsl:output method="xml" omit-xml-declaration="yes" indent="no" encoding="utf-8"/--> <xsl:decimal-format decimal-separator="," grouping-separator="."/> <xsl:variable name="meta_header" select="document('arg:/inveda_cm' )/inveda_cm/meta_header"/> <xsl:variable name="page" select="document('arg:/inveda_cm' )/inveda_cm/page"/> <xsl:variable name="page_para" select="document('arg:/inveda_cm' )/inveda_cm/page_para"/> <xsl:variable name="session" select="document('arg:/inveda_cm' )/inveda_cm/session"/> <xsl:variable name="request_type" select="document('arg:/inveda_cm' )/inveda_cm/request_type"/> <xsl:variable name="ajax_window" select="content/@ajax_window"/> <xsl:variable name="skin_defs" select="php:function('web_Session::getSkinParams')"/> <xsl:variable name="cookieconsent_display" select="php:function('mandant_Holder::getCurrentParam','cookieconsent_display')"/> <xsl:variable name="is_secure" select="boolean(php:function('web_Session::isSecure'))"/> <xsl:variable name="document" select="/*"/> <xsl:variable name="ivwszm_cdata" select="document('ibs:/holder_param,ivwszm_cdata')/content/@value"/> <xsl:variable name="skin_lazyload" select="$skin_defs/lazyload='yes'"/> <xsl:variable name="c_holderlogin" select="php:function('web_Session::getCurrentHolderLogin')"/> <xsl:variable name="languages" select="php:function('system_Language::getAvailableLanguages')"/> <xsl:variable name="svg_embedded" select="$skin_defs/svg/embedded='yes'"/> <xsl:variable name="cmetadata" select="/content/metadata"/> <xsl:template match="meta_redirect"> <xsl:if test=". != ''"> <script type="text/javascript"> newsite = window.open("<xsl:value-of select="."/>","newsite"); </script> </xsl:if> </xsl:template> <xsl:variable name="meta-description"> <xsl:variable name="d"> <meta-description/> </xsl:variable> <xsl:apply-templates select="exslt:node-set($d)/*"/> </xsl:variable> <xsl:template match="meta-description"> <xsl:choose> <xsl:when test="$document/@description != ''"> <xsl:value-of select="$document/@description"/> </xsl:when> <xsl:when test="$document/metadata/description != ''"> <xsl:value-of select="$document/metadata/description"/> </xsl:when> <xsl:when test="$document/metadata/text != ''"> <xsl:value-of select="$document/metadata/text"/> </xsl:when> <xsl:when test="document('arg:/inveda_cm' )/inveda_cm/description != ''"> <xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/description"/> </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="load_jquery"> <xsl:param name="load-jquery-ui"/> <xsl:if test="not(php:function('web_Session::getGlobal','GET','ajax')='ajax')"> <xsl:if test="php:function('web_Content::addScript','/scripts/jquery/3.3.1/jquery.min.js','text/javascript',1)"/> <xsl:if test="$load-jquery-ui"> <xsl:if test="php:function('web_Content::addScript','/scripts/jquery/jquery-ui/1.12.1/jquery-ui.min.js','text/javascript',2)"/> </xsl:if> </xsl:if> </xsl:template> <!-- HTML-Kopfdaten --> <xsl:template name="inveda_html_header"> <xsl:param name="rss" select="''"/> <xsl:param name="amp" select="'false'"/> <xsl:param name="type" select="string($cmetadata/publishtype)"/> <xsl:param name="author" select="''"/> <xsl:param name="description" select="$meta-description"/> <xsl:param name="keywords" select="''"/> <xsl:param name="language" select="php:function('web_Session::getLanguage')"/> <xsl:param name="favicon" select="'/favicon.ico'"/> <xsl:param name="icons" select="'/cms.share.css.iconsprite.css'"/> <xsl:param name="load-jquery-ui" select="true()"/> <xsl:param name="twitter" select="php:function('mandant_Holder::getCurrentParam','twitter_id')"/> <xsl:param name="facebook" select="php:function('mandant_Holder::getCurrentParam','facebook.fanpage_id')"/> <xsl:param name="robots" select="''"/> <xsl:param name="css" select="concat('/',document('arg:/inveda_cm' )/inveda_cm/skin,'_',document('arg:/inveda_cm' )/inveda_cm/skin_scheme,'.css')"/> <xsl:param name="js" select="concat('/',document('arg:/inveda_cm' )/inveda_cm/skin,'_',document('arg:/inveda_cm' )/inveda_cm/skin_scheme,'.js')"/> <xsl:param name="ie_css" select="''"/> <xsl:param name="ie6_css" select="''"/> <xsl:param name="url" select="php:function('web_Session::getGlobal','FADSESSION','url')"/> <xsl:param name="image" select="string(/content/@image)"/> <xsl:param name="image_type" select="string(/content/@image_type)"/> <xsl:param name="image_width" select="number(/content/@image_width)"/> <xsl:param name="image_height" select="number(/content/@image_height)"/> <xsl:param name="add"/> <xsl:param name="title"> <xsl:variable name="page_title" select="php:function('web_Session::getCurrentHolderValue','page_title')"/> <xsl:choose> <xsl:when test="$page_title != ''"> <xsl:choose> <xsl:when test="/content/@browser_caption!=''"> <xsl:value-of select="concat(/content/@browser_caption,' | ',$page_title)"/> </xsl:when> <xsl:when test="/content/@caption!=''"> <xsl:value-of select="concat(/content/@caption,' | ',$page_title)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$page_title"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="/content/@browser_caption!=''"> <xsl:value-of select="/content/@browser_caption"/> </xsl:when> <xsl:when test="/content/@caption!=''"> <xsl:value-of select="/content/@caption"/> </xsl:when> <xsl:otherwise>Homepage - powered by IReS</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:param> <xsl:variable name="robot"> <xsl:choose> <xsl:when test="$robots != ''"> <xsl:value-of select="$robots"/> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="/content/@robots != ''"> <xsl:value-of select="/content/@robots"/> </xsl:when> <xsl:when test="/content/@index='no'">noindex</xsl:when> <xsl:when test="$cmetadata/indexing='noindex'">noindex</xsl:when> <xsl:otherwise>index, follow</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:variable> <head data-host="{php:function('php_uname', 'n')}"> <xsl:if test="$title != ''"> <title> <xsl:value-of select="$title"/> </title> </xsl:if> <!-- Zeichenkodierung HTML5 valide --> <meta charset="UTF-8"/> <!-- Open Graph Protocol http://opg.me --> <meta property="og:title" content="{$title}"/> <xsl:choose> <xsl:when test="$type='blog'"> <meta property="og:type" content="article"/> </xsl:when> <xsl:otherwise> <meta property="og:type" content="website"/> <!-- meta name="Googlebot-News" content="noindex, nofollow"/ --> </xsl:otherwise> </xsl:choose> <meta property="og:url" content="{$url}"/> <xsl:if test="$image!=''"> <meta property="og:image" content="{php:function('web_Session::getGlobal','FADSESSION','host')}{$image}"/> <meta name="thumbnail" content="{php:function('web_Session::getGlobal','FADSESSION','host')}{$image}" /> <xsl:if test="$image_type!=''"> <meta property="og:image:type" content="{$image_type}"/> </xsl:if> <xsl:if test="$image_width!=''"> <meta property="og:image:width" content="{$image_width}"/> </xsl:if> <xsl:if test="$image_height!=''"> <meta property="og:image:height" content="{$image_height}"/> </xsl:if> <xsl:choose> <xsl:when test="$image_width <= 1000"> <meta property="max-image-preview" content="standard"/> </xsl:when> <xsl:otherwise> <meta property="max-image-preview" content="large"/> </xsl:otherwise> </xsl:choose> </xsl:if> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:title" content="{$title}"/> <meta name="twitter:description" content="{$description}"/> <xsl:if test="$image!=''"> <meta name="twitter:image" content="{php:function('web_Session::getGlobal','FADSESSION','host')}{$image}"/> </xsl:if> <xsl:if test="$twitter != ''"> <meta name="twitter:site" content="@{$twitter}"/> <xsl:variable name="twitter_id_author" select="/content/author/twitter_id"/> <xsl:if test="$twitter_id_author!=''"> <meta name="twitter:creator" content="@{$twitter_id_author}"/> </xsl:if> </xsl:if> <xsl:if test="$facebook != ''"> <meta property="fb:pages" content="{$facebook}"/> </xsl:if> <meta property="og:description" content="{$description}" /> <meta name="viewport" content="width=device-width, initial-scale=1"/> <meta http-equiv="language" content="{$language}"/> <meta name="robots" content="{$robot}"/> <meta name="description" lang="{$language}" content="{$description}"/> <xsl:if test="$author!=''"> <meta name="author" content="{$author}"/> </xsl:if> <xsl:variable name="kw"> <xsl:choose> <xsl:when test="$cmetadata/Tags/Tag"> <xsl:for-each select="$cmetadata/Tags/Tag"> <xsl:if test="position() > 1"> <xsl:value-of select="', '"/> </xsl:if> <xsl:value-of select="."/> </xsl:for-each> </xsl:when> <xsl:when test="$keywords != ''"> <xsl:value-of select="$keywords"/> </xsl:when> <xsl:when test="document('arg:/inveda_cm' )/inveda_cm/keywords != ''"> <xsl:value-of select="document('arg:/inveda_cm' )/inveda_cm/keywords"/> </xsl:when> </xsl:choose> </xsl:variable> <meta name="keywords" content="{$kw}"/> <meta name="news_keywords" content="{$kw}"/> <xsl:variable name="geo_region" select="php:function('mandant_Holder::getCurrentParam','geo.region')"/> <xsl:if test="$geo_region!=''"> <meta name="geo.region" content="{$geo_region}"/> </xsl:if> <xsl:variable name="geo_placename" select="php:function('mandant_Holder::getCurrentParam','geo.placename')"/> <xsl:if test="$geo_placename!=''"> <meta name="geo.placename" content="{$geo_placename}"/> </xsl:if> <xsl:variable name="geo_position" select="php:function('mandant_Holder::getCurrentParam','geo.position')"/> <xsl:if test="$geo_position!=''"> <meta name="geo.position" content="{$geo_position}"/> </xsl:if> <xsl:call-template name="cookieconsent_extern"/> <xsl:if test="$ivwszm_cdata != ''"> <script type="text/javascript" src="https://{$ivwszm_cdata}/iomm/latest/bootstrap/stub.js">//SZM</script> </xsl:if> <!--meta name="DC.Publisher" content="{$publisher}"/> <meta name="DC.Contributor" content="{$contributor}"/> <meta name="DC.Format" content="{$format}"/> <meta name="DC.Source" content="{$source}"/> <meta name="DC.Relation" content="{$relation}"/> <meta name="DC.Coverage" content="{$coverage}"/ --> <xsl:if test="not(php:function('web_Session::isSecure'))"> <xsl:call-template name="cachecontrol"/> </xsl:if> <meta name="generator" content="FAD - Fast Application Development Server"/> <!--meta name="copyright" content="{$copyright}"/ --> <!-- abgeschafft mit HTML 5 --> <!--meta http-equiv="content-language" content="{$language}"/ --> <!-- verlagert nach <html lang="de"> --> <!-- benötigte Meta Data einbinden --> <xsl:for-each select="php:function('web_Content::getMetas')/metas/meta"> <xsl:copy-of select="."/> </xsl:for-each> <xsl:if test="$favicon != ''"> <link rel="shortcut icon" href="{$favicon}" type="image/x-icon"/> <link rel="apple-touch-icon" href="{$favicon}" type="image/x-icon"/> </xsl:if> <xsl:if test="$amp = 'true'"> <link rel="amphtml" href="{php:function('web_Session::getPageUrl')}index.amp"/> </xsl:if> <xsl:if test="/content/@next"> <link rel="next" content="{/content/@next}"/> </xsl:if> <xsl:if test="/content/@prev"> <link rel="prev" content="{/content/@prev}"/> </xsl:if> <xsl:for-each select="$languages/*"> <xsl:variable name="lid" select="@id"/> <xsl:choose> <xsl:when test="$cmetadata/publishtype='blog'"> <xsl:variable name="la" select="$cmetadata/Translations/t[@language=$lid and @active='1']"/> <xsl:if test="$language!=$la/@language"> <link rel="alternate" hreflang="{$lid}" href="/id/{$la}/{$la/@alias}/"/> </xsl:if> </xsl:when> <xsl:when test="$cmetadata/publishtype='page_blogreader'"> </xsl:when> <xsl:when test="$cmetadata/publishtype='page_authorise'"> <xsl:variable name="id" select="php:function('cms_page_authorise_Interface::getPageId')"/> <xsl:variable name="meta" select="php:function('cms_CMS::getMetaById',string($id))/metadata"/> <xsl:variable name="la" select="$meta/Translations/t[@language=$lid and @active='1']"/> <xsl:if test="$language!=$la/@language"> <link rel="alternate" hreflang="{$lid}" href="/{$la}.html"/> </xsl:if> </xsl:when> <xsl:otherwise> <xsl:variable name="la" select="$cmetadata/Translations/t[@language=$lid and @active='1']"/> <xsl:if test="$language!=$la/@language"> <link rel="alternate" hreflang="{$lid}" href="/{$la}.html"/> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:copy-of select="/content/header/link"/> <!-- default jquery-ui.css kann im skin überschrieben werden --> <xsl:if test="$load-jquery-ui"> <xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/jquery/jquery-ui/1.10.2/themes/default/jquery-ui.min.css', 'text/css', 'screen')"/> <xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/jquery/jquery-ui/1.10.2/themes/default/jquery-ui.structure.min.css', 'text/css', 'screen')"/> <xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/jquery/jquery-ui/1.10.2/themes/default/jquery-ui.theme.min.css', 'text/css', 'screen')"/> </xsl:if> <!-- <xsl:variable name="googleplus" select="php:function('mandant_Holder::getCurrentParam','google.plus.id')"/>--> <!-- <xsl:if test="$googleplus!=''">--> <!-- <link href="https://plus.google.com/{$googleplus}" rel="publisher"/>--> <!-- </xsl:if>--> <xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/public.css', 'text/css', 'screen')"/> <xsl:variable name="skin_dir" select="php:function('constant', 'SKIN_DIR')"/> <xsl:if test="php:function('file_exists', concat($skin_dir, 'public/css/default.css'))"> <xsl:copy-of select="php:function('web_Content::getStyle', '/skins/css/default.css', 'text/css', 'screen')"/> </xsl:if> <!-- ggf. extra Stylesheets für IE definieren (IE6 hover etc.) --> <xsl:if test="$ie_css!=''"> <!-- allgemein für IE --> <xsl:comment>[iflte IE 8]><link media="screen" rel="stylesheet" type="text/css" href="<xsl:value-of select="$ie_css"/>"/><![endif]</xsl:comment> </xsl:if> <xsl:if test="$ie6_css!=''"> <!-- speziell für IE6 --> <xsl:comment>[iflte IE 6]><link media="screen" rel="stylesheet" type="text/css" href="<xsl:value-of select="$ie6_css"/>"/><![endif]</xsl:comment> </xsl:if> <!-- benötigte Styles einbinden --> <xsl:if test="$icons!=''"> <xsl:copy-of select="php:function('web_Content::getStyle', $icons)"/> </xsl:if> <xsl:for-each select="php:function('web_Content::getStyles')/styles/*"> <xsl:copy-of select="."/> </xsl:for-each> <!-- normales Stylesheet definieren --> <xsl:choose> <xsl:when test="document('arg:/inveda_cm' )/inveda_cm/skin='mobile'"> <xsl:variable name="mobile" select="concat(document('arg:/inveda_cm')/inveda_cm/skin_original, '_', document('arg:/inveda_cm')/inveda_cm/skin_scheme, '.css')"/> <xsl:copy-of select="php:function('web_Content::getStyle', $mobile)"/> </xsl:when> <xsl:otherwise> <xsl:if test="$css != ''"> <xsl:copy-of select="php:function('web_Content::getStyle', $css)"/> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:variable name="archivedir" select="php:function('mandant_Holder::getCurrentArchiveDir')"/> <xsl:if test="php:function('file_exists', concat($archivedir, 'custom.css'))"> <xsl:variable name="cb" select="php:function('filemtime', concat($archivedir, 'custom.css'))"/> <link rel="stylesheet" type="text/css" href="/custom.css?cb={$cb}"/> </xsl:if> <xsl:for-each select="//link[@type='application/rss+xml']"> <xsl:choose> <xsl:when test="substring(@href,1,4) = 'http' or substring(@href,1,1) = '/'"> <link rel="alternate" type="application/rss+xml" href="{@href}" title="{@title}"/> </xsl:when> <xsl:otherwise> <link rel="alternate" type="application/rss+xml" href="/{@href}" title="{@title}"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:for-each select="exslt:node-set($rss)/a"> <xsl:choose> <xsl:when test="substring(@href,1,4) = 'http' or substring(@href,1,1) = '/'"> <link rel="alternate" type="application/rss+xml" href="{@href}" title="{@title}"/> </xsl:when> <xsl:otherwise> <link rel="alternate" type="application/rss+xml" href="/{@href}" title="{@title}"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:for-each select="php:function('web_Content::getLinks')/links/*"> <xsl:copy-of select="."/> </xsl:for-each> <xsl:call-template name="directmode"> <xsl:with-param name="load-jquery-ui" select="$load-jquery-ui"/> </xsl:call-template> <!-- Google Analytics? --> <xsl:if test="not(php:function('web_Session::isSecure'))"> <xsl:call-template name="google_analytics"/> </xsl:if> <xsl:if test="not($skin_defs/ajaxcode='no')"> <xsl:call-template name="ajaxcode"> <xsl:with-param name="load-jquery-ui" select="$load-jquery-ui"/> </xsl:call-template> </xsl:if> <!-- benötigte Scripte einbinden --> <xsl:for-each select="php:function('web_Content::getScripts')/scripts/*|/Content/header/script"> <xsl:choose> <xsl:when test="@src != ''"> <xsl:copy-of select="."/> </xsl:when> <xsl:when test="@type ='application/ld+json'"> <script-ld-json> <xsl:copy-of select="@*"/> <xsl:value-of select="."/> </script-ld-json> </xsl:when> <xsl:otherwise> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:value-of select="." disable-output-escaping="yes"/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:for-each> <!-- normales Javascript definieren --> <xsl:variable name="skin" select="document('arg:/inveda_cm')/inveda_cm/skin"/> <xsl:if test="php:function('file_exists', concat($skin_dir, 'public/js/', $skin, '.js'))"> <xsl:copy-of select="php:function('web_Content::getScript', $js)"/> </xsl:if> <xsl:copy-of select="/content/header/script"/> <xsl:copy-of select="/content/header/*[name() != 'link' and name() != 'script']"/> <xsl:call-template name="onbeforeunload"/> <xsl:apply-templates select="document('arg:/inveda_cm' )/inveda_cm/meta_redirect"/> <xsl:call-template name="cookieconsent"/> <xsl:copy-of select="$add"/> </head> </xsl:template> <xsl:template name="cachecontrol"> <!-- rene: das Cachen der Seiten im Browser führt im Moment nur unnötig zu Problemen bei Änderungen --> <xsl:variable name="now" select="php:function('time')"/> <xsl:choose> <xsl:when test="/content/@cache = 'false'"> <xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','no-store, no-cache, must-revalidate, proxy-revalidate')"/> <xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','no-cache')"/> <meta http-equiv="cache-control" content="{$cache-control}"/> <meta http-equiv="pragma" content="{$pragma}"/> </xsl:when> <xsl:when test="/content/@last-modified"> <xsl:variable name="lastmodified" select="php:function('web_Content::setLastModified',string(/content/@last-modified))"/> <xsl:variable name="age" select="$now - /content/@last-modified"/> <meta http-equiv="last-modified" content="{$lastmodified}"/> <xsl:choose> <xsl:when test="$age < 604800"> <xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','public, max-age=1800, s-maxage=1800, must-revalidate')"/> <xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','public')"/> <xsl:variable name="expires" select="php:function('web_Content::setExpires',$now + 1800)"/> <meta http-equiv="cache-control" content="{$cache-control}"/> <meta http-equiv="pragma" content="{$pragma}"/> <meta http-equiv="expires" content="{$expires}"/> </xsl:when> <xsl:otherwise> <xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','public, max-age=604800, s-maxage=604800, must-revalidate')"/> <xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','public')"/> <xsl:variable name="expires" select="php:function('web_Content::setExpires',$now + 604800)"/> <meta http-equiv="cache-control" content="{$cache-control}"/> <meta http-equiv="pragma" content="{$pragma}"/> <meta http-equiv="expires" content="{$expires}"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','public, max-age=1800, s-maxage=1800, must-revalidate')"/> <xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','public')"/> <xsl:variable name="expires" select="php:function('web_Content::setExpires',$now + 1800)"/> <meta http-equiv="cache-control" content="{$cache-control}"/> <meta http-equiv="pragma" content="{$pragma}"/> <meta http-equiv="expires" content="{$expires}"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="directmode"> <xsl:param name="load-jquery-ui" select="true()"/> <xsl:if test="not($is_secure) and ($request_type = 'html') and php:function('web_Session::isDirectMode')"> <xsl:call-template name="load_jquery"> <xsl:with-param name="load-jquery-ui" select="$load-jquery-ui"/> </xsl:call-template> <xsl:variable name="code"> var fad_secure_url="<xsl:value-of select="php:function('web_Session::getURLSecure')"/>" </xsl:variable> <xsl:variable name="js3" select="php:function('web_Content::addScriptCode',string($code),'text/javascript', 3)"/> <xsl:variable name="directmode" select="$skin_defs/directmode"/> <xsl:choose> <xsl:when test="$directmode!=''"> <xsl:variable name="js4" select="php:function('web_Content::addScript', concat('/',$directmode),'text/javascript',100)"/> </xsl:when> <xsl:otherwise> <xsl:variable name="js4" select="php:function('web_Content::addScript', '/scripts/directmode.js','text/javascript',100)"/> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- Menü ohne Tabellen --> <xsl:template name="css_menu"> <xsl:param name="type"/> <xsl:param name="valign"/> <xsl:param name="width"/> <xsl:param name="css_family"/> <xsl:param name="close"/> <xsl:param name="space"/> <xsl:variable name="cellwidth"> <xsl:choose> <xsl:when test="$width='auto'"> <xsl:value-of select="''"/> </xsl:when> <xsl:when test="$width!=''"> <xsl:value-of select="$width"/> </xsl:when> <xsl:otherwise> <!-- stephan: funktioniert nur im ie; scheint sinnlos--> <!--xsl:value-of select="95 div count(item)"/><xsl:value-of select="'%'"/--> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="count(item) > 0"> <ul class="menulist_{$css_family}"> <xsl:for-each select="item"> <!--stephan: Bearbeitungsmodus und Lexikon mitten ins sysmenu schmuggeln, damit es korrekt gerendert wird--> <!-- Martin: Außer dem Direktbearbeitungsmodus kann alles in der jeweiligen sysmenu.xml stehen! --> <xsl:if test="position() = 1"> <xsl:if test="$css_family='sysmenu' and document('arg:/inveda_cm')/inveda_cm/preview_mode='1' and document('arg:/inveda_cm')/inveda_cm/user=''"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="text" select="'[Direktbearbeitungsmodus]'"/> <xsl:with-param name="selected" select="@selected"/> <xsl:with-param name="nowrap" select="'nowrap'"/> <xsl:with-param name="tag" select="'li'"/> <xsl:with-param name="link" select="concat('holder.publish.direct.login.html?editpage=',$page)"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="link_target"/> </xsl:call-template> </xsl:if> <!--xsl:if test="$css_family='sysmenu' and document('ibs:/page_allowed,lexikon.public')/result/@value='yes'"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="text" select="@title"/> <xsl:with-param name="selected" select="@selected"/> <xsl:with-param name="nowrap" select="'nowrap'"/> <xsl:with-param name="tag" select="'li'"/> <xsl:with-param name="link" select="'lexikon.public.index.html'"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="link_target"/> <xsl:with-param name="text" select="'Lexikon'"/> </xsl:call-template> </xsl:if--> </xsl:if> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="link" select="@link"/> <xsl:with-param name="link_target" select="@link_target"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="text" select="@title"/> <xsl:with-param name="selected" select="@selected"/> <xsl:with-param name="nowrap" select="'nowrap'"/> <xsl:with-param name="tag" select="'li'"/> <xsl:with-param name="width" select="$cellwidth"/> </xsl:call-template> </xsl:for-each> <xsl:if test="$close='yes'"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="'close'"/> <xsl:with-param name="link" select="'javascript:opener.location.reload();self.close();'"/> <xsl:with-param name="text" select="'Schließen x'"/> <xsl:with-param name="nowrap" select="'nowrap'"/> <xsl:with-param name="tag" select="'li'"/> <xsl:with-param name="width" select="$cellwidth"/> </xsl:call-template> </xsl:if> </ul> <xsl:if test="$space!='no'"> <div id="menuspace_{$css_family}"> </div> </xsl:if> </xsl:if> </xsl:template> <!-- allgemeines Menü-Template --> <xsl:template name="inveda_menu"> <xsl:param name="fullwidth"/> <xsl:param name="type"/> <xsl:param name="name"/> <xsl:param name="valign"/> <xsl:param name="css_family"/> <xsl:param name="bullet_family"/> <xsl:param name="bullet_mime" select="'gif'"/> <xsl:if test="count(item) > 0"> <xsl:choose> <xsl:when test="$type = 'horizontal_table'"> <table class="{concat($css_family,'_table')}" border="0" cellspacing="0" cellpadding="0"> <xsl:if test="$css_family!='sysmenu'"> <xsl:attribute name="eid">menu</xsl:attribute> </xsl:if> <xsl:if test="$fullwidth"> <xsl:attribute name="width">100%</xsl:attribute> </xsl:if> <tr class="{concat($css_family,'_row')}"> <!--xsl:if test="$css_family='sysmenu' and starts-with($page,'wiki')"> <xsl:call-template name="RenderCell"> <xsl:with-param name="name" select="$name"/> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="link" select="concat('wiki.admin.html?WikiBox[action]=show_list&site=',$page)"/> <xsl:with-param name="link_target"/> <xsl:with-param name="text" select="'Bearbeiten'"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </xsl:if--> <xsl:for-each select="item"> <xsl:call-template name="RenderCell"> <xsl:with-param name="name" select="$name"/> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="link" select="@link"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="action" select="@action"/> <xsl:with-param name="link_target" select="@link_target"/> <xsl:with-param name="anchor_id" select="@anchor_id"/> <xsl:with-param name="text" select="@title"/> <xsl:with-param name="selected" select="@selected"/> <xsl:with-param name="nowrap" select="'nowrap'"/> </xsl:call-template> <xsl:if test="position() = 1"> <!--stephan: Bearbeitungsmodus und Lexikon mitten ins sysmenu schmuggeln, damit es korrekt gerendert wird--> <!--xsl:if test="$css_family='sysmenu' and document('ibs:/page_allowed,lexikon.public')/result/@value='yes'"> <xsl:call-template name="RenderCell"> <xsl:with-param name="name" select="$name"/> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="link" select="'lexikon.public.index.html'"/> <xsl:with-param name="link_target"/> <xsl:with-param name="text" select="'Lexikon'"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </xsl:if--> <xsl:if test="$css_family='sysmenu' and document('arg:/inveda_cm')/inveda_cm/preview_mode='1' and document('arg:/inveda_cm')/inveda_cm/user=''"> <xsl:call-template name="RenderCell"> <xsl:with-param name="name" select="$name"/> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="link" select="concat('holder.publish.direct.login.html?editpage=',$page)"/> <xsl:with-param name="link_target"/> <xsl:with-param name="text" select="'[Direktbearbeitungsmodus]'"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </xsl:if> </xsl:if> </xsl:for-each> </tr> </table> </xsl:when> <xsl:when test="$type = 'vertical_table'"> <table class="{concat($css_family,'_table')}" border="0" cellspacing="0" cellpadding="0"> <xsl:if test="$css_family!='sysmenu'"> <xsl:attribute name="eid">menu</xsl:attribute> </xsl:if> <xsl:if test="$fullwidth"> <xsl:attribute name="width">100%</xsl:attribute> </xsl:if> <xsl:if test="$css_family='sysmenu' and starts-with($page,'wiki')"> <tr class="{concat($css_family,'_row')}"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="link" select="concat('system.wiki.html?site=',$page)"/> <xsl:with-param name="link_target"/> <xsl:with-param name="text" select="'Bearbeiten'"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </tr> </xsl:if> <xsl:for-each select="item"> <tr class="{concat($css_family,'_row')}"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="link" select="@link"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="link_target" select="@link_target"/> <xsl:with-param name="text" select="@title"/> <xsl:with-param name="selected" select="@selected"/> <!--xsl:with-param name="nowrap" select="'nowrap'"/--> </xsl:call-template> </tr> </xsl:for-each> </table> </xsl:when> <xsl:when test="$type = 'compact_table'"> <table class="{concat($css_family,'_table')}" border="0" cellspacing="0" cellpadding="0"> <xsl:if test="$fullwidth"> <xsl:attribute name="width">100%</xsl:attribute> </xsl:if> <xsl:for-each select="item"> <xsl:if test="@link!=''"> <tr class="{concat($css_family,'_row')}"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="link" select="@link"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="link_target" select="@link_target"/> <xsl:with-param name="text" select="@title"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </tr> <xsl:if test="@selected"> <tr> <td> <table width="90%" align="right" cellspacing="0" cellpadding="0"> <xsl:for-each select="../../menu[@name='menu' and @level='2']/item"> <tr class="{concat('sub',$css_family,'_row')}"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="concat('sub',$css_family)"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="link" select="@link"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="link_target" select="@link_target"/> <xsl:with-param name="text" select="@title"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </tr> <xsl:if test="@selected"> <tr> <td> <table width="90%" align="right" cellspacing="0" cellpadding="0"> <xsl:for-each select="../../menu[@name='menu' and @level='3']/item"> <tr class="{concat('subsub',$css_family,'_row')}"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="concat('subsub',$css_family)"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="valign" select="$valign"/> <xsl:with-param name="link" select="@link"/> <xsl:with-param name="ajax" select="@ajax"/> <xsl:with-param name="link_target" select="@link_target"/> <xsl:with-param name="text" select="@title"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </tr> </xsl:for-each> </table> </td> </tr> </xsl:if> </xsl:for-each> </table> </td> </tr> </xsl:if> </xsl:if> </xsl:for-each> </table> </xsl:when> </xsl:choose> </xsl:if> </xsl:template> <xsl:template name="inveda_news"> <xsl:param name="has_link" select="'true'"/> <xsl:param name="img_width"/> <xsl:param name="img_height"/> <xsl:param name="news"/> <xsl:param name="link_name" select="'true'"/> <xsl:param name="link_details"/> <xsl:param name="read_more" select="'false'"/> <xsl:for-each select="$news[position() < 6]"> <xsl:sort select="@visible_start" order="descending"/> <xsl:call-template name="RenderNewsItem"> <xsl:with-param name="has_link" select="$has_link"/> <xsl:with-param name="img_width" select="$img_width"/> <xsl:with-param name="img_height" select="$img_height"/> <xsl:with-param name="link_name" select="$link_name"/> <xsl:with-param name="link_details" select="$link_details"/> <xsl:with-param name="read_more" select="$read_more"/> </xsl:call-template> </xsl:for-each> <xsl:if test="count($news) >= 6"> <a href="/news.customer.index.html" title="weitere News" class="news_more">weitere News</a> </xsl:if> </xsl:template> <xsl:template name="RenderNewsItem"> <xsl:param name="has_link" select="'true'"/> <xsl:param name="img_width"/> <xsl:param name="img_height"/> <xsl:param name="link_name" select="'true'"/> <xsl:param name="link_details"/> <xsl:param name="read_more" select="'false'"/> <xsl:variable name="news_date" select="php:function('mandant_Holder::getCurrentParam','news.date_format')"/> <xsl:variable name="metap" select="php:function('cms_blog_Interface::getMeta',string(@nr))/metadata"/> <!--<xsl:variable name="news_page">--> <!--<xsl:choose>--> <!--<xsl:when test="$link_details!=''">--> <!--<xsl:value-of select="concat($link_details,@nr)"/>--> <!--</xsl:when>--> <!--<xsl:when test="@news_page">--> <!--<xsl:value-of select="concat(@news_page,'.html')"/>--> <!--</xsl:when>--> <!--<xsl:otherwise>news.html</xsl:otherwise>--> <!--</xsl:choose>--> <!--</xsl:variable>--> <xsl:variable name="news_link"> <a href="/id/{@nr}/{@alias}/news.customer.reader.html" title="{@title}"> <xsl:value-of select="@title"/> </a> </xsl:variable> <div class="news_entry"> <xsl:if test="$metap/img != ''"> <xsl:attribute name="class">news_entry img-inside</xsl:attribute> </xsl:if> <span eid="newsitem" eitem="{@nr}"/> <xsl:choose> <xsl:when test="$news_date = 'visible_start'"> <xsl:if test="$metap/visible_start !='' "> <div class="news_date"> <xsl:variable name="date" select="php:function('strtotime',string($metap/visible_start))"/> <xsl:value-of select="php:function('date','d.m.Y',number($date))"/> </div> </xsl:if> </xsl:when> <xsl:when test="$news_date = 'created'"> <xsl:if test="$metap/created !='' "> <div class="news_date"> <xsl:variable name="date" select="php:function('strtotime',string($metap/created))"/> <xsl:value-of select="php:function('date','d.m.Y - h:j',number($date))"/> </div> </xsl:if> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> <xsl:if test="@topic != ''"> <div class="news_topic"> <a class="news_topic" href="/topic/{@topic}/news.customer.index.html"> <xsl:value-of select="@topic"/> </a> </div> </xsl:if> <div class="news_title"> <xsl:choose> <xsl:when test="$link_name='none'"> <a href="{@news_link}" title="{@title}"> <xsl:value-of select="@title"/> </a> </xsl:when> <xsl:when test="$has_link != 'false' and $link_name!='none'"> <xsl:copy-of select="exslt:node-set($news_link)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@title"/> </xsl:otherwise> </xsl:choose> </div> <xsl:if test="$metap/img != ''"> <a href="/id/{@nr}/{@alias}/news.customer.reader.html" title="{@title}" class="news_img"> <img src="/blog.{$metap/nr}.images.{$metap/img}.{$img_width}x{$img_height}.{$metap/imgtype}" alt="{$metap/title}"/> </a> </xsl:if> <xsl:if test="$has_link = 'no'"> <div class="news_content"> <p> <xsl:value-of select="$metap/text"/> </p> </div> </xsl:if> <xsl:if test="$read_more = 'true'"> <xsl:choose> <xsl:when test="$link_name='none'"> <a href="{@news_link}" title="{@title}" class="read_more">weiterlesen</a> </xsl:when> <xsl:when test="$has_link != 'false' and $link_name!='none'"> <a href="/id/{@nr}/{@alias}/news.customer.reader.html" title="{@title}" class="read_more">weiterlesen</a> </xsl:when> </xsl:choose> </xsl:if> </div> </xsl:template> <xsl:template name="page_functions"> <xsl:param name="help" select="/content/@hlp"/> <!-- Versuch Hilfeicons bei Überschriften anzuzeigen? --> <xsl:if test="$help != '' "> <a href="/help/{$help}/help.index.html" target="_blank" rel="nofollow" onclick="getHelp('/help/{$help}/help.index.ajax', null, 'dialog');return false;"> <i class="ii ii-info" alt="Hilfe zu diesem Bereich" title="Hilfe zu diesem Bereich">help</i> </a> </xsl:if> <!-- <xsl:if test="/content/@hlp_as_popup"> --> <!-- <a href="javascript:window.open('help.{$page}.hlp','HelpWindow','width=300,height=500,left=(screen.width - 400),top=50');HelpWindow.focus();self.reload;"> --> <!-- <img src="/web.images.help.png" title="Hilfe zur Seite" border="0" alt="Hilfe zur Seite"/> --> <!-- </a> --> <!-- </xsl:if> --> <!-- <xsl:if test="/content/@hlp"> --> <!-- <a class="page_function" href="{/content/@hlp}.hlp" target="inveda_help"> --> <!-- <img src="/web.images.help.png" title="Hilfe zur Seite" border="0" style="width:16px;height:16px;" alt="Hilfe zur Seite"/> --> <!-- </a> --> <!-- </xsl:if> --> <xsl:if test="document('ibs:/page_allowed,speaker.index')/result/@value='yes' and not(/content/@speaker='off')"> <a class="page_function" href="speaker.index.html?url={$page}.speak" title="Seite vorlesen lassen." onclick="requestWebbox('/url={$page}.speak/speaker.index.ajax'); return false;" target="_blank" rel="nofollow"> <img src="/web.images.mime-mp3.png" title="Seite vorlesen lassen" style="width:16px;height:16px;margin-left:3px;" alt="Seite vorlesen lassen"/> </a> </xsl:if> <xsl:if test="/content/@rss"> <a class="page_function" href="{$page}_rss.script" target="_blank" rel="nofollow"> <img src="/web.images.feed.png" title="RSS Feed zu dieser Seite" style="width:16px;height:16px;margin-left:3px;" alt="RSS Feed zu dieser Seite"/> </a> </xsl:if> <xsl:if test="/content/@pdf='yes' or /content/@pdf='true'"> <a class="page_function" href="{$page}.pdf" type="application/pdf" rel="nofollow"> <img src="/web.images.mime_pdf.png" title="Seite als PDF ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als PDF ausgeben"/> </a> </xsl:if> <xsl:choose> <xsl:when test="/content/@xml='yes'"> <a class="page_function" href="{$page}.xml" type="application/msexcel" rel="nofollow"> <img src="/web.images.mime_xml.png" title="XML-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="XML-Datei erstellen"/> </a> </xsl:when> <xsl:when test="/content/@xml !='' and /content/@xml != 'yes'"> <a class="page_function" href="{/content/@xml}.xml" type="application/msexcel" target="_blank" rel="nofollow"> <img src="/web.images.mime_xml.png" title="XML-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="XML-Datei erstellen"/> </a> </xsl:when> </xsl:choose> <xsl:choose> <xsl:when test="/content/@dta='yes'"> <a class="page_function" href="{$page}.dta" type="application/text" rel="nofollow"> <img src="/web.images.mime_txt.png" title="DTA-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="DTA-Datei erstellen"/> </a> </xsl:when> <xsl:when test="/content/@dta !='' and /content/@dta != 'yes'"> <a class="page_function" href="{/content/@dta}.dta" type="application/text" target="_blank" rel="nofollow"> <img src="/web.images.mime_txt.png" title="DTA-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="DTA-Datei erstellen"/> </a> </xsl:when> </xsl:choose> <xsl:if test="/content/@csv='true' or /content/@csv='yes'"> <a class="page_function" href="{$page}.csv" type="application/msexcel" target="_blank" rel="nofollow"> <img src="/web.images.mime_csv.png" title="Seite als CSV ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als CSV ausgeben"/> </a> </xsl:if> <xsl:if test="/content/@xls='yes' or /content/@xls='true'"> <a class="page_function" href="{$page}.xls" type="application/msexcel" target="_blank" rel="nofollow"> <img src="/web.images.mime_xls.png" title="Seite als Excel-Tabelle ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als Excel-Tabelle ausgeben"/> </a> </xsl:if> <xsl:if test="/content/@txt='yes' or /content/@txt='true'"> <a class="page_function" href="{$page}.txt" type="application/txt" target="_blank" rel="nofollow"> <img src="/web.images.mime_txt.png" title="Seite als Text ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als Text ausgeben"/> </a> </xsl:if> <xsl:if test="/content/@xlsx='yes' or /content/@xlsx='true'"> <a class="page_function" href="{$page}.xlsx" type="application/msexcel" rel="nofollow"> <img src="/web.images.mime_xls.png" title="Seite als Excel-Tabelle ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als Excel-Tabelle ausgeben"/> </a> </xsl:if> <!-- Seite empfehlen --> <xsl:if test="/content/@advise='yes' and document('ibs:/page_allowed,tools.advise.advise')/result/@value='yes'"> <xsl:if test="document('ibs:/holder_param,advise_linkarena')/content/@value='enabled'"> <a class="page_function" href="/ibs/out.php?s=linkarena&t={php:function('urlencode',string(content/@caption))}" title="Hier können Sie diese Seite bei Linkarena verlinken." target="_blank" rel="nofollow"> <img src="/web.images.linkarena.png" title="Seite bei Linkarena verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Linkarena verlinken"/> </a> </xsl:if> <xsl:if test="document('ibs:/holder_param,advise_misterwong')/content/@value='enabled'"> <a class="page_function" href="/ibs/out.php?s=mrwong&t={php:function('urlencode',string(content/@caption))}" title="Hier können Sie diese Seite bei Mister Wong verlinken." target="_blank" rel="nofollow"> <img src="/web.images.misterwong.png" title="Seite bei Mister Wong verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Mister Wong verlinken"/> </a> </xsl:if> <xsl:if test="document('ibs:/holder_param,advise_delicious')/content/@value='enabled'"> <a class="page_function" href="/ibs/out.php?s=delicious" title="Hier können Sie diese Seite bei del.icio.us verlinken." target="_blank" rel="nofollow"> <img src="/web.images.delicious.png" title="Seite bei del.icio.us verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei del.icio.us verlinken"/> </a> </xsl:if> <xsl:if test="document('ibs:/holder_param,advise_xing')/content/@value='enabled'"> <a class="page_function" href="/ibs/out.php?s=xing&t={php:function('urlencode',string(content/@caption))}" title="Hier können Sie diese Seite bei Xing verlinken." target="_blank" rel="nofollow"> <img src="/web.images.xing.png" title="Seite bei Xing verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Xing verlinken"/> </a> </xsl:if> <xsl:if test="document('ibs:/holder_param,advise_twitter')/content/@value='enabled'"> <a class="page_function" href="/ibs/out.php?s=twitter" title="Hier können Sie diese Seite bei Twitter verlinken." target="_blank" rel="nofollow"> <img src="/web.images.twitter.png" title="Seite bei Twitter verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Twitter verlinken"/> </a> </xsl:if> <xsl:if test="document('ibs:/holder_param,advise_googleplus')/content/@value='enabled'"> <a class="page_function" href="/ibs/out.php?s=googleplus&t={php:function('urlencode',string(content/@caption))}" title="Hier können Sie diese Seite bei Google+ verlinken." target="_blank" rel="nofollow"> <img src="/web.images.googleplus.png" title="Seite bei Google+ verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Google+ verlinken"/> </a> </xsl:if> <xsl:if test="document('ibs:/holder_param,advise_facebook')/content/@value='enabled'"> <a class="page_function" href="/ibs/out.php?s=facebook_share&t={php:function('urlencode',string(content/@caption))}" title="Hier können Sie diese Seite bei Facebook verlinken." target="_blank" rel="nofollow"> <img src="/web.images.facebook_new.png" title="Seite bei Facebook verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Facebook verlinken"/> </a> </xsl:if> <xsl:if test="not(document('ibs:/holder_param,advise_mail')/content/@value='disabled')"> <a class="page_function" href="/tools.advise.advise.html?advise_page={$page}&title={php:function('urlencode',string(content/@caption))}" title="Hier können Sie diese Seite per E-Mail empfehlen." onclick="requestWebbox('/advise_page/{$page}/title/{content/@caption}/tools.advise.advise.ajax'); return false;" target="_blank" rel="nofollow"> <img src="/web.images.write_letter.png" title="Seite per E-Mail empfehlen" style="width:16px;height:16px;margin-left:3px;" alt="Seite per E-Mail empfehlen"/> </a> </xsl:if> </xsl:if> </xsl:template> <xsl:template name="ajaxcode"> <xsl:param name="load-jquery-ui" select="true()"/> <script type="text/javascript"> session = '<xsl:value-of select="document('arg:/inveda_cm' )/inveda_cm/session"/>'; </script> <xsl:call-template name="load_jquery"> <xsl:with-param name="load-jquery-ui" select="$load-jquery-ui"/> </xsl:call-template> <xsl:variable name="js3" select="php:function('web_Content::addScript', '/scripts/ajax.js','text/javascript',100)"/> </xsl:template> <xsl:template name="replace_string"> <xsl:param name="string"/> <xsl:param name="from"/> <xsl:param name="to"/> <xsl:choose> <xsl:when test="contains($string, $from)"> <xsl:value-of select="substring-before($string, $from)"/> <xsl:copy-of select="$to"/> <xsl:call-template name="replace_string"> <xsl:with-param name="string" select="substring-after($string, $from)"/> <xsl:with-param name="from" select="$from"/> <xsl:with-param name="to" select="$to"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!--Hauptbereich mit Inhaltsverzeichnis--> <xsl:template name="inveda_content"> <xsl:variable name="type"/> <xsl:variable name="page_encode"> return '<page>'.urlencode('<xsl:call-template name="replace_string"> <xsl:with-param name="string" select="$page" /> <xsl:with-param name="from">'</xsl:with-param> <xsl:with-param name="to">\'</xsl:with-param> </xsl:call-template>').'</page>'; </xsl:variable> <xsl:variable name="confirm_encode"> return '<confirm>'.urlencode('<xsl:call-template name="replace_string"> <xsl:with-param name="string" select="@confirm" /> <xsl:with-param name="from">'</xsl:with-param> <xsl:with-param name="to">\'</xsl:with-param> </xsl:call-template>').'</confirm>'; </xsl:variable> <xsl:variable name="register_encode"> return '<register>'.urlencode('<xsl:call-template name="replace_string"> <xsl:with-param name="string" select="@register" /> <xsl:with-param name="from">'</xsl:with-param> <xsl:with-param name="to">\'</xsl:with-param> </xsl:call-template>').'</register>'; </xsl:variable> <xsl:variable name="agree_encode"> return '<agree>'.urlencode('<xsl:call-template name="replace_string"> <xsl:with-param name="string" select="@agree" /> <xsl:with-param name="from">'</xsl:with-param> <xsl:with-param name="to">\'</xsl:with-param> </xsl:call-template>').'</agree>'; </xsl:variable> <xsl:variable name="password_encode"> return '<password>'.urlencode('<xsl:call-template name="replace_string"> <xsl:with-param name="string" select="@password" /> <xsl:with-param name="from">'</xsl:with-param> <xsl:with-param name="to">\'</xsl:with-param> </xsl:call-template>').'</password>'; </xsl:variable> <xsl:variable name="confirm" select="php:function('system_Transformer::Evaluate',$confirm_encode)" /> <xsl:variable name="register" select="php:function('system_Transformer::Evaluate',$register_encode)" /> <xsl:variable name="agree" select="php:function('system_Transformer::Evaluate',$agree_encode)" /> <xsl:variable name="password" select="php:function('system_Transformer::Evaluate',$password_encode)" /> <xsl:variable name="referrer" select="php:function('system_Transformer::Evaluate',$page_encode)" /> <xsl:choose> <xsl:when test="$confirm!='' and document('ibs:/issearchengine')/issearchengine='false'"> <xsl:variable name="redirect"> <xsl:for-each select="document('ibs:/confirmed_pages')/confirmed_pages/page"> <xsl:if test="text() = $confirm">no</xsl:if> </xsl:for-each> </xsl:variable> <xsl:if test="$redirect != 'no'"> <xsl:copy-of select="document(concat('ibs:/redirect,tools.confirm,confirm_page=',$confirm,',confirm_referrer=',$referrer))"/> </xsl:if> </xsl:when> <xsl:when test="$register!='' and document('ibs:/issearchengine')/issearchengine='false'"> <xsl:variable name="redirect"> <xsl:for-each select="document('ibs:/registered_pages')/registered_pages/page"> <xsl:if test="text() = $register">no</xsl:if> </xsl:for-each> </xsl:variable> <xsl:if test="$redirect != 'no'"> <xsl:copy-of select="document(concat('ibs:/redirect,tools.register,register_page=',$register,',register_referrer=',$referrer))"/> </xsl:if> </xsl:when> <xsl:when test="$agree!='' and document('ibs:/issearchengine')/issearchengine='false'"> <xsl:variable name="redirect"> <xsl:for-each select="document('ibs:/agreed_pages')/agreed_pages/page"> <xsl:if test="text() = $agree">no</xsl:if> </xsl:for-each> </xsl:variable> <xsl:if test="$redirect != 'no'"> <xsl:copy-of select="document(concat('ibs:/redirect,tools.agree,agree_page=',$agree,',agree_referrer=',$referrer))"/> </xsl:if> </xsl:when> <xsl:when test="$password!=''"> <xsl:variable name="redirect"> <xsl:for-each select="document('ibs:/password_pages')/password_pages/page"> <xsl:if test="text() = $referrer">no</xsl:if> </xsl:for-each> </xsl:variable> <xsl:if test="$redirect != 'no'"> <xsl:copy-of select="document(concat('ibs:/redirect,tools.password,password_pw=',$password,',password_referrer=',$referrer))"/> </xsl:if> </xsl:when> </xsl:choose> <xsl:variable name="edit"> <xsl:value-of select="@edit"/> </xsl:variable> <!--xsl:if test="$javascript='yes'"> <xsl:call-template name="ajaxcode"/> </xsl:if--> <!-- <xsl:variable name="width"> --> <!--xsl:choose> <xsl:when test="@width='unlimited'">100%</xsl:when> <xsl:when test="string-length(@width) < 1">100%</xsl:when> <xsl:otherwise><xsl:value-of select="$content_width"/></xsl:otherwise> </xsl:choose--> <!--xsl:if test="string-length(@width) > 1"><xsl:value-of select="$content_width"/></xsl:if--> <!-- </xsl:variable> --> <!--xsl:if test="$edit!='no'"> <xsl:attribute name="eid">content</xsl:attribute> </xsl:if> <xsl:if test="/content/@error!=''"> <xsl:attribute name="error"><xsl:value-of select="/content/@error"/></xsl:attribute> </xsl:if--> <div eitem="{document('arg:/inveda_cm')/inveda_cm/page}" class="i_content_wrapper"> <xsl:if test="@width"> <xsl:attribute name="style"> <xsl:value-of select="concat('width:',@width)"/> </xsl:attribute> </xsl:if> <xsl:if test="$edit!='no' and not($type='include')"> <xsl:attribute name="eid">content</xsl:attribute> </xsl:if> <xsl:if test="/content/@error!=''"> <xsl:attribute name="error"><xsl:value-of select="/content/@error"/></xsl:attribute> </xsl:if> <xsl:if test="/content/@image and text"> <xsl:choose> <xsl:when test="/content/@image_align = 'left'"> <div class="image_align_left" style="align:left"> <img src="{/content/@image}" border="0" alt=""/> </div> </xsl:when > <xsl:when test="/content/@image_align = 'right'"> <div class="image_align_right" style="align:right"> <img src="{/content/@image}" border="0" alt=""/> </div> </xsl:when> </xsl:choose> </xsl:if> <!-- Content rendern --> <!-- <xsl:apply-templates select="header"/> frank: header wird auch in html header eingefügt. kann entfernt werden wenn alles funktioniert --> <!-- rene: header mit html content zu details geändert --> <xsl:apply-templates select="details"/> <xsl:apply-templates select="text"/> <xsl:if test="count(chapter) > 0"> <xsl:call-template name="chapter_index"/> </xsl:if> <xsl:apply-templates select="*[not(name() = 'text') and not(name() = 'header') and not(name() = 'details') and not(name() = 'metadata')]"/> </div> <xsl:if test="@textboxes='yes' and $type!='include'"> <xsl:apply-templates select="document('ibs:/original')/content//textbox_list"/> <xsl:apply-templates select="document('ibs:/original')/content//register"/> </xsl:if> <!-- Kommentieren erlaubt?! --> <xsl:if test="@comment='yes' or @comment = 'board'"> <xsl:if test="document('ibs:/page_allowed,comment.public.index')/result/@value='yes'"> <xsl:apply-templates select="document(concat('ibs:/include,comment.public.index,comment~',@comment,',page~',php:function('web_Session::getPage')))/content" /> </xsl:if> </xsl:if> </xsl:template> <xsl:template match="chapter_index"> <xsl:call-template name="chapter_index"/> </xsl:template> <xsl:template name="chapter_index"> <ul class="chapter_index"> <a id="chapter_start" name="chapter_start"> </a> <h3 class="h_chapter_index"> <xsl:value-of select="'Kapitelübersicht'"/> </h3> <xsl:for-each select="//chapter"> <li data-chapter="{position()}"> <a href="#{generate-id(@caption)}" title="{@caption}"> <xsl:value-of select="@caption"/> </a> </li> </xsl:for-each> </ul> </xsl:template> <xsl:template match="header[../inveda:header]"> <xsl:apply-templates/> </xsl:template> <xsl:template match="chapter"> <xsl:call-template name="chapter"/> </xsl:template> <xsl:template name="chapter"> <xsl:variable name="skin_dir" select="php:function('constant', 'SKIN_DIR')"/> <div class="chapter"> <a class="anker fad_visuallyhidden" name="{generate-id(@caption)}"> </a> <h3 class="h_chapter"> <xsl:variable name="picpath"> <xsl:choose> <xsl:when test="document('ibs:/mobile_device')/content/@value = 'yes'"> /skins/images/mobile/icon_up.gif </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="php:function('file_exists', concat($skin_dir, 'public/images/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default , '/icon_up.svg'))"> <xsl:value-of select="concat('/skins/images/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/icon_up.svg')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('/skins/images/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/icon_up.gif')"/> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:variable> <a href="#chapter_start" title="Hoch"> <img src="{$picpath}" width="16" height="16" border="0" alt="nach oben" title="nach oben"/> </a> <xsl:value-of select="@caption"/> </h3> <xsl:apply-templates/> </div> </xsl:template> <xsl:template match="register"> <xsl:call-template name="build_register"/> </xsl:template> <xsl:template name="build_register"> <xsl:for-each select="record"> <xsl:if test="document(concat('ibs:/page_allowed,',@link))/result/@value='yes'"> <!-- sollen die Links überhaupt angezeigt werden? --> <xsl:variable name="record_layout" select="document('ibs:/holder_param,record_layout')/content/@value"/> <!-- Liste aufbauen --> <xsl:variable name="list"> <!-- Variable nur füllen, wenn Liste benötigt wird --> <xsl:if test="$record_layout != 'simple'"> <!-- Links selektieren --> <xsl:variable name="ref" select="document(concat('ibs:/include,',@link))/content"/> <xsl:variable name="confirm" select="$ref/@confirm!=''"/> <xsl:variable name="tb" select="$ref//box[document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes' and @link!='kontakt']"/> <xsl:variable name="rc" select="$ref/text//register/record[document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']"/> <xsl:variable name="lk" select="$ref//*[@href and @title!='' and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']"/> <xsl:variable name="plink" select="concat('/',@link,'.html')"/> <ul> <xsl:if test="count($lk) > 0"> <li> <a title="{@title}" href="{@link}.html" class="first_link"> <xsl:value-of select="@title"/> </a> <xsl:for-each select="$lk"> <xsl:if test="position() > 1"> <xsl:value-of select="', '"/> </xsl:if> <xsl:if test="position() = 1"> <xsl:value-of select="': '"/> </xsl:if> <a href="{@href}"> <xsl:if test="@onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="@onclick"/> </xsl:attribute> </xsl:if> <xsl:value-of select="@title"/> </a> </xsl:for-each> </li> </xsl:if> <xsl:if test="count($rc) > 0"> <xsl:for-each select="$rc"> <xsl:sort select="@title"/> <xsl:variable name="link"> <xsl:choose> <xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when> <xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise> </xsl:choose> </xsl:variable> <li> <a title="{@title}" href="{$link}" class="first_link"> <xsl:value-of select="@title"/> </a> <xsl:variable name="ref2" select="document(concat('ibs:/include,',@link))/content"/> <xsl:for-each select="$ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']"> <!--xsl:sort select="@title"/ --> <xsl:variable name="link2"> <xsl:choose> <xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when> <xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="position() = 1"> <xsl:value-of select="': '"/> </xsl:if> <xsl:if test="position() > 1"> <xsl:value-of select="', '"/> </xsl:if> <a href="{$link2}"> <xsl:if test="$confirm!='true' and @onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="@onclick"/> </xsl:attribute> </xsl:if> <xsl:value-of select="@title"/> </a> </xsl:for-each> <xsl:for-each select="$ref2//*[not(@follow='no') and @href and @title!='' and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']"> <!--xsl:sort select="@title"/ --> <xsl:choose> <xsl:when test="count($ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']) > 0 or position() > 1"> <xsl:value-of select="', '"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="': '"/> </xsl:otherwise> </xsl:choose> <xsl:variable name="link2"> <xsl:choose> <xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when> <xsl:otherwise><xsl:value-of select="@href"/></xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$link2}"> <xsl:value-of select="@title"/> </a> </xsl:for-each> <xsl:for-each select="$ref2//box[@link and @link!='kontakt' and @caption!='' and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']"> <!--xsl:sort select="@caption"/ --> <xsl:choose> <xsl:when test="count($ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']) > 0 or count($ref2//*[not(@follow='no') and @href and @title!='' and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']) > 0 or position() > 1"> <xsl:value-of select="', '"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="': '"/> </xsl:otherwise> </xsl:choose> <xsl:variable name="link3"> <xsl:choose> <xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when> <xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$link3}"> <xsl:if test="$confirm!='true' and @mime='ajax'"> <xsl:attribute name="onclick">requestWebbox('<xsl:value-of select="@link"/>.ajax');return false;</xsl:attribute> </xsl:if> <xsl:value-of select="@caption"/> </a> </xsl:for-each> </li> </xsl:for-each> </xsl:if> <xsl:if test="count($tb) > 0"> <xsl:for-each select="$tb[@caption!='']"> <xsl:variable name="link4"> <xsl:choose> <xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when> <xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise> </xsl:choose> </xsl:variable> <li> <a title="{@caption}" href="{$link4}" class="first_link"> <xsl:if test="$confirm!='true' and @mime='ajax'"> <xsl:attribute name="onclick">requestWebbox('<xsl:value-of select="@link"/>.ajax');return false;</xsl:attribute> </xsl:if> <xsl:value-of select="@caption"/> </a> <xsl:if test="not(@mime='ajax')"> <xsl:variable name="ref2" select="document(concat('ibs:/include,',@link))/content"/> <xsl:for-each select="$ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']"> <xsl:if test="position() = 1"> <xsl:value-of select="': '"/> </xsl:if> <xsl:if test="position() > 1"> <xsl:value-of select="', '"/> </xsl:if> <xsl:variable name="link5"> <xsl:choose> <xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when> <xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$link5}"> <xsl:value-of select="concat('(',@title,')')"/> </a> </xsl:for-each> <xsl:for-each select="$ref2//*[@href!='#' and @title!='' and not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']"> <xsl:if test="position() = 1"> <xsl:value-of select="': '"/> </xsl:if> <xsl:if test="position() > 1"> <xsl:value-of select="', '"/> </xsl:if> <a href="{@href}"> <xsl:if test="@onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="@onclick"/> </xsl:attribute> </xsl:if> <xsl:value-of select="@title"/> </a> </xsl:for-each> <xsl:for-each select="$ref2//box[@link and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']"> <xsl:if test="position() = 1"> <xsl:value-of select="': '"/> </xsl:if> <xsl:if test="position() > 1"> <xsl:value-of select="', '"/> </xsl:if> <xsl:variable name="link6"> <xsl:choose> <xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when> <xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$link6}"> <xsl:if test="$confirm!='true' and @mime='ajax'"> <xsl:attribute name="onclick">requestWebbox('<xsl:value-of select="@link"/>.ajax');return false;</xsl:attribute> </xsl:if> <xsl:value-of select="@caption"/> </a> </xsl:for-each> </xsl:if> </li> </xsl:for-each> </xsl:if> </ul> </xsl:if> </xsl:variable> <!-- Box aufbauen --> <xsl:variable name="box"> <box link="{@link}" link_name="none"> <box_text> <!-- Content --> <div class="page_box_content_top"> <!-- Bild --> <xsl:if test="@img!=''"> <a title="{@title}" href="{@link}.html" class="page_box_image"><img src="{@img}" alt="{@title}"><xsl:comment></xsl:comment></img></a> </xsl:if> <!-- Überschrift --> <h3> <a title="{@title}" href="{@link}.html"> <xsl:value-of select="@title"/> </a> </h3> <!-- Kurztext --> <div class="text"><xsl:copy-of select="text"/> <xsl:copy-of select="boxtext"/> </div> </div> <!-- enthaltene Links / Unterseiten --> <xsl:if test="$list != ''"> <div class="page_box_content_links"> <xsl:copy-of select="$list"/> </div> </xsl:if> </box_text> </box> </xsl:variable> <xsl:apply-templates select="exslt:node-set($box)/*"> <xsl:with-param name="link_name" select="none"/> </xsl:apply-templates> </xsl:if> </xsl:for-each> </xsl:template> <xsl:template match="fad:collection"> <xsl:call-template name="fad_collection"/> </xsl:template> <xsl:template match="fad:module"> <xsl:variable name="modules" select="php:function('cms_mod_Interface::getModules')"/> <xsl:variable name="mod" select="@mod"/> <xsl:variable name="fad_module" select="."/> <xsl:for-each select="$modules/Data/Content/DataSet[@nr=$mod]"> <div class="insert_module"> <xsl:copy-of select="$fad_module/@*"/> <xsl:apply-templates select="php:function('cms_mod_Module::getContent',string(@publishtype),string(@nr),string(@holderlogin))/*"/> </div> </xsl:for-each> </xsl:template> <xsl:template match="fad:modgroup"> <xsl:variable name="modgroups" select="php:function('cms_mod_Interface::getModgroups')/Data/Content/DataSet"/> <xsl:variable name="group" select="@group"/> <xsl:variable name="name" select="@name"/> <xsl:variable name="showcaption" select="@showcaption"/> <xsl:variable name="class" select="@class"/> <xsl:variable name="fad_modgroup" select="."/> <xsl:for-each select="$modgroups[@place='insert' and (@name=$name or @nr=$group)]"> <xsl:variable name="modgroup" select="@nr"/> <div class="insert_modgroup"> <xsl:copy-of select="$fad_modgroup/@*[name() != 'group' and name() != 'name' and name() != 'showcaption' and name() != 'class']"/> <xsl:if test="$class != ''"> <xsl:attribute name="class"> <xsl:value-of select="concat('insert_modgroup ', $class)"/> </xsl:attribute> </xsl:if> <xsl:if test="$showcaption = 'yes'"> <h3 class="caption"> <xsl:value-of select="@name"/> </h3> </xsl:if> <div class="container"> <xsl:variable name="modules" select="php:function('cms_mod_Interface::getModules')/Data/Content/DataSet"/> <xsl:for-each select="$modules[places/place[@place='insert' and @groupid=$modgroup]]"> <xsl:sort select="places/place[@place='insert' and @groupid=$modgroup]/@position" data-type="number"/> <xsl:apply-templates select="php:function('cms_mod_Module::getContent',string(@publishtype),string(@nr),string(@holderlogin))/*"/> </xsl:for-each> </div> </div> </xsl:for-each> </xsl:template> <xsl:template match="*[@class='mod_code']"> <xsl:copy-of select="."/> </xsl:template> <xsl:template name="fad_collection"> <!-- achtung: boxlisten auf mobilen geraeten haben nur eine spalte und die boxen sind immer 100% breit --> <div class="textbox_list"> <xsl:variable name="allowed_boxes"> <xsl:copy-of select="fad:box[(not(@link) or @link='' or substring(@link,1,7)='http://' or substring(@link,1,8)='https://' or document(concat('ibs:/page_allowed,',@link))/result/@value='yes')]"/> </xsl:variable> <xsl:variable name="autocols" select="@autocols"/> <xsl:variable name="cols"> <xsl:choose> <xsl:when test="@cols = 'accordeon'">1</xsl:when> <xsl:when test="@cols = 'tabview'">1</xsl:when> <xsl:when test="@cols > 1"> <xsl:value-of select="@cols"/> </xsl:when> <xsl:otherwise>1</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="width"> <xsl:choose> <xsl:when test="string-length(@boxwidth)>0"> <xsl:value-of select="@boxwidth"/> </xsl:when> <xsl:when test="document('ibs:/mobile_device')/content/@value='yes'"> <xsl:value-of select="'100%'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat((99 - @cols) div @cols,'%')"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="height"> <xsl:value-of select="@boxheight"/> </xsl:variable> <xsl:variable name="margin"> <xsl:choose> <xsl:when test="@margin"> <xsl:value-of select="@margin"/> </xsl:when> <xsl:otherwise>1%</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="@cols='tabview'"> <xsl:variable name="tview"> <tab_view> <xsl:for-each select="exslt:node-set($allowed_boxes)/fad:box"> <xsl:variable name="caption"> <xsl:choose> <xsl:when test='count(./fad:caption) > 0'> <xsl:value-of select="./fad:caption"/> </xsl:when> <xsl:when test="string-length(@caption) > 0"> <xsl:value-of select="@caption"/> </xsl:when> <xsl:otherwise>Tab <xsl:value-of select="position()"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <tab_view_tab caption="{$caption}"> <xsl:call-template name="fad_box"/> </tab_view_tab> </xsl:for-each> </tab_view> </xsl:variable> <xsl:call-template name="tab_view"> <xsl:with-param name="tview" select="exslt:node-set($tview)/tab_view"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:for-each select="exslt:node-set($allowed_boxes)/fad:box"> <xsl:choose> <xsl:when test="($cols > 1) or ($autocols = 'yes')"> <div class="page_box_col"> <xsl:attribute name="style"> <xsl:value-of select="concat('width:',$width)"/> </xsl:attribute> <xsl:call-template name="fad_box"> <xsl:with-param name="height" select="$height"/> <xsl:with-param name="id" select="@id"/> </xsl:call-template> </div> </xsl:when> <xsl:when test="document('ibs:/mobile_device')/content/@value='yes'"> <xsl:call-template name="box"> <xsl:with-param name="width" select="$width"/> <xsl:with-param name="height" select="$height"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="fad_box"> <xsl:with-param name="height" select="$height"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:otherwise> </xsl:choose> </div> </xsl:template> <xsl:template match="fad:box"> <xsl:call-template name="fad_box"/> </xsl:template> <xsl:template name="fad_box"> <!-- Parameter kommen standardmäßig aus dem Attribut, können aber wahlweise beim Aufruf von außen überschrieben werden --> <xsl:param name="id" select="@id"/> <xsl:param name="class" select="@class"/> <xsl:param name="width" select="@width"/> <xsl:param name="height" select="@height"/> <xsl:param name="caption" select="@caption"/> <xsl:param name="teaser" select="@teaser"/> <xsl:param name="link" select="@link"/> <xsl:param name="mime" select="@mime"/> <xsl:param name="link_text" select="@link_text"/> <xsl:param name="link_name" select="@link_name"/> <xsl:param name="link_params" select="@link_params"/> <xsl:param name="link_image" select="@link_image"/> <xsl:param name="img" select="php:function('system_util_URL::proxy',string(@img))"/> <xsl:param name="img_position" select="@img_position"/> <xsl:param name="img_align" select="@img_align"/> <xsl:param name="ibs_mime" select="@ibs_mime"/> <xsl:param name="allowed" select="@allowed"/> <xsl:param name="target" select="@target"/> <xsl:param name="popup_top" select="@popup_top"/> <xsl:param name="popup_left" select="@popup_left"/> <xsl:param name="popup_width" select="@popup_width"/> <xsl:param name="popup_height" select="@popup_height"/> <xsl:param name="anchor_name" select="@anchor_name"/> <xsl:variable name="new_link_text"><xsl:value-of select="php:function('system_Language::translate', string($link_text))"/></xsl:variable> <xsl:variable name="new_teaser"><xsl:value-of select="php:function('system_Language::translate', string($teaser))"/></xsl:variable> <xsl:variable name="new_caption"><xsl:value-of select="php:function('system_Language::translate', string($caption))"/></xsl:variable> <xsl:variable name="confirm" select="not(php:function('web_Session::isSecure')) and document(concat('ibs:/include,',$link))/content/@confirm!=''"/> <!-- Für width, link_text, img_position und img_align gibt es Standardwerte, falls weder Parameter noch Attribut gesetzt sind --> <xsl:variable name="box_width"> <xsl:if test="$width != ''">width:<xsl:value-of select="$width"/>;</xsl:if> </xsl:variable> <xsl:variable name="box_height"> <xsl:if test="$height != ''"><xsl:value-of select="$height"/></xsl:if> </xsl:variable> <xsl:variable name="box_link_text"> <xsl:choose> <xsl:when test="$new_link_text != ''"><xsl:value-of select="$new_link_text"/></xsl:when> <xsl:otherwise>mehr...</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="box_img_position"> <xsl:choose> <xsl:when test="$img_position != ''"><xsl:value-of select="$img_position"/></xsl:when> <xsl:otherwise><xsl:value-of select="'normal'"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="box_img_align"> <xsl:choose> <xsl:when test="$img_align != ''"><xsl:value-of select="$img_align"/></xsl:when> <xsl:when test="$img_position = 'top'">top</xsl:when> <xsl:otherwise><xsl:value-of select="'left'"/></xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Ab hier ist wieder alter Quellcode ;) --> <xsl:variable name="boxmime"> <xsl:choose> <xsl:when test="$confirm='true'">html</xsl:when> <xsl:when test="$ibs_mime != ''"><xsl:value-of select="$ibs_mime"/></xsl:when> <xsl:when test="$mime = 'none'"></xsl:when> <xsl:when test="$mime != ''"><xsl:value-of select="$mime"/></xsl:when> <xsl:otherwise>html</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="show"> <xsl:choose> <xsl:when test="$allowed='override'">yes</xsl:when> <xsl:when test="substring($link,1,7)='http://'">yes</xsl:when> <xsl:when test="substring($link,1,8)='https://'">yes</xsl:when> <xsl:when test="not($link) or $link='' or document(concat('ibs:/page_allowed,',$link))/result/@value='yes'">yes</xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="link_href"> <xsl:choose> <xsl:when test="$boxmime='ajax' or $boxmime='popup'">#</xsl:when> <xsl:when test="$boxmime=''"><xsl:value-of select="$link"/></xsl:when> <xsl:otherwise><xsl:value-of select="concat($link,'.',$boxmime)"/></xsl:otherwise> </xsl:choose> <xsl:if test="$link_params"> <xsl:value-of select="concat('?',$link_params)"/> </xsl:if> </xsl:variable> <xsl:variable name="link_onclick"> <xsl:if test="$boxmime='ajax'"> requestWebbox('<xsl:value-of select="$link"/>.ajax');return false; </xsl:if> <xsl:if test="$boxmime='popup'"> open('<xsl:value-of select="$link"/>.html','','location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes<xsl:if test="$popup_top!=''">,top=<xsl:value-of select="$popup_top"/></xsl:if><xsl:if test="$popup_left!=''">,left=<xsl:value-of select="$popup_left"/></xsl:if><xsl:if test="$popup_width!=''">,width=<xsl:value-of select="$popup_width"/></xsl:if><xsl:if test="$popup_height!=''">,height=<xsl:value-of select="$popup_height"/></xsl:if>');return false; </xsl:if> </xsl:variable> <xsl:variable name="render_caption_top"> <xsl:if test="caption_top_left!='' or caption_top_right!='' or $box_img_position='caption'">yes</xsl:if> </xsl:variable> <xsl:variable name="img_padding_left_right"> <xsl:choose> <xsl:when test="$box_img_align='right'">padding-left:3px</xsl:when> <xsl:otherwise>padding-right:3px</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="img_padding_top"> <xsl:choose> <xsl:when test="$box_img_position='caption'">padding-top:0px</xsl:when> <xsl:otherwise>padding-top:3px</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="box_img"> <xsl:variable name="box_img_class"> <xsl:choose> <xsl:when test="$box_img_position='top'">page_box_image_top</xsl:when> <xsl:otherwise>page_box_image</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$link!=''"> <div class="{$box_img_class}" style="float:{$box_img_align};{$img_padding_left_right};{$img_padding_top};position:relative;"> <a href="{$link_href}" title="{$new_caption}"> <xsl:if test="$link_onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="$link_onclick"/> </xsl:attribute> </xsl:if> <xsl:if test="$target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> <!-- LINN: max-width weil sonst zu große Fotos alles verschieben --> <img src="{$img}" class="{$class}" alt="" style="max-width:600px;"/> </a> </div> </xsl:when> <xsl:otherwise> <div class="page_box_image" style="float:{$box_img_align};"> <img src="{$img}" class="page_box_image" alt=""/> </div> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- stephan: fuer mobile geraete gibt es extra boxen. diese hier zu rendern waere noch unuebersichtlicher, als es jetzt schon ist...--> <xsl:choose> <xsl:when test="document('ibs:/mobile_device')/content/@value='yes'"> <xsl:call-template name="mobile_box"> <xsl:with-param name="caption" select="$caption"/> <xsl:with-param name="link" select="$link"/> <xsl:with-param name="img" select="$img"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:if test="$show='yes'"> <xsl:variable name="box_class"> <xsl:choose> <xsl:when test="@link_style='hover'">page_box page_box_hover<xsl:if test="$class!=''"> <xsl:value-of select="$class"/></xsl:if></xsl:when> <xsl:otherwise>page_box<xsl:if test="$class!=''"><xsl:value-of select="concat(' ',$class)"/></xsl:if></xsl:otherwise> </xsl:choose> </xsl:variable> <div class="{$box_class}"> <xsl:choose> <xsl:when test="@link_style='hover'"> <xsl:if test="$link_text != ''"> <xsl:attribute name="title"><xsl:value-of select="$link_text"/></xsl:attribute> </xsl:if> <xsl:attribute name="style"><xsl:value-of select="$box_width"/>cursor:pointer;</xsl:attribute> <xsl:attribute name="onclick"> <xsl:choose> <xsl:when test="$target='_blank'">window.open('<xsl:value-of select="$link_href"/>');</xsl:when> <xsl:otherwise>window.location.href='<xsl:value-of select="$link_href"/>';</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:if test="$box_width!=''"> <xsl:attribute name="style"><xsl:value-of select="$box_width"/></xsl:attribute> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:if test="$id!=''"> <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> </xsl:if> <xsl:if test="$anchor_name != ''"> <a name="{$anchor_name}"/> </xsl:if> <!-- CAPTION --> <!-- caption_top und bild in caption --> <xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align!='right'"> <!-- bild links neben caption --> <xsl:copy-of select="$box_img"/> </xsl:if> <xsl:if test="$render_caption_top='yes' or ($box_img_align='right' and $box_img_position='caption')"> <div class="page_box_caption_top"> <xsl:if test="caption_top_left!='' or caption_top_right!='' or $img!=''"> <xsl:if test="caption_top_left!=''"> <div class="page_box_caption_top_left"><xsl:value-of select="caption_top_left"/></div> </xsl:if> <xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align='right'"> <!-- bild rechts neben caption --> <xsl:copy-of select="$box_img"/> </xsl:if> <xsl:if test="caption_top_right!=''"> <div class="page_box_caption_top_right"> <xsl:value-of select="caption_top_right"/> </div> </xsl:if> </xsl:if> <!-- float der ueberschrift abhaengig von bild --> <!--xsl:choose> <xsl:when test="$img!='' and $box_img_position='caption' and $box_img_align='right'"> <div style="clear:left;height:1px;line-height:1px;font-size:1px"> </div> </xsl:when> <xsl:otherwise> <div style="clear:right;height:1px;line-height:1px;font-size:1px"> </div> </xsl:otherwise> </xsl:choose--> </div> </xsl:if> <xsl:if test="$new_caption!=''"> <xsl:variable name="new_teaser_caption"> <xsl:if test="$new_teaser != ''"> <xsl:value-of select="concat($new_teaser, ': ')"/> </xsl:if> <xsl:value-of select="$new_caption"/> </xsl:variable> <div class="page_box_caption" title="{$new_teaser_caption}"> <xsl:choose> <xsl:when test="$link!=''"> <a href="{$link_href}"> <xsl:if test="$link_onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="$link_onclick"/> </xsl:attribute> </xsl:if> <xsl:if test="$target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> <xsl:value-of select="$new_teaser_caption"/> </a> </xsl:when> <xsl:otherwise> <xsl:value-of select="$new_teaser_caption"/> </xsl:otherwise> </xsl:choose> </div> </xsl:if> <xsl:if test="caption_extra!=''"> <div class="page_box_caption_extra"><xsl:copy-of select="caption_extra"/></div> </xsl:if> <!-- CONTENT --> <!-- bild neben content --> <div class="page_box_content"> <xsl:if test="$box_height != '' and $box_height != 'auto'"> <xsl:attribute name="style">height:<xsl:value-of select="$box_height"/>;"</xsl:attribute> </xsl:if> <xsl:if test="$img!='' and $box_img_position!='caption'"> <xsl:copy-of select="$box_img"/> </xsl:if> <!-- die alten boxen haben noch kein box_text knoten --> <xsl:choose> <xsl:when test="box_text"> <div class="page_box_text"> <xsl:apply-templates select="box_text/node()"/> </div> </xsl:when> <xsl:otherwise> <div class="page_box_text"> <xsl:apply-templates/> </div> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="$link_name='none' or @link_style='hover'"/> <xsl:otherwise> <xsl:if test="$link!=''"> <xsl:variable name="title"> <xsl:choose> <xsl:when test="caption_top_left != ''"> <xsl:value-of select="concat(caption_top_left,': ',$new_caption)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$new_caption"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$link_href}" title="{$title}" class="page_box_more"> <xsl:if test="$link_onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="$link_onclick"/> </xsl:attribute> </xsl:if> <xsl:if test="$target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> <!-- Bild vorhanden? Dann Text nur als tooltip anzeigen --> <xsl:choose> <xsl:when test="$link_image != ''"> <img src="{$link_image}" title="{$box_link_text}" alt=""/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$box_link_text"/> </xsl:otherwise> </xsl:choose> </a> </xsl:if> </xsl:otherwise> </xsl:choose> </div> <!-- FOOTER --> <xsl:if test="footer!=''"> <div class="page_box_footer"> <xsl:copy-of select="footer"/> </div> </xsl:if> </div> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="textbox_list"> <xsl:call-template name="textbox_list"/> </xsl:template> <xsl:template name="textbox_list"> <!-- achtung: boxlisten auf mobilen geraeten haben nur eine spalte und die boxen sind immer 100% breit --> <div class="textbox_list"> <xsl:if test="@width"> <xsl:attribute name="style"> <xsl:value-of select="concat('width:',@width)"/> </xsl:attribute> </xsl:if> <xsl:if test="@class"> <xsl:attribute name="class"> <xsl:value-of select="concat('textbox_list ',@class)"/> </xsl:attribute> </xsl:if> <xsl:variable name="allowed_boxes"> <xsl:copy-of select="box[(not(@link) or @link='' or substring(@link,1,7)='http://' or substring(@link,1,8)='https://' or document(concat('ibs:/page_allowed,',@link))/result/@value='yes')]"/> </xsl:variable> <xsl:variable name="autocols" select="@autocols"/> <xsl:variable name="cols"> <xsl:choose> <xsl:when test="@cols > 1"> <xsl:value-of select="@cols"/> </xsl:when> <xsl:otherwise>1</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="boxwidth"> <xsl:choose> <xsl:when test="string-length(@boxwidth)>0"> <xsl:value-of select="@boxwidth"/> </xsl:when> <xsl:when test="document('ibs:/mobile_device')/content/@value='yes'"> <xsl:value-of select="'100%'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat(100 div @cols,'%')"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="boxheight"> <xsl:value-of select="@boxheight"/> </xsl:variable> <!--<xsl:variable name="margin">--> <!--<xsl:choose>--> <!--<xsl:when test="@margin">--> <!--<xsl:value-of select="@margin"/>--> <!--</xsl:when>--> <!--<xsl:otherwise>1%</xsl:otherwise>--> <!--</xsl:choose>--> <!--</xsl:variable>--> <xsl:for-each select="exslt:node-set($allowed_boxes)/box"> <xsl:choose> <xsl:when test="($cols > 1) or ($autocols = 'yes')"> <div class="page_box_col"> <xsl:choose> <xsl:when test="position() = 1"> <xsl:attribute name="class">page_box_col first_col</xsl:attribute> </xsl:when> <xsl:when test="position() = last()"> <xsl:attribute name="class">page_box_col last_col</xsl:attribute> </xsl:when> </xsl:choose> <xsl:if test="not($autocols)"> <xsl:attribute name="style"> <xsl:value-of select="concat('width:',$boxwidth)"/> </xsl:attribute> </xsl:if> <xsl:call-template name="box"> <xsl:with-param name="height" select="$boxheight"/> <xsl:with-param name="id" select="@id"/> </xsl:call-template> </div> </xsl:when> <xsl:when test="document('ibs:/mobile_device')/content/@value='yes'"> <xsl:call-template name="box"> <xsl:with-param name="width" select="$boxwidth"/> <xsl:with-param name="height" select="$boxheight"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="box"> <xsl:with-param name="height" select="$boxheight"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:for-each> </div> </xsl:template> <xsl:template match="icon_panel"> <xsl:call-template name="icon_panel"/> </xsl:template> <xsl:template name="icon_panel"> <div class="icon_panel"> <xsl:apply-templates select="*"/> </div> </xsl:template> <xsl:template match="icon_box"> <xsl:call-template name="icon_box"/> </xsl:template> <xsl:template name="inveda_site_box"> <xsl:param name="caption"/> <xsl:param name="caption_link"/> <xsl:param name="content"/> <xsl:param name="content_style"/> <xsl:param name="header_height" select="'20'"/> <xsl:param name="inner_spacing_h" select="'3'"/> <xsl:param name="width" select="'auto'"/> <xsl:param name="overflow" select="'hidden'"/> <xsl:param name="topbox" select="'false'"/> <!--xsl:variable name="new_caption"><xsl:value-of select="php:function('getTranslation', string($caption))"/></xsl:variable--> <xsl:variable name="new_caption"> <xsl:value-of select="php:function('system_Language::translate', string($caption))"/> </xsl:variable> <xsl:variable name="cstyle"> <xsl:if test="$content_style!=''"> <xsl:value-of select="concat('_',$content_style)"/> </xsl:if> </xsl:variable> <xsl:if test="$new_caption != ''"> <xsl:choose> <xsl:when test="$caption_link != ''"> <a href="{$caption_link}"> <xsl:element name="div"> <xsl:attribute name="style">line-height:<xsl:value-of select="$header_height"/>px;width:auto;overflow:<xsl:value-of select="$overflow"/>; </xsl:attribute> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$topbox = 'true'">site_box_header<xsl:value-of select="$cstyle"/>_round </xsl:when> <xsl:otherwise>site_box_header<xsl:value-of select="$cstyle"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:value-of select="$new_caption"/> </xsl:element> </a> </xsl:when> <xsl:otherwise> <xsl:element name="div"> <xsl:attribute name="style">line-height:<xsl:value-of select="$header_height"/>px;width:auto;overflow:<xsl:value-of select="$overflow"/>; </xsl:attribute> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$topbox = 'true'">site_box_header<xsl:value-of select="$cstyle"/>_round </xsl:when> <xsl:otherwise>site_box_header<xsl:value-of select="$cstyle"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:value-of select="$new_caption"/> </xsl:element> </xsl:otherwise> </xsl:choose> </xsl:if> <!--xsl:if test="$inner_spacing_h > 0"> <div style="line-height:{$inner_spacing_h}px;width:{$width};overflow:{$overflow};"> </div> </xsl:if--> <xsl:if test="$content"> <xsl:if test="$content/text() = ''">   </xsl:if> <div style="width:{$width};overflow:{$overflow};" class="site_box_content{$cstyle}" valign="top"> <xsl:apply-templates select="exslt:node-set($content)"/> </div> </xsl:if> <!--xsl:if test="$inner_spacing_h > 0"> <div style="line-height:{$inner_spacing_h}px;width:{$width};overflow:{$overflow}"> </div> </xsl:if--> </xsl:template> <!-- default parameter fuer die box. dieses template kann in die transformation des jeweiligen webskins kopiert werden, um die default parameter fuer den skin zu individualisieren. --> <!--xsl:template match="box"> <xsl:variable name="width"> <xsl:choose> <xsl:when test="@width!=''"><xsl:value-of select="@width"/></xsl:when> <xsl:otherwise>100%</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="link_text"> <xsl:choose> <xsl:when test="@link_text!=''"><xsl:value-of select="@link_text"/></xsl:when> <xsl:otherwise>mehr...</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="img_position"> <xsl:choose> <xsl:when test="@img_position!=''"><xsl:value-of select="@img_position"/></xsl:when> <xsl:otherwise>normal</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="img_align"> <xsl:choose> <xsl:when test="@img_align!=''"><xsl:value-of select="@img_align"/></xsl:when> <xsl:otherwise>left</xsl:otherwise> </xsl:choose> </xsl:variable> </xsl:template--> <xsl:template name="box"> <!-- Parameter kommen standardmäßig aus dem Attribut, können aber wahlweise beim Aufruf von außen überschrieben werden --> <xsl:param name="id" select="@id"/> <xsl:param name="class" select="@class"/> <xsl:param name="width" select="@width"/> <xsl:param name="height" select="@height"/> <xsl:param name="teaser" select="@teaser"/> <xsl:param name="caption" select="@caption"/> <xsl:param name="link" select="@link"/> <xsl:param name="mime" select="@mime"/> <xsl:param name="link_text" select="@link_text"/> <xsl:param name="link_name" select="@link_name"/> <xsl:param name="link_params" select="@link_params"/> <xsl:param name="link_image" select="@link_image"/> <xsl:param name="img" select="php:function('system_util_URL::proxy',string(@img))"/> <xsl:param name="img_position" select="@img_position"/> <xsl:param name="img_align" select="@img_align"/> <xsl:param name="ibs_mime" select="@ibs_mime"/> <xsl:param name="allowed" select="@allowed"/> <xsl:param name="target" select="@target"/> <xsl:param name="popup_top" select="@popup_top"/> <xsl:param name="popup_left" select="@popup_left"/> <xsl:param name="popup_width" select="@popup_width"/> <xsl:param name="popup_height" select="@popup_height"/> <xsl:param name="anchor_name" select="@anchor_name"/> <xsl:param name="visible" select="@visible"/> <xsl:variable name="new_link_text"><xsl:value-of select="php:function('system_Language::translate', string($link_text))"/></xsl:variable> <xsl:variable name="new_teaser"><xsl:value-of select="php:function('system_Language::translate', string($teaser))"/></xsl:variable> <xsl:variable name="new_caption"><xsl:value-of select="php:function('system_Language::translate', string($caption))"/></xsl:variable> <xsl:variable name="confirm" select="not(php:function('web_Session::isSecure')) and document(concat('ibs:/include,',$link))/content/@confirm!=''"/> <!-- Für width, link_text, img_position und img_align gibt es Standardwerte, falls weder Parameter noch Attribut gesetzt sind --> <xsl:variable name="box_width"> <xsl:if test="$width != ''">width:<xsl:value-of select="$width"/>;</xsl:if> </xsl:variable> <xsl:variable name="box_height"> <xsl:if test="$height != ''"><xsl:value-of select="$height"/></xsl:if> </xsl:variable> <xsl:variable name="box_link_text"> <xsl:choose> <xsl:when test="$new_link_text != ''"><xsl:value-of select="$new_link_text"/></xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="$caption = 'Zugriffszähler'">Hier finden Sie weitere Statistiken.</xsl:when> <xsl:when test="$caption = 'Produktabos'">Erfahren Sie mehr über weitere Abos.</xsl:when> <xsl:otherwise> mehr...</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="box_img_position"> <xsl:choose> <xsl:when test="$img_position != ''"><xsl:value-of select="$img_position"/></xsl:when> <xsl:otherwise><xsl:value-of select="'normal'"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="box_img_align"> <xsl:choose> <xsl:when test="$img_align != ''"><xsl:value-of select="$img_align"/></xsl:when> <xsl:when test="$img_position = 'top'">top</xsl:when> <xsl:otherwise><xsl:value-of select="'left'"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="box_visible"> <xsl:if test="$visible = 'false'">visibility: hidden;</xsl:if> </xsl:variable> <!-- Ab hier ist wieder alter Quellcode ;) --> <xsl:variable name="boxmime"> <xsl:choose> <xsl:when test="$confirm='yes'">html</xsl:when> <xsl:when test="$ibs_mime != ''"><xsl:value-of select="$ibs_mime"/></xsl:when> <xsl:when test="$mime = 'none'"></xsl:when> <xsl:when test="$mime != ''"><xsl:value-of select="$mime"/></xsl:when> <xsl:otherwise>html</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="show"> <xsl:choose> <xsl:when test="$allowed='override'">yes</xsl:when> <xsl:when test="substring($link,1,7)='http://'">yes</xsl:when> <xsl:when test="substring($link,1,8)='https://'">yes</xsl:when> <xsl:when test="not($link) or $link='' or document(concat('ibs:/page_allowed,',$link))/result/@value='yes'">yes</xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="link_href"> <xsl:choose> <xsl:when test="$boxmime='ajax' or $boxmime='popup'">#</xsl:when> <xsl:when test="$boxmime=''"><xsl:value-of select="$link"/></xsl:when> <xsl:otherwise><xsl:value-of select="concat($link,'.',$boxmime)"/></xsl:otherwise> </xsl:choose> <xsl:if test="$link_params"> <xsl:value-of select="concat('?',$link_params)"/> </xsl:if> </xsl:variable> <xsl:variable name="link_onclick"> <xsl:if test="$boxmime='ajax'"> requestWebbox('<xsl:value-of select="$link"/>.ajax');return false; </xsl:if> <xsl:if test="$boxmime='popup'"> open('<xsl:value-of select="$link"/>.html','','location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes<xsl:if test="$popup_top!=''">,top=<xsl:value-of select="$popup_top"/></xsl:if><xsl:if test="$popup_left!=''">,left=<xsl:value-of select="$popup_left"/></xsl:if><xsl:if test="$popup_width!=''">,width=<xsl:value-of select="$popup_width"/></xsl:if><xsl:if test="$popup_height!=''">,height=<xsl:value-of select="$popup_height"/></xsl:if>');return false; </xsl:if> </xsl:variable> <xsl:variable name="render_caption_top"> <xsl:if test="caption_top_left!='' or caption_top_right!='' or $box_img_position='caption'">yes</xsl:if> </xsl:variable> <xsl:variable name="img_padding_left_right"> <xsl:choose> <xsl:when test="$box_img_align='right'">padding-left:3px</xsl:when> <xsl:otherwise>padding-right:3px</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="img_padding_top"> <xsl:choose> <xsl:when test="$box_img_position='caption'">padding-top:0px</xsl:when> <xsl:otherwise>padding-top:3px</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="box_img"> <xsl:variable name="box_img_class"> <xsl:choose> <xsl:when test="$box_img_position='top'">page_box_image_top</xsl:when> <xsl:otherwise>page_box_image</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$link!=''"> <div class="{$box_img_class}" style="float:{$box_img_align};{$img_padding_left_right};{$img_padding_top};position:relative;"> <a href="{$link_href}" title="{$new_caption}"> <xsl:if test="$link_onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="$link_onclick"/> </xsl:attribute> </xsl:if> <xsl:if test="$target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> <!-- LINN: max-width weil sonst zu große Fotos alles verschieben --> <img src="{$img}" class="{$class}" alt="" style="max-width:600px;"/> </a> </div> </xsl:when> <xsl:otherwise> <div class="page_box_image" style="float:{$box_img_align};"> <img src="{$img}" class="page_box_image" alt=""/> </div> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- stephan: fuer mobile geraete gibt es extra boxen. diese hier zu rendern waere noch unuebersichtlicher, als es jetzt schon ist...--> <xsl:choose> <xsl:when test="document('ibs:/mobile_device')/content/@value='yes'"> <xsl:call-template name="mobile_box"> <xsl:with-param name="caption" select="$caption"/> <xsl:with-param name="link" select="$link"/> <xsl:with-param name="img" select="$img"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:if test="$show='yes'"> <xsl:variable name="box_class"> <xsl:choose> <xsl:when test="@link_style='hover'">page_box page_box_hover<xsl:if test="$class!=''"> <xsl:value-of select="$class"/></xsl:if></xsl:when> <xsl:otherwise>page_box<xsl:if test="$class!=''"><xsl:value-of select="concat(' ',$class)"/></xsl:if></xsl:otherwise> </xsl:choose> </xsl:variable> <div class="{$box_class}"> <xsl:choose> <xsl:when test="@link_style='hover'"> <xsl:if test="$link_text != ''"> <xsl:attribute name="title"><xsl:value-of select="$link_text"/></xsl:attribute> </xsl:if> <xsl:attribute name="style"><xsl:value-of select="$box_width"/>cursor:pointer;<xsl:value-of select="$box_visible"/></xsl:attribute> <xsl:attribute name="onclick"> <xsl:choose> <xsl:when test="$target='_blank'">window.open('<xsl:value-of select="$link_href"/>');</xsl:when> <xsl:otherwise>window.location.href='<xsl:value-of select="$link_href"/>';</xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:if test="$box_width != '' or $box_visible!= '' "> <xsl:attribute name="style"><xsl:value-of select="$box_width"/><xsl:value-of select="$box_visible"/></xsl:attribute> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:if test="$id!=''"> <xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute> </xsl:if> <xsl:if test="$anchor_name != ''"> <a name="{$anchor_name}"/> </xsl:if> <!-- CAPTION --> <!-- caption_top und bild in caption --> <xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align!='right'"> <!-- bild links neben caption --> <xsl:copy-of select="$box_img"/> </xsl:if> <xsl:if test="$render_caption_top='yes' or ($box_img_align='right' and $box_img_position='caption')"> <div class="page_box_caption_top"> <xsl:if test="caption_top_left!='' or caption_top_right!='' or $img!=''"> <xsl:if test="caption_top_left!=''"> <div class="page_box_caption_top_left"><xsl:value-of select="caption_top_left"/></div> </xsl:if> <xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align='right'"> <!-- bild rechts neben caption --> <xsl:copy-of select="$box_img"/> </xsl:if> <xsl:if test="caption_top_right!=''"> <div class="page_box_caption_top_right"> <xsl:value-of select="caption_top_right"/> </div> </xsl:if> </xsl:if> <!-- float der ueberschrift abhaengig von bild --> <!--xsl:choose> <xsl:when test="$img!='' and $box_img_position='caption' and $box_img_align='right'"> <div style="clear:left;height:1px;line-height:1px;font-size:1px"> </div> </xsl:when> <xsl:otherwise> <div style="clear:right;height:1px;line-height:1px;font-size:1px"> </div> </xsl:otherwise> </xsl:choose--> </div> </xsl:if> <xsl:if test="$new_caption!=''"> <xsl:variable name="new_teaser_caption"> <xsl:if test="$new_teaser != ''"> <xsl:value-of select="concat($new_teaser, ': ')"/> </xsl:if> <xsl:value-of select="$new_caption"/> </xsl:variable> <div class="page_box_caption" title="{$new_teaser_caption}"> <xsl:choose> <xsl:when test="$link!=''"> <a href="{$link_href}"> <xsl:if test="$link_onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="$link_onclick"/> </xsl:attribute> </xsl:if> <xsl:if test="$target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> <xsl:value-of select="$new_teaser_caption"/> </a> </xsl:when> <xsl:otherwise> <xsl:value-of select="$new_teaser_caption"/> </xsl:otherwise> </xsl:choose> </div> </xsl:if> <xsl:if test="caption_extra!=''"> <div class="page_box_caption_extra"><xsl:copy-of select="caption_extra"/></div> </xsl:if> <!-- CONTENT --> <!-- bild neben content --> <div class="page_box_content"> <xsl:if test="$box_height != '' and $box_height != 'auto'"> <xsl:attribute name="style">height:<xsl:value-of select="$box_height"/>;"</xsl:attribute> </xsl:if> <xsl:if test="$img!='' and $box_img_position!='caption'"> <xsl:copy-of select="$box_img"/> </xsl:if> <!-- die alten boxen haben noch kein box_text knoten --> <xsl:choose> <xsl:when test="box_text"> <div class="page_box_text"> <xsl:apply-templates select="box_text/node()"/> </div> </xsl:when> <xsl:otherwise> <div class="page_box_text"> <xsl:apply-templates/> </div> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="$link_name='none' or @link_style='hover'"/> <xsl:otherwise> <xsl:if test="$link!=''"> <xsl:variable name="title"> <xsl:choose> <xsl:when test="caption_top_left != ''"> <xsl:value-of select="concat(caption_top_left,': ',$new_caption)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$new_caption"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{$link_href}" title="{$title}" class="page_box_more"> <xsl:if test="$link_onclick != ''"> <xsl:attribute name="onclick"> <xsl:value-of select="$link_onclick"/> </xsl:attribute> </xsl:if> <xsl:if test="$target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> <!-- Bild vorhanden? Dann Text nur als tooltip anzeigen --> <xsl:choose> <xsl:when test="$link_image != ''"> <img src="{$link_image}" title="{$box_link_text}" alt=""/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$box_link_text"/> </xsl:otherwise> </xsl:choose> </a> </xsl:if> </xsl:otherwise> </xsl:choose> </div> <!-- FOOTER --> <xsl:if test="footer!=''"> <div class="page_box_footer"> <xsl:copy-of select="footer"/> </div> </xsl:if> </div> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="mobile_box"> <xsl:param name="caption"/> <xsl:param name="link"/> <xsl:param name="img"/> <div style="clear:both"> <xsl:if test="$link!=''"> <xsl:attribute name="onclick">window.iui.showPageByHref('<xsl:value-of select="$link"/>.html', null, null, null, null, '<xsl:value-of select="$caption"/>'); </xsl:attribute> </xsl:if> <div class="page_box_caption" title="{$caption}"> <a><xsl:value-of select="$caption"/>  </a> </div> <div class="page_box_content" style="height:auto;overflow:auto;"> <xsl:choose> <xsl:when test="$img='t'"> <img align="left" border="0" src="textbox.{$nr}.jpg" alt=""/> </xsl:when> <xsl:when test="$img!='' and $img!='f'"> <img align="left" border="0" src="{$img}" alt=""/> </xsl:when> </xsl:choose> <xsl:choose> <xsl:when test="box_text!=''"> <xsl:apply-templates select="box_text/node()"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </div> </div> </xsl:template> <xsl:template name="icon_box"> <!-- Parameter kommen standardmäßig aus dem Attribut, können aber wahlweise beim Aufruf von außen überschrieben werden --> <xsl:param name="caption" select="@caption"/> <xsl:param name="link" select="@link"/> <xsl:param name="mime" select="@mime"/> <xsl:param name="link_params" select="@link_params"/> <xsl:param name="img" select="php:function('system_util_URL::proxy',string(@img))"/> <xsl:param name="ibs_mime" select="@ibs_mime"/> <xsl:param name="target" select="@target"/> <xsl:variable name="new_caption"> <xsl:value-of select="php:function('system_Language::translate', string($caption))"/> </xsl:variable> <xsl:variable name="boxmime"> <xsl:choose> <xsl:when test="$ibs_mime != ''"> <xsl:value-of select="$ibs_mime"/> </xsl:when> <xsl:when test="$mime = 'none'"></xsl:when> <xsl:when test="$mime != ''"> <xsl:value-of select="$mime"/> </xsl:when> <xsl:otherwise>html</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="link_href"> <xsl:choose> <xsl:when test="$boxmime='ajax' or $boxmime='popup'">#</xsl:when> <xsl:when test="$boxmime=''"> <xsl:value-of select="$link"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($link,'.',$boxmime)"/> </xsl:otherwise> </xsl:choose> <xsl:if test="$link_params"> <xsl:value-of select="concat('?',$link_params)"/> </xsl:if> </xsl:variable> <div class="icon-wrapper"> <xsl:if test="@layout"> <xsl:attribute name="class"> <xsl:value-of select="'icon-wrapper wide'"/> </xsl:attribute> </xsl:if> <div class="icon-box"> <xsl:if test="@background"> <xsl:attribute name="style"> <xsl:value-of select="concat('background:',@background)"/> </xsl:attribute> </xsl:if> <a href="{$link_href}"> <xsl:if test="$target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$target"/> </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="$img"> <div class="icon"> <img src="/skins/{document('arg:/inveda_cm' )/inveda_cm/skin}/{document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default}/images/{$img}" alt="{$new_caption}"/> </div> </xsl:when> <xsl:otherwise> <div class="icon-letter"> <xsl:value-of select="@letter"/> </div> </xsl:otherwise> </xsl:choose> <xsl:if test="$new_caption!=''"> <span class="caption"> <xsl:value-of select="$new_caption"/> </span> </xsl:if> </a> </div> </div> </xsl:template> <xsl:template match="checklink"> <xsl:if test="(document(concat('ibs:/page_allowed,',@link))/result/@value='yes' and (@inverted!='yes' or not(@inverted))) or (document(concat('ibs:/page_allowed,',@link))/result/@value!='yes' and @inverted='yes')"> <xsl:variable name="mime"> <xsl:choose> <xsl:when test="@ibs_mime != ''"> <xsl:value-of select="@ibs_mime"/> </xsl:when> <xsl:when test="@mime != ''"> <xsl:value-of select="@mime"/> </xsl:when> <xsl:otherwise>html</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="@copy='yes'"> <xsl:apply-templates select="*"/> </xsl:when> <xsl:otherwise> <xsl:call-template name="RenderActionElement"> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="title" select="."/> <xsl:with-param name="caption" select="."/> <xsl:with-param name="link" select="concat(@link,'.',$mime)"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- allgemeines Inhaltsverzeichnis-Template --> <xsl:template name="inveda_chapter_menu"> <xsl:param name="type"/> <xsl:param name="css_family"/> <xsl:param name="bullet_family"/> <xsl:param name="bullet_mime" select="'gif'"/> <xsl:if test="count(chapter) > 0"> <xsl:choose> <xsl:when test="$type = 'horizontal_table'"> <table class="{concat($css_family,'_table')}"> <tr class="{concat($css_family,'_row')}"> <xsl:for-each select="chapter"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> <xsl:with-param name="link" select="concat('#',generate-id(@caption))"/> <xsl:with-param name="text" select="@caption"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </xsl:for-each> </tr> </table> </xsl:when> <xsl:when test="$type = 'vertical_table'"> <table class="{concat($css_family,'_table')}" border="0"> <xsl:for-each select="chapter"> <tr class="{concat($css_family,'_row')}"> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="bullet_family" select="$bullet_family"/> <xsl:with-param name="bullet_mime" select="$bullet_mime"/> </xsl:call-template> <xsl:call-template name="RenderCell"> <xsl:with-param name="css_family" select="$css_family"/> <xsl:with-param name="link" select="concat('#',generate-id(@caption))"/> <xsl:with-param name="text" select="@caption"/> <xsl:with-param name="selected" select="@selected"/> </xsl:call-template> </tr> </xsl:for-each> </table> </xsl:when> </xsl:choose> </xsl:if> </xsl:template> <!-- allgemeines Template für Tabellen-Zellen --> <xsl:template name="RenderCell"> <xsl:param name="name" select="''"/> <xsl:param name="css_family"/> <xsl:param name="bullet_family" select="''"/> <xsl:param name="bullet_mime" select="'gif'"/> <xsl:param name="selected"/> <xsl:param name="nowrap" select="''"/> <xsl:param name="secure" select="''"/> <xsl:param name="valign" select="''"/> <xsl:param name="text" select="''"/> <xsl:param name="link"/> <xsl:param name="ajax" select="@ajax"/> <xsl:param name="action" select="''"/> <xsl:param name="link_target" select="''"/> <xsl:param name="anchor_id" select="''"/> <xsl:param name="tag" select="'td'"/> <xsl:param name="colspan" select="1"/> <xsl:param name="width" select="''"/> <xsl:variable name="skin"> <xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin"/> </xsl:variable> <xsl:variable name="skin_scheme_default"> <xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin_scheme_default"/> </xsl:variable> <xsl:variable name="skin_scheme"> <xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin_scheme"/> </xsl:variable> <xsl:variable name="append_selected"> <xsl:choose> <xsl:when test="$selected='true'">selected</xsl:when> <xsl:otherwise> <xsl:value-of select="$selected"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:element name="{$tag}"> <xsl:if test="$width!=''"> <xsl:attribute name="style"> <xsl:value-of select="concat('width:',$width)"/> </xsl:attribute> </xsl:if> <xsl:if test="$colspan > 1"> <xsl:attribute name="colspan"> <xsl:value-of select="$colspan"/> </xsl:attribute> </xsl:if> <xsl:if test="$valign!=''"> <xsl:attribute name="valign"> <xsl:value-of select="$valign"/> </xsl:attribute> </xsl:if> <!-- li-tag uterstützt kein nowrap Attribut! --> <xsl:if test="$nowrap != '' and $tag != 'li' and not(@nowrap='false')"> <xsl:attribute name="nowrap">nowrap</xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="$css_family='sysmenu' or $secure=1"> <xsl:variable name="name2"> <xsl:choose> <!--stephan: die link zum bearbeitungsmodus und lexikon bekommen eine senderbehandlung--> <xsl:when test="$text = '[Direktbearbeitungsmodus]' or $text = '[Änderungen übernehmen]'">_edit</xsl:when> <xsl:when test="position()=last() and position()=1">_cell_alone</xsl:when> <xsl:when test="position()=1">_cell_first</xsl:when> <xsl:when test="position()=last()">_cell_last</xsl:when> <xsl:otherwise>_cell</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$selected!=''"> <xsl:value-of select="concat($css_family,$name2,'_',$append_selected)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($css_family,$name2)"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:if test="$name='customer_menu'"> <xsl:attribute name="style">padding-right:5px;</xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="$selected!=''"> <xsl:attribute name="class"> <xsl:value-of select="concat($css_family, '_cell_',$append_selected)"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="class"> <xsl:value-of select="concat($css_family, '_cell')"/> </xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> <xsl:if test="$bullet_family != ''"> <img border="0" alt=""> <xsl:choose> <xsl:when test="$selected!=''"> <xsl:choose> <xsl:when test="$skin_scheme_default!=''"> <xsl:attribute name="src"> <xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme_default,'/',$bullet_family,'_selected.',$bullet_mime)"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="src"> <xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme,'/',$bullet_family,'_selected.',$bullet_mime)"/> </xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="$skin_scheme_default!=''"> <xsl:attribute name="src"> <xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme_default,'/',$bullet_family,'.',$bullet_mime)"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="src"> <xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme,'/',$bullet_family,'.',$bullet_mime)"/> </xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </img> <img src="/web.images.1pix_trans.gif" width="3" height="10" alt=""/> </xsl:if> <xsl:variable name="onclick"> <xsl:choose> <xsl:when test="$ajax != '' and $action != ''"> <xsl:value-of select="concat('javascript:requestWebbox("',$ajax,$page,'.ajax?action=',$action,'");return false;')"/> </xsl:when> <xsl:when test="$ajax != ''"> <xsl:value-of select="concat('javascript:requestWebbox("',$ajax,'");return false;')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="''"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="$link != ''"> <a href="{$link}" onclick="{$onclick}" title="{$text}"> <xsl:choose> <xsl:when test="$selected"> <xsl:attribute name="class"> <xsl:value-of select="concat($css_family, '_link_selected')"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="class"> <xsl:value-of select="concat($css_family, '_link')"/> </xsl:attribute> </xsl:otherwise> </xsl:choose> <xsl:if test="$link_target!=''"> <xsl:attribute name="target"> <xsl:value-of select="$link_target"/> </xsl:attribute> </xsl:if> <xsl:if test="$anchor_id!=''"> <xsl:attribute name="id"> <xsl:value-of select="$anchor_id"/> </xsl:attribute> </xsl:if> <xsl:value-of select="$text"/> </a> </xsl:when> <xsl:otherwise> <xsl:value-of select="$text"/> </xsl:otherwise> </xsl:choose> </xsl:element> </xsl:template> <xsl:template name="spacer"> <xsl:param name="n"/> <xsl:if test="$n > 0"> <img src="/web.images.1pix_trans.gif" border="0" heigth="15" width="15" alt=""/> <xsl:call-template name="spacer"> <xsl:with-param name="n"> <xsl:value-of select="$n - 1"/> </xsl:with-param> </xsl:call-template> </xsl:if> </xsl:template> <!--Datenmasken--> <xsl:template name="RenderMailDataElement"> <xsl:param name="value" /> <xsl:param name="row_type" select="data_row_1"/> <xsl:param name="nowrap" select="true"/> <xsl:choose> <xsl:when test="$row_type"> <td class="{$row_type}" nowrap="{$nowrap}"> <xsl:choose> <xsl:when test="$value!=''"> <a href="mailto:{$value}"><xsl:value-of select="$value"/></a> </xsl:when> <xsl:otherwise>-</xsl:otherwise> </xsl:choose> </td> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="$value!=''"> <a href="mailto:{$value}"><xsl:value-of select="$value"/></a> </xsl:when> <xsl:otherwise>-</xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- template entfernt alle zeilenumbrueche und verwendet dafür br tags --> <xsl:template name="ReplaceNewLineWithBreaks"> <xsl:param name="text" select="."/> <xsl:choose> <xsl:when test="contains($text, ' ')"> <xsl:if test="string-length(substring-before($text, ' ')) > 0"> <xsl:value-of select="substring-before($text, ' ')"/> </xsl:if> <br/> <xsl:call-template name="ReplaceNewLineWithBreaks"> <xsl:with-param name="text" select="substring-after($text,' ')"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:if test="string-length($text) > 0"> <xsl:value-of select="$text"/> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- allgemeines Listen-Template --> <xsl:template name="inveda_list"> <xsl:param name="type"/> <xsl:param name="css_family"/> <table class="{concat($css_family,'_table')}" cellpadding="0" cellspacing="0" width="100%"> <xsl:if test="@caption"> <tr> <td colspan="2" class="{concat($css_family,'_header_last')}"> <xsl:value-of select="@caption"/> </td> </tr> </xsl:if> <xsl:for-each select="item"> <xsl:variable name="row_type"> <xsl:choose> <xsl:when test="position() mod 2 = 0"> <xsl:value-of select="concat($css_family,'_row_1')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($css_family,'_row_2')"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <tr class="{concat($css_family,'_row')}"> <xsl:if test="@caption"> <td class="{concat($css_family,'_label')}" valign="top"> <xsl:value-of select="@caption"/> </td> </xsl:if> <xsl:choose> <xsl:when test="@type='iterate'"> <td class="{$row_type}" valign="top"> <xsl:apply-templates select="*|node()"/> </td> </xsl:when> <xsl:when test="$type='money'"> <xsl:call-template name="RenderMoneyElement"> <xsl:with-param name="row_type" select="concat($row_type,'_last')"/> <xsl:with-param name="value" select="."/> <xsl:with-param name="string_if_NaN" select="."/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:call-template name="RenderDataElement"> <xsl:with-param name="row_type" select="$row_type"/> <xsl:with-param name="value" select="."/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </tr> </xsl:for-each> </table> </xsl:template> <xsl:template name="RenderVTR"> <xsl:variable name="alternation"> <xsl:choose> <xsl:when test="position() mod 2 = 0">_row_1</xsl:when> <xsl:otherwise>_row_2</xsl:otherwise> </xsl:choose> </xsl:variable> <tr> <xsl:for-each select="td|th"> <xsl:variable name="prefix"> <xsl:choose> <xsl:when test="name()='th'">data_header</xsl:when> <xsl:otherwise>data</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="apply_alternation"> <xsl:choose> <xsl:when test="name()='th'">_disabled</xsl:when> <xsl:otherwise> <xsl:value-of select="$alternation"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <td nowrap="nowrap"> <xsl:attribute name="class"> <xsl:value-of select="concat($prefix,$apply_alternation)"/> </xsl:attribute> <xsl:if test="@colspan"> <b>ACHTUNG!</b> <xsl:value-of select="'colspan wird nicht unterstützt!'"/> </xsl:if> <xsl:if test="@rowspan"> <b>ACHTUNG!</b> <xsl:value-of select="'rowspan wird nicht unterstützt!'"/> </xsl:if> <xsl:apply-templates/> </td> </xsl:for-each> </tr> </xsl:template> <!-- STRING Funktionen /--> <xsl:template name="STR_uppercase"> <xsl:param name="string"/> <xsl:value-of select="translate($string,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> </xsl:template> <xsl:template name="STR_abbreviate"> <xsl:param name="string"/> <xsl:param name="length"/> <xsl:param name="pre_length" select="0"/> <xsl:value-of select="substring($string,0,$length)"/> <xsl:if test="string-length($string) > ($length - $pre_length)">...</xsl:if> </xsl:template> <xsl:template name="popup-link"> <xsl:param name="site"/> <xsl:param name="para"/> <xsl:param name="target"/> <xsl:param name="caption"/> <xsl:param name="image"/> <xsl:param name="title"/> <xsl:param name="ajax"/> <xsl:if test="$target != ''"> <a href="/{$target}/{$site}.html?{$para}" title="{$title}"> <xsl:if test="$ajax='yes'"> <xsl:attribute name="onclick"> requestWebbox('/<xsl:value-of select="$target"/>/<xsl:value-of select="$site"/>.ajax?<xsl:value-of select="para"/>'); return false; </xsl:attribute> </xsl:if> <xsl:copy-of select="$caption"/> <xsl:if test="$image"> <img src="{$image}" alt="{$caption}"/> </xsl:if> </a> </xsl:if> <xsl:if test="$target = ''"> <xsl:copy-of select="$caption"/> </xsl:if> </xsl:template> <xsl:template name="basket-add"> <xsl:param name="item"/> <xsl:variable name="total" select="document('ibs:/basket')/content/artikel/@anzahl"/> <a href="?basket_add={$item}_{$total}"> <i class="ii ii-basket" title="In den Warenkorb legen">In den Warenkorb legen</i> </a> </xsl:template> <xsl:template match="thumbshot"> <xsl:call-template name="render_thumbshot"> <xsl:with-param name="link" select="@link"/> <xsl:with-param name="align" select="@align"/> </xsl:call-template> </xsl:template> <xsl:template name="render_thumbshot"> <xsl:param name="link"/> <xsl:param name="align"/> <xsl:variable name="encode"> return '<img>'.urlencode('<xsl:call-template name="replace_string"> <xsl:with-param name="string" select="$link" /> <xsl:with-param name="from">'</xsl:with-param> <xsl:with-param name="to">\'</xsl:with-param> </xsl:call-template>').'</img>'; </xsl:variable> <xsl:variable name="url"> <xsl:value-of select="php:function('system_Transformer::Evaluate',$encode)"/> </xsl:variable> <a class="thumbshot" target="_blank" href="{$link}"> <img style="position:relative;width:150px;height:113px;" align="{$align}" src="{concat('tools.thumbshot.thumb.script?url=',$url)}" height="113px" width="150px" alt=""/> </a> </xsl:template> <xsl:template match="LinkBox"> <!-- Martin: wird ein ActionElement ohne Link gerendert, kommt nur ein img-tag heraus, welches hier bisher heraus gerendert wurde --> <xsl:for-each select="*"> <xsl:choose> <xsl:when test="name() = 'a'"> <a target="{@target}" href="{@href}" onclick="{@onclick}" title="{@title}"> <i> <xsl:if test=".//i/@class != ''"> <xsl:attribute name="class"> <xsl:value-of select=".//i/@class"/> </xsl:attribute> </xsl:if> <xsl:if test=".//i/@title"> <xsl:attribute name="title"> <xsl:value-of select=".//i/@title"/> </xsl:attribute> </xsl:if> <xsl:if test="@title"> <xsl:attribute name="alt"> <xsl:value-of select="@title"/> </xsl:attribute> </xsl:if> <xsl:value-of select="@title"/> </i> </a> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="."/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> <xsl:template match="php"> <xsl:variable name="param"> <xsl:call-template name="xmltotxt"> <xsl:with-param name="xml" select="."/> </xsl:call-template> </xsl:variable> <xsl:variable name="code" select="string($param)"/> <xsl:apply-templates select="php:function('system_Transformer::Evaluate',$code)"/> </xsl:template> <xsl:template name="google_analytics"> <xsl:variable name="google_analytics" select="php:function('web_Session::getCurrentHolderParam','google_analytics')"/> <xsl:variable name="google_analytics2" select="php:function('web_Session::getCurrentHolderParam','google_analytics2')"/> <xsl:variable name="google_ads" select="php:function('web_Session::getCurrentHolderParam','google_ads')"/> <xsl:variable name="google_analytics_cookie_consent" select="php:function('web_Session::getCurrentHolderParam','google_analytics_cookie_consent')"/> <xsl:variable name="google_analytics_mess_id" select="php:function('web_Session::getCurrentHolderParam','google_analytics_mess_id')"/> <xsl:variable name="consent"> <xsl:choose> <xsl:when test="$google_analytics_cookie_consent!=''"> <xsl:value-of select="$google_analytics_cookie_consent"/> </xsl:when> <xsl:otherwise>tracking</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="gtags"> <xsl:if test="$google_analytics != ''"> <gtag> <xsl:value-of select="concat('UA-', $google_analytics)"/> </gtag> </xsl:if> <xsl:if test="$google_analytics2 != ''"> <gtag> <xsl:value-of select="concat('UA-', $google_analytics2)"/> </gtag> </xsl:if> <xsl:if test="$google_ads != ''"> <gtag> <xsl:value-of select="concat('AW-', $google_ads)"/> </gtag> </xsl:if> <xsl:if test="$google_analytics_mess_id != ''"> <gtag> <xsl:value-of select="concat('G-', $google_analytics_mess_id)"/> </gtag> </xsl:if> </xsl:variable> <xsl:for-each select="exslt:node-set($gtags)/*"> <xsl:if test="position() = 1"> <xsl:variable name="addScript" select="php:function('web_Content::addScript',concat('https://www.googletagmanager.com/gtag/js?id=',.),'text/javascript', 0, true(), true(), '', $consent)"/> </xsl:if> <xsl:variable name="js"> window.dataLayer = window.dataLayer || []; function gtag(){window.dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '<xsl:value-of select="."/>', {'anonymize_ip': true}); </xsl:variable> <xsl:variable name="addScriptCode" select="php:function('web_Content::addScriptCode',$js,'text/javascript', 1, $consent)"/> </xsl:for-each> </xsl:template> <xsl:template name="cookieconsent_extern"> <xsl:if test="$cookieconsent_display='' and not(php:function('web_Session::isSecure')) and ($request_type = 'html')"> <xsl:variable name="mod" select="php:function('mandant_Holder::getCurrentParam', 'cookieconsent_module')"/> <xsl:if test="$mod!=''"> <xsl:variable name="content" select="php:function('cms_CMS::getContent', string($mod),'content')/*"/> <xsl:copy-of select="$content//script"/> </xsl:if> </xsl:if> </xsl:template> <xsl:template name="cookieconsent"> <xsl:if test="$cookieconsent_display != '' and not(php:function('web_Session::isSecure')) and ($request_type = 'html')"> <!-- modul should be removed, extern loaded by cookieconsent_extern --> <xsl:variable name="language" select="php:function('web_Session::getLanguage')"/> <xsl:variable name="page" select="php:function('web_Session::getCurrentPage')"/> <xsl:variable name="mod"> <xsl:choose> <xsl:when test="$languages/language[@id = $language]"> <xsl:value-of select="php:function('mandant_Holder::getCurrentParam', concat('cookieconsent_module_', $language))"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="php:function('mandant_Holder::getCurrentParam', 'cookieconsent_module')"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="module" select="php:function('cms_mod_Interface::getModule', string($mod))/*"/> <xsl:variable name="meta" select="php:function('cms_mod_Interface::getMeta', string($mod), string($module/@holderlogin))/metadata"/> <script type="text/javascript" src="/public/fad-server/class/cms/mod/cookieconsent/cookieconsent.js">/*cookieconsent*/</script> <script type="text/javascript"> document.addEventListener( 'DOMContentLoaded' , function () { if (fad_cookieconsent) { fad_cookieconsent.init( { display : '<xsl:value-of select="$cookieconsent_display"/>', module : '<xsl:value-of select="$mod"/>', maxage : '<xsl:value-of select="$meta/maxage"/>' } ); <xsl:if test="($cookieconsent_display = '') or ($module and not($module//a[@class='fad_contentlink'][@href = concat('/', $page, '.html')]))"> fad_cookieconsent.run(); </xsl:if> } } ); </script> </xsl:if> </xsl:template> <xsl:template match="tag_cloud"> <xsl:variable name="tag_count"> <xsl:value-of select="count(tags/tag)"/> </xsl:variable> <xsl:for-each select="tags/tag"> <xsl:sort select="@tags"/> <xsl:choose> <xsl:when test="$tag_count > 5 and @maxtag > 1"> <a style="font-size:{10 div (@maxtag - @mintag) * (@katag - @mintag) + 11}px" href="/tags={@tags}/link.index.{$request_type}"> <xsl:value-of select="tagname"/> </a>   </xsl:when> <xsl:otherwise> <a class="kategorie" href="/tags={@tags}/link.index.{$request_type}"> <xsl:value-of select="tagname"/> </a>   </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> <xsl:template match="box"> <xsl:call-template name="box"/> </xsl:template> <xsl:template match="references"> <xsl:variable name="links"> <xsl:for-each select="//*[self::a][not(@href=following::a/@href)]"> <xsl:variable name="title"> <xsl:choose> <xsl:when test="@title!=''"> <xsl:value-of select="@title"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:variable> <a href="{@href}" title="{$title}" target="_blank"> <xsl:value-of select="$title"/> </a> </xsl:for-each> </xsl:variable> <xsl:if test="$links!=''"> <xsl:variable name="lb"> <h3>Referenzen</h3> <ul> <xsl:for-each select="exslt:node-set($links)/*"> <li> <xsl:copy-of select="."/> </li> </xsl:for-each> </ul> </xsl:variable> <xsl:apply-templates select="exslt:node-set($lb)/*"/> </xsl:if> </xsl:template> <xsl:template match="footbar"> <div class="FootbarWidth"> <div class="FootBarTopRow"> <xsl:call-template name="RenderFootBarTopRow"/> </div> <xsl:if test="(count(item[@level = 1 and @link != 'kontakt.html']/item) > 0)"> <div class="FootBarMinorRow"> | <xsl:call-template name="RenderFootBarMinorRow"/> </div> </xsl:if> <div class="FootBarContactRow"> | <xsl:call-template name="RenderFootBarContactRow"/> </div> <xsl:if test="footbaraddress != ''"> <div class="FootBarAddress"> <p class="FootBarAddressPassage"> <xsl:call-template name="RenderFootBarAddress"/> </p> </div> </xsl:if> </div> </xsl:template> <xsl:template name="RenderFootBarAddress"> <xsl:if test="footbaraddress/company != ''"> | <xsl:value-of select="footbaraddress/company"/> </xsl:if> <xsl:if test="footbaraddress/name != ''"> | <xsl:value-of select="footbaraddress/name"/> </xsl:if> <xsl:if test="footbaraddress/street != ''"> | <xsl:value-of select="footbaraddress/street"/> </xsl:if> <xsl:if test="footbaraddress/zip != '' and footbaraddress/city != ''"> | <xsl:value-of select="footbaraddress/zip"/> <xsl:value-of select="footbaraddress/city"/> </xsl:if> <!--xsl:if test="footbaraddress/mail != ''"> | <xsl:value-of select="php:function('getTranslation', 'E-Mail')"/>: <xsl:value-of select="footbaraddress/mail"/> </xsl:if--> <xsl:if test="footbaraddress/mail != ''"> | <xsl:value-of select="php:function('system_Language::translate', 'E-Mail')"/>: <xsl:value-of select="footbaraddress/mail"/> </xsl:if> <!--xsl:if test="document(concat('ibs:/page_allowed,','kontakt'))/result/@value='yes'"> | <a href="/kontakt.html"> -> <xsl:value-of select="php:function('getTranslation', 'zum Kontaktformular')"/></a> | </xsl:if--> <xsl:if test="document(concat('ibs:/page_allowed,','kontakt'))/result/@value='yes'"> | <a href="/kontakt.html"> -> <xsl:value-of select="php:function('system_Language::translate', 'zum Kontaktformular')"/></a> | </xsl:if> <!--| Telefon: <xsl:value-of select="footbaraddress/telefon"/> | Fax: <xsl:value-of select="footbaraddress/fax"/--> </xsl:template> <xsl:template name="RenderFootBarTopRow"> <xsl:variable name="children"> <xsl:value-of select="count(item[not(@visible)])"/> </xsl:variable> <xsl:for-each select="item"> <xsl:call-template name="RenderFootBarTopItem"> <xsl:with-param name="level" select="@level"/> <xsl:with-param name="children" select="$children"/> </xsl:call-template> </xsl:for-each> </xsl:template> <xsl:template name="RenderFootBarTopItem"> <xsl:param name="level"/> <xsl:param name="children"/> <xsl:if test="not(@visible)"> <xsl:if test="($level = 1)"> <a href="{@link}" title="{$children}" class="FootBarTopItem"> <xsl:value-of select="@title"/> </a>   </xsl:if> </xsl:if> </xsl:template> <xsl:template name="RenderFootBarMinorRow"> <xsl:variable name="children"> <xsl:value-of select="count(item[not(@visible)])"/> </xsl:variable> <xsl:for-each select="item[not(@visible) and (@link != 'kontakt.html') or (@link = 'kontakt.html' and @level = 2)]"> <xsl:call-template name="RenderFootBarMinorItem"> <xsl:with-param name="level" select="@level"/> <xsl:with-param name="children" select="$children"/> <xsl:with-param name="position" select="position()"/> </xsl:call-template> </xsl:for-each> </xsl:template> <xsl:template name="RenderFootBarContactRow"> <xsl:variable name="children"> <xsl:value-of select="count(item[not(@visible) and @link = 'kontakt.html'])"/> </xsl:variable> <xsl:for-each select="item[not(@visible) and @link = 'kontakt.html']"> <xsl:call-template name="RenderFootBarMinorItem"> <xsl:with-param name="level" select="@level"/> <xsl:with-param name="children" select="$children"/> <xsl:with-param name="position" select="position()"/> </xsl:call-template> </xsl:for-each> </xsl:template> <xsl:template name="RenderFootBarMinorItem"> <xsl:param name="level"/> <xsl:param name="children"/> <xsl:param name="position"/> <xsl:if test="($level = 2)"> <a href="{@link}" title="{$children}" class="FootBarMinorItem"> <xsl:value-of select="@title"/> </a> </xsl:if> <xsl:if test="(count(item[not(@visible)]) > 0) and ($level = 1)"> <xsl:call-template name="RenderFootBarMinorRow"/> </xsl:if> <xsl:choose> <xsl:when test="(count(item[not(@visible)]) > 0) and ($level = 1)">|</xsl:when> <xsl:when test="($level = 2) and ($position != $children)">|</xsl:when> </xsl:choose> </xsl:template> <xsl:template match="colfootbar"> <div class="FootbarThemes"> <table width="100%" class="FootbarColTable"> <tr valign="top"> <xsl:for-each select="col"> <td> <xsl:for-each select="item"> <a href="{@link}"> <xsl:attribute name="class"> <xsl:value-of select="concat('FootbarMenuLevel',@level)"/> </xsl:attribute> <xsl:value-of select="@title"/> </a> <br/> </xsl:for-each> </td> </xsl:for-each> </tr> </table> </div> <xsl:if test="footbaraddress != ''"> <div class="FootbarColAddress"> <p class="FootBarAddressPassage"> <xsl:call-template name="RenderFootBarAddress"/> </p> </div> </xsl:if> </xsl:template> <xsl:template match="keyword"> <a href="lexikon.public.index.html?{$session}&schlagwort={text()}"> <xsl:apply-templates select="text()"/> </a> </xsl:template> <xsl:template name="IbsDo"/> <xsl:template match="ibs-lexikon"> <xsl:variable name="ibs">ibs:/lexikon,<xsl:value-of select="@schlagwort"/></xsl:variable> <xsl:apply-templates select="document($ibs)/Data/Content/DataSet[1]/erklaerung/*"/> </xsl:template> <xsl:template match="ibs-original"> <div class="ibs-original" style="clear:both;"> <xsl:apply-templates select="document('ibs:/original')/content"/> </div> </xsl:template> <!--den Inhalt einer fremden Webseite einbinden--> <xsl:template match="ibs-include"> <div class="ibs-include"> <xsl:variable name="doc">ibs:/include,<xsl:value-of select="concat(@link,',',@project)"/><xsl:for-each select="param">,<xsl:value-of select="concat(@key,'~',php:function('rawurlencode',string(@value)))"/></xsl:for-each></xsl:variable> <xsl:apply-templates select="document(translate($doc,' ','*'))/content" mode="include"/> </div> </xsl:template> <xsl:template match="ibs-get"> <xsl:variable name="doc">ibs:/get,<xsl:value-of select="@name"/></xsl:variable> <xsl:apply-templates select="document($doc)/get"/> </xsl:template> <!-- facebook Integration --> <xsl:template match="facebook"> <xsl:for-each select="./*"> <xsl:choose> <xsl:when test="name() = 'like-box'"> <div id="fb-root"></div> <script type="text/plain" data-type="text/javascript" data-cookieconsent="targeting">(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-send="false" data-layout="button_count" data-width="150" data-show-faces="true"></div> </xsl:when> <xsl:otherwise> <div id="fb-root"></div> <script type="text/plain" data-type="text/javascript" data-cookieconsent="targeting" language="JavaScript1.2"> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1&appId=<xsl:value-of select="document('ibs:/holder_param,facebook.application_id')/content/@value"/>"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <div data-width="292" data-show-faces="true" data-stream="true" data-header="true"> <xsl:attribute name="class"><xsl:value-of select="concat('fb-',name())"/></xsl:attribute> </div> <!--xsl:element name="{concat('fb-',name())}"> <xsl:for-each select="./@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:value-of select="."/> </xsl:element--> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:template> <xsl:template match="content"> <xsl:call-template name="inveda_content"/> </xsl:template> <xsl:template match="content" mode="include"> <xsl:call-template name="inveda_content"/> </xsl:template> <!--Intro Seite anzeigen--> <xsl:template match="ibs-popup"> <div> <xsl:if test="@once!='yes' or document('ibs:/page_calls')/result/@value='1'"> <script type="text/javascript"> window.open("<xsl:value-of select="@link"/>","ABC","width=800,height=500,left=0,top=0,resizable=yes,scrollbars=yes,titlebar=no"); </script> </xsl:if> </div> </xsl:template> <!-- auf Framework-Parameter zugreifen /--> <xsl:template match="ibs-param"> <xsl:apply-templates select="php:function('data_Placeholder::getParam',string(@name),'as_doc')/param" mode="ibs"/> </xsl:template> <xsl:template match="fad:placeholder"> <xsl:variable name="output"> <xsl:apply-templates select="php:function('data_Placeholder::getParam',string(@class),'as_doc')/param" mode="ibs"/> </xsl:variable> <xsl:if test="not($output='')"> <xsl:copy-of select="$output"/> </xsl:if> <xsl:if test="not(not($output='')) and (php:function('web_Session::isSecure'))"> <span class="fad_placeholder {@class}" title="{@title}"> <xsl:comment></xsl:comment> </span> </xsl:if> </xsl:template> <xsl:template match="param" mode="ibs"> <xsl:apply-templates/> </xsl:template> <xsl:template match="iframe"> <iframe src="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}"> <xsl:if test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:if> <xsl:if test="@height"><xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute></xsl:if> <xsl:if test="@name"><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></xsl:if> <xsl:if test="@align"><xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute></xsl:if> <xsl:if test="@scrolling"><xsl:attribute name="scrolling"><xsl:value-of select="@scrolling"/></xsl:attribute></xsl:if> <xsl:if test="@frameborder"><xsl:attribute name="frameborder"><xsl:value-of select="@frameborder"/></xsl:attribute></xsl:if> <xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if> <xsl:if test="@class"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if> <xsl:if test="@style"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if> <p>Ihr Browser kann leider keine eingebetteten Frames anzeigen: Sie können die eingebettete Seite über den folgenden Verweis aufrufen: <a href="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}"><xsl:value-of select="@name"/></a></p> </iframe> </xsl:template> <xsl:template match="fad:iframe"> <iframe src="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}"> <xsl:if test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:if> <xsl:if test="@height"><xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute></xsl:if> <xsl:if test="@name"><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></xsl:if> <xsl:if test="@align"><xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute></xsl:if> <xsl:if test="@scrolling"><xsl:attribute name="scrolling"><xsl:value-of select="@scrolling"/></xsl:attribute></xsl:if> <xsl:if test="@frameborder"><xsl:attribute name="frameborder"><xsl:value-of select="@frameborder"/></xsl:attribute></xsl:if> <xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if> <xsl:if test="@class"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if> <xsl:if test="@style"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if> <p>Ihr Browser kann leider keine eingebetteten Frames anzeigen: Sie können die eingebettete Seite über den folgenden Verweis aufrufen: <a href="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}"><xsl:value-of select="@name"/></a></p> </iframe> </xsl:template> <xsl:template match="editmenu"/> <xsl:template match="input[@ibs_js='RTEDITOR']"> <xsl:choose> <xsl:when test="@readonly = 'readonly'"> <xsl:value-of select="@value"/> </xsl:when> <xsl:otherwise> <input onclick="IBSShowDialog('editor.rteditor.html?rt_type={@rt_type}&name={@name}&archive={@archive}','123',600,650);"> <xsl:attribute name="id"> <xsl:value-of select="../@name"/> </xsl:attribute> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:value-of select="."/> </input> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="link[@rel='stylesheet']|a[@href='#']"> <xsl:copy-of select="."/> </xsl:template> <xsl:template match="a|link"> <xsl:variable name="href"> <xsl:choose> <xsl:when test="starts-with(@href,'ibs-param')"> <xsl:value-of select="php:function('data_Placeholder::getParam',substring-after(@href,'ibs-param:'))"/> </xsl:when> <xsl:when test="href"> <xsl:apply-templates select="href"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="@href"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="text()!='' or node()"> <a> <xsl:for-each select="@*"> <xsl:if test="not(name() = 'onclick' and document('ibs:/mobile_device')/content/@value = 'yes' and substring(., 1, 13) = 'requestWebbox')"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:if> </xsl:for-each> <xsl:if test="$href != ''"> <xsl:attribute name="href"><xsl:value-of select="php:function('system_util_URL::randomize',string($href))"/></xsl:attribute> </xsl:if> <xsl:if test="not(@rel!='') and ((starts-with($href,'http://') or starts-with($href,'https://')) and not(starts-with($href, concat('http://',document('ibs:/holder_value,domain')/content/@value,'/'))))"> <xsl:attribute name="rel"> <xsl:value-of select="'nofollow'"/> </xsl:attribute> </xsl:if> <xsl:if test="@target"> <xsl:attribute name="target"> <xsl:value-of select="@target"/> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </a> </xsl:if> </xsl:template> <xsl:template match="para"> <p> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </p> </xsl:template> <xsl:template match="*[@randomize]"> <xsl:element name="{name()}"> <xsl:for-each select="@*[not(name() = 'randomize')]"> <xsl:attribute name="{name()}"> <xsl:value-of select="php:function('system_util_URL::randomize',string(.))"/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </xsl:element> </xsl:template> <xsl:template match="*"> <xsl:element name="{name()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> <xsl:if test="name() != 'br'"> <xsl:comment/> </xsl:if> </xsl:element> </xsl:template> <xsl:template match="img[@class='attachment']"> <img style="cursor: pointer;" src="{@src}" onclick="window.open('{@title}','popup','toolbar=no,resizable=yes,top=40,scrollbars=yes');"/> </xsl:template> <xsl:template match="img"> <xsl:choose> <xsl:when test="substring(@alt,1,4)='cms.'"> <xsl:call-template name="render_cms_image"/> </xsl:when> <xsl:when test="not($is_secure) and substring(@src,1,9)='/content.'"> <xsl:call-template name="render_cms_image"/> </xsl:when> <xsl:otherwise> <xsl:element name="img"> <xsl:copy-of select="@*[name()!='src' and name()!='proxy']"/> <xsl:attribute name="src"> <xsl:variable name="random" select="php:function('system_util_URL::randomize',string(@src))"/> <xsl:value-of select="php:function('system_util_URL::proxy',string($random),(@proxy!=''))"/> </xsl:attribute> <xsl:apply-templates select="*|node()|comment()|processing-instruction()"/> </xsl:element> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="render_cms_image"> <xsl:param name="absolute_path" select="'false'"/> <xsl:param name="absolute_path_value" select="''"/> <xsl:param name="lazyload" select="$skin_lazyload"/> <xsl:param name="link_class" select="@linkclass"/> <xsl:param name="link_title" select="@linktitle"/> <xsl:param name="link_target" select="@linktarget"/> <xsl:param name="link_rel" select="@linkrel"/> <xsl:param name="link" select="@link"/> <xsl:param name="size" select="''"/> <xsl:param name="srcset" select="@srcset"/> <xsl:param name="sizes" select="@sizes"/> <xsl:param name="class" select="@class"/> <xsl:param name="style" select="@style"/> <xsl:param name="preview" select="false()"/> <xsl:param name="src" select="string(@src)"/> <xsl:variable name="param" select="str:tokenize(@alt,'.')"/> <xsl:variable name="srcparam" select="str:tokenize($src,'.')"/> <xsl:variable name="src_id"> <xsl:choose> <xsl:when test="$srcparam[1]='/content'"> <xsl:value-of select="$srcparam[2]"/> </xsl:when> <xsl:otherwise/> </xsl:choose> </xsl:variable> <xsl:variable name="holderlogin"> <xsl:choose> <xsl:when test="/content/@post and /content/@post!=''"> <!-- blogpost --> <xsl:value-of select="$c_holderlogin"/> </xsl:when> <xsl:when test="@holderlogin!=''"> <xsl:value-of select="@holderlogin"/> </xsl:when> <xsl:when test="$c_holderlogin != /content/@holderlogin and /content/@holderlogin !='' "> <!-- abonnierte Seiten / Inhalt nicht überschrieben /Publisherseite übersetzt oder kopiert --> <xsl:value-of select="/content/@holderlogin"/> </xsl:when> <xsl:when test="$c_holderlogin=/content/@holderlogin and $src_id=/content/@nr"> <!-- Bild gehört zum Content (eigene Seite oder nicht überschriebene Aboseite) --> <xsl:value-of select="/content/@holderlogin"/> </xsl:when> <xsl:when test="/content/@holderlogin=$cmetadata/publisher_login and $cmetadata/publisher_login!='' and $src_id=$cmetadata/publisher_content_id"> <!-- überschriebene Publisherseite / Bild im Publishercontent --> <xsl:value-of select="$cmetadata/publisher_login"/> </xsl:when> <!-- xsl:when test="$param[4]!=''"> Bei Hauptbildern schreiben die render.xsl das holderlogin dran <xsl:value-of select="$param[4]"/> </xsl:when--> <xsl:when test="$c_holderlogin != /*/@holderlogin and /*/@holderlogin !='' "> <!-- interne Seiten / internes Modul --> <xsl:value-of select="/*/@holderlogin"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$c_holderlogin"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="content_nr"> <xsl:choose> <xsl:when test="$src_id!=''"> <xsl:value-of select="$src_id"/> </xsl:when> <xsl:when test="/content/@post and /content/@post!=''"> <!-- blogpost --> <xsl:value-of select="/content/@post"/> </xsl:when> <xsl:when test="@meta_nr and @meta_nr!=''"> <xsl:value-of select="@meta_nr"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="/content/@nr"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="meta_nr"> <xsl:choose> <xsl:when test="@meta_nr and @meta_nr!=''"> <!-- @meta_nr gesetzt(Hauptbild) --> <xsl:value-of select="@meta_nr"/> </xsl:when> <xsl:when test="/content/@post and /content/@post!=''"> <!-- blogpost --> <xsl:value-of select="/content/@post"/> </xsl:when> <xsl:when test="/content/@nr and /content/@nr!=''"> <!-- backend --> <xsl:value-of select="/content/@nr"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat($cmetadata/nr,',',$cmetadata/publisher_content_id)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="image_nr"> <xsl:choose> <xsl:when test="$param[1]='cms' and $param[2]!=''"> <xsl:value-of select="$param[2]"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$srcparam[4]"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="image_size"> <xsl:choose> <xsl:when test="$size!=''"> <xsl:value-of select="$size"/> </xsl:when> <xsl:when test="$param[1]='cms' and $param[3]!=''"> <xsl:value-of select="$param[3]"/> </xsl:when> <xsl:when test="count($srcparam)=7"> <xsl:value-of select="$srcparam[6]"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="image_sizes" select="str:tokenize($image_size,'x')"/> <xsl:variable name="images" select="php:function('cms_CMS::getImages',$content_nr,$holderlogin)/images"/> <xsl:variable name="images_img" select="$images/image[@id=$image_nr]"/> <xsl:variable name="image_meta" select="php:function('cms_CMS::getImageMeta',string($src_id),string($image_nr),string($holderlogin),string($meta_nr))/media"/> <xsl:variable name="image_source" select="$image_meta/src"/> <xsl:variable name="image_description" select="$image_meta/description"/> <xsl:variable name="image_title" select="$image_meta/title"/> <xsl:variable name="image_gallery" select="$image_meta/gallery"/> <xsl:variable name="image_name" select="$images/image[@id=$image_nr]/@name"/> <xsl:variable name="image_names" select="str:tokenize($image_name,'.')"/> <xsl:variable name="is_svg" select="$images_img/@imgtype='svg'"/> <xsl:if test="php:function('cms_CMS::setSessionHolder', string($holderlogin), string($content_nr))"/> <xsl:variable name="content_meta" select="php:function('cms_CMS::getMetaById',string($content_nr),string($holderlogin))/metadata"/> <xsl:variable name="domain" select="php:function('mandant_Holder::getCurrentHolderURL')"/> <xsl:variable name="src_domain"> <xsl:choose> <xsl:when test="$absolute_path_value!=''"><xsl:value-of select="$absolute_path_value"/></xsl:when> <xsl:when test="/content/@domain!=''"><xsl:value-of select="/content/@domain"/></xsl:when> <xsl:when test="$domain!=''"><xsl:value-of select="substring($domain,1,string-length($domain)-1)"/></xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="src_prefix"> <xsl:if test="$absolute_path = 'true'"> <xsl:value-of select="$src_domain"/> </xsl:if> </xsl:variable> <xsl:choose> <xsl:when test="not($preview) and $image_meta/type='youtube'"> <xsl:call-template name="load_jquery"> <xsl:with-param name="load-jquery-ui" select="false()"/> </xsl:call-template> <xsl:if test="php:function('web_Content::addScript','/scripts/jquery.fitvids.js','text/javascript',100)"/> <xsl:if test="php:function('web_Content::addScript','/scripts/init_fitvids.js','text/javascript',101)"/> <span class="fad_cms_youtube" style="width:{$image_sizes[1]}px;height:{$image_sizes[2]}px;" itemprop="video" itemscope="" itemtype="http://schema.org/VideoObject"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$class!='' and ($image_description!='' or $image_source!='')"> <xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper fad_cms_youtube')"/> </xsl:when> <xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''"> <xsl:value-of select="'image-meta fad-image-wrapper fad_cms_youtube'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat ($class, ' fad-image-wrapper fad_cms_youtube')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <meta itemprop="thumbnailUrl" content="{$src_domain}{@src}"/> <meta itemprop="contentURL" content="https://www.youtube.com/watch?v={$image_meta/media/id}"/> <meta itemprop="height" content="{$image_meta/height}"/> <meta itemprop="width" content="{$image_meta/width}"/> <meta itemprop="uploadDate" content="{$image_meta/upload}"/> <meta itemprop="name" content="{$image_meta/title}"/> <meta itemprop="description" content="{$image_meta/description}"/> <iframe width="{$image_sizes[1]}" height="{$image_sizes[2]}" src="https://www.youtube-nocookie.com/embed/{$image_meta/id}?rel=0" frameborder="0" allowfullscreen="allowfullscreen"> <xsl:comment>Kommentar damit der Editor funktioniert</xsl:comment> </iframe> </span> </xsl:when> <xsl:when test="not($preview) and $image_meta/type='vimeo'"> <xsl:call-template name="load_jquery"> <xsl:with-param name="load-jquery-ui" select="false()"/> </xsl:call-template> <xsl:if test="php:function('web_Content::addScript','/scripts/jquery.fitvids.js','text/javascript',100)"/> <xsl:if test="php:function('web_Content::addScript','/scripts/init_fitvids.js','text/javascript',101)"/> <span class="fad_cms_youtube" style="width:{$image_sizes[1]}px;height:{$image_sizes[2]}px;" itemprop="video" itemscope="" itemtype="http://schema.org/VideoObject"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$class!='' and ($image_description!='' or $image_source!='')"> <xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper fad_cms_youtube')"/> </xsl:when> <xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''"> <xsl:value-of select="'image-meta fad-image-wrapper fad_cms_youtube'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat ($class, ' fad-image-wrapper fad_cms_youtube')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <meta itemprop="thumbnailUrl" content="{$src_domain}/{@src}"/> <meta itemprop="contentURL" content="https://player.vimeo.com?v={$image_meta/id}"/> <meta itemprop="height" content="{$image_meta/height}"/> <meta itemprop="width" content="{$image_meta/width}"/> <meta itemprop="uploadDate" content="{$image_meta/upload}"/> <meta itemprop="name" content="{$image_meta/title}"/> <meta itemprop="description" content="{$image_meta/description}"/> <iframe width="{$image_sizes[1]}" height="{$image_sizes[2]}" src="https://player.vimeo.com/video/{$image_meta/id}" frameborder="0" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" allowfullscreen="allowfullscreen"> <xsl:comment>Kommentar damit der Editor funktioniert</xsl:comment> </iframe> </span> </xsl:when> <xsl:when test="not($preview) and $image_meta/type='video/mp4'"> <xsl:variable name="mp4_file" select="str:tokenize($image_meta/mp4,'.')"/> <video poster="{@src}" controls="controls" itemprop="video" itemscope="" itemtype="http://schema.org/VideoObject"> <xsl:copy-of select="@autoplay|@loop|@height|@width|@playsinline|@controls|@preload"/> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$class!='' and ($image_description!='' or $image_source!='' or $image_title!='')"> <xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper fad_cms_mp4')"/> </xsl:when> <xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''"> <xsl:value-of select="'image-meta fad-image-wrapper fad_cms_mp4'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat ($class, ' fad-image-wrapper fad_cms_mp4')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="not(contains($class, 'fad_image_width_')) or contains($class, 'fad_image_width_auto')"> <xsl:attribute name="style"> <xsl:choose> <xsl:when test="$image_size!=''"> <xsl:value-of select="concat('width:', $image_sizes[1], 'px')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('width:', $image_meta/width, 'px')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:if> <meta itemprop="thumbnailUrl" content="{$src_domain}{@src}"/> <meta itemprop="contentURL" content="{$src_domain}/{$images_img/@url}.{$mp4_file[2]}"/> <meta itemprop="height" content="{$image_meta/height}"/> <meta itemprop="width" content="{$image_meta/width}"/> <meta itemprop="uploadDate" content="{$image_meta/upload}"/> <meta itemprop="name" content="{$image_meta/title}"/> <meta itemprop="description" content="{$image_meta/description}"/> <source src="/{$images_img/@url}.{$mp4_file[2]}" type="video/mp4"/> Your browser does not support the video tag. </video> </xsl:when> <xsl:otherwise> <span itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="$class!='' and ($image_description!='' or $image_source!='' or $image_title!='')"> <xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper')"/> </xsl:when> <xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''"> <xsl:value-of select="'image-meta fad-image-wrapper'"/> </xsl:when> <xsl:when test="$class!=''"> <xsl:value-of select="concat($class, ' fad-image-wrapper')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'fad-image-wrapper'"/> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="$image_sizes!='' and $image_sizes[1] < $image_sizes[2]"> <xsl:value-of select="' fad-image-portrait'"/> </xsl:when> <xsl:when test="$image_meta/width < $image_meta/media/height"> <xsl:value-of select="' fad-image-portrait'"/> </xsl:when> </xsl:choose> </xsl:attribute> <xsl:if test="not(contains($class, 'fad_image_width_')) or contains($class, 'fad_image_width_auto')"> <xsl:attribute name="style"> <xsl:choose> <xsl:when test="$image_size!=''"> <xsl:value-of select="concat('width:', $image_sizes[1], 'px')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('width:', $image_meta/width, 'px')"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:if> <xsl:variable name="img"> <xsl:choose> <xsl:when test="$is_svg"> <xsl:choose> <xsl:when test="$svg_embedded"> <xsl:variable name="svg" select="php:function('cms_CMS::getSVG',concat('/',$images_img/@url),$holderlogin)"/> <xsl:choose> <xsl:when test="$svg"><xsl:copy-of select="$svg"/></xsl:when> <xsl:otherwise> <img src="/{$images_img/@url}.{$images_img/@imgtype}"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:copy-of select="."/> </xsl:otherwise> </xsl:choose> <meta itemprop="url" content="{$src_domain}/{$images_img/@url}.{$image_names[2]}"/> <meta itemprop="width" content="{$image_meta/width}"/> <meta itemprop="height" content="{$image_meta/height}"/> </xsl:when> <xsl:when test="$image_size!=''"> <xsl:if test="php:function('web_Session::registerImageSize',$image_size)"/> <img itemprop="image" width="{$image_sizes[1]}" height="{$image_sizes[2]}"> <xsl:choose> <xsl:when test="not($is_secure) and $lazyload"> <xsl:if test="not($srcset)"> <xsl:attribute name="data-src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_size,'.',$image_names[2])"/></xsl:attribute> </xsl:if> <xsl:if test="$srcset"> <xsl:attribute name="data-srcset"> <xsl:value-of select="$srcset"/> </xsl:attribute> </xsl:if> <xsl:attribute name="class">lazy <xsl:value-of select="$class"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute> <xsl:attribute name="src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_size,'.',$image_names[2])"/></xsl:attribute> <xsl:if test="$srcset"> <xsl:attribute name="srcset"> <xsl:value-of select="$srcset"/> </xsl:attribute> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:if test="$image_title != ''"> <xsl:attribute name="alt"> <xsl:value-of select="$image_title"/> </xsl:attribute> </xsl:if> <xsl:if test="$sizes"> <xsl:attribute name="sizes"> <xsl:value-of select="$sizes"/> </xsl:attribute> </xsl:if> <xsl:if test="$style != ''"> <xsl:attribute name="style"> <xsl:value-of select="$style"/> </xsl:attribute> </xsl:if> </img> <meta itemprop="url" content="{$src_domain}/{$images_img/@url}.{$image_size}.{$image_names[2]}"/> <meta itemprop="width" content="{$image_sizes[1]}"/> <meta itemprop="height" content="{$image_sizes[2]}"/> </xsl:when> <xsl:otherwise> <img itemprop="image"> <xsl:choose> <xsl:when test="not($is_secure) and $lazyload"> <xsl:if test="not($srcset) and not($is_svg)"> <xsl:attribute name="data-src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_names[2])"/></xsl:attribute> </xsl:if> <xsl:if test="not($is_svg)"> <xsl:if test="$srcset"> <xsl:attribute name="data-srcset"> <xsl:value-of select="$srcset"/> </xsl:attribute> </xsl:if> <xsl:if test="$sizes"> <xsl:attribute name="sizes"> <xsl:value-of select="$sizes"/> </xsl:attribute> </xsl:if> </xsl:if> <xsl:attribute name="class">lazy <xsl:value-of select="$class"/></xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_names[2])"/></xsl:attribute> <xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute> <xsl:if test="not($is_svg)"> <xsl:if test="$srcset"> <xsl:attribute name="srcset"> <xsl:value-of select="$srcset"/> </xsl:attribute> </xsl:if> <xsl:if test="$sizes"> <xsl:attribute name="sizes"> <xsl:value-of select="$sizes"/> </xsl:attribute> </xsl:if> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:if test="$image_title != ''"> <xsl:attribute name="alt"> <xsl:value-of select="$image_title"/> </xsl:attribute> </xsl:if> <xsl:attribute name="width"> <xsl:value-of select="$image_meta/width"/> </xsl:attribute> <xsl:attribute name="height"> <xsl:value-of select="$image_meta/height"/> </xsl:attribute> <xsl:if test="$style != ''"> <xsl:attribute name="style"> <xsl:value-of select="$style"/> </xsl:attribute> </xsl:if> </img> <meta itemprop="url" content="{$src_domain}/{$images_img/@url}.{$image_names[2]}"/> <meta itemprop="width" content="{$image_meta/width}"/> <meta itemprop="height" content="{$image_meta/height}"/> </xsl:otherwise> </xsl:choose> <xsl:if test="not($is_secure) and $lazyload"> <xsl:variable name="lcode"> window.onload = function() { if (window.jQuery) { $('.lazy').Lazy(); } else { console.log("JQuery missing"); } }; </xsl:variable> <xsl:if test="not(php:function('web_Session::getGlobal','GET','ajax')='ajax')"> <xsl:if test="php:function('web_Content::addScript','/scripts/jquery/lazyload/jquery.lazy.min.js','text/javascript',7)"/> <xsl:if test="php:function('web_Content::addScript','/scripts/jquery/lazyload/jquery.lazy.plugins.min.js','text/javascript',8)"/> </xsl:if> <xsl:if test="php:function('web_Content::addScriptCode',string($lcode) , 'text/javascript', 110)"/> </xsl:if> </xsl:variable> <xsl:choose> <xsl:when test="$image_meta/media/type='application/epub+zip'"> <img onclick="window.open('{$src_prefix}/id/{$content_nr}/epub/{$image_nr}/cms.epub.public.reader.html')"> <xsl:copy-of select="@*|*"/> </img> </xsl:when> <xsl:when test="$image_meta/media/type='application/pdf'"> <img onclick="requestWebbox('{$src_prefix}/id/{$content_nr}/pdf/{$image_nr}/cms.pdf.public.reader.ajax','','GET');return false"> <xsl:copy-of select="@*|*"/> </img> </xsl:when> <xsl:when test="$link != '' and $link != 'undefined' "> <a> <xsl:attribute name="href"> <xsl:if test="starts-with($link, '/')"> <xsl:value-of select="$src_prefix"/> </xsl:if> <xsl:value-of select="$link"/> </xsl:attribute> <xsl:if test="$link_class != ''"> <xsl:attribute name="class"> <xsl:value-of select="$link_class"/> </xsl:attribute> </xsl:if> <xsl:if test="$link_title != ''"> <xsl:attribute name="title"> <xsl:value-of select="$link_title"/> </xsl:attribute> </xsl:if> <xsl:if test="$link_target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$link_target"/> </xsl:attribute> </xsl:if> <xsl:if test="$link_rel != ''"> <xsl:attribute name="rel"> <xsl:value-of select="$link_rel"/> </xsl:attribute> </xsl:if> <xsl:copy-of select="$img"/> </a> </xsl:when> <xsl:when test="not($is_secure) and $image_gallery = 't'"> <!-- TODO: gallery link as ajax --> <img onclick="window.open('?gallery={$image_nr}')" title="zur Galerie"> <xsl:copy-of select="@*|*"/> </img> </xsl:when> <xsl:when test="$is_secure and $content_meta/publishtype='wiki'"> <img onclick="window.open('{$image_source}')" title="Großansicht"> <xsl:copy-of select="@*|*"/> </img> </xsl:when> <xsl:when test="starts-with($image_source, 'http://') or starts-with($image_source ,'https://') or starts-with($image_source ,'//')"> <img onclick="window.open('{$image_source}')"> <xsl:copy-of select="@*|*"/> </img> </xsl:when> <xsl:when test="starts-with($image_source, 'www.')"> <img onclick="window.open('//{$image_source}')"> <xsl:copy-of select="@*|*"/> </img> </xsl:when> <xsl:otherwise> <xsl:copy-of select="$img"/> </xsl:otherwise> </xsl:choose> <xsl:if test="$image_title!=''"> <span class="image-meta-title"> <xsl:choose> <xsl:when test="not(is_secure) and $link != '' and $link != 'undefined'"> <a href="{$link}"> <xsl:if test="$link_title != ''"> <xsl:attribute name="title"> <xsl:value-of select="$link_title"/> </xsl:attribute> </xsl:if> <xsl:if test="$link_target != ''"> <xsl:attribute name="target"> <xsl:value-of select="$link_target"/> </xsl:attribute> </xsl:if> <xsl:if test="$link_rel != ''"> <xsl:attribute name="rel"> <xsl:value-of select="$link_rel"/> </xsl:attribute> </xsl:if> <xsl:value-of select="$image_title"/> </a> </xsl:when> <xsl:otherwise> <xsl:value-of select="$image_title"/> </xsl:otherwise> </xsl:choose> </span> </xsl:if> <xsl:if test="$image_description!=''"> <span class="image-meta-description"> <xsl:value-of select="$image_description"/> </span> </xsl:if> <xsl:if test="$image_source!=''"> <xsl:choose> <xsl:when test="starts-with($image_source, 'http://') or starts-with($image_source ,'https://') or starts-with($image_source ,'//')"> <span class="image-meta-source" onclick="window.open('{$image_source}','_blank')"> <xsl:value-of select="substring-after($image_source, '//')"/> </span> </xsl:when> <xsl:when test="starts-with($image_source, 'www.')"> <span class="image-meta-source" onclick="window.open('//{$image_source}','_blank')"> <xsl:value-of select="$image_source"/> </span> </xsl:when> <xsl:when test="starts-with($image_source, '/')"> <span class="image-meta-source" onclick="window.open('{$image_source}','_blank')"> <xsl:value-of select="$image_source"/> </span> </xsl:when> <xsl:otherwise> <span class="image-meta-source"> <xsl:value-of select="$image_source"/> </span> </xsl:otherwise> </xsl:choose> </xsl:if> </span> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="table[@border_type]"> <table style="{@style}" cellspacing="{@cellspacing}" cellpadding="{@cellpadding}" width="{@width}"> <xsl:if test="@align!=''"> <xsl:attribute name="align"> <xsl:value-of select="@align"/> </xsl:attribute> </xsl:if> <xsl:variable name="bgColor"> <xsl:choose> <xsl:when test="@background_clr='0'"> </xsl:when> <xsl:otherwise> BACKGROUND-COLOR: <xsl:value-of select="@background_clr"/>; <xsl:value-of select="@style"/>; </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="@border_type = 1"> <xsl:attribute name="style"> <xsl:value-of select="concat('BORDER: ',@border_clr,' ',@border_width,'px solid', $bgColor)"/> </xsl:attribute> <xsl:for-each select="tr|tbody/tr"> <tr> <xsl:for-each select="td"> <td> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </td> </xsl:for-each> </tr> </xsl:for-each> </xsl:when> <xsl:when test="@border_type = 0 and @cellspacing = 0"> <xsl:attribute name="style"> <xsl:value-of select="$bgColor"/> </xsl:attribute> <xsl:variable name="color" select="@border_clr"/> <xsl:variable name="width" select="@border_width"/> <xsl:for-each select="tr|tbody/tr"> <xsl:variable name="oben"> <xsl:if test="position() = 1">true</xsl:if> </xsl:variable> <tr> <xsl:for-each select="td"> <xsl:variable name="links"> <xsl:if test="position() = 1">true</xsl:if> </xsl:variable> <xsl:if test="$oben='true' and $links!='true'"> <td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px; BORDER-TOP:{$color} {$width}px solid;MARGIN:0px; BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;"> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </td> </xsl:if> <xsl:if test="$oben='true' and $links='true'"> <td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px; BORDER-TOP:{$color} {$width}px solid;MARGIN:0px; BORDER-LEFT:{$color} {$width}px solid;MARGIN:0px; BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;"> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </td> </xsl:if> <xsl:if test="$links='true' and $oben!='true'"> <td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px; BORDER-LEFT:{$color} {$width}px solid;MARGIN:0px; BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;"> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </td> </xsl:if> <xsl:if test="$oben!='true' and $links!='true'"> <td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px; BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;"> <xsl:for-each select="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </td> </xsl:if> </xsl:for-each> </tr> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:attribute name="style"> <xsl:value-of select="$bgColor"/> </xsl:attribute> <xsl:variable name="color" select="@border_clr"/> <xsl:variable name="width" select="@border_width"/> <xsl:for-each select="tr|tbody/tr"> <tr> <xsl:for-each select="td"> <td style="BORDER:{$color} {$width}px solid;MARGIN:0px;"> <xsl:for-each select="@*[.!='']"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:apply-templates/> </td> </xsl:for-each> </tr> </xsl:for-each> </xsl:otherwise> </xsl:choose> </table> </xsl:template> <xsl:template match="em"> <span class="em"> <xsl:copy-of select="node()"/> </span> </xsl:template> <xsl:template match="highlight|fad:highlight"> <xsl:call-template name="highlight"/> </xsl:template> <xsl:template name="highlight"> <div class="highlight"> <xsl:if test="@width or @height"> <xsl:attribute name="style"> <xsl:if test="@width">width:<xsl:value-of select="@width"/>; </xsl:if> <xsl:if test="@height">height:<xsl:value-of select="@height"/>; </xsl:if> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </div> </xsl:template> <xsl:template match="message"> <h3><xsl:value-of select="@caption"/></h3> <span class ="message_text"> <xsl:apply-templates/> </span> </xsl:template> <!--Systemmeldungen//--> <xsl:template match="sysmessage"> <xsl:choose> <xsl:when test="document('arg:/_xml')/content/@sysmessage='no'"></xsl:when> <xsl:otherwise> <xsl:variable name="temp_buffer" select="string(.)"/> <span class="message_text"> <xsl:apply-templates/> </span> <!-- Linn Meldung nur anzeigen, wenn temp_buffer nicht leer ist --> <xsl:if test="document('arg:/_xml')/content/@popmessage='yes' and $temp_buffer != ''"> <script type="text/javascript"> alert("<xsl:value-of select="$temp_buffer"/>"); </script> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="error"> <span class="errorlabel"> <xsl:value-of select="@caption"/> </span> </xsl:template> <xsl:template match="Error"> <span class="errorlabel"> <xsl:value-of select="."/> </span> </xsl:template> <!--xsl:template match="form"> <form> <xsl:if test="@id != ''"> <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute> </xsl:if> <xsl:if test="@name != ''"> <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute> </xsl:if> <xsl:if test="@class != ''"> <xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute> </xsl:if> <xsl:if test="@action != ''"> <xsl:attribute name="action"><xsl:value-of select="@action"/></xsl:attribute> </xsl:if> <xsl:if test="@mathode != ''"> <xsl:attribute name="method"><xsl:value-of select="@method"/></xsl:attribute> </xsl:if> <xsl:if test="@enctype != ''"> <xsl:attribute name="enctype"><xsl:value-of select="@enctype"/></xsl:attribute> </xsl:if> <xsl:attribute name="accept-charset"><xsl:value-of select="'UTF-8'"/></xsl:attribute> <xsl:if test="@default_action != ''"> <xsl:attribute name="default_action"><xsl:value-of select="@default_action"/></xsl:attribute> </xsl:if> <xsl:attribute name="target"> <xsl:choose> <xsl:when test="@target != ''"><xsl:value-of select="@target"/></xsl:when> <xsl:otherwise>_self</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="@script != ''"> <xsl:attribute name="onsubmit"><xsl:value-of select="@script"/></xsl:attribute> </xsl:if> <xsl:if test="@style != ''"> <xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute> </xsl:if> <xsl:apply-templates select="*[name()!='errorbox']/*"/> <xsl:if test="@focus"> <script type="text/javascript"> document.getElementById("<xsl:value-of select="@name"/>::<xsl:value-of select="@focus"/>").focus(); </script> </xsl:if> </form> </xsl:template--> <xsl:template match="form"> <form> <xsl:if test="@id != ''"> <xsl:attribute name="id"> <xsl:value-of select="@id"/> </xsl:attribute> </xsl:if> <xsl:if test="@name != ''"> <xsl:attribute name="name"> <xsl:value-of select="@name"/> </xsl:attribute> </xsl:if> <xsl:if test="@class != ''"> <xsl:attribute name="class"> <xsl:value-of select="@class"/> </xsl:attribute> </xsl:if> <xsl:if test="@action != ''"> <xsl:attribute name="action"> <xsl:value-of select="@action"/> </xsl:attribute> </xsl:if> <xsl:if test="@method != ''"> <xsl:attribute name="method"> <xsl:value-of select="@method"/> </xsl:attribute> </xsl:if> <xsl:if test="@enctype != ''"> <xsl:attribute name="enctype"> <xsl:value-of select="@enctype"/> </xsl:attribute> </xsl:if> <xsl:attribute name="accept-charset"> <xsl:value-of select="'UTF-8'"/> </xsl:attribute> <xsl:if test="@default_action != ''"> <xsl:attribute name="default_action"> <xsl:value-of select="@default_action"/> </xsl:attribute> </xsl:if> <xsl:attribute name="target"> <xsl:choose> <xsl:when test="@target != ''"> <xsl:value-of select="@target"/> </xsl:when> <xsl:otherwise>_self</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="@script != ''"> <xsl:attribute name="onsubmit"> <xsl:value-of select="@script"/> </xsl:attribute> </xsl:if> <xsl:if test="@style != ''"> <xsl:attribute name="style"> <xsl:value-of select="@style"/> </xsl:attribute> </xsl:if> <xsl:apply-templates select="*[name()!='errorbox']"/> <xsl:if test="@focus"> <script type="text/javascript"> document.getElementById("<xsl:value-of select="@name"/>::<xsl:value-of select="@focus"/>").focus(); </script> </xsl:if> </form> </xsl:template> <xsl:template match="noscript"> <noscript> <xsl:apply-templates/> </noscript> </xsl:template> <xsl:template name="fad_counter"> <xsl:variable name="page" select="php:function('web_Session::getCurrentPage')"/> <xsl:variable name="logparam" select="php:function('web_Session::getLogParams')"/> <xsl:if test="php:function('web_Content::addScript','/tools.count.js','text/javascript',1,true())"/> <script> window.onload = function () { if (!(typeof ipc == 'undefined' || ipc == null)) { var ipc_data = { "ref":"<xsl:value-of select="$page"/>", "param":"<xsl:value-of select="$logparam"/>" } ipc.c(ipc_data); } } </script> <noscript> <img src="/tools.count.script?ref={$page}&param={$logparam}" style="visibility:hidden;"/> </noscript> <xsl:if test="not(php:function('web_Session::is_ajax_call'))"> <xsl:call-template name="ivwcode"/> </xsl:if> </xsl:template> <xsl:template match="input"> <xsl:choose> <xsl:when test="@ida='' and (@readonly = 'readonly')"> <xsl:value-of select="@value"/> </xsl:when> <xsl:otherwise> <input> <xsl:copy-of select="@*[name() != 'class' and name() != 'ibs_checked']"/> <xsl:variable name="error" select="ancestor::*[name()='ControlElement']/@error!=''"/> <xsl:if test="@class != '' or $error != ''"> <xsl:attribute name="class"> <xsl:value-of select="@class"/> <xsl:if test="$error != ''"> <xsl:value-of select="' '"/> <xsl:value-of select="'error'"/> </xsl:if> </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="@size"> <xsl:attribute name="size"> <xsl:value-of select="@size"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:if test="@value!='' and string-length(@value) > 20 and @ida='' and (@readonly = 'readonly')"> <xsl:attribute name="size"> <xsl:value-of select="string-length(@value) + 1"/> </xsl:attribute> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:if test="name() = 'ibs_checked'"> <xsl:attribute name="checked"> <xsl:value-of select="."/> </xsl:attribute> </xsl:if> <xsl:value-of select="."/> </input> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="select"> <select> <xsl:copy-of select="@*[name() != 'class']"/> <xsl:if test="@class != ''"> <xsl:attribute name="class"> <xsl:value-of select="@class"/> <xsl:if test="../@error!=''"> <xsl:if test="@class != ''"> <xsl:value-of select="' '"/> </xsl:if> <xsl:value-of select="'error'"/> </xsl:if> </xsl:attribute> </xsl:if> <xsl:apply-templates select="optgroup|option"/> </select> </xsl:template> <xsl:template match="optgroup"> <optgroup label="{@label}"> <xsl:apply-templates select="option"/> </optgroup> </xsl:template> <xsl:template match="option"> <option> <xsl:for-each select="@*"> <xsl:choose> <!--Kleines Fake da es Probleme mit den Attributen selected und disabled bei DataOptionList gibt--> <xsl:when test="name()='select'"> <xsl:attribute name="selected"> <xsl:value-of select="."/> </xsl:attribute> </xsl:when> <xsl:when test="name()='not_enabled'"> <xsl:attribute name="disabled"> <xsl:value-of select="'true'"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:value-of select="."/> </option> </xsl:template> <xsl:template match="table[@type='ibs_vtable']"> <table class="data_table" cellpadding="0" cellspacing="0"> <xsl:for-each select="@*[name()!='type']"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:for-each> <xsl:for-each select="tr"> <xsl:call-template name="RenderVTR"> </xsl:call-template> </xsl:for-each> </table> </xsl:template> <xsl:template match="textarea"> <textarea> <xsl:copy-of select="@*[name() != 'class']"/> <xsl:if test="@class != '' or ../@error != ''"> <xsl:attribute name="class"> <xsl:value-of select="@class"/> <xsl:if test="../@error!=''"> <xsl:if test="@class!=''"> <xsl:value-of select="' '"/> </xsl:if> <xsl:value-of select="'error'"/> </xsl:if> </xsl:attribute> </xsl:if> <xsl:apply-templates/> </textarea> </xsl:template> <!--inveda_cm Framework GUI-Elemente--> <xsl:template match="ControlGroup"> <xsl:if test="node()"> <div class="ControlGroup"> <xsl:if test="Data|ControlElement|ControlButton"> <xsl:if test="Data"> <xsl:apply-templates select="Data"/> </xsl:if> <xsl:if test="translate(@caption,' ','') != '' or Description"> <div class="ControlGroup_description_wrapper"> <xsl:if test="translate(@caption,' ','') != ''"> <h3 class="ControlGroup_caption"> <xsl:value-of select="@caption"/> </h3> </xsl:if> <xsl:if test="Description"> <div class="ControlGroup_description"> <xsl:apply-templates select="Description/node()"/> </div> </xsl:if> </div> </xsl:if> <xsl:if test="ControlElement"> <div class="ControlGroup_content"> <xsl:choose> <xsl:when test="count(ControlElement[@location='right' or @location='left']) > 0"> <xsl:if test="count(ControlElement[@location='left']) > 0"> <div class="ControlGroup_content_left"> <xsl:for-each select="ControlElement[@location='left']"> <xsl:call-template name="ControlElement"> <xsl:with-param name="location" select="@location"/> </xsl:call-template> </xsl:for-each> </div> </xsl:if> <xsl:if test="count(ControlElement[@location='left']) > 0"> <div class="ControlGroup_content_middle"> <xsl:for-each select="ControlElement[not(@location='right' or @location='left')]"> <xsl:call-template name="ControlElement"> <xsl:with-param name="location" select="@location"/> </xsl:call-template> </xsl:for-each> </div> </xsl:if> <div class="ControlGroup_content_right"> <xsl:for-each select="ControlElement[@location='right']"> <xsl:call-template name="ControlElement"> <xsl:with-param name="location" select="@location"/> </xsl:call-template> </xsl:for-each> </div> </xsl:when> <xsl:otherwise> <xsl:for-each select="ControlElement"> <xsl:call-template name="ControlElement"> <xsl:with-param name="location" select="@location"/> </xsl:call-template> </xsl:for-each> </xsl:otherwise> </xsl:choose> </div> </xsl:if> <xsl:if test="@confirm_question!=''"> <div class="ControlGroup_confirm_question"> <xsl:value-of select="@confirm_question"/> </div> </xsl:if> <xsl:if test="count(ControlButton) > 0"> <div class="ControlGroup_buttons_div"> <xsl:attribute name="class"> <xsl:value-of select="'ControlGroup_buttons'"/> <xsl:if test="@gridded = true()"> <xsl:value-of select="' gridded'"/> </xsl:if> </xsl:attribute> <xsl:apply-templates select="ControlButton"/> </div> </xsl:if> </xsl:if> </div> </xsl:if> </xsl:template> <xsl:template match="ControlElement"> <xsl:call-template name="ControlElement"/> </xsl:template> <xsl:template name="ControlElement"> <xsl:param name="location"/> <xsl:if test="node()"> <div> <xsl:attribute name="class"> <xsl:value-of select="concat('form-group ',@control,' ')"/> <xsl:if test="@name != ''"> <xsl:value-of select="concat(' form_',@name)"/> </xsl:if> <xsl:if test="@required or @error!=''"> <xsl:value-of select="' required'"/> </xsl:if> <xsl:if test="@caption = ''"> <xsl:value-of select="' empty'"/> </xsl:if> <xsl:if test="$location != ''"> <xsl:value-of select="concat(' ',$location)"/> </xsl:if> </xsl:attribute> <xsl:choose> <xsl:when test="@type='ida'"> <xsl:apply-templates/> </xsl:when> <xsl:when test="@type='simple'"> <xsl:call-template name="Control"/> </xsl:when> <xsl:when test="@type='extended'"> <xsl:call-template name="Label"> <xsl:with-param name="required" select="@required or @error!=''"/> <xsl:with-param name="css_family" select="'ControlElement'"/> </xsl:call-template> <span class="help_element"> <xsl:choose> <xsl:when test="@help_page != ''"> <xsl:attribute name="class">help_element help_page</xsl:attribute> <a href="{@help_page}" onclick="getHelp('{@help_page}', this, 'control');return false;"> <i class="ii ii-info" alt="Hilfe zu diesem Bedienelement" title="Hilfe zu diesem Bedienelement">help</i> </a> </xsl:when> <xsl:when test="@help_text != ''"> <xsl:attribute name="class">help_element help_text</xsl:attribute> <a id="{@id}_help" href="#{@id}_help" tooltip="{@help_text}">?</a> </xsl:when> <xsl:otherwise> <xsl:value-of select="' '"/> </xsl:otherwise> </xsl:choose> </span> <xsl:call-template name="Control"/> </xsl:when> <xsl:when test="@type='hidden'"> <xsl:attribute name="style"> <xsl:value-of select="'display:none'"/> </xsl:attribute> <xsl:apply-templates/> </xsl:when> </xsl:choose> </div> </xsl:if> </xsl:template> <xsl:template name="Label"> <xsl:param name="required"/> <xsl:param name="css_family"/> <xsl:variable name="css_err"> <xsl:choose> <xsl:when test="@error!=''">_error_</xsl:when> <xsl:otherwise>_</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="css_family_label"> <xsl:value-of select="concat($css_family,$css_err,'label')"/> </xsl:variable> <label for="{@id}"> <xsl:attribute name="class"> <xsl:value-of select="'ControlElement_label'"/> <xsl:if test="@label_position != ''"> <xsl:value-of select="concat(' fad_label_position_',@label_position)"/> </xsl:if> </xsl:attribute> <xsl:if test="@required or $required"> <xsl:attribute name="title"> <xsl:value-of select="'Pflichtfeld'"/> </xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="translate(@caption,' ','') != ''"> <xsl:value-of select="@caption"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="' '"/> </xsl:otherwise> </xsl:choose> </label> </xsl:template> <xsl:template name="Control"> <xsl:variable name="css_err"> <xsl:choose> <xsl:when test="@error!=''">_error_</xsl:when> <xsl:otherwise>_</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:choose> <xsl:when test="@icon != '' or @error !='' or @ima_help"> <div class="fad_control"> <xsl:call-template name="render-control"> <xsl:with-param name="icon" select="@icon"/> <xsl:with-param name="error" select="@error"/> <xsl:with-param name="ima_help" select="@ima_help"/> </xsl:call-template> </div> </xsl:when> <xsl:otherwise> <div class="ControlElement_cell"> <xsl:apply-templates/> </div> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="render-control"> <xsl:param name="icon"/> <xsl:param name="error"/> <xsl:param name="ima_help"/> <xsl:if test="$icon != ''"> <img src="/web.images.{$icon}.png" class="label_status"/> </xsl:if> <xsl:choose> <xsl:when test="$error!=''"> <span class="error_control" nowrap="nowrap"> <xsl:apply-templates/> </span> </xsl:when> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> <xsl:if test="$error!='' or $ima_help"> <span> <xsl:if test="$error!=''"> <xsl:attribute name="class">error_control error_message</xsl:attribute> <xsl:value-of select="$error"/> </xsl:if> <xsl:if test="$ima_help != ''"> <a href="{$ima_help}" target="inveda_help"> <i class="ii ii-info" alt="Hilfe zu diesem Bedienelement" title="Hilfe zu diesem Bedienelement">help</i> </a> </xsl:if> </span> </xsl:if> </xsl:template> <xsl:template match="ControlButton"> <xsl:apply-templates/> </xsl:template> <xsl:template match="tab_view"> <xsl:call-template name="tab_view"/> </xsl:template> <xsl:template name="tab_view"> <xsl:variable name="js1" select="php:function('web_Content::addScript', '/scripts/tab.js')"/> <div class="tab_box" id="{@id}"> <ul class="tab_nav"> <xsl:for-each select="tab_view_tab"> <li class="tab_item"> <a class="tab_link"> <xsl:value-of select="@caption"/> </a> </li> </xsl:for-each> </ul> <xsl:for-each select="tab_view_tab"> <div class="tab_view"> <xsl:apply-templates/> </div> </xsl:for-each> </div> <script type="text/javascript">setTimeout("tab_init(document.getElementById('{./@id}'), 0);",120);</script> </xsl:template> <xsl:template match="webbox"> <xsl:apply-templates select="php:function('dialog_WebBox::create',exslt:node-set(.))"/> </xsl:template> <xsl:template match="WebBox"> <xsl:call-template name="WebBox"/> </xsl:template> <xsl:template name="WebBox"> <xsl:variable name="link"> <xsl:if test="@link != ''"> <xsl:value-of select="@link"/> <xsl:choose> <xsl:when test="@link_mime = 'none'"/> <xsl:when test="@link_mime != ''"> <xsl:value-of select="concat('.', @link_mime)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'.html'"/> </xsl:otherwise> </xsl:choose> </xsl:if> </xsl:variable> <xsl:variable name="link_text" select="@link_text"/> <xsl:variable name="link_target" select="@link_target"/> <div class="webbox"> <xsl:if test="translate(@caption,' ','')"> <div class="WebBox_caption"> <xsl:choose> <xsl:when test="$link != ''"> <a href="{$link}" class="WebBox_caption_link"> <h3 class="WebBox_caption_content"> <xsl:value-of select="@caption"/> </h3> </a> </xsl:when> <xsl:otherwise> <h3 class="WebBox_caption_content"> <xsl:value-of select="@caption"/> </h3> </xsl:otherwise> </xsl:choose> <xsl:if test="@filter='toggle'"> <span class="WebBox_caption_togglefilter"> <a onclick="toggleFilter(this, '{@name}');" id="{concat(@name, '_togglefilter')}"> <i class="ii ii-details_minus" title="Filter ein/ausblenden">Filter ein/ausblenden</i> </a> </span> </xsl:if> <xsl:if test="@help!=''"> <span class="WebBox_caption_help"> <a href="{@help}" target="inveda_help"> <i class="ii ii-info" title="Hilfe">Hilfe</i> </a> </span> </xsl:if> </div> </xsl:if> <xsl:choose> <xsl:when test="form/ControlGroup/Description/@show = 'true' and form/ControlGroup/Description != ''"> <div class="WebBox_description"> <xsl:copy-of select="form/ControlGroup/Description/node()"/> </div> </xsl:when> <xsl:when test="Description != ''"> <!-- Description in Dialogen ohne Controls --> <div class="WebBox_description"> <h3 class="ControlGroup_caption"> <xsl:value-of select="Caption"/> </h3> <xsl:copy-of select="Description/node()"/> </div> </xsl:when> </xsl:choose> <xsl:if test="count(form/*[name()='ControlGroup' or name()='ControlElement']) > 0 or table"> <div class="webbox_cell"> <xsl:apply-templates select="form"/> </div> </xsl:if> <xsl:if test="webboxmenu"> <div class="webbox_menu"> <xsl:apply-templates select="webboxmenu"/> </div> </xsl:if> <xsl:if test="Data"> <div class="webbox_cell"> <xsl:apply-templates select="Data"/> </div> </xsl:if> <xsl:if test="div"> <xsl:apply-templates select="div"/> </xsl:if> </div> <xsl:if test="//errorbox != ''"> <!-- kann direkt in der webbox, oder im form stehen --> <xsl:choose> <xsl:when test="document('arg:/inveda_cm')/inveda_cm/inveda_cm_debug = 'ON'"> <div class="fad_error_box"> <span style="font-weight:bold;color:#900;">Eingabefehler im DSH:</span> <div style="padding:3px 0 0 7px;"> <xsl:copy-of select="//errorbox/developer/node()"/> </div> </div> </xsl:when> <xsl:otherwise> <div class="fad_error_box" style="font-weight:bold;text-align:center"> <xsl:choose> <xsl:when test="string-length(//errorbox/user) > 0"> <xsl:copy-of select="//errorbox/user/node()"/> </xsl:when> <xsl:otherwise>Keine Daten verfügbar</xsl:otherwise> </xsl:choose> </div> </xsl:otherwise> </xsl:choose> </xsl:if> <xsl:if test="script"> <script type="text/javascript"> <xsl:value-of select="script" disable-output-escaping="yes"/> </script> </xsl:if> <!-- Toggle Filter erst beim click ausführen und nicht beim Seitenaufruf --> <!--<xsl:if test="@filter='toggle'">--> <!--<script type="text/javascript">--> <!--toggleFilter(document.getElementById('<xsl:value-of select="concat(@name, '_togglefilter')"/>'), '<xsl:value-of select="@name"/>');--> <!--</script>--> <!--</xsl:if>--> </xsl:template> <!--Normaler Text, wird nicht indiziert--> <xsl:template match="text[../content]"> <xsl:apply-templates select="node()|comment()|processing-instruction()"/> </xsl:template> <!--für den rteditor...--> <xsl:template match="actiongroup"> <xsl:variable name="type"> <xsl:choose> <xsl:when test="../../@type!=''"> <xsl:value-of select="../../@type"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'simple'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="$type = @type or @type='simple'"> <br/> <table cellpadding="0" cellspacing="2" border="0" height="20" class="webapp_actiongroup" align="left" valign="left" style="float:left;"> <tr> <xsl:for-each select="item"> <td bgColor="#e0e0e0" valign="top" align="center" width="20" onmouseover="mouseOver(this)" onmouseout="mouseOut(this)"> <xsl:element name="{@tag}"> <xsl:for-each select="@*"> <xsl:if test="name()!='tag'"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:if> </xsl:for-each> <xsl:apply-templates select="*|text"/> </xsl:element> </td> </xsl:for-each> </tr> </table> </xsl:if> </xsl:template> <xsl:template match="rtmenu"> <table class="ControlGroupTable" id="toolbar1" width="100%"> <tr> <td> <xsl:apply-templates select="actiongroup"/> </td> </tr> </table> </xsl:template> <xsl:template match="rteditor"> <xsl:variable name="type" select="@type"/> <script type="text/javascript" language="JavaScript1.2"> type = "<xsl:value-of select="@type"/>"; session = "<xsl:value-of select="$session"/>"; editor_name = "<xsl:value-of select="@editor_name"/>"; archive = "<xsl:value-of select="@archive"/>"; holder_url="<xsl:value-of select="@holder_url"/>"; embedded=true; boxName="<xsl:value-of select="@boxName"/>"; controlName="<xsl:value-of select="@controlName"/>"; holder_preview="?preview=yes"; if(boxName==""){ embedded=false; } width="<xsl:value-of select="@width"/>"; height="<xsl:value-of select="@height"/>"; </script> <script type="text/javascript" language="JavaScript1.2" src="/editor.js.rteditor.js"> //editor</script> <script type="text/javascript" language="JavaScript1.2" src="/editor.js.menu.js"> //menu</script> <script type="text/javascript" language="JavaScript1.2" src="/editor.js.fck_xhtml.js"> //script</script> <xsl:copy-of select="document('ibs:/modules,editor/menu.xml')/menu/style"/> <xsl:variable name="menu" select="document('ibs:/modules,editor/menu.xml')/menu/menu[@type=$type]"/> <ul class="menuBar" style="position:relative;top:10px"> <xsl:for-each select="$menu/item"> <xsl:variable name="pos1" select="position()"/> <xsl:if test="item"> <li> <a class="menuButton" href="javascript:buttonClick(event, 'menu{position()}')" onclick="return buttonClick(event, 'menu{position()}');" onmouseover="buttonMouseover(event, 'menu{position()}');"> <xsl:value-of select="@title"/>   </a> <ul id="menu{position()}" class="menu" onmouseover="menuMouseover(event)"> <xsl:for-each select="item"> <xsl:choose> <xsl:when test="item"> <li> <a class="menuItem" href="/blank.html" onclick="return false;" onmouseover="menuItemMouseover(event, 'menu{$pos1}_{position()}');"> <span class="menuItemText"> <xsl:value-of select="@title"/> </span> <span class="menuItemArrow">▶</span> </a> <ul id="menu{$pos1}_{position()}" class="menu" onmouseover="menuMouseover(event)"> <xsl:for-each select="item"> <li> <a class="menuItem" href="{@link}" onclick="hideMenu(event)"> <span class="menuLinkText"> <xsl:if test="@img"> <img class="menuItemPic" src="{@img}"/> </xsl:if> <xsl:value-of select="@title"/>   </span> </a> </li> </xsl:for-each> </ul> </li> </xsl:when> <xsl:otherwise> <li> <a class="menuItem" href="{@link}"> <span class="menuLinkText"> <xsl:if test="@img"> <img class="menuItemPic" src="{@img}"/> </xsl:if> <xsl:value-of select="@title"/>   </span> </a> </li> </xsl:otherwise> </xsl:choose> </xsl:for-each> </ul> </li> </xsl:if> </xsl:for-each> </ul> <div id="editor" class="tabPanel" style="z-index:0; clear: both"> <xsl:apply-templates select="rtmenu"/> <iframe src="" name="editorWindow" id="editorWindow" class="edit" width="{@width}px" height="{@height}px" marginwidth="5px" marginheight="5px" style="background-color:#FFF;border:1px solid #000;"> <p> Ihr Browser kann leider keine eingebetteten Frames anzeigen. Bitte verwenden Sie das herkömmliche Eingabefeld zum Bearbeiten Ihrer Texte oder verwenden Sie einen aktuellen Browser. </p> </iframe> </div> </xsl:template> <xsl:template match="ibs-webbox"> <xsl:variable name="param"> <xsl:call-template name="xmltotxt"> <xsl:with-param name="xml" select="."/> </xsl:call-template> </xsl:variable> <xsl:variable name="param2" select="string($param)"/> <xsl:apply-templates select="php:function('XSLWebBox',$param2)"/> </xsl:template> <xsl:template name="xmltotxt"> <xsl:param name="xml"/><<xsl:value-of select="name($xml)"/><xsl:for-each select="@*"><xsl:value-of select="concat(' ',name())"/>="<xsl:value-of select="."/>"</xsl:for-each> ><xsl:for-each select="$xml/*"><xsl:call-template name="xmltotxt"><xsl:with-param name="xml" select="."/></xsl:call-template></xsl:for-each><xsl:value-of select="$xml/text()"/></<xsl:value-of select="name($xml)"/>></xsl:template> <xsl:template match="movie"> <xsl:choose> <xsl:when test="@preview='yes'"> <a title="Video abspielen" href="tools.movie.player.html?height={@height}&width={@width}&autostart={@autostart}&src={@src}" onclick="requestWebbox('tools.movie.player.ajax?height={@height}&width={@width}&autostart={@autostart}&src={@src}'); return false;" target="movie"> <xsl:choose> <xsl:when test="@previewpic"> <xsl:variable name="previewpic"> <xsl:choose> <xsl:when test="starts-with(@previewpic,'http')"> <xsl:value-of select="@previewpic"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('http://',document('ibs:/holder_value,domain')/content/@value,'/',@previewpic)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <img src="{$previewpic}"/> </xsl:when> <xsl:otherwise> <img src="tools.movie.movie_thumb.script?file={@src}&archive=user"/> </xsl:otherwise> </xsl:choose> </a> </xsl:when> <xsl:when test="@preview='no'"> <xsl:variable name="src"> <xsl:choose> <xsl:when test="starts-with(@src,'http')"> <xsl:value-of select="@src"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('http://',document('ibs:/holder_value,domain')/content/@value,'/',@src)"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="autostart"> <xsl:choose> <xsl:when test="@autostart='true' or @autostart='yes'"> <xsl:value-of select="'true'"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="'false'"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <object type="application/x-shockwave-flash" width="{@width}" height="{@height}" wmode="transparent" data="ibs/mediaplayer.swf?file={$src}&autostart={$autostart}"> <param name="movie" value="ibs/mediaplayer.swf?file={$src}&autostart={$autostart}"/> <param name="wmode" value="transparent"/> </object> </xsl:when> <xsl:otherwise> <a title="Video abspielen" href="tools.movie.player.html?height={@height}&width={@width}&autostart={@autostart}&src={@src}" onclick="requestWebbox('tools.movie.player.ajax?height={@height}&width={@width}&autostart={@autostart}&src={@src}'); return false;" target="movie"> <img src="{@preview}"/> </a> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="RenderTimeElement"> <!-- Value in Minuten übergeben --> <xsl:param name="value"/> <xsl:param name="signed" select="'true'"/> <xsl:param name="format" select="'hh:mm'"/><!-- hh:mm oder 0.0 oder 0.00 --> <xsl:param name="title"/> <xsl:if test="$title"> <xsl:attribute name="title"> <xsl:value-of select="$title"/> </xsl:attribute> </xsl:if> <xsl:if test="$signed = 'true' and string(number($value)) != 'NaN' and number($value) < 0">-</xsl:if> <xsl:variable name="num_value" select="number ( $value )"/> <xsl:variable name="sign"> <xsl:choose> <xsl:when test="string(number($value)) != 'NaN' and number($value) < 0">-1</xsl:when> <xsl:otherwise>1</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="abs_value" select="number ( $sign ) * $num_value"/> <xsl:if test="$format = 'hh:mm'"> <xsl:choose> <xsl:when test="string($abs_value) != 'NaN' and $abs_value != 0"> <xsl:value-of select="concat ( format-number ( floor ( $abs_value div 60 ), '00' ),':', format-number( $abs_value - 60 * floor ( $abs_value div 60 ) ,'00' ) )"/> </xsl:when> <xsl:when test="string($abs_value) != 'NaN' and $abs_value = 0">00:00</xsl:when> <xsl:otherwise>--:--</xsl:otherwise> </xsl:choose> </xsl:if> <xsl:if test="$format = '0.0'"> <xsl:choose> <xsl:when test="string($abs_value) != 'NaN' and $abs_value != 0"> <xsl:value-of select="format-number($abs_value div 60,'#0,0')"/> </xsl:when> <xsl:when test="string($abs_value) != 'NaN' and $abs_value = 0">0,0</xsl:when> <xsl:otherwise>-,-</xsl:otherwise> </xsl:choose> </xsl:if> <xsl:if test="$format = '0.00'"> <xsl:choose> <xsl:when test="string($abs_value) != 'NaN' and $abs_value != 0"> <xsl:value-of select="format-number($abs_value div 60,'#0,00')"/> </xsl:when> <xsl:when test="string($abs_value) != 'NaN' and $abs_value = 0">0,00</xsl:when> <xsl:otherwise>-,--</xsl:otherwise> </xsl:choose> </xsl:if> </xsl:template> <!-- remove dialog, because Chrome/Safari handling is a mess --> <xsl:template match="dialog"> <xsl:apply-templates/> </xsl:template> <xsl:template match="answer"> <div class="fad_cms_answer"> <xsl:variable name="right" select="./@right"/> <xsl:for-each select="./p"> <p> <xsl:if test="position()=1"> <input type="checkbox" name="fad_answer" value=""> <xsl:if test="$right='true'"> <xsl:attribute name="checked">checked</xsl:attribute> <xsl:attribute name="onclick">this.checked=true;</xsl:attribute> </xsl:if> <xsl:if test="$right!='true'"> <xsl:attribute name="onclick">this.checked=false;</xsl:attribute> </xsl:if> </input> </xsl:if> <xsl:apply-templates/> </p> </xsl:for-each> </div> </xsl:template> <!-- <xsl:template match="script"> <xsl:if test="@src != ''"> <xsl:variable name="add_Script" select="php:function('web_Content::addScript',string(@src),'text/javascript',number( 600 + position() ))"/> </xsl:if> <xsl:if test="not(@src) or @src = ''"> <xsl:variable name="script_body"> $(function(){ <xsl:for-each select="*|text()"> <xsl:value-of select="string(.)" disable-output-escaping="yes"/> </xsl:for-each> }); </xsl:variable> <xsl:variable name="add_Script" select="php:function('web_Content::addScriptCode',string($script_body),'text/javascript',number( 700 + position() ) )"/> </xsl:if> </xsl:template> --> <!-- ima calculator passthrough --> <xsl:template match="div[@id = 'calculator' and not(@data-src = '')]"> <xsl:copy-of select="."/> </xsl:template> <xsl:template name="ivwcode"> <xsl:if test="$ivwszm_cdata != ''"> <xsl:variable name="szm-code"> <xsl:choose> <xsl:when test="$document/metadata/publishtype"> <xsl:value-of select="concat($document/metadata/publishtype,'-',$document/metadata/schema,'-',$document/metadata/layout/@name,'-',$document/metadata/skin.szm-code)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="php:function('web_Session::getCurrentPage')"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="ivwszm" select="document('ibs:/holder_param,ivwszm_id')/content/@value"/> <!--Zenus--> <script type='text/javascript'> IOMm('configure', { st: '<xsl:value-of select="$ivwszm"/>', dn: '<xsl:value-of select="$ivwszm_cdata"/>', ct: '0000810000', mh: 5 }); // Configure IOMm IOMm('pageview', { cp: '<xsl:value-of select="$szm-code"/>' }); // Count pageview </script> <script type='text/javascript' src='https://{$ivwszm_cdata}/iomm/latest/manager/base/es5/bundle.js'></script> </xsl:if> </xsl:template> </xsl:stylesheet>";s:7:"/schema";s:130:"<?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"/>";s:47:"/skin/fad-server/class/web/content/html.lib.xsl";s:130:"<?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"/>";} |
3 | False |
0 | games |
1 | sportweb1 |
2 | Object(DOMDocument) O:11:"DOMDocument":0:{} |
0 | games |
1 | html |
2 | sportweb1 |
3 | Object(DOMDocument) O:11:"DOMDocument":0:{} |