|
|
|
@ -24,21 +24,20 @@
|
|
|
|
<p>
|
|
|
|
<p>
|
|
|
|
<span class="tab-front" id="general-tab">{$lang.tab_general}</span><span
|
|
|
|
<span class="tab-front" id="general-tab">{$lang.tab_general}</span><span
|
|
|
|
class="tab-back" id="detail-tab">{$lang.tab_detail}</span><span
|
|
|
|
class="tab-back" id="detail-tab">{$lang.tab_detail}</span><span
|
|
|
|
class="tab-back" id="mix-tab">{$lang.tab_mix}</span>{if $goods_type_list}<span
|
|
|
|
class="tab-back" id="mix-tab">{$lang.tab_mix}</span>
|
|
|
|
class="tab-back" id="properties-tab">{$lang.tab_properties}</span>{/if}<span
|
|
|
|
{if $goods_type_list}<span class="tab-back" id="properties-tab">菜品屬性</span>{/if}
|
|
|
|
class="tab-back" id="gallery-tab">{$lang.tab_gallery}</span><span
|
|
|
|
<span class="tab-back" id="gallery-tab">菜品圖片</span>
|
|
|
|
class="tab-back" id="linkgoods-tab">{$lang.tab_linkgoods}</span>{if $code eq ''}<span
|
|
|
|
<!-- <span class="tab-back" id="linkgoods-tab">關連菜品</span> -->
|
|
|
|
class="tab-back" id="groupgoods-tab">{$lang.tab_groupgoods}</span>{/if}<span
|
|
|
|
<!-- {if $code eq ''}<span class="tab-back" id="groupgoods-tab">加購</span>{/if} -->
|
|
|
|
class="tab-back" id="article-tab">{$lang.tab_article}</span>
|
|
|
|
<!-- <span class="tab-back" id="article-tab">關連文章</span> -->
|
|
|
|
|
|
|
|
<!-- <span class="tab-back" id="promotions-tab">促銷活動</span> -->
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- tab body -->
|
|
|
|
<!-- tab body -->
|
|
|
|
<div id="tabbody-div">
|
|
|
|
<div id="tabbody-div">
|
|
|
|
<form enctype="multipart/form-data" action="" method="post" name="theForm" >
|
|
|
|
<form enctype="multipart/form-data" action="" method="post" name="theForm" >
|
|
|
|
<!-- 鏈€澶ф枃浠堕檺鍒 -->
|
|
|
|
|
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
|
|
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
|
|
|
|
<!-- 閫氱敤淇℃伅 -->
|
|
|
|
|
|
|
|
<table width="90%" id="general-table" align="center" class="goods_info">
|
|
|
|
<table width="90%" id="general-table" align="center" class="goods_info">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">{$lang.lab_goods_name}</td>
|
|
|
|
<td class="label">{$lang.lab_goods_name}</td>
|
|
|
|
@ -83,7 +82,7 @@
|
|
|
|
{$lang.require_field}
|
|
|
|
{$lang.require_field}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<!-- <tr>
|
|
|
|
<td class="label">{$lang.lab_other_cat}</td>
|
|
|
|
<td class="label">{$lang.lab_other_cat}</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<input type="button" value="{$lang.add}" onclick="addOtherCat(this.parentNode)" class="button" />
|
|
|
|
<input type="button" value="{$lang.add}" onclick="addOtherCat(this.parentNode)" class="button" />
|
|
|
|
@ -91,8 +90,8 @@
|
|
|
|
<select name="other_cat[]"><option value="0">{$lang.select_please}</option>{$other_cat_list.$cat_id}</select>
|
|
|
|
<select name="other_cat[]"><option value="0">{$lang.select_please}</option>{$other_cat_list.$cat_id}</select>
|
|
|
|
{/foreach}
|
|
|
|
{/foreach}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr> -->
|
|
|
|
<tr>
|
|
|
|
<!-- <tr>
|
|
|
|
<td class="label">{$lang.lab_goods_brand}</td>
|
|
|
|
<td class="label">{$lang.lab_goods_brand}</td>
|
|
|
|
<td><select name="brand_id" onchange="hideBrandDiv()" ><option value="0">{$lang.select_please}{html_options options=$brand_list selected=$goods.brand_id}</select>
|
|
|
|
<td><select name="brand_id" onchange="hideBrandDiv()" ><option value="0">{$lang.select_please}{html_options options=$brand_list selected=$goods.brand_id}</select>
|
|
|
|
{if $is_add}
|
|
|
|
{if $is_add}
|
|
|
|
@ -105,7 +104,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr> -->
|
|
|
|
{if $suppliers_exists eq 1}
|
|
|
|
{if $suppliers_exists eq 1}
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">{$lang.label_suppliers}</td>
|
|
|
|
<td class="label">{$lang.label_suppliers}</td>
|
|
|
|
@ -137,7 +136,6 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
<!--鍟嗗搧浼樻儬浠锋牸-->
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">
|
|
|
|
<td class="label">
|
|
|
|
<!-- <a href="javascript:showNotice('volumePrice');" title="{$lang.form_notice}"><img src="images/notice.gif" width="21" height="21" border="0" alt="{$lang.form_notice}"></a> -->
|
|
|
|
<!-- <a href="javascript:showNotice('volumePrice');" title="{$lang.form_notice}"><img src="images/notice.gif" width="21" height="21" border="0" alt="{$lang.form_notice}"></a> -->
|
|
|
|
@ -161,13 +159,6 @@
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="volumePrice">{$lang.notice_volume_price}</span>
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="volumePrice">{$lang.notice_volume_price}</span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<!--鍟嗗搧浼樻儬浠锋牸 end -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="label">分成金额</td>
|
|
|
|
|
|
|
|
<td><input type="text" name="fencheng" value="{$goods.fencheng}" size="20" />
|
|
|
|
|
|
|
|
<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="rankIntegral">该商品出售后,需要用于分成的金额</span></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">{$lang.lab_market_price}</td>
|
|
|
|
<td class="label">{$lang.lab_market_price}</td>
|
|
|
|
@ -190,35 +181,13 @@
|
|
|
|
<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="rankIntegral">{$lang.notice_rank_integral}</span></td>
|
|
|
|
<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="rankIntegral">{$lang.notice_rank_integral}</span></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label"><a href="javascript:showNotice('noticPoints');" title="{$lang.form_notice}"><img src="images/notice.gif" width="21" height="21" border="0" alt="{$lang.form_notice}"></a> {$lang.lab_integral}</td>
|
|
|
|
<td class="label">
|
|
|
|
|
|
|
|
{$lang.lab_integral}</td>
|
|
|
|
<td><input type="text" name="integral" value="{$goods.integral}" size="20" onblur="parseint_integral()";/>
|
|
|
|
<td><input type="text" name="integral" value="{$goods.integral}" size="20" onblur="parseint_integral()";/>
|
|
|
|
<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticPoints">{$lang.notice_integral}</span>
|
|
|
|
<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticPoints">{$lang.notice_integral}</span>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="label"><label for="is_promote"><input type="checkbox" id="is_promote" name="is_promote" value="1" {if $goods.is_promote}checked="checked"{/if} onclick="handlePromote(this.checked);" /> {$lang.lab_promote_price}</label></td>
|
|
|
|
|
|
|
|
<td id="promote_3"><input type="text" id="promote_1" name="promote_price" value="{$goods.promote_price}" size="20" /></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr id="promote_4">
|
|
|
|
|
|
|
|
<td class="label" id="promote_5">{$lang.lab_promote_date}</td>
|
|
|
|
|
|
|
|
<td id="promote_6">
|
|
|
|
|
|
|
|
<input name="promote_start_date" type="text" id="promote_start_date" size="12" value='{$goods.promote_start_date}' readonly="readonly" /><input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('promote_start_date', '%Y-%m-%d', false, false, 'selbtn1');" value="{$lang.btn_select}" class="button"/> - <input name="promote_end_date" type="text" id="promote_end_date" size="12" value='{$goods.promote_end_date}' readonly="readonly" /><input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('promote_end_date', '%Y-%m-%d', false, false, 'selbtn2');" value="{$lang.btn_select}" class="button"/>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="label"><label for="is_sale"><input type="checkbox" id="is_sale" name="is_sale" value="1" {if $goods.is_sale}checked="checked"{/if} onclick="handlesale(this.checked);" /> {$lang.lab_sale_price}</label></td>
|
|
|
|
|
|
|
|
<td id="sale_3"><input type="text" id="sale_1" name="sale_price" value="{$goods.sale_price}" size="20" /></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="label" >限购数量:</td>
|
|
|
|
|
|
|
|
<td id="promote_3"><input type="text" id="buymax" name="buymax" value="{$goods.buymax}" size="20" /><br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="giveIntegral">表示秒杀日期内,每个用户最多只能购买多少件。0:表示不限购</span></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr id="sale_4">
|
|
|
|
|
|
|
|
<td class="label" id="sale_5">{$lang.lab_sale_date}</td>
|
|
|
|
|
|
|
|
<td id="sale_6">
|
|
|
|
|
|
|
|
<input name="sale_start_date" type="text" id="sale_start_date" size="20" value='{$goods.sale_start_date}' readonly="readonly" /><input name="selbtn12" type="button" id="selbtn12" onclick="return showCalendar('sale_start_date', '%Y-%m-%d %H:%M','24', false, 'selbtn12');" value="{$lang.btn_select}" class="button"/> - <input name="sale_end_date" type="text" id="sale_end_date" size="20" value='{$goods.sale_end_date}' readonly="readonly" /><input name="selbtn22" type="button" id="selbtn22" onclick="return showCalendar('sale_end_date', '%Y-%m-%d %H:%M','24', false, 'selbtn22');" value="{$lang.btn_select}" class="button"/>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">{$lang.lab_picture}</td>
|
|
|
|
<td class="label">{$lang.lab_picture}</td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
@ -247,56 +216,62 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 璇︾粏鎻忚堪 -->
|
|
|
|
|
|
|
|
<table width="90%" id="detail-table" style="display:none">
|
|
|
|
<table width="90%" id="detail-table" style="display:none">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td><textarea id="editor_id" name="goods_desc" style="width:100%;height:300px;">{$goods_desc}</textarea></td>
|
|
|
|
<td><textarea id="editor_id" name="goods_desc" style="width:100%;height:300px;">{$goods_desc}</textarea></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 鍏朵粬淇℃伅 -->
|
|
|
|
|
|
|
|
<table width="90%" id="mix-table" style="display:none" align="center">
|
|
|
|
<table width="90%" id="mix-table" style="display:none" align="center">
|
|
|
|
{if $code eq ''}
|
|
|
|
{if $code eq ''}
|
|
|
|
<tr>
|
|
|
|
<!-- <tr>
|
|
|
|
<td class="label">{$lang.lab_goods_weight}</td>
|
|
|
|
<td class="label">{$lang.lab_goods_weight}</td>
|
|
|
|
<td><input type="text" name="goods_weight" value="{$goods.goods_weight_by_unit}" size="20" /> <select name="weight_unit">{html_options options=$unit_list selected=$weight_unit}</select></td>
|
|
|
|
<td><input type="text" name="goods_weight" value="{$goods.goods_weight_by_unit}" size="20" /> <select name="weight_unit">{html_options options=$unit_list selected=$weight_unit}</select></td>
|
|
|
|
</tr>
|
|
|
|
</tr> -->
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
{if $cfg.use_storage}
|
|
|
|
{if $cfg.use_storage}
|
|
|
|
<tr>
|
|
|
|
<!-- <tr>
|
|
|
|
<td class="label"><a href="javascript:showNotice('noticeStorage');" title="{$lang.form_notice}"><img src="images/notice.gif" width="21" height="21" border="0" alt="{$lang.form_notice}"></a> {$lang.lab_goods_number}</td>
|
|
|
|
<td class="label"><a href="javascript:showNotice('noticeStorage');" title="{$lang.form_notice}"><img src="images/notice.gif" width="21" height="21" border="0" alt="{$lang.form_notice}"></a> {$lang.lab_goods_number}</td>
|
|
|
|
<!-- <td><input type="text" name="goods_number" value="{$goods.goods_number}" size="20" {if $code neq '' || $goods._attribute neq ''}readonly="readonly"{/if} /><br />-->
|
|
|
|
<td><input type="text" name="goods_number" value="{$goods.goods_number}" size="20" {if $code neq '' || $goods._attribute neq ''}readonly="readonly"{/if} /><br />
|
|
|
|
<td><input type="text" name="goods_number" value="{$goods.goods_number}" size="20" /><br />
|
|
|
|
<td><input type="text" name="goods_number" value="{$goods.goods_number}" size="20" /><br />
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticeStorage">{$lang.notice_storage}</span></td>
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticeStorage">{$lang.notice_storage}</span></td>
|
|
|
|
</tr>
|
|
|
|
</tr> -->
|
|
|
|
<tr>
|
|
|
|
<!-- <tr>
|
|
|
|
<td class="label">{$lang.lab_warn_number}</td>
|
|
|
|
<td class="label">{$lang.lab_warn_number}</td>
|
|
|
|
<td><input type="text" name="warn_number" value="{$goods.warn_number}" size="20" /></td>
|
|
|
|
<td><input type="text" name="warn_number" value="{$goods.warn_number}" size="20" /></td>
|
|
|
|
</tr>
|
|
|
|
</tr> -->
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">{$lang.lab_intro}</td>
|
|
|
|
<td class="label">{$lang.lab_intro}</td>
|
|
|
|
<td><input type="checkbox" name="is_best" value="1" {if $goods.is_best}checked="checked"{/if} />{$lang.is_best} <input type="checkbox" name="is_new" value="1" {if $goods.is_new}checked="checked"{/if} />{$lang.is_new} <input type="checkbox" name="is_hot" value="1" {if $goods.is_hot}checked="checked"{/if} />{$lang.is_hot}</td>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="checkbox" name="is_best" value="1" {if $goods.is_best}checked="checked"{/if} />推薦商品
|
|
|
|
|
|
|
|
<!-- <input type="checkbox" name="is_new" value="1" {if $goods.is_new}checked="checked"{/if} />{$lang.is_new}
|
|
|
|
|
|
|
|
<input type="checkbox" name="is_hot" value="1" {if $goods.is_hot}checked="checked"{/if} />{$lang.is_hot} -->
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr id="alone_sale_1">
|
|
|
|
<tr id="alone_sale_1">
|
|
|
|
<td class="label" id="alone_sale_2">{$lang.lab_is_on_sale}</td>
|
|
|
|
<td class="label" id="alone_sale_2">上架</td>
|
|
|
|
<td id="alone_sale_3"><input type="checkbox" name="is_on_sale" value="1" {if $goods.is_on_sale}checked="checked"{/if} /> {$lang.on_sale_desc}</td>
|
|
|
|
<td id="alone_sale_3"><input type="checkbox" name="is_on_sale" value="1" {if $goods.is_on_sale}checked="checked"{/if} />
|
|
|
|
|
|
|
|
{$lang.on_sale_desc}
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">{$lang.lab_is_alone_sale}</td>
|
|
|
|
<td class="label">能作為普通菜品銷售</td>
|
|
|
|
<td><input type="checkbox" name="is_alone_sale" value="1" {if $goods.is_alone_sale}checked="checked"{/if} /> {$lang.alone_sale}</td>
|
|
|
|
<td><input type="checkbox" name="is_alone_sale" value="1" {if $goods.is_alone_sale}checked="checked"{/if} />
|
|
|
|
|
|
|
|
打勾表示能作為普通菜品銷售,否則只能作為加購銷售。
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<!-- <tr>
|
|
|
|
<td class="label">{$lang.lab_is_free_shipping}</td>
|
|
|
|
<td class="label">{$lang.lab_is_free_shipping}</td>
|
|
|
|
<td><input type="checkbox" name="is_shipping" value="1" {if $goods.is_shipping}checked="checked"{/if} /> {$lang.free_shipping}</td>
|
|
|
|
<td><input type="checkbox" name="is_shipping" value="1" {if $goods.is_shipping}checked="checked"{/if} /> {$lang.free_shipping}</td>
|
|
|
|
</tr>
|
|
|
|
</tr> -->
|
|
|
|
<tr>
|
|
|
|
<!-- <tr>
|
|
|
|
<td class="label">{$lang.lab_keywords}</td>
|
|
|
|
<td class="label">{$lang.lab_keywords}</td>
|
|
|
|
<td><input type="text" name="keywords" value="{$goods.keywords|escape}" size="40" /> {$lang.notice_keywords}</td>
|
|
|
|
<td><input type="text" name="keywords" value="{$goods.keywords|escape}" size="40" /> {$lang.notice_keywords}</td>
|
|
|
|
</tr>
|
|
|
|
</tr> -->
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">
|
|
|
|
<td class="label">
|
|
|
|
<a href="javascript:showNotice('noticeSellerNote');" title="{$lang.form_notice}"><img src="images/notice.gif" width="21" height="21" border="0" alt="{$lang.form_notice}"></a> {$lang.lab_seller_note} </td>
|
|
|
|
{$lang.lab_seller_note} </td>
|
|
|
|
<td><textarea name="seller_note" cols="40" rows="3">{$goods.seller_note}</textarea><br />
|
|
|
|
<td><textarea name="seller_note" cols="40" rows="3">{$goods.seller_note}</textarea><br />
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticeSellerNote">{$lang.notice_seller_note}</span></td>
|
|
|
|
<span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticeSellerNote">{$lang.notice_seller_note}</span></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
@ -317,17 +292,15 @@
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td id="tbody-goodsAttr" colspan="2" style="padding:0">{$goods_attr_html}</td>
|
|
|
|
<td id="tbody-goodsAttr" colspan="2" style="padding:0">{$goods_attr_html}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<!-- 自动货品开始 模板之家开发www.mb5.com.cn -->
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" style="padding:0"><table width="100%"><tr><td class="label">自动货品</td><td><input type="radio" checked name="ectang_attr_style" value="1">更新方式(推荐)保留原先库存,清理失效规格<input type="radio" name="ectang_attr_style" value="2">初始化模式(清理原先规格库存 自动货品库存)</td><tr></table></td>
|
|
|
|
<td colspan="2" style="padding:0"><table width="100%"><tr><td class="label">自動貨品</td><td><input type="radio" checked name="ectang_attr_style" value="1">更新方式(推薦)保留原先庫存,清理失效規格<input type="radio" name="ectang_attr_style" value="2">初始化模式(清理原先規格庫存 自動貨品庫存)</td><tr></table></td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<!-- 自动货品结束 模板之家开发www.mb5.com.cn -->
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 鍟嗗搧鐩稿唽 -->
|
|
|
|
<!-- 鍟嗗搧鐩稿唽 -->
|
|
|
|
<table width="90%" id="gallery-table" style="display:none" align="center">
|
|
|
|
<table width="90%" id="gallery-table" style="display:none" align="center">
|
|
|
|
<!-- 鍥剧墖鍒楄〃 -->
|
|
|
|
<!-- 鍥劇墖鍒楄〃 -->
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
{foreach from=$img_list item=img key=i}
|
|
|
|
{foreach from=$img_list item=img key=i}
|
|
|
|
@ -342,7 +315,7 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr><td> </td></tr>
|
|
|
|
<tr><td> </td></tr>
|
|
|
|
<!-- 涓婁紶鍥剧墖 -->
|
|
|
|
<!-- 涓婁紶鍥劇墖 -->
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<a href="javascript:;" onclick="addImg(this)">[+]</a>
|
|
|
|
<a href="javascript:;" onclick="addImg(this)">[+]</a>
|
|
|
|
@ -353,9 +326,9 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 鍏宠仈鍟嗗搧 -->
|
|
|
|
<!-- 鍏寵仈鍟嗗搧 -->
|
|
|
|
<table width="90%" id="linkgoods-table" style="display:none" align="center">
|
|
|
|
<table width="90%" id="linkgoods-table" style="display:none" align="center">
|
|
|
|
<!-- 鍟嗗搧鎼滅储 -->
|
|
|
|
<!-- 鍟嗗搧鎼滅儲 -->
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3">
|
|
|
|
<td colspan="3">
|
|
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
|
|
@ -394,9 +367,9 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 閰嶄欢 -->
|
|
|
|
<!-- 閰嶄歡 -->
|
|
|
|
<table width="90%" id="groupgoods-table" style="display:none" align="center">
|
|
|
|
<table width="90%" id="groupgoods-table" style="display:none" align="center">
|
|
|
|
<!-- 鍟嗗搧鎼滅储 -->
|
|
|
|
<!-- 鍟嗗搧鎼滅儲 -->
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3">
|
|
|
|
<td colspan="3">
|
|
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
|
|
@ -433,9 +406,9 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 鍏宠仈鏂囩珷 -->
|
|
|
|
<!-- 鍏寵仈鏂囩珷 -->
|
|
|
|
<table width="90%" id="article-table" style="display:none" align="center">
|
|
|
|
<table width="90%" id="article-table" style="display:none" align="center">
|
|
|
|
<!-- 鏂囩珷鎼滅储 -->
|
|
|
|
<!-- 鏂囩珷鎼滅儲 -->
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="3">
|
|
|
|
<td colspan="3">
|
|
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
|
|
@ -470,6 +443,38 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 促銷活動: START -->
|
|
|
|
|
|
|
|
<table width="90%" id="promotions-table" style="display:none" align="center">
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="label"><label for="is_promote"><input type="checkbox" id="is_promote" name="is_promote" value="1" {if $goods.is_promote}checked="checked"{/if} onclick="handlePromote(this.checked);" /> {$lang.lab_promote_price}</label></td>
|
|
|
|
|
|
|
|
<td id="promote_3"><input type="text" id="promote_1" name="promote_price" value="{$goods.promote_price}" size="20" /></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr id="promote_4">
|
|
|
|
|
|
|
|
<td class="label" id="promote_5">{$lang.lab_promote_date}</td>
|
|
|
|
|
|
|
|
<td id="promote_6">
|
|
|
|
|
|
|
|
<input name="promote_start_date" type="text" id="promote_start_date" size="12" value='{$goods.promote_start_date}' readonly="readonly" /><input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('promote_start_date', '%Y-%m-%d', false, false, 'selbtn1');" value="{$lang.btn_select}" class="button"/> - <input name="promote_end_date" type="text" id="promote_end_date" size="12" value='{$goods.promote_end_date}' readonly="readonly" /><input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('promote_end_date', '%Y-%m-%d', false, false, 'selbtn2');" value="{$lang.btn_select}" class="button"/>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="label"><label for="is_sale"><input type="checkbox" id="is_sale" name="is_sale" value="1" {if $goods.is_sale}checked="checked"{/if} onclick="handlesale(this.checked);" /> {$lang.lab_sale_price}</label></td>
|
|
|
|
|
|
|
|
<td id="sale_3"><input type="text" id="sale_1" name="sale_price" value="{$goods.sale_price}" size="20" /></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td class="label" >限購數量:</td>
|
|
|
|
|
|
|
|
<td id="promote_3"><input type="text" id="buymax" name="buymax" value="{$goods.buymax}" size="20" /><br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="giveIntegral">表示秒殺日期內,每個用戶最多隻能購買多少件。0:表示不限購</span></td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr id="sale_4">
|
|
|
|
|
|
|
|
<td class="label" id="sale_5">{$lang.lab_sale_date}</td>
|
|
|
|
|
|
|
|
<td id="sale_6">
|
|
|
|
|
|
|
|
<input name="sale_start_date" type="text" id="sale_start_date" size="20" value='{$goods.sale_start_date}' readonly="readonly" /><input name="selbtn12" type="button" id="selbtn12" onclick="return showCalendar('sale_start_date', '%Y-%m-%d %H:%M','24', false, 'selbtn12');" value="{$lang.btn_select}" class="button"/> - <input name="sale_end_date" type="text" id="sale_end_date" size="20" value='{$goods.sale_end_date}' readonly="readonly" /><input name="selbtn22" type="button" id="selbtn22" onclick="return showCalendar('sale_end_date', '%Y-%m-%d %H:%M','24', false, 'selbtn22');" value="{$lang.btn_select}" class="button"/>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<!-- 促銷活動: END -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="button-div">
|
|
|
|
<div class="button-div">
|
|
|
|
<input type="hidden" name="goods_id" value="{$goods.goods_id}" />
|
|
|
|
<input type="hidden" name="goods_id" value="{$goods.goods_id}" />
|
|
|
|
{if $code neq ''}
|
|
|
|
{if $code neq ''}
|
|
|
|
@ -505,7 +510,7 @@
|
|
|
|
handleAutoThumb(document.forms['theForm'].elements['auto_thumb'].checked);
|
|
|
|
handleAutoThumb(document.forms['theForm'].elements['auto_thumb'].checked);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 妫€鏌ユ柊璁㈠崟
|
|
|
|
// 媯€鏌ユ柊璁㈠崟
|
|
|
|
startCheckOrder();
|
|
|
|
startCheckOrder();
|
|
|
|
{/literal}
|
|
|
|
{/literal}
|
|
|
|
{foreach from=$user_rank_list item=item}
|
|
|
|
{foreach from=$user_rank_list item=item}
|
|
|
|
@ -563,7 +568,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鍒囨崲鍟嗗搧绫诲瀷
|
|
|
|
* 鍒囨崲鍟嗗搧綾誨瀷
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function getAttrList(goodsId)
|
|
|
|
function getAttrList(goodsId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -583,10 +588,10 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鎸夋瘮渚嬭?绠椾环鏍
|
|
|
|
* 鎸夋瘮渚嬭?綆椾環鏍
|
|
|
|
* @param string inputName 杈撳叆妗嗗悕绉
|
|
|
|
* @param string inputName 杈撳靉妗嗗悕縐
|
|
|
|
* @param float rate 姣斾緥
|
|
|
|
* @param float rate 姣斾緥
|
|
|
|
* @param string priceName 浠锋牸杈撳叆妗嗗悕绉帮紙濡傛灉娌℃湁锛屽彇shop_price锛
|
|
|
|
* @param string priceName 浠鋒牸杈撳靉妗嗗悕縐幫紙濡傛灉娌℃湁錛屽彇shop_price錛
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function computePrice(inputName, rate, priceName)
|
|
|
|
function computePrice(inputName, rate, priceName)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -615,7 +620,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 璁剧疆浜嗕竴涓?晢鍝佷环鏍硷紝鏀瑰彉甯傚満浠锋牸銆佺Н鍒嗕互鍙婁細鍛樹环鏍
|
|
|
|
* 璁劇疆浜嗕竴涓?晢鍝佷環鏍礆紝鏀瑰彉甯傚満浠鋒牸銆佺Н鍒嗕互鍙婁細鍛樹環鏍
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function priceSetted()
|
|
|
|
function priceSetted()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -629,7 +634,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 璁剧疆浼氬憳浠锋牸娉ㄩ噴
|
|
|
|
* 璁劇疆浼氬憳浠鋒牸娉ㄩ噴
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function set_price_note(rank_id)
|
|
|
|
function set_price_note(rank_id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -659,7 +664,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鏍规嵁甯傚満浠锋牸锛岃?绠楀苟鏀瑰彉鍟嗗簵浠锋牸銆佺Н鍒嗕互鍙婁細鍛樹环鏍
|
|
|
|
* 鏍規嵁甯傚満浠鋒牸錛岃?綆楀苟鏀瑰彉鍟嗗簵浠鋒牸銆佺Н鍒嗕互鍙婁細鍛樹環鏍
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function marketPriceSetted()
|
|
|
|
function marketPriceSetted()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -882,7 +887,7 @@
|
|
|
|
opt.selected = true;
|
|
|
|
opt.selected = true;
|
|
|
|
opt.innerHTML = response.cat;
|
|
|
|
opt.innerHTML = response.cat;
|
|
|
|
|
|
|
|
|
|
|
|
//鑾峰彇瀛愬垎绫荤殑绌烘牸鏁
|
|
|
|
//鑾峰彇瀛愬垎綾葷殑絀烘牸鏁
|
|
|
|
var str = selCat.options[selCat.selectedIndex].text;
|
|
|
|
var str = selCat.options[selCat.selectedIndex].text;
|
|
|
|
var temp = str.replace(/^\s+/g, '');
|
|
|
|
var temp = str.replace(/^\s+/g, '');
|
|
|
|
var lengOfSpace = str.length - temp.length;
|
|
|
|
var lengOfSpace = str.length - temp.length;
|
|
|
|
@ -937,7 +942,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鍒犻櫎蹇?€熷垎绫
|
|
|
|
* 鍒犻櫎蹇?€熷垎綾
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function removeCat()
|
|
|
|
function removeCat()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -968,7 +973,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 娣诲姞鎵╁睍鍒嗙被
|
|
|
|
* 娣誨姞鎵╁睍鍒嗙被
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function addOtherCat(conObj)
|
|
|
|
function addOtherCat(conObj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -994,7 +999,7 @@
|
|
|
|
sel.onChange = function() {checkIsLeaf(this);};
|
|
|
|
sel.onChange = function() {checkIsLeaf(this);};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 鍏宠仈鍟嗗搧鍑芥暟 */
|
|
|
|
/* 鍏寵仈鍟嗗搧鍑芥暟 */
|
|
|
|
function searchGoods(szObject, catId, brandId, keyword)
|
|
|
|
function searchGoods(szObject, catId, brandId, keyword)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var filters = new Object;
|
|
|
|
var filters = new Object;
|
|
|
|
@ -1008,7 +1013,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鍏宠仈鏂囩珷鍑芥暟
|
|
|
|
* 鍏寵仈鏂囩珷鍑芥暟
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function searchArticle()
|
|
|
|
function searchArticle()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1033,7 +1038,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鍒犻櫎鍥剧墖涓婁紶
|
|
|
|
* 鍒犻櫎鍥劇墖涓婁紶
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function removeImg(obj)
|
|
|
|
function removeImg(obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1044,7 +1049,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鍒犻櫎鍥剧墖
|
|
|
|
* 鍒犻櫎鍥劇墖
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function dropImg(imgId)
|
|
|
|
function dropImg(imgId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1060,7 +1065,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 灏嗗競鍦轰环鏍煎彇鏁
|
|
|
|
* 灝嗗競鍦轟環鏍煎彇鏁
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function integral_market_price()
|
|
|
|
function integral_market_price()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1068,7 +1073,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 灏嗙Н鍒嗚喘涔伴?搴﹀彇鏁
|
|
|
|
* 灝嗙Н鍒嗚喘涔伴?搴﹀彇鏁
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function parseint_integral()
|
|
|
|
function parseint_integral()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1077,7 +1082,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 妫€鏌ヨ揣鍙锋槸鍚﹀瓨鍦
|
|
|
|
* 媯€鏌ヨ揣鍙鋒槸鍚﹀瓨鍦
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function checkGoodsSn(goods_sn, goods_id)
|
|
|
|
function checkGoodsSn(goods_sn, goods_id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1103,7 +1108,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鏂板?涓€涓?紭鎯犱环鏍
|
|
|
|
* 鏂板?涓€涓?紭鎯犱環鏍
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function addVolumePrice(obj)
|
|
|
|
function addVolumePrice(obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1129,7 +1134,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 鍒犻櫎浼樻儬浠锋牸
|
|
|
|
* 鍒犻櫎浼樻儬浠鋒牸
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function removeVolumePrice(obj)
|
|
|
|
function removeVolumePrice(obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|