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.

157 lines
6.1 KiB

3 years ago
<!-- $Id: ad_position_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:searchAd_position()" name="searchForm">
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
{$lang.keyword} <input type="text" name="keyword" size="15" />
{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}" class="button" />
</form>
</div>
<form method="post" action="" name="listForm">
<!-- start ad position list -->
<div class="list-div" id="listDiv">
{/if}
<table cellpadding="0" cellspacing="0">
<tr>
<th>{$lang.position_name}</th>
{if $priv_ru eq 1}
<th>{$lang.goods_steps_name}</th>
{/if}
<th>{$lang.posit_width}</th>
<th>{$lang.posit_height}</th>
<th>{$lang.position_model}</th>
<th>{$lang.position_desc}</th>
<th>{$lang.handler}</th>
</tr>
{foreach from=$position_list item=list}
<tr>
<td class="first-cell">
<span onclick="javascript:listTable.edit(this, 'edit_position_name', {$list.position_id})">{$list.position_name|escape:html}</span>
</td>
{if $list.is_public eq 1}
{if $priv_ru eq 1}
<td align="center"><font style="color:#F60;">公共</font></td>
{/if}
{else}
{if $priv_ru eq 1}
<td align="center">{if $list.user_name}<font style="color:#F00;">{$list.user_name}</font>{else}<font style="color:#0e92d0;">自营</font>{/if}</td>
{/if}
{/if}
<td align="center"><span onclick="javascript:listTable.edit(this, 'edit_ad_width', {$list.position_id})">{$list.ad_width}</span></td>
<td align="center"><span onclick="javascript:listTable.edit(this, 'edit_ad_height', {$list.position_id})">{$list.ad_height}</span></td>
<td align="left"><span style=" margin-left:10px;">{$list.position_model}</span></td>
<td align="left"><span style=" margin-left:10px;">{$list.position_desc|escape:html}</span></td>
<td align="center">
<a href="ads.php?act=list&pid={$list.position_id}" title="{$lang.view}{$lang.ad_content}">查看广告</a>
|
{if $priv_ru eq 0}
{if $list.is_public neq 1}
<a href="ad_position.php?act=edit&id={$list.position_id}" title="{$lang.edit}">编辑</a>
|
<a href="javascript:;" onclick="listTable.remove({$list.position_id}, '{$lang.drop_confirm}')" title="{$lang.remove}">删除</a>
{/if}
{else}
<a href="ad_position.php?act=edit&id={$list.position_id}" title="{$lang.edit}">编辑</a>
|
<a href="javascript:;" onclick="listTable.remove({$list.position_id}, '{$lang.drop_confirm}')" title="{$lang.remove}">删除</a>
{/if}
</td>
</tr>
{foreachelse}
<tr><td class="no-records" colspan="7">{$lang.no_position}</td></tr>
{/foreach}
<tr>
<td align="right" nowrap="true" colspan="7">{include file="page.htm"}</td>
</tr>
</table>
{if $full_page}
</div>
<!-- end ad_position 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()
{
// &#64138;&#53036;&#10870;
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 searchAd_position()
{
{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['keyword'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
listTable.filter['page'] = 1;
listTable.loadList();
}
{/literal}
</script>
{include file="pagefooter.htm"}
{/if}