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.
101 lines
3.1 KiB
101 lines
3.1 KiB
<!-- $Id: brand_list.htm 15898 2009-05-04 07:25:41Z liuhui $ -->
|
|
|
|
{if $full_page}
|
|
{include file="pageheader.htm"}
|
|
{insert_scripts files="../js/utils.js,listtable.js"}
|
|
|
|
<form method="post" action="merchants_custom.php" name="listForm">
|
|
|
|
<div class="list-div" id="listDiv">
|
|
{/if}
|
|
|
|
<table cellpadding="3" cellspacing="1">
|
|
<tr>
|
|
<th>编号</th>
|
|
<th>橱窗名称</th>
|
|
<th>设置模板</th>
|
|
<th>橱窗类型</th>
|
|
<th>橱窗色调</th>
|
|
<th>{$lang.sort_order}</th>
|
|
<th>显示</th>
|
|
<th>{$lang.handler}</th>
|
|
</tr>
|
|
{foreach from=$win_list item=window}
|
|
<tr>
|
|
<td><label><input type="checkbox" name="checkboxes[]" value="{$window.id}" />{$window.id}</label></td>
|
|
<td align="center"><span onclick="javascript:listTable.edit(this, 'edit_win_name', {$window.id})">{$window.win_name|escape:html}</span>
|
|
</td>
|
|
<td align="center">{$window.seller_theme}</td>
|
|
<td align="center">{$window.win_type_name}</td>
|
|
<td align="center"><div style="width:50px; height:30px; background-color:{$window.win_color};"></div></td>
|
|
<td align="center"><span onclick="javascript:listTable.edit(this, 'edit_sort_order', {$window.id})">{$window.win_order}</span></td>
|
|
<td align="center"><img src="images/{if $window.is_show}yes{else}no{/if}.gif" onclick="listTable.toggle(this, 'toggle_show', {$window.id})" /></td>
|
|
<td align="center">
|
|
<a href="merchants_custom.php?act=edit&id={$window.id}" title="{$lang.edit}">{$lang.edit}</a> |
|
|
{if $window.win_type}
|
|
<a href="merchants_custom.php?act=add_win_goods&id={$window.id}" title="{$lang.edit}">添加商品</a> |
|
|
{/if}
|
|
<a href="javascript:;" onclick="listTable.remove({$window.id}, '{$lang.drop_confirm}')" >{$lang.remove}</a>
|
|
</td>
|
|
</tr>
|
|
{foreachelse}
|
|
<tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
|
|
{/foreach}
|
|
|
|
</table>
|
|
|
|
{if $full_page}
|
|
|
|
</div>
|
|
|
|
<div style="margin-left:18px; margin-top:10px;">
|
|
<input type="hidden" name="act" value="batch" />
|
|
|
|
<select name="seltype" onchange="selectAll(this.value);">
|
|
<option value="0" selected="selected">请选择</option>
|
|
<option value="1">全选</option>
|
|
<option value="2">反选</option>
|
|
</select>
|
|
|
|
<select name="type" id="controlAll">
|
|
<option value="1">删除</option>
|
|
</select>
|
|
<input type="submit" value="{$lang.button_submit}" id="btnSubmit" name="btnSubmit" class="button" />
|
|
</div>
|
|
</form>
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
<!--
|
|
|
|
{literal}
|
|
onload = function()
|
|
{
|
|
// 开始检查订单
|
|
startCheckOrder();
|
|
}
|
|
{/literal}
|
|
//-->
|
|
|
|
|
|
|
|
function selectAll(val){
|
|
var checklist = document.getElementsByName ("checkboxes[]");
|
|
if(val == 1){
|
|
for(var i=0;i<checklist.length;i++)
|
|
{
|
|
checklist[i].checked = true;
|
|
}
|
|
}else if(val == 2){
|
|
for(var i=0;i<checklist.length;i++)
|
|
{
|
|
if(checklist[i].checked == false){
|
|
checklist[i].checked = true;
|
|
}else{
|
|
checklist[i].checked = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
{include file="pagefooter.htm"}
|
|
{/if}
|