[ Index ]
 

Code source de MagpieRSS 0.72

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables | Statistiques

title

Body

[fermer]

/scripts/templates/ -> simple.smarty (source)

   1  <html>
   2  <head>
   3  <title>A Simple RSS Box:  I'm not a designer</title>
   4  </head>
   5  <body>
   6  
   7  <form>
   8  <b>RSS File:</b> 
   9  <input type=text" name="rss_url" value="{$rss_url}" size="50"> 
  10  <input type="submit">
  11  </form>
  12  
  13  <b>Displaying:</b> {$rss_url}
  14  <p>
  15  
  16  {* if $error display the error 
  17    elseif parsed RSS object display the RSS 
  18    else solicit user for a URL 
  19  *}
  20  
  21  {if $error }
  22  <b>Error:</b> {$error}
  23  {elseif $rss}
  24  <table border=1>
  25    <tr>
  26      <th colspan=2>
  27        <a href="{$rss->channel.link}">{$rss->channel.title}</a>
  28      </th>
  29    </tr>
  30        {foreach from=$rss->items item=item}
  31         <tr>
  32        <td>
  33        <a href="{$item.link}">{$item.title}</a>
  34          </td>
  35        <td>
  36         {$item.dc.date|rss_date_parse|date_format:"%A, %B %e, %Y"}
  37        </td>
  38      </tr>
  39      {/foreach}
  40  </table>
  41  {else}
  42    Enter the URL of an RSS file to display.
  43  {/if}
  44  
  45  </body>
  46  </html>


Généré le : Fri Nov 30 19:16:52 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics