+ fi
+}
+
+show_folders(){
+ list_folders \
+ | while read fid fname order; do
+ cat <<-EOF
+ <section class="folder" id="${fid}">
+ <h1>${fname}</h1>
+ <a class="modify" href="${SCRIPT_NAME}?id=${QRYID}&fmodify=${fid}">Modify</a>
+ $(list_bookmarks "$fid")
+ <form class="newbookmark" method="POST" action="${SCRIPT_NAME}?id=${QRYID}&action=newbookmark">
+ <input type="hidden" name="fid" value="${fid}" />
+ <input type="text" name="name" value="" placeholder="Name" />
+ <input type="text" name="url" value="" placeholder="URL" />
+ <button type="submit">New Bookmark</button>
+ </form>
+ </section>
+ EOF