Changeset 151 for trunk/instant_messenger/xsl/contacts.xsl
- Timestamp:
- 01/18/08 15:17:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/xsl/contacts.xsl
r55 r151 3 3 <xsl:output method="html" omit-xml-declaration="yes"/> 4 4 5 <xsl:template match="/retorno/contacts"> 6 <html> 7 <head> 8 </head> 9 <body> 10 <div id="all_groups"> 11 <xsl:apply-templates select="group" /> 12 </div> 13 </body> 14 </html> 5 <xsl:template match="iq/query"> 6 <xsl:apply-templates select="." mode="list" /> 15 7 </xsl:template> 16 8 17 <xsl:template match="group"> 18 <div style="margin-left:16px;overflow:hidden;" id="{@name}"> 19 <b><xsl:value-of select="@name" /></b> 20 <br /> 21 <xsl:apply-templates select="item" /> 22 </div> 9 <xsl:template match="*" mode="list"> 10 <div id="im_contact_list" style="margin:2px;width:auto;height:200px;overflow-y:auto;"> 11 <xsl:for-each select="item"> 12 <xsl:sort select="group" case-order="upper-first" /> 13 <xsl:choose> 14 <xsl:when test="not(group = preceding-sibling::item/group)"> 15 <img id="group_{group[current()]}" src="/instant_messenger/templates/default/images/group_open.gif" onclick="javascript:im.group_close('{group[current()]}');"/> 16 <b><xsl:value-of select="group[current()]" /><br/></b> 17 <xsl:apply-templates select="." mode="contacts"/> 18 </xsl:when> 19 <xsl:otherwise> 20 <xsl:apply-templates select="." mode="contacts"/> 21 </xsl:otherwise> 22 </xsl:choose> 23 </xsl:for-each> 24 </div> 23 25 </xsl:template> 24 26 25 <xsl:template match="item"> 26 <div style="cursor:pointer;margin-left:8px;width:2000px" onmouseover="this.className='contato_hover'" onmouseout="this.className=''" onmousedown="javascript:IM.action_button(event, '{@jid}');" id="{@jid}"> 27 <xsl:value-of select="@name" /> 28 </div> 27 <xsl:template match="*" mode="contacts"> 28 29 <xsl:choose> 30 <xsl:when test="@name"> 31 <div style="margin-left:15px;cursor:pointer;display:block;" id="{@jid}" idgroup="{group}" idname="{@name}" onmousedown="templates.options(event, '{@jid}');"> 32 <img id="img_{@jid}" src="/instant_messenger/templates/default/images/unavailable.gif" style="margin:0px 2px" /> 33 <xsl:value-of select="@name"/> 34 <br/> 35 <span id="status_{@jid}" style="font-size:8pt; font-family:Verdana, Arial, Helvetica, sans-serif; font-style:italic; display:none" /> 36 </div> 37 <div id="sub_{@jid}"></div> 38 </xsl:when> 39 <xsl:otherwise> 40 <div style="margin-left:15px;cursor:pointer;display:block;" id="{@jid}" idgroup="{group}" idname="" onmousedown="templates.options(event, '{@jid}');"> 41 <img id="img_{@jid}" src="/instant_messenger/templates/default/images/unavailable.gif" style="margin:0px 2px" /> 42 <xsl:value-of select="@jid"/> 43 <br/> 44 <span id="status_{@jid}" style="font-size:8pt; font-family:Verdana, Arial, Helvetica, sans-serif; font-style:italic; display:none;" /> 45 </div> 46 <div id="sub_{@jid}"></div> 47 </xsl:otherwise> 48 </xsl:choose> 49 29 50 </xsl:template> 30 51
Note: See TracChangeset
for help on using the changeset viewer.