source: sandbox/expressoCalendar/xsl/viewYear.xsl @ 632

Revision 632, 1.3 KB checked in by niltonneto, 15 years ago (diff)

Modulo calendar_new renomeado para expressoCalendar

  • Property svn:executable set to *
Line 
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:template match="/retorno">
4<xsl:variable name="today" select="today" />
5<div id="day">
6        <div id="{$today}"></div>
7</div>
8<div width="100%" class="title" align="left" ><label id="l_date"></label><br/><br/>
9        <table class="table_common" height="auto" width="100%" cellpadding="0" cellspacing="0">
10                <tbody>
11                        <tr id="tr_week">
12                                <xsl:for-each select="dayofweek">
13                                        <xsl:variable name="dayName" select="dayname" />
14                                        <td id="weekHeader_{$dayName}" class="td_header" height="1%">
15                                                <xsl:value-of select='$dayName' />
16                                        </td>
17                                </xsl:for-each>
18                        </tr>
19                        <xsl:for-each select="/retorno/workWeek">
20                                <tr>
21                                        <xsl:for-each select="workday">
22                                                <xsl:variable name="day" select="id" />
23                                                <td class="td_day" id="{$day}">
24                                                        <xsl:value-of select='substring($day,5,2)' />
25                                                </td>
26                                        </xsl:for-each>
27                                </tr>
28                        </xsl:for-each>
29                </tbody>
30        </table>
31</div>
32<div id="returnEvents">
33        <xsl:for-each select="calEvent">
34                <xsl:variable name="event_id" select="id" />
35                <xsl:variable name="datetime" select="datetime" />
36                <xsl:if test="id > 0">
37                        <div id="event_{$event_id}">
38                                <div id="{$datetime}"></div>
39                        </div>
40                </xsl:if>
41        </xsl:for-each>
42</div>
43</xsl:template>
44</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.