search_brand.html
5.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<include file="public/layout"/>
<style>
select {height: 27px;}
.bot { float: right;padding: 15px 0;width: 10%}
.vdisib {
display: inline-block; *display: inline; *zoom: 1; vertical-align: middle;
}
.flexigrid .bDiv td.dny { display: none;}
.sto_cate_show{position: absolute;bottom:60px; right: 80px; width: 250px; z-index: 100; background: #fff;
height: 390px; border:#E6E9EE solid 1px; display: none }
.sto_cate_show .header{height: 35px; line-height: 35px; background: #F8F8F8;position: relative;
padding: 0 15px; border-bottom:1px solid #efefef;}
.sto_cate_show .header .xx{ font-size: 24px; position: absolute; right: 5px;top:10px; width: 15px; height: 15px; display: inline-block; background-image:url(__PUBLIC__/images/icon.png); background-repeat:no-repeat; background-position: 0 -40px;cursor: pointer; }
.sto_cate_show .content{height: 310px; width: 100%; overflow-y:scroll; padding-top:10px }
.sto_cate_show .content p{padding:0 30px }
.sto_cate_show .content p.tit{height: 24px; line-height: 24px;padding:0 10px}
.sto_cate_show .foot{height: 35px; text-align: right; padding: 0 20px}
.btn_x{height: 25px; cursor: pointer; border: 1px solid #E6E9EE;
border-left: solid 1px #D7D7D7; line-height: 25px;
background-color: #f6f7fb;color: #434a54;
padding: 5px 15px; }
.btn_x:hover{background-color:#EC5151; color: #fff;border-color:#EC5151}
</style>
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit; min-width: 100px">
<div class="page" style="padding: 0px 1% 0 1%;">
<!-- 操作说明 -->
<div class="flexigrid">
<div class="mDiv">
<form class="navbar-form form-inline" id="search-form2" action="{:U('Jddj/search_brand')}"
method="get">
<input type="hidden" name="distr_type" value="{$distr_type}">
<div class="sDiv">
<div class="sDiv2">
<input size="30" name="keywords" value="{:urldecode(urldecode($keywords))}" class="qsbox"
placeholder="品牌名称" type="text">
<input class="btn" style="height: 27px" value="搜索" type="submit">
</div>
</div>
</form>
</div>
<div class="bDiv" style="height: auto;">
<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
<table>
<tr>
<td align="left" width="6%">
<div style="text-align: left;" class="">选择</div>
</td>
<td width="15%" align="left">
<div style="text-align: left;">品牌编号</div>
</td>
<td align="left" width="30%">
<div style="text-align: left;">品牌名称</div>
</td>
<td width="15%" align="left">
<div style="text-align: left;">品牌状态</div>
</td>
</tr>
<tbody id="goods_table">
<volist name="goodsList" id="list">
<tr>
<td align="left" width="6%">
<div style="text-align: left;">
<input class="binp" cname="{$list.brandName}"
type="RADIO" name="goods_id[]" value="{$list.id}"/>
</div>
</td>
<td align="left" width="15%">
<div style="text-align: left;">{$list.id}</div>
</td>
<td align="left" width="30%">
<div style="text-align: left;">{$list.brandName}</div>
</td>
<td align="left" width="15%">
<if condition="$list.brandStatus eq 1">
<div style="text-align: left;">已禁用</div>
<else/>
<div style="text-align: left;">启用中</div>
</if>
</td>
</tr>
</volist>
</tbody>
</table>
</div>
<div class="iDiv" style="display: none;"></div>
</div>
<!--分页位置-->
<div style="width: 90%;float: left">{$page}</div>
<div class="bot" style="width: 100%; text-align: right">
<a onclick="select_goods();" class="ncap-btn-big ncap-btn-green">确认提交</a>
</div>
</div>
</div>
<script>
//--------------选择导入品牌----------------
function select_goods() {
var bname="";
if ($(".binp").length == 0) {
layer.alert('请选择商品', {icon: 2}); //alert('请选择商品');
return false;
}
var bid="";
//将没选中的复选框所在的 tr remove 然后删除复选框
$(".binp").each(function () {
if ($(this).is(':checked')) {
bid+=$(this).val()+","
bname+=$(this).attr('cname')+","
}
});
bid = bid.substring(0, bid.length - 1);
bname = bname.substring(0, bname.length - 1);
window.parent.s_callback(bid,bname);
}
</script>
</body>
</html>