Ignore:
Timestamp:
07/08/11 14:24:41 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #2083 - Melhorias no leitor de RSS do expressoMail

Location:
branches/2.2/expressoMail1_2/stylesheet
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/stylesheet/makeWindow.xsl

    r3178 r4684  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    3 <xsl:template match="rss/channel"> 
    4         <span><xsl:value-of select = "title" /></span><span> - <xsl:value-of select="count(item)"/> news</span> 
    5         <img src='../phpgwapi/templates/default/images/foldertree_trash.png'> 
    6                 <xsl:attribute name="onclick"> 
    7                         news_edit.unsubscribe('<xsl:value-of select="link"/>',this); 
    8                 </xsl:attribute> 
    9         </img> 
    10 </xsl:template> 
     3    <xsl:output method="html" omit-xml-declaration="yes"/>     
     4     
     5    <xsl:param name="lang_label1" /> 
     6    <xsl:param name="lang_label2" /> 
     7    <xsl:param name="lang_subscribe" /> 
     8     
     9    <xsl:template match="make_window"> 
     10         
     11        <div style="border:1px solid #000; margin: 2px; width: 333px;"> 
     12             
     13            <div style="margin: 2px;"> 
     14                <div style="margin-top:5px;"> 
     15                    <label><xsl:value-of select="$lang_label1"/></label> 
     16                </div> 
     17                <div style="margin-top:5px;"> 
     18                    <input type="text" id="rssEnter" size="40"/> 
     19                </div> 
     20                <div style="margin-top:5px;"> 
     21                    <input value="{$lang_subscribe}" onclick="news_edit.subscribe();" type="button" /> 
     22                </div> 
     23            </div> 
     24             
     25            <div style="margin:5px 2px 2px 2px;border-bottom: 1px solid #000;"> 
     26                <label><xsl:value-of select="$lang_label2"/></label> 
     27            </div> 
     28             
     29            <div id="listRSS" style="overflow-y: auto; height: 160px; margin: 2px;"></div> 
     30             
     31        </div> 
     32 
     33    </xsl:template> 
     34     
    1135</xsl:stylesheet> 
  • branches/2.2/expressoMail1_2/stylesheet/news_add.xsl

    r3178 r4684  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    3 <xsl:template match="rss/channel"> 
    4         <span><xsl:value-of select = "title" /></span><span> - <xsl:value-of select="count(item)"/> news</span> 
    5         <img src='../phpgwapi/templates/default/images/foldertree_trash.png'> 
    6                 <xsl:attribute name="onclick"> 
    7                         news_edit.unsubscribe('<xsl:value-of select="link"/>',this); 
    8                 </xsl:attribute> 
    9         </img> 
    10 </xsl:template> 
     3     
     4    <xsl:param name="linkURL" /> 
     5     
     6    <xsl:template match="rss/channel"> 
     7         
     8        <img src='../phpgwapi/templates/default/images/foldertree_trash.png'> 
     9            <xsl:attribute name="onclick"> 
     10                    news_edit.unsubscribe('<xsl:value-of select="$linkURL"/>',this); 
     11            </xsl:attribute> 
     12            <xsl:attribute name="style"> 
     13                width:16px; height:16px; cursor: pointer; 
     14            </xsl:attribute> 
     15        </img> 
     16         
     17        <label titleRss="{title}"> 
     18            <xsl:value-of select = "title" /> 
     19        </label> 
     20         
     21    </xsl:template> 
     22     
    1123</xsl:stylesheet> 
  • branches/2.2/expressoMail1_2/stylesheet/news_read.xsl

    r3178 r4684  
    11<?xml version="1.0" encoding="ISO-8859-1"?> 
    22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    3         <xsl:template match="rss/channel"> 
    4         <div id="divScrollMain_0" style="overflow-y: scroll; overflow-x: hidden; width: 99.3%;"> 
    5         <table id="table_box" class="table_box" cellspacing="0" cellpadding="0"> 
    6                 <tbody id="tbody_box"> 
    7         <xsl:for-each select="item"> 
    8                 <xsl:variable name="itens" select='position()' /> 
    9                 <tr class="tr_msg_read"> 
    10                         <xsl:attribute name="onclick"> 
    11                                 news_edit.read_item('<xsl:value-of select="$itens"/>'); 
    12                         </xsl:attribute> 
    13                         <td width="1%" class="td_msg"><input type="checkbox" class="checkbox"/></td> 
    14                         <td width="1%" class="td_msg"/> 
    15                         <td width="1%" class="td_msg"><img title="Lida" src="templates/default/images/seen.gif"/></td> 
    16                         <td width="16%" class="td_msg"><span style="text-decoration: none;"><xsl:value-of select="owner"/></span></td> 
    17                         <td width="50%" class="td_msg"><xsl:value-of select="title"/></td> 
    18                         <td width="17%" align="center" class="td_msg" title="14/08/2010"><xsl:value-of select="pubDate"/></td> 
    19                         <td width="14%" nowrap="true" align="center" class="td_msg"><xsl:value-of select="string-length(description)"/></td> 
    20                 </tr> 
    21         </xsl:for-each> 
    22         </tbody> 
    23         </table> 
    24         </div> 
    25 </xsl:template> 
     3     
     4    <xsl:param name="lang_who" /> 
     5    <xsl:param name="lang_subject" /> 
     6    <xsl:param name="lang_date" /> 
     7    <xsl:param name="lang_size" /> 
     8     
     9    <xsl:template match="rss/channel"> 
     10         
     11        <div id="divScrollMain_0" style="overflow-y: scroll; overflow-x: hidden; width: 99.3%;"> 
     12            <table id="table_box" border="1" class="table_message_header_box" cellspacing="0" cellpadding="0"> 
     13                <tbody id="tbody_box"> 
     14                    <tr class="message_header" style="height:20px"> 
     15                        <td class="td_msg" style="width: 30%" align="left"> 
     16                            <span style="margin-left:10px;"><xsl:value-of select="$lang_who" /></span> 
     17                        </td> 
     18                        <td class="td_msg" style="width:40%" align="left"><xsl:value-of select="$lang_subject" /></td> 
     19                        <td class="td_msg" style="width:20%" align="center"><xsl:value-of select="$lang_date" /></td> 
     20                        <td class="td_msg" style="width:10%" align="center"><xsl:value-of select="$lang_size" /></td> 
     21                    </tr> 
     22                    <xsl:for-each select="item"> 
     23                        <xsl:variable name="itens" select='position()' /> 
     24                        <tr class="tr_msg_read" style="height:20px"> 
     25                            <xsl:attribute name="onclick"> 
     26                                news_edit.read_item('<xsl:value-of select="$itens"/>'); 
     27                            </xsl:attribute> 
     28                            <td class="td_msg" style="width:30%" align="left"><span style="margin-left:10px;"><xsl:value-of select="../title"/></span></td> 
     29                            <td class="td_msg" style="width:40%" align="left"><xsl:value-of select="title"/></td> 
     30                            <td class="td_msg" style="width:20%" align="center" convertDate="{pubDate}"><xsl:value-of select="pubDate"/></td> 
     31                            <td class="td_msg" style="width:10%" align="center"><xsl:value-of select="string-length(description)"/></td> 
     32                        </tr> 
     33                    </xsl:for-each> 
     34                </tbody>                 
     35             </table> 
     36        </div> 
     37         
     38    </xsl:template> 
     39     
    2640</xsl:stylesheet> 
Note: See TracChangeset for help on using the changeset viewer.