|
|
|
|
<!-- $Id: snatch_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:searchSnatch()" name="searchForm">
|
|
|
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
|
|
|
{$lang.snatch_name} <input type="text" name="keyword" />
|
|
|
|
|
|
|
|
|
|
{if $priv_ru eq 1}
|
|
|
|
|
店铺名称
|
|
|
|
|
<select name="store_search" onchange="get_store_search(this.value)">
|
|
|
|
|
<option value="-1">请选择...</option>
|
|
|
|
|
<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}" class="button" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<form method="post" action="" name="listForm">
|
|
|
|
|
<div class="list-div" id="listDiv">
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><a href="javascript:listTable.sort('act_id'); ">{$lang.record_id}</a>{$sort_act_id}</th>
|
|
|
|
|
<th><a href="javascript:listTable.sort('snatch_name'); ">{$lang.snatch_name}</a>{$sort_snatch_name}</th>
|
|
|
|
|
{if $priv_ru eq 1}
|
|
|
|
|
<th>{$lang.goods_steps_name}</th>
|
|
|
|
|
{/if}
|
|
|
|
|
<th><a href="javascript:listTable.sort('goods_name'); ">{$lang.goods_name}</a>{$sort_goods_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_price}</a></th>
|
|
|
|
|
<th>{$lang.integral}</a></th>
|
|
|
|
|
<th><a href="javascript:listTable.sort('is_hot'); ">{$lang.is_hot}</a>{$sort_is_hot}</th>
|
|
|
|
|
<th>{$lang.handler}</th>
|
|
|
|
|
</tr>
|
|
|
|
|
{foreach from=$snatch_list item=snatch}
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="center">{$snatch.act_id}</td>
|
|
|
|
|
|
|
|
|
|
<td class="first-cell"><span onclick="listTable.edit(this, 'edit_snatch_name', {$snatch.act_id})">{$snatch.snatch_name}</span></td>
|
|
|
|
|
{if $priv_ru eq 1}
|
|
|
|
|
<td align="center">{if $snatch.ru_name}<font style="color:#F00;">{$snatch.ru_name}</font>{else}<font style="color:#0e92d0;">自营</font>{/if}</td>
|
|
|
|
|
{/if}
|
|
|
|
|
<td><span>{$snatch.goods_name}</span></td>
|
|
|
|
|
<td align="center">{$snatch.start_time}</td>
|
|
|
|
|
<td align="center">{$snatch.end_time}</td>
|
|
|
|
|
<td align="right">{$snatch.start_price}</td>
|
|
|
|
|
<td align="right">{$snatch.cost_points}</td>
|
|
|
|
|
<td align="center"><img src="images/{if $snatch.is_hot eq 1}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_hot', {$snatch.act_id})" /></td>
|
|
|
|
|
<td align="center">
|
|
|
|
|
<a href="snatch.php?act=view&snatch_id={$snatch.act_id}" title="{$lang.view_detail}"><img src="images/icon_view.gif" border="0" height="21" width="21"></a>
|
|
|
|
|
<a href="snatch.php?act=edit&id={$snatch.act_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="21" width="21"></a>
|
|
|
|
|
<a href="javascript:;" onclick="listTable.remove({$snatch.act_id},'{$lang.drop_confirm}')" 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="10">{$lang.no_records}</td></tr>
|
|
|
|
|
{/foreach}
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="right" nowrap="true" colspan="10">{include file="page.htm"}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
{if $full_page}
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<!-- end article list -->
|
|
|
|
|
|
|
|
|
|
<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 searchSnatch()
|
|
|
|
|
{
|
|
|
|
|
{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 keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
|
|
|
|
|
listTable.filter.keywords = keyword;
|
|
|
|
|
listTable.filter.page = 1;
|
|
|
|
|
listTable.loadList();
|
|
|
|
|
}
|
|
|
|
|
{/literal}
|
|
|
|
|
//-->
|
|
|
|
|
</script>
|
|
|
|
|
{include file="pagefooter.htm"}
|
|
|
|
|
{/if}
|