2010-01-25 13:18:18 +00:00
|
|
|
<div class="add_comment_box" id="add_comment">
|
2011-01-25 12:05:11 +00:00
|
|
|
<h2 style="margin:0px">{lang code='grp_add_comment'}</h2>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="add_comment_result" class="" style="display:none"></div>
|
2009-11-30 19:46:45 +00:00
|
|
|
{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}">
|
2011-02-23 11:53:06 +00:00
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
{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}
|
2010-04-26 15:17:37 +00:00
|
|
|
|
2009-11-30 19:46:45 +00:00
|
|
|
{ANCHOR place='before_compose_box'}
|
2011-02-11 10:48:47 +00:00
|
|
|
<textarea name="comment" id="comment_box" cols="45" rows="5" class="input" style="width:97%" ></textarea>
|
|
|
|
|
|
|
|
<div style="height:10px"></div>
|
2011-02-14 12:55:46 +00:00
|
|
|
|
|
|
|
|
2011-02-11 10:48:47 +00:00
|
|
|
{if config('comments_captcha')=='all' || ( config('comments_captcha')=='guests' && !$userquery->login_check('',true) )}
|
2011-02-14 12:55:46 +00:00
|
|
|
|
|
|
|
<div style="width:auto; float:left; ">
|
|
|
|
<strong>{lang code='please_enter_confimation_ode'}</strong>
|
|
|
|
|
2011-02-11 10:48:47 +00:00
|
|
|
{assign var=captcha value=func->get_captcha()}
|
|
|
|
{if $captcha}
|
|
|
|
{if $captcha.show_field}
|
|
|
|
<label class="label" for="captcha">Verification Code</label><br />
|
|
|
|
{load_captcha captcha=$captcha load=field field_params = ' id="captcha" class="input'}
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
{/if}
|
|
|
|
<label class="label"> </label>
|
2011-02-11 12:14:54 +00:00
|
|
|
|
2011-02-11 10:48:47 +00:00
|
|
|
{load_captcha captcha=$captcha load=function}
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
{/if}
|
2011-02-14 12:55:46 +00:00
|
|
|
|
|
|
|
</div>
|
2011-02-11 10:48:47 +00:00
|
|
|
{/if}
|
2011-02-14 12:55:46 +00:00
|
|
|
|
|
|
|
<div style="width:auto; float:left;padding-left:10px; padding-bottom:10px">{ANCHOR place='after_compose_box'}</div>
|
2011-02-11 10:48:47 +00:00
|
|
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
2010-03-23 08:33:20 +00:00
|
|
|
<input type="hidden" name="type" value="{$type}" />
|
2011-02-11 10:48:47 +00:00
|
|
|
<div style="margin-top:2px" ><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}'){ANCHOR place='onClickAddComment'}"></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>
|