You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
394 lines
13 KiB
394 lines
13 KiB
<!-- $Id: user_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->
|
|
{include file="merchants_steps_pageheader.htm"}
|
|
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
|
|
<!--<script type="text/javascript" src="js/area_region.js"></script>-->
|
|
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
|
|
|
|
<div class="main-div">
|
|
<form method="post" enctype="multipart/form-data" action="merchants_users_list.php" name="theForm">
|
|
<table width="100%">
|
|
<tr>
|
|
<td>
|
|
{if $user_id eq 0}
|
|
<div class="m-990">
|
|
<div class="mb10">
|
|
<div class="mt">
|
|
<h4 class="title">请选择会员</h4>
|
|
</div>
|
|
|
|
<div class="mc">
|
|
<dl class="horizontal fl">
|
|
<dt>
|
|
<span class="red">*</span>会员名称
|
|
</dt>
|
|
<dd>
|
|
<span id="user_list">
|
|
<select name="user_id" id="user_id">
|
|
<option value="0" selected="selected">请选择..</option>
|
|
{foreach from=$user_list item=user}
|
|
<option value="{$user.user_id}">{$user.user_name}</option>
|
|
{/foreach}
|
|
</select>
|
|
</span>
|
|
<span> <input name="userName" id="userName" style="color:#666; display:none;" value="请输入查询关键字..." onfocus="this.value=''" type="text" /> <input name="chaxun" type="button" onclick="get_search_user(this.value)" value="查询会员" /></span>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{foreach from=$shopInfo_list item=shopInfo}
|
|
{foreach from=$shopInfo.steps_title item=title}
|
|
{if $title.steps_style eq 0}
|
|
{include file="merchants_steps_basicType.htm"}
|
|
{elseif $title.steps_style eq 1}
|
|
{include file="merchants_steps_shopType.htm"}
|
|
{elseif $title.steps_style eq 2}
|
|
{include file="merchants_steps_cateType.htm"}
|
|
{elseif $title.steps_style eq 3 && $title.fields_titles neq '搜索网站品牌'}
|
|
<div id="brandList">
|
|
{include file="merchants_steps_brankType.htm"}
|
|
</div>
|
|
{elseif $title.steps_style eq 4}
|
|
{include file="merchants_steps_shopInfo.htm"}
|
|
{/if}
|
|
{/foreach}
|
|
{/foreach}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{if $user_id > 0}
|
|
<tr>
|
|
<td>
|
|
<div class="m-990">
|
|
用户提交状态:<font style="font-size:12px; color:#F00">{if $merchants.steps_audit eq 1}已提交{else}未提交{/if}</font>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td>
|
|
<div class="m-990">
|
|
设置是否审核其商品:
|
|
{if $user_id > 0}
|
|
<label><input name="review_goods" type="radio" value="0" {if $merchants.review_goods eq 0}checked="checked"{/if} />否</label><label><input name="review_goods" type="radio" value="1" {if $merchants.review_goods eq 1}checked="checked"{/if} />是</label>
|
|
{else}
|
|
<label><input name="review_goods" type="radio" value="0" />否</label><label><input name="review_goods" type="radio" value="1" checked="checked"/>是</label>
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{if $seller_shopinfo.shopname_audit eq 0}
|
|
<tr>
|
|
<td>
|
|
<div class="m-990">
|
|
审核使用店铺名称:
|
|
<label><input type="radio" name="shopname_audit" value="0" {if $shop_info.shopname_audit eq 0}checked="checked"{/if} />未审核</label>
|
|
<label><input type="radio" name="shopname_audit" value="1" {if $shop_info.check_sellername eq 1}checked="checked"{/if} />已审核</label>
|
|
<font style="color:#F00">(商家申请使用店铺名称类型:{if $seller_shopinfo.check_sellername eq 1}期望店铺名称{elseif $seller_shopinfo.check_sellername eq 2}公司名称{else}入驻品牌店铺名称{/if})</font>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{else}
|
|
<tr>
|
|
<td>
|
|
<div class="m-990">
|
|
商家店铺名称类型:
|
|
<font style="color:#F00">{if $seller_shopinfo.check_sellername eq 1}期望店铺名称{elseif $seller_shopinfo.check_sellername eq 2}公司名称{else}入驻品牌店铺名称{/if}(已审核)</font>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{if $merchants.steps_audit eq 1}
|
|
<tr>
|
|
<td>
|
|
<div class="m-990">
|
|
商家重新申请:<label><input name="merchants_allow" type="radio" value="0" checked="checked" />不允许</label><label><input name="merchants_allow" type="radio" value="1" />允许</label>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td>
|
|
<div class="m-990">
|
|
商家信息审核:
|
|
{if $user_id > 0}
|
|
{if $merchants.steps_audit eq 1}
|
|
<label><input name="merchants_audit" type="radio" value="0" {if $merchants.merchants_audit eq 0}checked="checked"{/if} onclick="get_merchants_audit(this.value)" />未审核</label><label><input name="merchants_audit" type="radio" value="1" {if $merchants.merchants_audit eq 1}checked="checked"{/if} onclick="get_merchants_audit(this.value)"/>通过</label><label><input name="merchants_audit" type="radio" value="2" {if $merchants.merchants_audit eq 2}checked="checked"{/if} onclick="get_merchants_audit(this.value)" />未通过</label>
|
|
{else}
|
|
<font style="font-size:12px; color:#F00">尚不能审核</font>
|
|
{/if}
|
|
{else}
|
|
<label><input name="merchants_audit" type="radio" value="0" onclick="get_merchants_audit(this.value)" />未审核</label><label><input name="merchants_audit" type="radio" value="1" checked="checked" onclick="get_merchants_audit(this.value)"/>通过</label><label><input name="merchants_audit" type="radio" value="2" onclick="get_merchants_audit(this.value)" />未通过</label>
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{if $merchants.steps_audit eq 1}
|
|
<tr style="display:{if $merchants.merchants_audit eq 2}block{else}none{/if}" id="tr_merchantsAudit">
|
|
<td>
|
|
<div class="m-990" style="padding-top:5px;">
|
|
<div style="width:84px; text-align:right; float:left">
|
|
回复商家:
|
|
</div>
|
|
<div style="width:786px; float:left;">
|
|
<textarea name="merchants_message" rows="8" cols="45">{$merchants.merchants_message}</textarea>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
<tr>
|
|
<td colspan="2" align="center">
|
|
<input name="numAdd" value="1" id="numAdd" type="hidden" />
|
|
<input type="button" value="{$lang.button_submit}" class="button submit_btn" />
|
|
<input type="reset" value="{$lang.button_reset}" class="button" />
|
|
<input type="hidden" name="act" value="{$form_action}" />
|
|
{if $user_id > 0}
|
|
<input type="hidden" name="user_id" value="{$user_id}" id="user_id" />
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|
|
</div>
|
|
{insert_scripts files="../js/utils.js,validator.js,../js/region.js"}
|
|
{literal}
|
|
<script language="JavaScript">
|
|
|
|
//by wu
|
|
$(function(){
|
|
$(".submit_btn").click(function(){
|
|
var myform = document.forms['theForm'];
|
|
|
|
var user_id = myform.elements['user_id'].value;
|
|
if(user_id <= 0){
|
|
alert('请选择会员');
|
|
return false;
|
|
}
|
|
|
|
var myform = document.forms['theForm'];
|
|
var ec_rz_shopName = myform.elements['ec_rz_shopName'].value;
|
|
if(ec_rz_shopName)
|
|
{
|
|
$.ajax({
|
|
type:'get',
|
|
url:'merchants_users_list.php',
|
|
data:'act=check_shop_name&user_id='+user_id+'&shop_name='+ec_rz_shopName,
|
|
dataType:'json',
|
|
success:function(data)
|
|
{
|
|
if(data.error==1)
|
|
{
|
|
alert('期望店铺名称已存在,请重新设置');
|
|
return false;
|
|
}
|
|
else
|
|
{
|
|
myform.submit();
|
|
}
|
|
}
|
|
})
|
|
}
|
|
else
|
|
{
|
|
myform.submit();
|
|
}
|
|
})
|
|
})
|
|
|
|
region.isAdmin = true;
|
|
<!--
|
|
|
|
if (document.forms['theForm'].elements['act'].value == "insert")
|
|
{
|
|
document.forms['theForm'].elements['username'].focus();
|
|
}
|
|
else
|
|
{
|
|
document.forms['theForm'].elements['email'].focus();
|
|
}
|
|
|
|
onload = function()
|
|
{
|
|
// 开始检查订单
|
|
startCheckOrder();
|
|
}
|
|
|
|
/**
|
|
* 检查表单输入的数据
|
|
*/
|
|
function validate()
|
|
{
|
|
var user_id = document.forms['theForm'].elements['user_id'].value;
|
|
|
|
if(user_id <= 0){
|
|
alert('请选择会员');
|
|
return false;
|
|
}
|
|
|
|
//by wu
|
|
var ec_rz_shopName = document.forms['theForm'].elements['ec_rz_shopName'].value;
|
|
$.ajax({
|
|
type:'get',
|
|
url:'merchants_users_list.php',
|
|
data:'act=check_shop_name&shop_name='+ec_rz_shopName,
|
|
dataType:'json',
|
|
success:function(data)
|
|
{
|
|
if(data.error==1)
|
|
{
|
|
alert('店铺名称重复');
|
|
return false;
|
|
}
|
|
}
|
|
})
|
|
|
|
}
|
|
|
|
//删除二级类目
|
|
function get_deleteBrand(ct_id){
|
|
|
|
var filter = new Object;
|
|
filter.ct_id = ct_id;
|
|
filter.user_id = {$user_id};
|
|
|
|
if (confirm('确定删除这条品牌资质信息吗')){
|
|
Ajax.call('merchants_users_list.php?is_ajax=1&act=deleteBrand', filter, responseDeleteBrand, 'GET', 'JSON');
|
|
}
|
|
}
|
|
function responseDeleteBrand(result){
|
|
if(result.error == 0){
|
|
document.getElementById('brandList').innerHTML = result.content;
|
|
}
|
|
}
|
|
|
|
function addBrandTable(obj)
|
|
{
|
|
var add_num = 1000;
|
|
var num = document.getElementById('numAdd').value;
|
|
if(num < add_num){
|
|
var src = obj.parentNode.parentNode;
|
|
var idx = rowindex(src);
|
|
var tbl = document.getElementById('brand-table');
|
|
var row = tbl.insertRow(idx + 1);
|
|
var cell = row.insertCell(-1);
|
|
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addBrandTable)(.*)(\[)(\+)/i, "$1removeBrandTable$3$4-");
|
|
num++;
|
|
document.getElementById('numAdd').value = num;
|
|
}else{
|
|
alert('最多添加' + add_num +'次');
|
|
}
|
|
|
|
for(i=0;i<num;i++){
|
|
var expiredDate = document.getElementsByName("ec_expiredDateInput[]");
|
|
expiredDate[i].id = 'expiredDateInput_' + i;
|
|
}
|
|
}
|
|
|
|
function removeBrandTable(obj,b_fid)
|
|
{
|
|
if(b_fid > 0){
|
|
if (confirm('确定删除这条品牌资质信息吗')){
|
|
location.href = 'merchants_users_list.php?act=brand_edit&ec_shop_bid={$ec_shop_bid}&del_bFid=' + b_fid + '&user_id={$user_id}&brandView=brandView#brandId_edit';
|
|
}
|
|
}else{
|
|
var row = rowindex(obj.parentNode.parentNode);
|
|
var tbl = document.getElementById('brand-table');
|
|
|
|
tbl.deleteRow(row);
|
|
|
|
var num = document.getElementById('numAdd').value;
|
|
num--;
|
|
document.getElementById('numAdd').value = num;
|
|
|
|
for(i=0;i<num;i++){
|
|
var radioCheckbox_val = document.getElementsByName("radioCheckbox_val[]");
|
|
radioCheckbox_val[i].value = i;
|
|
}
|
|
}
|
|
}
|
|
|
|
function get_categoryId_permanent(f, permanent_date, dt_id){
|
|
var categoryId = document.getElementById('categoryId_date_' + dt_id);
|
|
if(f.checked){
|
|
categoryId.value = '';
|
|
}else{
|
|
if(permanent_date != ''){
|
|
categoryId.value = permanent_date;
|
|
}
|
|
}
|
|
}
|
|
|
|
function get_expiredDate_permanent(f, expiredDateInput, b_fid){
|
|
if(b_fid > 0){
|
|
var expiredDate = document.getElementById('expiredDateInput_' + b_fid);
|
|
if(f.checked){
|
|
expiredDate.value = '';
|
|
}else{
|
|
if(expiredDateInput != ''){
|
|
expiredDate.value = expiredDateInput;
|
|
}
|
|
}
|
|
}else{
|
|
|
|
var DateInput = document.getElementsByName("ec_expiredDateInput[]");
|
|
var permanent = document.getElementsByName("ec_expiredDate_permanent[]");
|
|
for(i=0; i<permanent.length; i++){
|
|
if(permanent[i].checked){
|
|
if(DateInput[i].value != ''){
|
|
DateInput[i].value = '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function get_brandEndTime_permanent(f, brandEndTime){
|
|
var ec_brandEndTime = document.getElementById('ec_brandEndTime');
|
|
if(f.checked){
|
|
ec_brandEndTime.value = '';
|
|
}else{
|
|
if(brandEndTime != ''){
|
|
ec_brandEndTime.value = brandEndTime;
|
|
}
|
|
}
|
|
}
|
|
|
|
function get_merchants_audit(val){
|
|
var audit = document.getElementById('tr_merchantsAudit');
|
|
if(val == 2){
|
|
audit.style.display = 'block';
|
|
}else{
|
|
audit.style.display = 'none';
|
|
}
|
|
}
|
|
|
|
//查询会员
|
|
function get_search_user(type){
|
|
if(type == '查询会员'){
|
|
document.getElementById('userName').style.display = '';
|
|
document.forms['theForm'].elements['chaxun'].value = "确认查询";
|
|
}else{
|
|
var userName = document.forms['theForm'].elements['userName'].value;
|
|
|
|
get_user_name(userName);
|
|
}
|
|
}
|
|
|
|
function get_user_name(user_name)
|
|
{
|
|
Ajax.call('merchants_users_list.php?is_ajax=1&act=get_user_name', "user_name="+user_name, user_nameResponse, "GET", "JSON");
|
|
}
|
|
|
|
function user_nameResponse(result)
|
|
{
|
|
if (result.error == 0)
|
|
{
|
|
document.getElementById('user_list').innerHTML = result.content;
|
|
}
|
|
}
|
|
//-->
|
|
</script>
|
|
{/literal}
|
|
{include file="pagefooter.htm"}
|
|
|