📄 product_links.tpl
字号:
{* $Id: product_links.tpl,v 1.11 2004/06/28 10:53:36 mclap Exp $ *}{if $product}{assign var="product_title" value=$product.product|truncate:30:"...":false}{assign var="page_title" value="`$lng.lbl_product_links`<BR><SPAN class='ProductTitle'>`$product_title`</SPAN>"}{/if}{include file="page_title.tpl" title=$page_title}{$lng.txt_product_links_top_text}<BR><BR>{capture name=dialog}<TABLE border="0" cellpadding="3" cellspacing="1" width="100%"><FORM action="" onsubmit="javascript:alert('{$lng.txt_this_form_is_for_demo_purposes|strip_tags}'); return false;"><TR><TD valign="top" align="left" rowspan="2" width="100">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} </TD><TD valign="top"><SPAN class="">{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}</SPAN><BR><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="100%"><TR><TD colspan="2"><B><FONT class="ProductDetailsTitle">{$lng.lbl_details}</FONT></B></TD></TR><TR><TD class="Line" height="1" colspan="2"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD></TR><TR><TD colspan="2"> </TD></TR>{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}<TR><TD width="30%">{$lng.lbl_quantity}</TD><TD nowrap>{if $product.avail gt 0}{$product.avail}{else}{$lng.txt_no}{/if} {$lng.txt_items_available}</TD></TR>{/if}{if $product.weight ne "0.00"}<TR><TD width="30%">{$lng.lbl_weight}</TD><TD nowrap>{$product.weight} {$config.General.weight_symbol}</TD></TR>{/if}{if $active_modules.Extra_Fields ne ""}{include file="modules/Extra_Fields/product.tpl"}{/if}{if $active_modules.Subscriptions ne "" and $subscription}{include file="modules/Subscriptions/subscription_info.tpl"}{else}<TR><TD class="ProductPriceConverting">{$lng.lbl_price}:</TD><TD>{if $product.taxed_price ne 0}<FONT class="ProductDetailsTitle">{include file="currency.tpl" value=$product.taxed_price}</FONT><FONT class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.taxed_price}</FONT>{if $product.taxes}<BR>{include file="customer/main/taxed_price.tpl" taxes=$product.taxes}{/if}{else}<INPUT type="text" size="7" name="price">{/if}</TD></TR>{/if}</TABLE><BR><BR><TABLE border="0" cellpadding="0" cellspacing="0" width="100%"><TR><TD colspan="2"><B><FONT class="ProductDetailsTitle">{$lng.lbl_options}</FONT></B></TD></TR><TR><TD class="Line" height="1" colspan="2"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD></TR><TR><TD colspan="2"> </TD></TR>{if $active_modules.Product_Options ne ""}{ include file="modules/Product_Options/customer_options.tpl"}{/if}<TR><TD height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<BR><FONT class="ProductDetailsTitle">{$lng.txt_need_min_amount} {$product.min_amount} {$lng.lbl_items}</FONT>{/if}</TD><TD>{if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount)}<B>{$lng.txt_out_of_stock}</B>{else}{if $config.General.unlimited_products eq "Y"}{math equation="x+1" assign="mq" x=$config.Appearance.max_select_quantity}{else}{math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"}{if $tmp<2}{assign var="minamount" value=$product.min_amount}{else}{assign var="minamount" value=0}{/if}{math equation="min(maxquantity+minamount, productquantity)+1" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$product.min_amount productquantity=$product.avail}{/if}{if $product.distribution eq ""}<SELECT name="amount">{if $product.min_amount le 1}{assign var="start_quantity" value=1}{else}{assign var="start_quantity" value=$product.min_amount}{/if}{section name=quantity loop=$mq start=$start_quantity}<OPTION value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</OPTION>{/section}</SELECT>{else}<FONT class="ProductDetailsTitle">1</FONT><INPUT type="hidden" name="amount" value="1"> {$lng.txt_product_downloadable}{/if}{/if}</TD></TR><TR><TD colspan="2">{include file="customer/main/product_prices.tpl"}{if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)}{if $js_enabled}{assign var="alert_warning" value=$lng.txt_this_form_is_for_demo_purposes|strip_tags}{include file="buttons/add_to_cart.tpl" href="javascript:alert('`$alert_warning`')"}{else}{include file="submit_wo_js.tpl" value=$lng.lbl_add_to_cart}{/if}{/if}<BR><INPUT type="image" src="{$ImagesDir}/null.gif" width="10" height="10" border="0" valign="top"><BR></TD></TR></TABLE></TD><TD align="right" valign="top" width="60">{if $product.list_price gt 0}<TABLE border="0" width="60"><TR><TD width="55" height="56" class="SaveMoneyLabel" background="{$ImagesDir}/save_money.gif" align="center" valign="middle"><BR>{math equation="100-(price/lprice)*100" price=$product.price lprice=$product.list_price format="%d" assign=discount} { $discount }%</TD></TR></TABLE>{/if}</TD></TR></FORM></TABLE>{/capture}{include file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra="width=100%"}{*** THUMBNAIL LINK ***}<BR><BR>{capture name=dialog}<TABLE border="0" cellpadding="3" cellspacing="1" width="100%"><TR><TD valign="top" width="20%">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product full_url="y"}</TD><TD> </TD><TD><B>{$lng.lbl_html_code}:</B><BR><TEXTAREA cols="65" rows="5">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product full_url="y"}</TEXTAREA></TD></TR></TABLE>{/capture}{include file="dialog.tpl" title=$lng.lbl_product_link_thumbnail content=$smarty.capture.dialog extra="width=100%"} {*** Simple HTML link to add 1 product to cart ***}<BR><BR>{capture name=dialog}<TABLE border="0" cellpadding="3" cellspacing="1" width="100%"><TR><TD width="20%">{include file="buttons/add_to_cart.tpl" href="`$http_customer_locaton`/cart.php?mode=add&productid=`$product.productid`&amount=1"}</TD><TD> </TD><TD><B>{$lng.lbl_html_code}:</B><BR><TEXTAREA cols="65" rows="5">{include file="buttons/add_to_cart.tpl" href="`$http_customer_locaton`/cart.php?mode=add&productid=`$product.productid`&amount=1"}</TEXTAREA></TD></TR></TABLE>{/capture}{include file="dialog.tpl" title=$lng.lbl_add_1_product_link content=$smarty.capture.dialog extra="width=100%"} {*** Full functionallity 'Add to cart' button ***}<BR><BR>{capture name=dialog}<TABLE border="0" cellpadding="3" cellspacing="1" width="100%"><TR><TD width="20%">{capture name=add2cart}<TABLE border="0" width="100%"><FORM name="orderform_{$product.productid}" method="post" action="{$http_customer_locaton}/cart.php"><INPUT type="hidden" name="mode" value="add"><INPUT type="hidden" name="productid" value="{$product.productid}"><TR><TD valign="top"><BR><TABLE border="0" width="100%" cellpadding="0" cellspacing="0">{if $active_modules.Product_Options ne ""}{ include file="modules/Product_Options/customer_options.tpl"}{/if}<TR><TD height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}<BR><FONT class="ProductDetailsTitle">{$lng.txt_need_min_amount} {$product.min_amount} {$lng.lbl_items}</FONT>{/if}</TD><TD>{if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount)}<B>{$lng.txt_out_of_stock}</B>{else}{if $config.General.unlimited_products eq "Y"}{math equation="x+1" assign="mq" x=$config.Appearance.max_select_quantity}{else}{math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"}{if $tmp<2}{assign var="minamount" value=$product.min_amount}{else}{assign var="minamount" value=0}{/if}{math equation="min(maxquantity+minamount, productquantity)+1" assign="mq" maxquantity=$config.Appearance.max_select_quantity minamount=$product.min_amount productquantity=$product.avail}{/if}{if $product.distribution eq ""}<SELECT name="amount">{if $product.min_amount le 1}{assign var="start_quantity" value=1}{else}{assign var="start_quantity" value=$product.min_amount}{/if}{section name=quantity loop=$mq start=$start_quantity}<OPTION value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</OPTION>{/section}</SELECT>{else}<FONT class="ProductDetailsTitle">1</FONT><INPUT type="hidden" name="amount" value="1"> {$lng.txt_product_downloadable}{/if}{/if}</TD></TR><TR><TD colspan="2">{if $config.General.unlimited_products eq "Y" or ($product.avail gt 0 and $product.avail ge $product.min_amount)}<BR>{include file="buttons/add_to_cart.tpl" href="javascript: document.orderform_`$product.productid`.submit()" js_to_href="Y"}{/if}</TD></TR></TABLE></TD></TR></FORM></TABLE>{/capture}{$smarty.capture.add2cart} </TD></TR><TR><TD><BR><B>{$lng.lbl_html_code}:</B><BR><TEXTAREA cols="75" rows="10">{$smarty.capture.add2cart}</TEXTAREA></TD></TR></TABLE>{/capture}{include file="dialog.tpl" title=$lng.lbl_advanced_product_link content=$smarty.capture.dialog extra="width=100%"}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -