⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 featured_products.tpl

📁 NetGou商城购物系统是一款功能强大完善、操作界面友好、可扩展性好、专门针对个人和企业进行网上销售而开发的一套商城购物系统。 它具有完善的商品管理、订单管理、销售统计、新闻管理、结算系统、税率系统、
💻 TPL
字号:
{* $Id: featured_products.tpl,v 1.18 2004/06/02 13:01:21 max Exp $ *}
{include file="main/popup_product_js.tpl"}
<A name="featured"/>
{$lng.txt_featured_products}
{capture name=dialog}

{if $products ne ""}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
<!--
checkboxes_form = 'featuredproductsform';
checkboxes = new Array({foreach from=$products item=v key=k}{if $k > 0},{/if}'posted_data[{$v.productid}][to_delete]'{/foreach});

{include file="change_all_checkboxes.tpl"}
-->
</SCRIPT>
<DIV style="line-height:170%"><A href="javascript:change_all(true);">{$lng.lbl_check_all}</A> / <A href="javascript:change_all(false);">{$lng.lbl_uncheck_all}</A></DIV>
{/if}

<TABLE border="0" cellpadding="3" cellspacing="1" width="100%">
<TR class="TableHead">
<TD width="10">&nbsp;</TD>
<TD width="70%">{$lng.lbl_product_name}</TD>
<TD width="15%" align="center">{$lng.lbl_pos}</TD>
<TD width="15%" align="center">{$lng.lbl_active}</TD>
</TR>

{if $products}
<FORM action="categories.php" method="POST" name="featuredproductsform">
<INPUT type="hidden" name="mode" value="update">
<INPUT type="hidden" name="cat" value="{$f_cat}">

{section name=prod_num loop=$products}

<TR{cycle values=", class='TableSubHead'"}>
<TD><INPUT type="checkbox" name="posted_data[{$products[prod_num].productid}][to_delete]"></TD>
<TD><B><A href="product.php?productid={$products[prod_num].productid}" target="_blank">{$products[prod_num].product}</A></B></TD>
<TD align="center"><INPUT type="text" name="posted_data[{$products[prod_num].productid}][product_order]" size="5" value="{$products[prod_num].product_order}"></TD>
<TD align="center"><INPUT type="checkbox" name="posted_data[{$products[prod_num].productid}][avail]" {if $products[prod_num].avail eq "Y"}checked{/if}></TD>
</TR>

{/section}

<TR>
<TD colspan="4"><BR>
<INPUT type="button" value="{$lng.lbl_delete_selected}" onclick="javascript:document.featuredproductsform.mode.value='delete';document.featuredproductsform.submit();">
&nbsp;&nbsp;
<INPUT type="submit" value="{$lng.lbl_update}">
</TD>
</TR>
</FORM>

{else}
<TR>
<TD colspan="4" align="center">{$lng.txt_no_featured_products}</TD>
</TR>
{/if}

<TR>
<TD colspan="4"><BR>{include file="main/subheader.tpl" title=$lng.lbl_add_product}</TD>
</TR>
<FORM action="categories.php" method="POST" name="featured">
<INPUT type="hidden" name="mode" value="add">
<INPUT type="hidden" name="cat" value="{$f_cat}">
<INPUT type="hidden" name="newproductid">
<TR>
<TD>&nbsp;</TD>
<TD>
<INPUT type="text" size="55" name="newproduct">
<INPUT type="button" value="{$lng.lbl_browse_}" onclick="popup_product('featured.newproductid', 'featured.newproduct');">
</TD>
<TD align="center"><INPUT type="text" name="neworder" size="5"></TD>
<TD align="center"><INPUT type="checkbox" name="newavail" checked></TD>
</TR>
<TR>
<TD colspan="4"><BR>
<INPUT type="submit" value="{$lng.lbl_add_new}">
</TD>
</TR>
</FORM>
</TABLE>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog extra="width=100%"}

⌨️ 快捷键说明

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