?? category_products.tpl
字號:
{include file="page_title.tpl" title=$lng.lbl_category_products}
{capture name=dialog}
{include file="admin/main/location.tpl"}
<TABLE border="0" width="100%">
<TR>
<TD align="center" class="TopLabel">{$lng.lbl_current_category}: "{$current_category.category|default:$lng.lbl_root_level}"
{if $current_category.avail eq "N"}
<DIV class="ErrorMessage">{$lng.txt_category_disabled}</DIV>
{/if}
</TD>
</TR>
<TR>
<TD align="right">
<INPUT type="button" value="{$lng.lbl_modify}" onclick="self.location='category_modify.php?cat={$cat}'">
<INPUT type="button" value="{$lng.lbl_delete}" onclick="self.location='dealcategory.php?cat={$cat}&mode=delete'">
</TD>
</TR>
</TABLE>
{include file="main/subheader.tpl" title=$lng.lbl_products}
<!-- SEARCH RESULTS SUMMARY -->
{if $mode eq "search"}
{if $total_items gt "1"}
{$lng.txt_N_results_found|substitute:"items":$total_items}
{$lng.txt_displaying_X_Y_results|substitute:"first_item":$first_item:"last_item":$last_item}
{elseif $total_items eq "0"}
<DIV align="center">{$lng.txt_no_products_in_cat}</DIV>
{/if}
{/if}
{if $products}
<!-- SEARCH RESULTS START -->
{if $total_pages gt 2}
{assign var="navpage" value=$navigation_page}
{/if}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<FORM action="dealproduct.php" method="POST" name="processproductform">
<INPUT type="hidden" name="section" value="category_products">
<INPUT type="hidden" name="mode" value="update">
<INPUT type="hidden" name="navpage" value="{$navpage}">
<INPUT type="hidden" name="cat" value="{$cat}">
<TR>
<TD>
{include file="customer/main/navigation.tpl"}
{include file="main/products.tpl" products=$products}
<BR>
{include file="customer/main/navigation.tpl"}
<BR>
<INPUT type="button" value="{$lng.lbl_delete_selected}" onclick="if(confirm('{$lng.txt_delete_products_warning|strip_tags}')){ldelim}document.processproductform.mode.value='delete'; document.processproductform.submit();{rdelim}">
<INPUT type="submit" value="{$lng.lbl_update}">
<INPUT type="button" value="{$lng.lbl_modify_selected}" onclick="document.processproductform.mode.value='list';document.processproductform.action='product_modify.php'; document.processproductform.submit();">
<BR><BR>
{$lng.txt_operation_for_first_selected_only}
<BR><BR>
<INPUT type="button" value="{$lng.lbl_preview_product}" onclick="document.processproductform.mode.value='details'; document.processproductform.submit();">
<INPUT type="button" value="{$lng.lbl_clone_product}" onclick="document.processproductform.mode.value='clone'; document.processproductform.submit();">
<INPUT type="button" value="{$lng.lbl_generate_html_links}" onclick="document.processproductform.mode.value='links'; document.processproductform.submit();">
</TD>
</TR>
</FORM>
</TABLE>
{/if}
<BR>
<INPUT type="button" value="{$lng.lbl_add_new_}" onclick="self.location='product_modify.php?categoryid={$cat}'">
{/capture}
{include file="dialog.tpl" title=$lng.lbl_products content=$smarty.capture.dialog extra="width=100%"}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -