<?php /* Smarty version 2.6.18, created on 2015-03-17 13:52:23
         compiled from /home/contohsolusitota/public_html/styles/cbv2new/layout/blocks/comments/add_comment.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'lang', '/home/contohsolusitota/public_html/styles/cbv2new/layout/blocks/comments/add_comment.html', 2, false),array('function', 'ANCHOR', '/home/contohsolusitota/public_html/styles/cbv2new/layout/blocks/comments/add_comment.html', 22, false),array('function', 'load_captcha', '/home/contohsolusitota/public_html/styles/cbv2new/layout/blocks/comments/add_comment.html', 37, false),)), $this); ?>
<div class="add_comment_box" id="add_comment">
<h2 style="margin:0px"><?php echo smarty_lang(array('code' => 'grp_add_comment'), $this);?>
</h2>


<div id="add_comment_result" class="add_comment_result" style="display:none"></div>
<?php if ($this->_tpl_vars['userquery']->login_check('',true) || $this->_tpl_vars['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="<?php echo $this->_tpl_vars['id']; ?>
">
	
	<?php if (! $this->_tpl_vars['userquery']->login_check('',true) && $this->_tpl_vars['Cbucket']->configs['anonym_comments'] == 'yes'): ?>
    <label for="name" class="label"><?php echo smarty_lang(array('code' => 'name'), $this);?>
</label>
    <br>
    <input type="text" name="name" id="name" class="input"><br>
    <label for="email" class="label"><?php echo smarty_lang(array('code' => 'email_wont_display'), $this);?>
</label>
    <br>
    <input type="text" name="email" id="email"  class="input"><br>
    <?php else: ?>
    Name : <?php echo $this->_tpl_vars['userquery']->username; ?>
<br>
    <?php endif; ?>
            
    <?php echo ANCHOR(array('place' => 'before_compose_box'), $this);?>

    <textarea name="comment" id="comment_box" cols="45" rows="5"  class="input" style="width:97%" ></textarea>

	<div style="height:10px"></div>
	
    
	  <?php if (config ( 'comments_captcha' ) == 'all' || ( config ( 'comments_captcha' ) == 'guests' && ! $this->_tpl_vars['userquery']->login_check('',true) )): ?>
      
      <div style="width:auto; float:left; ">
	<strong><?php echo smarty_lang(array('code' => 'please_enter_confimation_ode'), $this);?>
</strong>
    
    	<?php $this->assign('captcha', get_captcha()); ?>
		<?php if ($this->_tpl_vars['captcha']): ?> 
			<?php if ($this->_tpl_vars['captcha']['show_field']): ?>
				<label class="label" for="captcha">Verification Code</label><br />
					<?php echo load_captcha(array('captcha' => $this->_tpl_vars['captcha'],'load' => 'field','field_params' => ' id="captcha" class="input" '), $this);?>

			   <div class="clearfix"></div>
			<?php endif; ?>
			<label class="label">&nbsp;</label>
			
				<?php echo load_captcha(array('captcha' => $this->_tpl_vars['captcha'],'load' => 'function'), $this);?>

	
			<div class="clearfix"></div>
		<?php endif; ?>
        
        </div>
    <?php endif; ?>
	
	<div style="width:auto; float:left;padding-left:10px; padding-bottom:10px"><?php echo ANCHOR(array('place' => 'after_compose_box'), $this);?>
</div>
	
	<div class="clear"></div>
	
    <input type="hidden" name="type" value="<?php echo $this->_tpl_vars['type']; ?>
" />
    <div style="margin-top:2px" ><input type="button" name="add_comment" id="add_comment_button" value="<?php echo smarty_lang(array('code' => 'user_add_comment'), $this);?>
" 
    class="cb_button" onclick="add_comment_js('comment_form','<?php echo $this->_tpl_vars['type']; ?>
')<?php echo ANCHOR(array('place' => 'onClickAddComment'), $this);?>
"></div>
</form>
<?php else: ?>
	<?php echo smarty_lang(array('code' => 'please_login_to_comment'), $this);?>

<?php endif; ?>
</div>