2010-01-25 13:18:18 +00:00
|
|
|
<div class="add_comment_box" id="add_comment">
|
2010-02-10 05:54:08 +00:00
|
|
|
<h2>{lang code='grp_add_comment'}</h2>
|
2009-11-30 19:46:45 +00:00
|
|
|
<div id="add_comment_result" class="action_box" style="display:none"></div>
|
|
|
|
{if $userquery->login_check('',true) || $Cbucket->configs.anonym_comments == 'yes'}
|
|
|
|
<form name="comment_form" method="post" action="" id="comment_form">
|
|
|
|
<input type="hidden" name="reply_to" id="reply_to" value="0">
|
|
|
|
<input type="hidden" name="obj_id" id="obj_id" value="{$id}">
|
|
|
|
{if !$userquery->login_check('',true) && $Cbucket->configs.anonym_comments == 'yes'}
|
2010-02-10 05:54:08 +00:00
|
|
|
<label for="name" class="label">{lang code='name'}</label>
|
2009-11-30 19:46:45 +00:00
|
|
|
<br>
|
|
|
|
<input type="text" name="name" id="name" class="input"><br>
|
2010-02-10 05:54:08 +00:00
|
|
|
<label for="email" class="label">{lang code='email_wont_display'}</label>
|
2009-11-30 19:46:45 +00:00
|
|
|
<br>
|
|
|
|
<input type="text" name="email" id="email" class="input"><br>
|
|
|
|
{else}
|
|
|
|
Name : {$userquery->username}<br>
|
|
|
|
{/if}
|
|
|
|
<br>
|
|
|
|
{ANCHOR place='before_compose_box'}
|
|
|
|
<textarea name="comment" id="comment_box" cols="45" rows="5" class="input" ></textarea>
|
|
|
|
<br>
|
2010-02-10 05:54:08 +00:00
|
|
|
<div style="margin-top:5px"><input type="button" name="add_comment" id="add_comment_button" value="{lang code='user_add_comment'}" class="cb_button" onclick="add_comment_js('comment_form','{$type}')"></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
</form>
|
|
|
|
{else}
|
2010-02-10 05:54:08 +00:00
|
|
|
{lang code='please_login_to_comment'}
|
2009-11-30 19:46:45 +00:00
|
|
|
{/if}
|
|
|
|
</div>
|