[420] | 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> |
---|
| 11 | <td class="td_common" height="100%" width="1%"> |
---|
| 12 | |
---|
| 13 | <table class="table_common" height="100%" width="100%" cellpadding="0" cellspacing="0"> |
---|
| 14 | <tr id="tr_week"> |
---|
| 15 | <td class="td_header" width="10%"></td> |
---|
| 16 | <xsl:for-each select="workweek"> |
---|
| 17 | <xsl:variable name="dayIndex" select="dayid" /> |
---|
| 18 | <td id="weekHeader_{$dayIndex}" class="td_header" height="1%"> |
---|
| 19 | <xsl:value-of select='dayofweek' /> |
---|
| 20 | </td> |
---|
| 21 | </xsl:for-each> |
---|
| 22 | </tr> |
---|
| 23 | <xsl:for-each select="/retorno/workday"> |
---|
| 24 | <tr> |
---|
| 25 | <xsl:variable name="time" select="timeid" /> |
---|
| 26 | <xsl:variable name="event_id" select="id" /> |
---|
| 27 | <td width="1%" id="header_{$today}{$time}" class="td_header"> |
---|
| 28 | <xsl:value-of select="hour" /></td> |
---|
| 29 | <xsl:for-each select="/retorno/workweek"> |
---|
| 30 | <xsl:variable name="day" select="dayid" /> |
---|
| 31 | <td class="td_common" id="{$day}{$time}"> |
---|
| 32 | </td> |
---|
| 33 | </xsl:for-each> |
---|
| 34 | </tr> |
---|
| 35 | </xsl:for-each> |
---|
| 36 | </table> |
---|
| 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | </table> |
---|
| 40 | </div> |
---|
| 41 | <div id="returnEvents"> |
---|
| 42 | <xsl:for-each select="calEvent"> |
---|
| 43 | <xsl:variable name="event_id" select="id" /> |
---|
| 44 | <xsl:variable name="datetime" select="datetime" /> |
---|
| 45 | <xsl:variable name="edatetime" select="edatetime" /> |
---|
| 46 | <xsl:if test="id > 0"> |
---|
| 47 | <div id="event_{$event_id}"> |
---|
| 48 | <xsl:value-of select='title' /> |
---|
| 49 | <div id="{$datetime}"></div> |
---|
| 50 | <div id="{$edatetime}"></div> |
---|
| 51 | </div> |
---|
| 52 | </xsl:if> |
---|
| 53 | </xsl:for-each> |
---|
| 54 | </div> |
---|
| 55 | </xsl:template> |
---|
| 56 | </xsl:stylesheet> |
---|