|
|
|
|
<!-- $Id: brand_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
|
|
|
|
|
{include file="pageheader.htm"}
|
|
|
|
|
<div class="main-div">
|
|
|
|
|
<form method="post" action="merchants_brand.php" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
|
|
|
|
|
<table cellspacing="0" cellpadding="0" width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.brand_name_cn}</td>
|
|
|
|
|
<td><input type="text" name="brand_name" maxlength="60" value="{$brand.brand_name}" />{$lang.require_field}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.brand_name_en}</td>
|
|
|
|
|
<td><input type="text" name="brank_letter" maxlength="60" value="{$brand.bank_name_letter}" />{$lang.require_field}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.site_url}</td>
|
|
|
|
|
<td><input type="text" name="site_url" maxlength="60" size="40" value="{$brand.site_url}" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label"><a href="javascript:showNotice('warn_brandlogo');" title="{$lang.form_notice}">
|
|
|
|
|
<img src="images/notice.gif" width="14" height="14" border="0" alt="{$lang.form_notice}"></a>{$lang.brand_logo}</td>
|
|
|
|
|
<td><input type="file" name="brand_logo" id="logo" size="45">{if $brand.brand_logo neq ""}<input type="button" value="{$lang.drop_brand_logo}" onclick="if (confirm('{$lang.confirm_drop_logo}'))location.href='merchants_brand.php?act=drop_logo&id={$brand.brand_id}'">{/if}
|
|
|
|
|
<br /><span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="warn_brandlogo">
|
|
|
|
|
{if $brand.brand_logo eq ''}
|
|
|
|
|
{$lang.up_brandlogo}
|
|
|
|
|
{else}
|
|
|
|
|
{$lang.warn_brandlogo}
|
|
|
|
|
{/if}
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.brand_desc}</td>
|
|
|
|
|
<td><textarea name="brand_desc" cols="60" rows="4" >{$brand.brand_desc}</textarea></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.sort_order}</td>
|
|
|
|
|
<td><input type="text" name="sort_order" maxlength="40" size="15" value="{$brand.sort_order}" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">{$lang.is_show}</td>
|
|
|
|
|
<td><input type="radio" name="is_show" value="1" {if $brand.is_show eq 1}checked="checked"{/if} /> {$lang.yes}
|
|
|
|
|
<input type="radio" name="is_show" value="0" {if $brand.is_show eq 0}checked="checked"{/if} /> {$lang.no}
|
|
|
|
|
({$lang.visibility_notes})
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{if $brand_list}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">关联平台品牌</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $priv_ru}
|
|
|
|
|
<input width="20" name="keyword_brand" type="text" id="keyword_brand">
|
|
|
|
|
<input name="search_brand" type="button" id="search_brand" value=" 搜索 " class="button" onclick="searchBrand()">
|
|
|
|
|
|
|
|
|
|
<select name="link_brand" id="link_brand">
|
|
|
|
|
<option value="0">请选择..</option>
|
|
|
|
|
{foreach from=$brand_list item=brand}
|
|
|
|
|
<option value="{$brand.brand_id}" {if $link_brand.brand_id eq $brand.brand_id}selected="selected"{/if}>{$brand.brand_name}</option>
|
|
|
|
|
{/foreach}
|
|
|
|
|
</select>
|
|
|
|
|
{else}
|
|
|
|
|
<font style="color:#F00;">{$link_brand.brand_name}</font>
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
// 搜索品牌 -qin
|
|
|
|
|
function searchBrand()
|
|
|
|
|
{
|
|
|
|
|
var search_keyword = document.forms['theForm'].elements['keyword_brand'].value
|
|
|
|
|
Ajax.call('goods.php?is_ajax=1&act=search_brand', "search_keyword=" + search_keyword, searchBrandResponse, 'GET', 'JSON');
|
|
|
|
|
}
|
|
|
|
|
function searchBrandResponse(result)
|
|
|
|
|
{
|
|
|
|
|
$('#link_brand').html(result);
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
{/if}
|
|
|
|
|
{if $priv_ru}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="label">审核品牌</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="radio" name="audit_status" value="0" {if $brand.audit_status eq 0}checked="checked"{/if} /> 未审核
|
|
|
|
|
<input type="radio" name="audit_status" value="1" {if $brand.audit_status eq 1}checked="checked"{/if} /> 已审核
|
|
|
|
|
<input type="radio" name="audit_status" value="2" {if $brand.audit_status eq 2}checked="checked"{/if} /> 审核未通过
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/if}
|
|
|
|
|
{if $ru_id > 0}
|
|
|
|
|
<tr style="display:none">
|
|
|
|
|
<td class="label">设置为主营品牌</td>
|
|
|
|
|
<td>
|
|
|
|
|
{if $major_brand && $major_brand neq $brand.brand_id}
|
|
|
|
|
<font style="color:#F00">(店铺已有主营品牌)</font>
|
|
|
|
|
{else}
|
|
|
|
|
<input type="radio" name="major_business" value="0" {if $brand.major_business eq 0}checked="checked"{/if} /> 关闭
|
|
|
|
|
<input type="radio" name="major_business" value="1" {if $brand.major_business eq 1}checked="checked"{/if} /> 开启
|
|
|
|
|
{/if}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{/if}
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" align="center"><br />
|
|
|
|
|
<input type="submit" class="button" value="{$lang.button_submit}" />
|
|
|
|
|
<input type="reset" class="button" value="{$lang.button_reset}" />
|
|
|
|
|
<input type="hidden" name="ubrand" value="{$ubrand}" />
|
|
|
|
|
<input type="hidden" name="act" value="{$form_action}" />
|
|
|
|
|
<input type="hidden" name="old_brandname" value="{$brand.brand_name}" />
|
|
|
|
|
<input type="hidden" name="id" value="{$brand.brand_id}" />
|
|
|
|
|
<input type="hidden" name="old_brandlogo" value="{$brand.brand_logo}">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{insert_scripts files="../js/utils.js,validator.js"}
|
|
|
|
|
{literal}
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
|
<!--
|
|
|
|
|
document.forms['theForm'].elements['brand_name'].focus();
|
|
|
|
|
onload = function()
|
|
|
|
|
{
|
|
|
|
|
// 开始检查订单
|
|
|
|
|
startCheckOrder();
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 检查表单输入的数据
|
|
|
|
|
*/
|
|
|
|
|
function validate()
|
|
|
|
|
{
|
|
|
|
|
validator = new Validator("theForm");
|
|
|
|
|
validator.required("brand_name", no_brandname);
|
|
|
|
|
validator.isNumber("sort_order", require_num, true);
|
|
|
|
|
return validator.passed();
|
|
|
|
|
}
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
{/literal}
|
|
|
|
|
{include file="pagefooter.htm"}
|