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.
 
 
 
 

182 lines
6.6 KiB

{if $full_page}
<!-- $Id: users_list.htm 17053 2010-03-15 06:50:26Z sxc_shop $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<style type="text/css">
.list-div th{ padding-left:0px;}
</style>
<div class="form-div">
<form action="javascript:searchUser()" name="searchForm">
{if $priv_ru eq 1}
店铺名称
<select name="store_search" onchange="get_store_search(this.value)">
<option value="0">请选择...</option>
<option value="1">按店铺名称</option>
<option value="2">按期望店铺名称</option>
<option value="3">按入驻品牌+类型</option>
</select>
<select name="merchant_id" style="display:none">
{foreach from=$store_list item=store}
<option value="{$store.ru_id}">{$store.store_name}</option>
{/foreach}
</select>
<input name="store_keyword" type="text" style="display:none"/>
<select name="store_type" style="display:none">
<option value="0">店铺类型</option>
<option value="旗舰店">旗舰店</option>
<option value="专卖店">专卖店</option>
<option value="专营店">专营店</option>
<option value="馆"></option>
</select>
{/if}
<input type="submit" value="{$lang.button_search}" />
</form>
</div>
<form method="POST" action="" name="listForm" onsubmit="return confirm_bath()">
<!-- start users list -->
<div class="list-div" id="listDiv">
{/if}
<!--用户列表部分-->
<table cellpadding="3" cellspacing="1">
<tr>
<th>
<input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
<a href="javascript:listTable.sort('shop_id'); ">{$lang.record_id}</a>{$sort_shop_id}
</th>
<th>{$lang.steps_user_name}</th>
<th>{$lang.steps_shop_name}</th>
<th>{$lang.steps_shop_type}</th>
<th>{$lang.steps_main_categories}</th>
<th>{$lang.audit_status}</th>
<th width="62"><a href="javascript:listTable.sort('sort_order'); ">{$lang.sort_order}</a>{$sort_sort_order}</th>
<th>{$lang.handler}</th>
<tr>
{foreach from=$users_list item=users}
<tr>
<td><input type="checkbox" name="checkboxes[]" value="{$users.shop_id}" />{$users.shop_id}</td>
<td align="center">{$users.user_name}</td>
<td align="center" style="color:#F00">{$users.rz_shopName}</td>
<td align="center">{$users.shopNameSuffix}</td>
<td align="center">{$users.cat_name}</td>
<td align="center" style="color:#0071E1">
{if $users.steps_audit eq 1}
{if $users.merchants_audit eq 0}
未审核
{elseif $users.merchants_audit eq 1}
审核已通过
{elseif $users.merchants_audit eq 2}
审核未通过
{/if}
{else}
<font style="color:#F90">尚未提交信息</font>
{/if}
</td>
<td align="center"><span onclick="listTable.edit(this, 'edit_sort_order', {$users.shop_id})">{$users.sort_order}</span></td>
<td align="center">
{if $users.merchants_audit eq 1}
<a href="merchants_users_list.php?act=allot&id={$users.user_id}&login_name={$users.hopeLoginName}" title="{$lang.allot_priv}"><img src="images/icon_priv.png" border="0" height="21" width="21"></a>&nbsp;&nbsp;
{/if}
<a href="merchants_users_list.php?act=edit_shop&id={$users.user_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="21" width="21" /></a>&nbsp;&nbsp;
<a href="javascript:confirm_redirect('{$lang.remove_confirm_user}', 'merchants_users_list.php?act=remove&id={$users.user_id}')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="21" width="21" /></a>
</td>
</tr>
{foreachelse}
<tr><td class="no-records" colspan="11">{$lang.no_records}</td></tr>
{/foreach}
<tr>
<td colspan="2">
<input type="hidden" name="act" value="batch_remove" />
<input type="submit" style="display:none" id="btnSubmit" value="{$lang.button_remove}" disabled="true" class="button" /></td>
<td align="right" nowrap="true" colspan="8">
{include file="page.htm"}
</td>
</tr>
</table>
{if $full_page}
</div>
<!-- end users list -->
</form>
<script type="text/javascript" language="JavaScript">
<!--
listTable.recordCount = {$record_count};
listTable.pageCount = {$page_count};
{foreach from=$filter item=item key=key}
listTable.filter.{$key} = '{$item}';
{/foreach}
{literal}
onload = function()
{
document.forms['searchForm'].elements['store_keyword'].focus();
// 开始检查订单
startCheckOrder();
}
{if $priv_ru eq 1}
function get_store_search(val){
if(val == 1){
document.forms['searchForm'].elements['merchant_id'].style.display = '';
document.forms['searchForm'].elements['store_keyword'].style.display = 'none';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}else if(val == 2){
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = '';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}else if(val == 3){
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = '';
document.forms['searchForm'].elements['store_type'].style.display = '';
}else{
document.forms['searchForm'].elements['merchant_id'].style.display = 'none';
document.forms['searchForm'].elements['store_keyword'].style.display = 'none';
document.forms['searchForm'].elements['store_type'].style.display = 'none';
}
}
{/if}
/**
* 搜索用户
*/
function searchUser()
{
{if $priv_ru eq 1}
listTable.filter['store_search'] = Utils.trim(document.forms['searchForm'].elements['store_search'].value);
listTable.filter['merchant_id'] = Utils.trim(document.forms['searchForm'].elements['merchant_id'].value);
listTable.filter['store_keyword'] = Utils.trim(document.forms['searchForm'].elements['store_keyword'].value);
listTable.filter['store_type'] = Utils.trim(document.forms['searchForm'].elements['store_type'].value);
{/if}
listTable.filter['page'] = 1;
listTable.loadList();
}
function confirm_bath()
{
userItems = document.getElementsByName('checkboxes[]');
cfm = '{$lang.list_remove_confirm}';
for (i=0; userItems[i]; i++)
{
if (userItems[i].checked && userItems[i].notice == 1)
{
cfm = '{$lang.list_still_accounts}' + '{$lang.list_remove_confirm}';
break;
}
}
return confirm(cfm);
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}
{/if}