source: Dev/trunk/rdfapi/util/magpie/scripts/templates/simple.smarty @ 12

Last change on this file since 12 was 12, checked in by basvannuland, 14 years ago

Added RAP RDF API
Added RDF reader writer for save and load survey

File size: 862 bytes
Line 
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>
Note: See TracBrowser for help on using the repository browser.