source: trunk/calendar_new/xsl/viewMonth.xsl @ 420

Revision 420, 1.5 KB checked in by niltonneto, 16 years ago (diff)

Commit inicial da agenda com layout usando Ajax.

  • 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" width="100%" cellpadding="0" cellspacing="0" border="0">
10        <tr class="td_common" height="100%" width="1%">
11
12                        <table class="table_common" height="100%" width="100%" cellpadding="0" cellspacing="0">
13                                <tr id="tr_week">
14                                        <xsl:for-each select="dayofweek">
15                                                <xsl:variable name="dayName" select="dayname" />
16                                                <td id="weekHeader_{$dayName}" class="td_header" height="1%">
17                                                        <xsl:value-of select='$dayName' />
18                                                </td>
19                                        </xsl:for-each>
20                                </tr>
21                                <xsl:for-each select="/retorno/workWeek">
22                                                <tr>
23                                                        <xsl:for-each select="workday">
24                                                                <xsl:variable name="day" select="id" />
25                                                                <td class="td_day" id="{$day}">
26                                                                </td>
27                                                        </xsl:for-each>
28                                                </tr>
29                                </xsl:for-each>
30
31                        </table>       
32        </tr>
33</table>       
34</div>
35<div id="returnEvents">
36        <xsl:for-each select="calEvent">
37                <xsl:variable name="event_id" select="id" />
38                <xsl:variable name="datetime" select="datetime" />
39                <xsl:variable name="edatetime" select="edatetime" />
40                <xsl:if test="id > 0">
41                        <div id="event_{$event_id}">
42                                <xsl:value-of select='title' />
43                                <div id="{$datetime}"></div>
44                                <div id="{$edatetime}"></div>
45                        </div>
46                </xsl:if>
47        </xsl:for-each>
48</div>
49</xsl:template>
50</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.