- Автор темы
- #1
Почему происходит перенос на следующую строчку?
Как сделать без переноса?
Как сделать без переноса?
Код:
<!-- Цена -->
{* show list price? *}
<font class="smprice"> <b>{$smarty.const.CURRENT_PRICE}: <font class="big" id='currentPrice'> {if $product_info.Price <= 0}n/a{else}{$product_info.PriceWithUnit}{/if} </font></b></font>
<!-- Перенос тут не нужен -->
<!-- В корзину -->
{if !$printable_version}
<form action="index.php?productID={$product_info.productID}"
method=post name="HiddenFieldsForm">
{if $smarty.const.CONF_OPEN_SHOPPING_CART_IN_NEW_WINDOW eq 0}
{* shopping cart page is shown in the same window - in this cart 'add to cart' button is a form submit button *}
{if $product_info.Price>0 && ( $smarty.const.CONF_SHOW_ADD2CART eq 1 ) &&
( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
<input name='cart' type=image src="images/cart_big_navy.gif"
alt="{$smarty.const.ADD_TO_CART_STRING}" />
{else}
{/if}
{else}
{* show shopping cart page in a new window => add hidden values as FORM elements and to the cart.php URL *}
{if $product_info.Price>0 && ( $smarty.const.CONF_SHOW_ADD2CART eq 1 ) &&
( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) } <a href="javascript:open_window('cart.php?addproduct={$product_info.productID}{counter name='select_counter_hidden' start=0 skip=1 print=false}{counter name='select_counter_hidden_extra' start=0 skip=1 print=false}{section name=i loop=$product_extra}{if $product_extra[i].option_type eq 1}{section name=s loop=$product_extra[i].option_show_times}&option_select_hidden_{counter name=select_counter_hidden}='+document.HiddenFieldsForm.option_select_hidden_{counter name=select_counter_hidden_extra}.value+'{/section}{/if}{/section}',400,300);"><img border=0 src="images/cart_big_navy.gif"
alt="{$smarty.const.ADD_TO_CART_STRING}" /></a> {else}
{/if}
{/if}
{counter name='select_counter_hidden' start=0 skip=1 print=false}
{section name=i loop=$product_extra}
{if $product_extra[i].option_type eq 1}
{section name=s loop=$product_extra[i].option_show_times}
<input type=hidden
name='option_select_hidden_{counter name=select_counter_hidden}'
value='1' />
{/section}
{/if}
{/section}
</form>
{/if}