[20] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
| 3 | <xsl:output method="html" omit-xml-declaration="yes"/> |
---|
| 4 | |
---|
| 5 | <xsl:template match="/window"> |
---|
| 6 | <html> |
---|
| 7 | <head> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
[60] | 10 | <div id="{@id}_im_window_master" class="master" style="top:{@top};left:{@left};height:{(@height + 48)};width:{(@width + 12)};{@style};"> |
---|
| 11 | <div id="{@id}_im_window" class="pai" style="height:{(@height + 40)};"> |
---|
[55] | 12 | <div id="{@id}_im_window_icon" class="im_window_icon" /> |
---|
[20] | 13 | <div class="tit"><xsl:value-of select="@title" /></div> |
---|
| 14 | <xsl:apply-templates select="/" mode='buttons' /> |
---|
[60] | 15 | <div class="filho" id="{@id}_im_window_body_inner" style="width:{@width};height:{@height};" /> |
---|
| 16 | </div> |
---|
[20] | 17 | </div> |
---|
[60] | 18 | |
---|
[20] | 19 | <div class="im-windowfantom-des" id="{@id}_im_window_fantom" /> |
---|
| 20 | <div class="im-windowfantom-des" id="{@id}_im_window_movable" /> |
---|
| 21 | <div class="im-window-resizehandle" id="{@id}_im_window_resize" /> |
---|
| 22 | </body> |
---|
| 23 | </html> |
---|
| 24 | </xsl:template> |
---|
| 25 | |
---|
| 26 | <xsl:template match="/window" mode="buttons"> |
---|
| 27 | <xsl:if test='@close and @close="true"'> |
---|
| 28 | <div class="im-window-button im-window-closebutton" style="z-index:6000;right:4px" onclick="im_win.windowClose(this.parentNode.id);" /> |
---|
| 29 | </xsl:if> |
---|
| 30 | |
---|
| 31 | <xsl:if test='@maximize and @maximize="true"'> |
---|
| 32 | <xsl:choose> |
---|
| 33 | <xsl:when test='@close and @close="true"'> |
---|
| 34 | <div class="im-window-button im-window-maximizerestorebutton" style="z-index:6000;right:20px" onclick="im_win.windowMaximizeRestore(this.parentNode.id);" /> |
---|
| 35 | </xsl:when> |
---|
| 36 | <xsl:otherwise> |
---|
| 37 | <div class="im-window-button im-window-maximizerestorebutton" style="z-index:6000;right:4px" onclick="im_win.windowMaximizeRestore(this.parentNode.id);" /> |
---|
| 38 | </xsl:otherwise> |
---|
| 39 | </xsl:choose> |
---|
| 40 | </xsl:if> |
---|
| 41 | |
---|
| 42 | <xsl:if test='@minimize and @minimize="true"'> |
---|
| 43 | <xsl:choose> |
---|
| 44 | <xsl:when test='@close and @close="true" and @maximize and @maximize="true"'> |
---|
| 45 | <div class="im-window-button im-window-minimizebutton" style="z-index:6000;right:36px" onclick="im_win.windowMinimize(this.parentNode.id);" /> |
---|
| 46 | </xsl:when> |
---|
| 47 | <xsl:when test='(@close and @close="true" or @maximize and @maximize="true") and not (@close and @close="true" and @maximize and @maximize="true")'> |
---|
| 48 | <div class="im-window-button im-window-minimizebutton" style="z-index:6000;right:20px" onclick="im_win.windowMinimize(this.parentNode.id);" /> |
---|
| 49 | </xsl:when> |
---|
| 50 | <xsl:otherwise> |
---|
| 51 | <div class="im-window-button im-window-minimizebutton" style="z-index:6000;right:4px" onclick="im_win.windowMinimize(this.parentNode.id);" /> |
---|
| 52 | </xsl:otherwise> |
---|
| 53 | </xsl:choose> |
---|
| 54 | </xsl:if> |
---|
| 55 | </xsl:template> |
---|
| 56 | |
---|
| 57 | </xsl:stylesheet> |
---|