Skip to content

Instantly share code, notes, and snippets.

@SDKiller
Created April 10, 2015 13:24
Show Gist options
  • Save SDKiller/f3885ac766230abb0275 to your computer and use it in GitHub Desktop.
Save SDKiller/f3885ac766230abb0275 to your computer and use it in GitHub Desktop.
<?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