product_links.tpl

来自「NetGou商城购物系统是一款功能强大完善、操作界面友好、可扩展性好、专门针对个」· TPL 代码 · 共 74 行

TPL
74
字号
{if $active_modules.Upselling_Products ne ""}
{include file="main/popup_product_js.tpl"}

{capture name=dialog}
<TABLE border="0" {if $productids ne ''}cellspacing="0" cellpadding="4"{else}cellspacing="1" cellpadding="2"{/if} width="100%">

<FORM action="product_modify.php" name="upsales" method="POST">

<INPUT type="hidden" name="productid" value="{$product.productid}">
<INPUT type="hidden" name="selected_productid" value="">
<INPUT type="hidden" name="mode" value="upselling_links">

{if $productids ne ''}
<TR>
    <TD width="15" class="TableSubHead">&nbsp;</TD>
    <TD class="TableSubHead" colspan="5"><B>* {$lng.lbl_note}:</B> {$lng.txt_edit_product_group}</TD>
</TR>
{/if}
<TR class="TableHead">
{if $productids ne ''}<TD width="15" class="TableSubHead">&nbsp;</TD>{/if}
<TD width="40">{$lng.lbl_pos}</TD>
<TD width="10%">{$lng.lbl_product_id}</TD>
<TD width="15%">{$lng.lbl_sku}&nbsp;&nbsp;&nbsp;</TD>
<TD width="70%" colspan="2">{$lng.lbl_product}</TD>
</TR>

{if $product_links}

{section name=cat_num loop=$product_links}

<TR{cycle values=", class='TableSubHead'"}>
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[u_product][{$product_links[cat_num].productid}]"></TD>{/if}
<TD><INPUT type="text" value="{$product_links[cat_num].orderby}" name="orderby-{$product_links[cat_num].productid}" size="4"></TD>
<TD>#{$product_links[cat_num].productid}</TD>
<TD>{$product_links[cat_num].productcode}</TD>
<TD><A href="product.php?productid={ $product_links[cat_num].productid }"><FONT class="ItemsList">{ $product_links[cat_num].product|escape|truncate:35:"...":false}</FONT></A></TD>
<TD><INPUT type="button" value="{$lng.lbl_delete}" onClick="self.location='product_modify.php?mode=del_upsale_link&product_link={$product_links[cat_num].productid}&productid={$product.productid}'"></TD>
</TR>
{/section}

{else}

<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead">&nbsp;</TD>{/if}
<TD colspan="5" align="center">{$lng.lbl_no_products}</TD>
</TR>

{/if}
<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead">&nbsp;</TD>{/if}
<TD colspan="5" class="SubHeader2"><BR>{$lng.lbl_add_new_link}</TD>
</TR>

<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[new_u_product]"></TD>{/if}
<TD colspan="5">
{$lng.lbl_product}: <INPUT type="text" name="prod_name" size="40" style="width=50%" disabled>
<INPUT type="button" value="{$lng.lbl_browse_}" onClick="popup_product('upsales.selected_productid', 'upsales.prod_name');">
<BR>
{$lng.lbl_bidirectional_link}
<INPUT type="checkbox" name="bi_directional">
<BR><BR>
<INPUT type="submit" value="{$lng.lbl_add_update}">
</TD>
</TR>

</FORM>

</TABLE>

{/capture}
{include file="dialog.tpl" title=$lng.lbl_upselling_links content=$smarty.capture.dialog extra="width=100%"}
{/if}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?