{!# $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.
### this file defines an inline form that can be used
### for adding comments to a document !}
{!if defined(user_id)
'<form method="post" 
       action="{site_path}/comment.php" 
       enctype="multipart/form-data" >
    <p class="prompt">Subject:</p>
    <p class="field">
        <input type="text" name="comment_subject" />
    </p>
    <p class="prompt">Comment:</p>
    <p class="field">
        <textarea name="comment_body" class="inputbox" rows="5" cols="50"></textarea>
    </p>
    <p class="prompt">Send comment to:</p>
    <input type="hidden" name="send_email" value="1"/>
    <input type="hidden" name="submitted" value="1"/>
    <input type="hidden" name="comment_reply_to" value=""/>
    <input type="hidden" name="comment_owner_id" value="{user_id}"/>
    <input type="hidden" name="comment_doc_id" value="{doc_id}"/>
    <input type="submit" value="Submit"/>
    <input type="reset"/>
</form>'
!}