stalks
03-24-2003, 10:32 AM
HI
i'm having some trouble with a voting/rateing system that works with my e-commerce site basically when you view more info for a product it launches the product in a new window, now everything works fine until you choose to rate a product as when the page reloads in the window with the amended rateing it also includes side nav bars, headers etc instead of just the main body details.
for a better idea click on the link below, choose more info on a product and rate it!! the page will reload with access denied but you will see how it also incudes navbars etc
http://www.savatrader.com/products/customer/home.php
here's the code for the vote
<FORM method=GET action="../customer/product.php?popup=on&productid={$products[product].productid">
<INPUT type=hidden name=mode value=vote>
<INPUT type=hidden name=productid value={$product.productid}>
<tr><td colspan=2>
<b><font class=ProductDetailsTitle>{$lng.lbl_customers_rating}</font></b>
</td></tr>
<tr><td class=Line height="1" colspan=2><img src="{$ImagesDir}/orangespacer.gif" width="1" height="1" border="0"></td></tr>
{if $vote_max_cows ne ""}
<TR>
<TD><br>{$lng.lbl_customers_rating}</TD>
<TD><br>
{section name=full_cows loop=$vote_max_cows}
<IMG src="{$ImagesDir}/star_4.gif" width=14 height=14>
{/section}
{if $vote_little_cow ne "0"}
<IMG src="{$ImagesDir}/star_{$vote_little_cow}.gif" width=14 height=14>
{/if}
{section name=free_cows loop=$vote_free_cows}
<IMG src="{$ImagesDir}/star_0.gif" width=14 height=14>
{/section}
</TD></TR>
{/if}
<TR>
<TD><br>{$lng.lbl_customer_voting}</TD>
<TD>
<br>
<SELECT name=vote>
<OPTION value="" selected>{$lng.lbl_select_rating}</OPTION>
<OPTION value=5>{$lng.lbl_excellent}</OPTION>
<OPTION value=4>{$lng.lbl_very_good}</OPTION>
<OPTION value=3>{$lng.lbl_good}</OPTION>
<OPTION value=2>{$lng.lbl_fair}</OPTION>
<OPTION value=1>{$lng.lbl_poor}</OPTION>
</SELECT> <INPUT type=submit value="{$lng.lbl_rate_it}">
</TD></TR></FORM>
i'm having some trouble with a voting/rateing system that works with my e-commerce site basically when you view more info for a product it launches the product in a new window, now everything works fine until you choose to rate a product as when the page reloads in the window with the amended rateing it also includes side nav bars, headers etc instead of just the main body details.
for a better idea click on the link below, choose more info on a product and rate it!! the page will reload with access denied but you will see how it also incudes navbars etc
http://www.savatrader.com/products/customer/home.php
here's the code for the vote
<FORM method=GET action="../customer/product.php?popup=on&productid={$products[product].productid">
<INPUT type=hidden name=mode value=vote>
<INPUT type=hidden name=productid value={$product.productid}>
<tr><td colspan=2>
<b><font class=ProductDetailsTitle>{$lng.lbl_customers_rating}</font></b>
</td></tr>
<tr><td class=Line height="1" colspan=2><img src="{$ImagesDir}/orangespacer.gif" width="1" height="1" border="0"></td></tr>
{if $vote_max_cows ne ""}
<TR>
<TD><br>{$lng.lbl_customers_rating}</TD>
<TD><br>
{section name=full_cows loop=$vote_max_cows}
<IMG src="{$ImagesDir}/star_4.gif" width=14 height=14>
{/section}
{if $vote_little_cow ne "0"}
<IMG src="{$ImagesDir}/star_{$vote_little_cow}.gif" width=14 height=14>
{/if}
{section name=free_cows loop=$vote_free_cows}
<IMG src="{$ImagesDir}/star_0.gif" width=14 height=14>
{/section}
</TD></TR>
{/if}
<TR>
<TD><br>{$lng.lbl_customer_voting}</TD>
<TD>
<br>
<SELECT name=vote>
<OPTION value="" selected>{$lng.lbl_select_rating}</OPTION>
<OPTION value=5>{$lng.lbl_excellent}</OPTION>
<OPTION value=4>{$lng.lbl_very_good}</OPTION>
<OPTION value=3>{$lng.lbl_good}</OPTION>
<OPTION value=2>{$lng.lbl_fair}</OPTION>
<OPTION value=1>{$lng.lbl_poor}</OPTION>
</SELECT> <INPUT type=submit value="{$lng.lbl_rate_it}">
</TD></TR></FORM>