Created
April 10, 2015 13:24
-
-
Save SDKiller/f3885ac766230abb0275 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
?> | |
<div style="height:22px;"> | |
<table align="right"> | |
<tr> | |
<td> | |
<form action="<?php print SEFLink('index.php?option=com_jshopping&controller=product&task=reviewsave'); ?>" | |
name="add_review" method="post"> | |
<input type="hidden" name="product_id" value="<?php echo $this->product->product_id ?>"/> | |
<input type="hidden" name="back_link" value="<?php echo $_SERVER['REQUEST_URI'] ?>"/> | |
<input type="hidden" name="user_name" value="<?php echo empty($this->user->username) ? 'John Doe' : $this->user->username ?>"/> | |
<input type="hidden" name="user_email" value="<?php echo empty($this->user->email) ? 'john@doe.me' : $this->user->email ?>"/> | |
<input type="hidden" name="review" value="dummy review" /> | |
<?php for ($i = 1; $i <= $this->stars_count * $this->parts_count; $i++) { ?> | |
<input name="mark" type="radio" class="star {split:<?php print $this->parts_count ?>}" | |
value="<?php print $i ?>"/> | |
<?php } ?> | |
</form> | |
</td> | |
</tr> | |
</table> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment