<?php
  /**
   * Comments Form
   *
   * @package Digital Downloads Pro
   * @author wojoscripts.com
   * @copyright 2010
   * @version $Id: form.tpl.php.php, v2.00 2011-07-10 10:12:05 gewa Exp $
   */
  
  if (!defined("_VALID_PHP"))
      die('. دسترسی مستقیم به این محل مجاز نمی باشد');
?>
<div id="reply">
  <h3>پـاسـخ</h3>
  <form action="" method="post" name="commentform" id="commentform">
    <p>
      
      <label for="username"> نـام :
        <?php if($config['username_req']) echo required();?>
		<input name="username" type="text"  class="inputbox" id="username" value="<?php if ($user->logged_in) echo $user->username;?>" size="45" maxlength="20" />
      </label>
    </p>
    <p>
      
      <label for="email"> ایـمیـل :
	  <small>نمایش داده نخواهد شـد</small>
        <?php if($config['email_req']) echo required();?>
         
		<input name="email" type="text" class="inputbox" id="email" value="<?php if ($user->logged_in) echo $user->email;?>" size="45" maxlength="30" />
		</label>
    </p>
    <p>
      
      <label for="www"> وب سـایـت :
	  <input name="www" type="text" class="inputbox" id="www" value="" size="45" maxlength="30" />
	  </label>
    </p>
    <?php if($config['show_captcha']):?>
    <p>
      
      <label for="captcha"> 6 + 3 : <?php echo required();?>
	  <input name="captcha" type="text" class="inputbox" id="captcha" value="" size="5" maxlength="1" />
	  </label>
    </p>
    <?php endif;?>
    <p>
      
      <label for="body">نـظــر : <?php echo required();?>
	  <textarea name="body" id="body" rows="8" cols="43"></textarea>
	  </label>
    </p>
    <p id="counter"></p>
    <div> <span id="sub-button" style="float:right">
      <input name="submit" type="submit" class="button shadow"  value="ارسـال نظـر" />
      </span> 
	  <span id="smloading" style="float:right; margin-right:10px; margin-top:0; display:none"> <img src="<?php echo SITEURL;?>/images/ajax-loader-sm.gif" alt=""/></span> <br clear="left" />
    </div>
    <input name="pid" type="hidden" value="<?php echo $item->pid;?>" />
  </form>
</div>
