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> |
---|
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)}"> |
---|
12 | <div id="{@id}_im_window_icon" class="im_window_icon" /> |
---|
13 | <div class="tit"><xsl:value-of select="@title" /></div> |
---|
14 | <xsl:apply-templates select="/" mode='buttons' /> |
---|
15 | <div class="filho" id="{@id}_im_window_body_inner" style="width:{@width};height:{@height}" /> |
---|
16 | </div> |
---|
17 | </div> |
---|
18 | <div class="im-windowfantom-des" id="{@id}_im_window_fantom" /> |
---|
19 | <div class="im-windowfantom-des" id="{@id}_im_window_movable" /> |
---|
20 | <div class="im-window-resizehandle" id="{@id}_im_window_resize" /> |
---|
21 | </body> |
---|
22 | </html> |
---|
23 | </xsl:template> |
---|
24 | |
---|
25 | <xsl:template match="/window" mode="buttons"> |
---|
26 | <xsl:if test='@close and @close="true"'> |
---|
27 | <div class="im-window-button im-window-closebutton" style="z-index:6000;right:4px" onclick="im_win.windowClose(this.parentNode.id);" /> |
---|
28 | </xsl:if> |
---|
29 | |
---|
30 | <xsl:if test='@maximize and @maximize="true"'> |
---|
31 | <xsl:choose> |
---|
32 | <xsl:when test='@close and @close="true"'> |
---|
33 | <div class="im-window-button im-window-maximizerestorebutton" style="z-index:6000;right:20px" onclick="im_win.windowMaximizeRestore(this.parentNode.id);" /> |
---|
34 | </xsl:when> |
---|
35 | <xsl:otherwise> |
---|
36 | <div class="im-window-button im-window-maximizerestorebutton" style="z-index:6000;right:4px" onclick="im_win.windowMaximizeRestore(this.parentNode.id);" /> |
---|
37 | </xsl:otherwise> |
---|
38 | </xsl:choose> |
---|
39 | </xsl:if> |
---|
40 | |
---|
41 | <xsl:if test='@minimize and @minimize="true"'> |
---|
42 | <xsl:choose> |
---|
43 | <xsl:when test='@close and @close="true" and @maximize and @maximize="true"'> |
---|
44 | <div class="im-window-button im-window-minimizebutton" style="z-index:6000;right:36px" onclick="im_win.windowMinimize(this.parentNode.id);" /> |
---|
45 | </xsl:when> |
---|
46 | <xsl:when test='(@close and @close="true" or @maximize and @maximize="true") and not (@close and @close="true" and @maximize and @maximize="true")'> |
---|
47 | <div class="im-window-button im-window-minimizebutton" style="z-index:6000;right:20px" onclick="im_win.windowMinimize(this.parentNode.id);" /> |
---|
48 | </xsl:when> |
---|
49 | <xsl:otherwise> |
---|
50 | <div class="im-window-button im-window-minimizebutton" style="z-index:6000;right:4px" onclick="im_win.windowMinimize(this.parentNode.id);" /> |
---|
51 | </xsl:otherwise> |
---|
52 | </xsl:choose> |
---|
53 | </xsl:if> |
---|
54 | </xsl:template> |
---|
55 | |
---|
56 | </xsl:stylesheet> |
---|