source: trunk/jabberit_messenger/jmessenger/xsl/listRooms.xsl @ 3070

Revision 3070, 1.4 KB checked in by alexandrecorreia, 14 years ago (diff)

Ticket #1091 - Implementado a busca de salas para bate-papo no novo modulo Expresso messenger XEP-0045-MUC.

Line 
1<?xml version="1.0" encoding="utf-8"?>
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:param name="path_jabberit" />
6
7        <xsl:template match="listRooms">
8               
9                <div style="margin:5px; height:200px; overflow-y: auto">
10                       
11                        <xsl:for-each select="room">
12                                <xsl:sort select="@nameRoom"/>
13                                <div onclick="alert('aqui dentro');" style="cursor:pointer;padding :5px 0px 5px 45px; background:url({$path_jabberit}templates/default/images/conference.png) no-repeat center left; border-bottom:1px dashed #cecece; margin:6px 1px;">
14                                        Nome da Sala : <xsl:value-of select="@nameRoom"/> <br/>
15                                        <xsl:choose>
16                                                <xsl:when test="description != ''">
17                                                        Descrição : <xsl:value-of select="description"/> <br/>
18                                                </xsl:when>
19                                                <xsl:otherwise>
20                                                        Descrição : &lt; Sem Descrição &gt; <br/>
21                                                </xsl:otherwise>
22                                        </xsl:choose>                                   
23                                        Ocupantes : <xsl:value-of select="occupants"/> <br/>
24                                        <xsl:choose>
25                                                <xsl:when test="password = 'true'">
26                                                        Password : <span style="color:red; font-weight: bold;"><blink>Com Senha</blink></span><br/>
27                                                </xsl:when>
28                                                <xsl:otherwise>
29                                                        Password : Sem Senha <br/>
30                                                </xsl:otherwise>
31                                        </xsl:choose>                                   
32                                </div>
33                        </xsl:for-each>
34                       
35                </div>
36               
37                <div id="buttons_addChatRoom" style="float:left; margin:10px 0px 0px 10px;" />
38               
39        </xsl:template>
40
41
42</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.