{!# $Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $
### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.
### pollfolder - display a folder of polls
#!}
<p>{folder_body}</p>
<h3>Contents</h3>
<ul>
{BEGIN:folder_docs folder_id x1}
<li><a href="#poll{doc_id}">{doc_title}</a></li>
{END:folder_docs}
</ul>

<hr/>
<p class="action"><a href="{site_path}/edit.php?folder={folder_id}&class=Poll">
Add Poll to folder</a></p>

<table border="0" width="100%">
{BEGIN:folder_docs folder_id x2}
{!if '"{row_class}"=="odd"'
    '<tr>'
!}
<td width="50%">
    <h3>{!bookmark "poll{doc_id}"!}{doc_title}</h3>
    <p>{doc_body}</p>
    {poll_display}
    <p class="info">by
    <a href="{site_path}/user.php?id={doc_owner_id}">{doc_user_name}</a>{!user_indicators doc!}
    </p>
</td>
{!if '"{row_class}"!="odd"'
    '</tr>'
!}
{END:folder_docs}
</table>
<p class="info">
    folder owned by
    <a href="{site_path}/user.php?id={folder_user_id}">{folder_user_name}</a>{!user indicators folder!}
</p>
{!if editor(folder_owner_id)
'<div class="edit"><p class="editor">
 <a href="{site_path}/editfolder.php?id={folder_id}">Edit</a>
 <a href="{site_path}/deletefolder.php?id={folder_id}">Delete</a>
 </p></div>'
!}
{template:editfolder}