<!-- editrss.html -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
   xmlns:xf="http://www.w3.org/2002/xforms"
   xmlns:ev="http://www.w3.org/2001/xml-events"
   xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd">
<head>
   <title>Edycja iTunes RSS</title>
   <link rel="stylesheet" type="text/css" href="xforms.css" />
   <script type="text/javascript" src="formfaces.js"></script>
<xf:model>
   <xf:instance src="rss.xml"/>
   <xf:submission id="s1" action="put.php" method="put" replace="none"/>
</xf:model>
</head>
<body>
<h2>Informacje oglne</h2>
<xf:group ref="channel">
   <xf:input ref="title"><xf:label>Tytu</xf:label></xf:input>
   <xf:input ref="description"><xf:label>Opis</xf:label></xf:input>
   <xf:input ref="itunes:subtitle"><xf:label>Podtytu</xf:label></xf:input>
<br/>
   <xf:input ref="itunes:author"><xf:label>Autor</xf:label></xf:input>
   <xf:input ref="copyright"><xf:label>Prawa autorskie</xf:label></xf:input>
   <xf:input ref="managingEditor"><xf:label>Kontakt</xf:label></xf:input> 
</xf:group> <br/>
<xf:trigger> <xf:label>Wylij</xf:label>
   <xf:send submission="s1" ev:event="DOMActivate"/>
</xf:trigger>
<hr/> <h2>Podcasty</h2>
<xf:trigger> <xf:label>Dodaj podcast</xf:label>
   <xf:action ev:event="DOMActivate">
      <xf:insert nodeset="channel/item" at="1" position="before"/>
      <xf:setvalue ref="channel/item[1]/itunes:author" value=
          "../../itunes:author"/>
   </xf:action>
</xf:trigger>
<xf:trigger> <xf:label>Usu zaznaczony podcast</xf:label>
   <xf:delete ev:event="DOMActivate" nodeset="channel/item" at=
      "index('items')"/>
</xf:trigger> <br/>
<xf:repeat nodeset="channel/item" id="items"> 
<xf:input ref="title">
   <xf:label>Tytu</xf:label>
</xf:input>
   <xf:input ref="description"><xf:label>Opis</xf:label></xf:input>
   <xf:input ref="pubDate"><xf:label>Data</xf:label></xf:input> <br/>
   <xf:input ref="enclosure/@url"><xf:label>MP3 URL</xf:label></xf:input>
   <xf:input ref="enclosure/@length"><xf:label>Dugo</xf:label></xf:input>
   <xf:input ref="itunes:duration"><xf:label>Czas trwania</xf:label></xf:input> 
<hr/> </xf:repeat>
</body> 
</html>
