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.
121 lines
5.6 KiB
121 lines
5.6 KiB
<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
|
|
{include file="pageheader.htm"}
|
|
{insert_scripts files="../js/utils.js,selectzone.js,colorselector.js,../js/region.js,listtable.js,../js/jquery-1.9.1.min.js,common.js"}
|
|
<style type="text/css">
|
|
#region-table span{ height:20px; display:block; float:left; padding-top:5px;}
|
|
</style>
|
|
<div class="tab-div">
|
|
<!-- tab bar -->
|
|
<div id="tabbar-div">
|
|
<p>
|
|
<span class="tab-front">{$lang.floor_content_add}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<!-- tab body -->
|
|
<div id="tabbody-div">
|
|
<form enctype="multipart/form-data" action="set_floor_brand.php" method="post" name="theForm" >
|
|
<div class="info_top">
|
|
<table width="90%" id="groupgoods-table" align="center">
|
|
<!-- 鍟嗗搧鎼滅储 -->
|
|
<tr>
|
|
<td colspan="3">
|
|
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
|
|
<!-- <select name="cat_id2"><option value="0">{$lang.all_category}{$cat_list}</select> -->
|
|
<input type="hidden" name="cat_id2" id="cat_id2" value="0" />
|
|
<select name="catList1" id="cat_list1" onchange="catList(this.value, 1)"><option value="0">{$lang.all_category}</option>{$cat_list}</select>
|
|
<script type="text/javascript">
|
|
// 分类分级 by qin
|
|
|
|
function catList(val, level)
|
|
{
|
|
var cat_id2 = val;
|
|
document.getElementById('cat_id2').value = cat_id2;
|
|
Ajax.call('goods.php?is_ajax=1&act=sel_cat', 'cat_id='+cat_id2+'&cat_level='+level, catListResponse, 'GET', 'JSON');
|
|
}
|
|
|
|
function catListResponse(result)
|
|
{
|
|
if (result.error == '1' && result.message != '')
|
|
{
|
|
alert(result.message);
|
|
return;
|
|
}
|
|
var response = result.content;
|
|
var cat_level = result.cat_level; // 分类级别, 1为顶级分类
|
|
for(var i=cat_level;i<10;i++)
|
|
{
|
|
$("#cat_list"+Number(i+1)).remove();
|
|
}
|
|
if(response)
|
|
{
|
|
$("#cat_list"+cat_level).after(response);
|
|
}
|
|
return;
|
|
}
|
|
</script>
|
|
|
|
|
|
<select name="brand_id2"><option value="0">{$lang.all_brand}{html_options options=$brand_list selected=$goods.brand_id}</select>
|
|
<input type="text" name="keyword2" />
|
|
<input type="button" value="{$lang.button_search}" onclick="searchContent(sz, 'cat_id2', 'brand_id2', 'keyword2')" class="button" />
|
|
</td>
|
|
</tr>
|
|
<!-- 鍟嗗搧鍒楄〃 -->
|
|
<tr>
|
|
<th>{$lang.all_goods}</th>
|
|
<th>{$lang.handler}</th>
|
|
<th>{$lang.group_goods}</th>
|
|
</tr>
|
|
<tr>
|
|
<td width="42%">
|
|
<select name="source_select" size="20" style="width:100%" ondblclick="sz.addItem(false, 'add_floor_content',fileName, this.form.elements['group2'].value)" multiple="true">
|
|
</select>
|
|
</td>
|
|
<td align="center">
|
|
<p>{$lang.set_floor}<br />
|
|
<select name="group2">
|
|
{foreach from=$template item=list key=key}
|
|
<option value="{$list.id}|{$list.region}" {if $cat_id eq $list.id}selected="selected"{/if}>{$list.region}|{$list.cat_name}</option>
|
|
{/foreach}
|
|
</select>
|
|
</p>
|
|
<p><input type="button" value=">>" onclick="sz.addItem(true, 'add_floor_content', fileName, this.form.elements['group2'].value)" class="button" /></p>
|
|
<p><input type="button" value=">" onclick="sz.addItem(false, 'add_floor_content', fileName, this.form.elements['group2'].value)" class="button" /></p>
|
|
<p><input type="button" value="<" onclick="sz.dropItem(false, 'drop_floor_content',fileName, this.form.elements['target_select'].value)" class="button" /></p>
|
|
<p><input type="button" value="<<" onclick="sz.dropItem(true, 'drop_floor_content',fileName, this.form.elements['target_select'].value)" class="button" /></p>
|
|
</td>
|
|
<td width="42%">
|
|
<select name="target_select" size="20" style="width:100%" multiple ondblclick="sz.dropItem(false, 'drop_floor_content', fileName, true)">
|
|
{foreach from=$floor_content item=content}
|
|
<option value="{$content.fb_id}">[{$content.id_name}]{$content.brand_name}</option>
|
|
{/foreach}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="button-div info_bottom">
|
|
<input type="submit" value="{$lang.button_submit}" class="button" />
|
|
</div>
|
|
<input type="hidden" name="act" value="{$form_act}" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var fileName = '{$filename}';
|
|
var elements = document.forms['theForm'].elements;
|
|
var sz = new SelectZone(1, elements['source_select'], elements['target_select']);
|
|
|
|
function searchContent(szObject,catId,brandId, keyword)
|
|
{
|
|
var filters = new Object;
|
|
|
|
filters.cat_id = elements[catId].value;
|
|
filters.brand_id = elements[brandId].value;
|
|
filters.keyword = Utils.trim(elements[keyword].value);
|
|
|
|
szObject.loadOptions('get_content', filters);
|
|
}
|
|
</script>
|
|
{include file="pagefooter.htm"}
|
|
|