?? category_modify.tpl
字號:
<SCRIPT type="text/javascript" language="JavaScript 1.2">
window.name="catmodwin";
</SCRIPT>
{include file="main/popup_image_selection_js.tpl"}
{if $mode eq "add"}
{assign var="title" value=$lng.lbl_add_category}
{else}
{assign var="title" value=$lng.lbl_modify_category}
{/if}
{include file="page_title.tpl" title=$title}
{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>
</TABLE>
<BR><BR>
<TABLE border="0" cellpadding="3" cellspacing="1" width="100%">
<FORM name="addform" action="category_modify.php" method="POST" enctype="multipart/form-data">
<INPUT type="hidden" name="mode" value="{$mode}">
{if $mode eq "add"}
<INPUT type="hidden" name="parent" value="{$cat}">
{else}
<INPUT type="hidden" name="cat" value="{$cat}">
{/if}
<TR>
<TD width="10%"><IMG src="{$NetGou_web_dir}/icon.php?categoryid={$cat}&rand={$rand}{if $file_upload_data.file_path}&tmp=y{/if}"></TD>
<TD width="10"> </TD>
<TD width="90%">
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD>
<INPUT type="button" value="{$lng.lbl_change_icon}" onclick='javascript: if (confirm("{$lng.txt_change_icon_text|strip_tags}")){ldelim}popup_image_selection("C", "{$cat}", "{$query_string}");{rdelim}'>
<INPUT type="button" value="{$lng.lbl_delete_icon}" onclick='javascript: if (confirm("{$lng.txt_change_icon_text|strip_tags}")){ldelim}self.location="category_modify.php?mode=delete_icon&cat={$cat}"{rdelim}'>
</TD>
</TR>
{if $file_upload_data.file_path}
<TR>
<TD align="center">
<BR><BR>
{$lng.txt_save_category_icon_note}
</TD>
</TR>
{/if}
</TABLE>
</TD>
</TR>
<TR>
<TD height="10" class="FormButton" nowrap>{$lng.lbl_position}:</TD>
<TD width="10" height="10"> </TD>
<TD height="10"><INPUT type="text" name="order_by" size="5" value="{if $category_error ne ""}{$smarty.post.order_by}{elseif $mode ne "add"}{$current_category.order_by}{/if}">
</TR>
<TR>
<TD height="10" class="FormButton" nowrap>{$lng.lbl_category}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage">*</FONT></TD>
<TD height="10">
<INPUT type="text" name="category_name" maxlength="255" size="65" value="{if $category_error ne ""}{$smarty.post.category_name|escape:"html"}{elseif $mode ne "add"}{$current_category.category|escape:"html"}{/if}">
{if $category_error ne ""}
{if $category_error eq "2"}
<FONT color="red"><< Already exists!</FONT>
{else}
<FONT color="red"><< Wrong value</FONT>
{/if}
{/if}
</TD>
</TR>
<TR>
<TD height="10" class="FormButton" nowrap valign="top">{$lng.lbl_description}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage"> </FONT></TD>
<TD height="10">
<TEXTAREA cols="65" rows="15" name="description">
{if $category_error ne ""}{$smarty.post.description|escape:"html"}{elseif $mode ne "add"}{$current_category.description|escape:"html"}{/if}
</TEXTAREA>
</TD>
</TR>
<TR>
<TD height="10" class="FormButton" nowrap>{$lng.lbl_membership}:</TD>
<TD width="10" height="10"><FONT class="FormButtonOrange"> </FONT></TD>
<TD height="10">
<SELECT name="cat_membership">
<OPTION value=""{if $current_category.membership eq ""} selected{/if}>{$lng.lbl_all}</OPTION>
{section name=mi loop=$membership_levels}
{if $membership_levels[mi].usertype eq "C"}
<OPTION value="{$membership_levels[mi].membership}"{if $current_category.membership eq $membership_levels[mi].membership} selected{/if}>{$membership_levels[mi].membership}</OPTION>
{/if}
{/section}
</SELECT>
</TD>
</TR>
<TR>
<TD height="10" class="FormButton" nowrap>{$lng.lbl_availability}:</TD>
<TD width="10" height="10"><FONT class="CustomerMessage"> </FONT></TD>
<TD height="10">
<SELECT name="avail">
<OPTION value='Y' {if ($current_category.avail eq 'Y')} selected {/if}>{$lng.lbl_enabled}</OPTION>
<OPTION value='N' {if ($current_category.avail eq 'N')} selected {/if}>{$lng.lbl_disabled}</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD height="10" class="FormButton" nowrap>{$lng.lbl_meta_keywords}:</TD>
<TD width="10" height="10"><FONT class="FormButtonOrange"> </FONT></TD>
<TD height="10">
<TEXTAREA cols="65" rows="4" name="meta_keywords" size="30">{if $category_error ne ""}{$smarty.post.meta_keywords|escape:"html"}{elseif $mode ne "add"}{$current_category.meta_keywords|escape:"html"}{/if}</TEXTAREA>
</TD>
</TR>
<TR>
<TD height="10" class="FormButton" nowrap>{$lng.lbl_meta_description}:</TD>
<TD width="10" height="10"><FONT class="FormButtonOrange"> </FONT></TD>
<TD height="10">
<TEXTAREA cols="65" rows="4" name="meta_descr" size="30">{if $category_error ne ""}{$smarty.post.meta_descr|escape:"html"}{elseif $mode ne "add"}{$current_category.meta_descr|escape:"html"}{/if}</TEXTAREA>
</TD>
</TR>
<TR>
<TD colspan="2" class="FormButton"> </TD>
<TD><BR>
<INPUT type="submit" value=" {$lng.lbl_save} ">
</TD>
</TR>
</FORM>
{if $mode ne "add"}
<TR>
<TD colspan="3"><BR><BR>{include file="main/subheader.tpl" title="Category location"}</TD>
</TR>
<FORM name="moveform" action="category_modify.php" method="POST">
<INPUT type="hidden" name="mode" value="move">
<INPUT type="hidden" name="cat" value="{$cat}">
<TR>
<TD height="10" class="FormButton" nowrap>{$lng.lbl_category_location}</TD>
<TD width="10" height="10"><FONT class="FormButtonOrange"> </FONT></TD>
<TD height="10">
<SELECT name="cat_location">
<OPTION value="0">{$lng.lbl_root_level}</OPTION>
{section name=ci loop=$allcategories}
{if $allcategories[ci].moving_enabled}
<OPTION value="{$allcategories[ci].categoryid}"{if $allcategories[ci].categoryid eq $current_category.parentid} selected{/if}>{$allcategories[ci].category_path}</OPTION>
{/if}
{/section}
</SELECT>
</TD>
</TR>
<TR>
<TD colspan="2" class="FormButton"> </TD>
<TD><BR>
<INPUT type="submit" value="{$lng.lbl_update}">
</TD>
</TR>
</FORM>
{/if}
</TABLE>
{/capture}
{include file="dialog.tpl" title=$title content=$smarty.capture.dialog extra="width=100%"}
{if $mode ne "add" and $cat and ($category_languages ne "" or $other_languages)}
<BR><BR>
{include file="admin/main/category_lng.tpl"}
{/if}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -