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.
103 lines
3.8 KiB
103 lines
3.8 KiB
|
|
{if $full_page}
|
|
{include file="pageheader.htm"}
|
|
{insert_scripts files="../js/utils.js,listtable.js"}
|
|
<div class="form-div">
|
|
<form action="javascript:searchPresale()" name="searchForm">
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
{$lang.goods_name} <input type="text" name="keyword" size="30" />
|
|
<input type="submit" value="{$lang.button_search}" class="button" />
|
|
</form>
|
|
</div>
|
|
|
|
<form method="post" action="presale.php?act=batch_drop" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
|
|
<!-- start presale 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>
|
|
<th><a href="javascript:listTable.sort('goods_name'); ">{$lang.goods_name}</a>{$sort_goods_name}</th>
|
|
{if $priv_ru eq 1}
|
|
<th>{$lang.goods_steps_name}</th>
|
|
{/if}
|
|
<th>{$lang.current_status}</a></th>
|
|
<th><a href="javascript:listTable.sort('end_time'); ">{$lang.end_date}</a>{$sort_end_time}</th>
|
|
<th><a href="javascript:listTable.sort('deposit'); ">{$lang.deposit}</a>{$sort_deposit}</th>
|
|
<th>{$lang.valid_goods}</a></th>
|
|
<th>{$lang.valid_order}</a></th>
|
|
<th>{$lang.handler}</th>
|
|
</tr>
|
|
|
|
{foreach from=$presale_list item=presale}
|
|
<tr>
|
|
<td><input value="{$presale.act_id}" name="checkboxes[]" type="checkbox">{$presale.act_id}</td>
|
|
<td>{$presale.goods_name|escape:html}</td>
|
|
{if $priv_ru eq 1}
|
|
<td align="center">{if $presale.shop_name}<font style="color:#F00;">{$presale.shop_name}</font>{else}自营{/if}</td>
|
|
{/if}
|
|
<td>{$presale.cur_status}</td>
|
|
<td align="right">{$presale.end_time}</td>
|
|
<td align="right"><span onclick="listTable.edit(this, 'edit_deposit', {$presale.act_id})">{$presale.deposit}</span></td>
|
|
<td align="right">{$presale.valid_goods}</td>
|
|
<td align="right">{$presale.valid_order}</td>
|
|
<td align="center">
|
|
<a href="order.php?act=list&presale_id={$presale.act_id}"><img src="images/icon_view.gif" title="{$lang.view_order}" border="0" height="21" width="21" /></a>
|
|
<a href="presale.php?act=edit&id={$presale.act_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="21" width="21" /></a>
|
|
<a href="javascript:;" onclick="listTable.remove({$presale.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}
|
|
</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" /></td>
|
|
<td align="right">{include file="page.htm"}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{if $full_page}
|
|
</div>
|
|
<!-- end presale 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();
|
|
}
|
|
|
|
/**
|
|
* 搜索预售活动
|
|
*/
|
|
function searchPresale()
|
|
{
|
|
var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
|
|
listTable.filter['keyword'] = keyword;
|
|
listTable.filter['page'] = 1;
|
|
listTable.loadList("presale_list");
|
|
}
|
|
{/literal}
|
|
//-->
|
|
</script>
|
|
|
|
{include file="pagefooter.htm"}
|
|
{/if}
|