~encompass/dynazine/trunk

« back to all changes in this revision

Viewing changes to WidgetTests/magpierss-0.72/scripts/templates/simple.smarty

  • Committer: Jason Brower
  • Date: 2009-01-31 05:24:59 UTC
  • Revision ID: encompass@essence-20090131052459-4ldn9dwrk1hzt53h
Fist commit of data.  Has alot of stuff...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>