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.

188 lines
7.5 KiB

3 years ago
<!-- $Id: favourable_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<div class="form-div">
<form action="javascript:searchActivity()" name="searchForm">
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
使用类型&nbsp;
<select name="use_type">
<option value="0">请选择</option>
{if $priv_ru}
<option value="1">自营</option>
<option value="2">商家</option>
{else}
<option value="4">自营</option>
{/if}
<option value="3">全场</option>
</select>
{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}
活动名称&nbsp;<input type="text" name="keyword" size="30" />
<input name="is_going" type="checkbox" id="is_going" value="1" />
{$lang.act_is_going}
<input type="submit" value="{$lang.button_search}" class="button" />
</form>
</div>
<form method="post" action="favourable.php" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<!-- start favourable list -->
<div class="list-div" id="listDiv">
{/if}
<table cellpadding="0" cellspacing="0">
<tr>
<th>
<input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
<a href="javascript:listTable.sort('act_id'); ">{$lang.record_id}</a>{$sort_act_id}</th>
{if $priv_ru eq 1}
<th>商家名称</th>
{/if}
<th><a href="javascript:listTable.sort('act_name'); ">{$lang.act_name}</a>{$sort_act_name}</th>
<th><a href="javascript:listTable.sort('start_time'); ">{$lang.start_time}</a>{$sort_start_time}</th>
<th><a href="javascript:listTable.sort('end_time'); ">{$lang.end_time}</a>{$sort_end_time}</th>
<th>{$lang.min_amount}</th>
<th>{$lang.max_amount}</th>
<th><a href="javascript:listTable.sort('sort_order'); ">{$lang.sort_order}</a>{$sort_sort_order}</th>
<th>{$lang.handler}</th>
</tr>
{foreach from=$favourable_list item=favourable}
<tr>
<td><input value="{$favourable.act_id}" name="checkboxes[]" type="checkbox">{$favourable.act_id}</td>
{if $priv_ru eq 1}
{if $favourable.userFav_type}
<td align="center"><font style="color:#A60000;">全场通用</font></td>
{else}
<td align="center">{if $favourable.user_name}<font style="color:#F00;">{$favourable.user_name}</font>{else}<font style="color:#0e92d0;">自营</font>{/if}</td>
{/if}
{/if}
<td>{$favourable.act_name|escape:html}{if $favourable.userFav_type && $priv_ru eq 0}<font style="color:#A60000;">(全场通用)</font>{/if}</td>
<td align="right">{$favourable.start_time}</td>
<td align="right">{$favourable.end_time}</td>
<td align="right">{$favourable.min_amount}</td>
<td align="right">{$favourable.max_amount}</td>
<td align="center">
<span onclick="listTable.edit(this, 'edit_sort_order', {$favourable.act_id})">{$favourable.sort_order}</span></td>
<td align="center">
<a href="favourable.php?act=edit&amp;id={$favourable.act_id}&ru_id={$favourable.user_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="21" width="21" /></a>
{if $favourable.userFav_type eq 0 || $priv_ru}
<a href="javascript:;" onclick="listTable.remove({$favourable.act_id},'{$lang.drop_confirm}')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="21" width="21" /></a>
{/if}
</td>
</tr>
{foreachelse}
<tr><td class="no-records" colspan="13">{$lang.no_records}</td></tr>
{/foreach}
</table>
<table cellpadding="4" cellspacing="0" style="border-top:none;">
<tr>
<td><input type="submit" name="drop" id="btnSubmit" value="{$lang.drop}" class="button" disabled="true" />
<input type="hidden" name="act" value="batch" /></td>
<td align="right">{include file="page.htm"}</td>
</tr>
</table>
{if $full_page}
</div>
<!-- end favourable 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['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 searchActivity()
{
{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}
var use_type = Utils.trim(document.forms['searchForm'].elements['use_type'].value);
var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
listTable.filter['use_type'] = use_type;
listTable.filter['keyword'] = keyword;
if (document.forms['searchForm'].elements['is_going'].checked)
{
listTable.filter['is_going'] = 1;
}
else
{
listTable.filter['is_going'] = 0;
}
listTable.filter['page'] = 1;
listTable.loadList("favourable_list");
}
{/literal}
//-->
</script>
{include file="pagefooter.htm"}
3 years ago
{/if}