<?php 
/**
* @version      4.15.1 13.08.2013
* @author       MAXXmarketing GmbH
* @package      Jshopping
* @copyright    Copyright (C) 2010 webdesigner-profi.de. All rights reserved.
* @license      GNU/GPL
*/
defined('_JEXEC') or die();
?>
<div class="jshop_edit">
<form action="index.php?option=com_jshopping&controller=reviews" method="post" enctype="multipart/form-data" name="adminForm" id="adminForm">
<?php print $this->tmp_html_start?>
     <div class="col100">
     <table class="admintable" >
       <?php if ($this->review->review_id){ ?>
       <tr>
         <td class="key" style="width:180px;">
           <?php echo _JSHOP_NAME_PRODUCT; ?>
         </td>
         <td>
           <?php echo $this->review->name?>     
           <input type="hidden" name="product_id" value="<?php print $this->review->product_id;?>">
         </td>
       </tr>
       <?php }else { ?>
       <tr>
         <td class="key" style="width:180px;">
           <?php echo _JSHOP_PRODUCT_ID;?>*
         </td>
         <td>
           <input type="text" name="product_id" value="">    
         </td>
       </tr>    
       <?php } ?>
       <tr>
         <td class="key" style="width:180px;">
           <?php echo _JSHOP_USER; ?>*
         </td>
         <td>
           <input type="text" class="inputbox" size="50" name="user_name" value="<?php echo $this->review->user_name?>" />
         </td>
       </tr>
       <tr>
         <td class="key" style="width:180px;">
           <?php echo _JSHOP_EMAIL; ?>*
         </td>
         <td>
           <input type="text" class="inputbox" size="50" name="user_email" value="<?php echo $this->review->user_email?>" />
         </td>
       </tr>       
              
       <tr>
         <td  class="key">
           <?php echo _JSHOP_PRODUCT_REVIEW; ?>*
         </td>
         <td>
           <textarea name="review" cols="35"><?php echo $this->review->review ?></textarea>
         </td>
       </tr>
       <?php if (!$this->config->hide_product_rating){?>
       <tr>
        <td class="key">
          <?php echo _JSHOP_REVIEW_MARK; ?> 
        </td>
        <td>
            <?php print $this->mark?>
        </td>
       </tr>
       <?php }?>
       <?php $pkey="etemplatevar";if ($this->$pkey){print $this->$pkey;}?>
     </table>
     </div>
     <div class="clr"></div>
     <input type="hidden" name="review_id" value="<?php echo $this->review->review_id?>">
     <input type="hidden" name="task" value="<?php echo JFactory::getApplication()->input->getVar('task', 0)?>" />
<?php print $this->tmp_html_end?>
</form>
</div>