商品分类管理.html 17.1 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://static.yohobuy.com/admin/css/style.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://static.yohobuy.com/admin/js/jquery.min.js"></script>
<title>YOHO有货后台管理Right</title>
</head>

<body>
<div class="mainbox">
<div class="daohang">当前位置:<a href="/">首页</a> > <a href="#">商品管理</a> > <span>商品分类管理</span></div>

  <div class="searchb">
    <ul>
      <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
          <td align="center"><a href="/brand/add" class="but6">添加品牌</a></td>
<form action="/brand" method="get">
          <td >
          
<input type="hidden" name="sFlag" value="1" id="sFlag"/>
	<span id="category"></span>
	<select name="sel_good_sort" id="sel_good_sort">
	<option value="0">产品分类 </option>
		<optgroup label="服装">
    	    	<optgroup label="&nbsp;&nbsp;上衣">
        	        		<option value="3" > &nbsp;&nbsp;夹克 </option>
        	        		<option value="4" > &nbsp;&nbsp;卫衣 </option>
        	        		<option value="5" > &nbsp;&nbsp;拉链衫 </option>
        	        		<option value="6" > &nbsp;&nbsp;背心与马甲 </option>
        	        		<option value="7" > &nbsp;&nbsp;衬衫 </option>
        	        		<option value="8" > &nbsp;&nbsp;T恤 </option>
        	        		<option value="9" > &nbsp;&nbsp;POLO衫 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;裤类">
        	        		<option value="11" > &nbsp;&nbsp;休闲裤 </option>
        	        		<option value="12" > &nbsp;&nbsp;牛仔裤 </option>
        	        		<option value="13" > &nbsp;&nbsp;短裤 </option>
        	        		<option value="14" > &nbsp;&nbsp;中裤 </option>
        	        		<option value="15" > &nbsp;&nbsp;打底裤 </option>
        	        		<option value="16" > &nbsp;&nbsp;工装裤 </option>
        	        		<option value="17" > &nbsp;&nbsp;西裤 </option>
        	        		<option value="18" > &nbsp;&nbsp;背带裤 </option>
        	        		<option value="19" > &nbsp;&nbsp;裙裤 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;鞋类">
        	        		<option value="21" > &nbsp;&nbsp;皮鞋 </option>
        	        		<option value="22" > &nbsp;&nbsp;休闲鞋 </option>
        	        		<option value="23" > &nbsp;&nbsp;凉鞋 </option>
        	        		<option value="24" > &nbsp;&nbsp;拖鞋 </option>
        	        		<option value="25" > &nbsp;&nbsp;靴子 </option>
        	        		<option value="26" > &nbsp;&nbsp;时装鞋 </option>
        	        		<option value="27" > &nbsp;&nbsp;帆布鞋 </option>
        	        		<option value="28" > &nbsp;&nbsp;运动鞋 </option>
        	        		<option value="29" > &nbsp;&nbsp;户外鞋 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;帽类">
        	        		<option value="31" > &nbsp;&nbsp;机车帽 </option>
        	        		<option value="32" > &nbsp;&nbsp;线帽 </option>
        	        		<option value="33" > &nbsp;&nbsp;货车帽 </option>
        	        		<option value="34" > &nbsp;&nbsp;棒球帽 </option>
        	        		<option value="35" > &nbsp;&nbsp;圆边帽 </option>
        	        		<option value="36" > &nbsp;&nbsp;掩耳帽 </option>
        	        		<option value="37" > &nbsp;&nbsp;鸭舌帽 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;包类">
        	        		<option value="39" > &nbsp;&nbsp;单肩包 </option>
        	        		<option value="40" > &nbsp;&nbsp;双肩包 </option>
        	        		<option value="41" > &nbsp;&nbsp;腰包 </option>
        	        		<option value="42" > &nbsp;&nbsp;挎包 </option>
        	        		<option value="43" > &nbsp;&nbsp;拎包 </option>
        	        		<option value="44" > &nbsp;&nbsp;钱包 </option>
        	        		<option value="45" > &nbsp;&nbsp;专用储物包 </option>
        	        		<option value="46" > &nbsp;&nbsp;洗漱包/化妆包 </option>
        	        		<option value="47" > &nbsp;&nbsp;环保包 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;内衣">
        	        		<option value="49" > &nbsp;&nbsp;内裤 </option>
        	        		<option value="50" > &nbsp;&nbsp;内衣 </option>
        	        		<option value="51" > &nbsp;&nbsp;家居服 </option>
        	        		<option value="52" > &nbsp;&nbsp;游泳衣 </option>
        	        		<option value="53" > &nbsp;&nbsp;游泳裤 </option>
        	        		<option value="54" > &nbsp;&nbsp;袜子 </option>
        	        	</optgroup>
    	    	</optgroup>
    	<optgroup label="女装">
    	    	<optgroup label="&nbsp;&nbsp;上衣">
        	        		<option value="57" > &nbsp;&nbsp;夹克 </option>
        	        		<option value="58" > &nbsp;&nbsp;卫衣 </option>
        	        		<option value="59" > &nbsp;&nbsp;拉链衫 </option>
        	        		<option value="60" > &nbsp;&nbsp;背心与马甲 </option>
        	        		<option value="61" > &nbsp;&nbsp;衬衫 </option>
        	        		<option value="62" > &nbsp;&nbsp;T恤 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;裤类">
        	        		<option value="64" > &nbsp;&nbsp;休闲裤 </option>
        	        		<option value="65" > &nbsp;&nbsp;牛仔裤 </option>
        	        		<option value="66" > &nbsp;&nbsp;短裤 </option>
        	        		<option value="67" > &nbsp;&nbsp;中裤 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;裙类">
        	        		<option value="69" > &nbsp;&nbsp;连衣裙类 </option>
        	        		<option value="70" > &nbsp;&nbsp;背带裙 </option>
        	        		<option value="71" > &nbsp;&nbsp;短裙 </option>
        	        		<option value="72" > &nbsp;&nbsp;长裙 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;鞋类">
        	        		<option value="74" > &nbsp;&nbsp;皮鞋 </option>
        	        		<option value="75" > &nbsp;&nbsp;休闲鞋 </option>
        	        		<option value="76" > &nbsp;&nbsp;凉鞋 </option>
        	        		<option value="77" > &nbsp;&nbsp;拖鞋 </option>
        	        		<option value="78" > &nbsp;&nbsp;靴子 </option>
        	        	</optgroup>
    	    	</optgroup>
    	<optgroup label="Lifestyle">
    	    	<optgroup label="&nbsp;&nbsp;床上用品">
        	        		<option value="81" > &nbsp;&nbsp;床单被罩 </option>
        	        		<option value="82" > &nbsp;&nbsp;枕头 </option>
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;日用百货">
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;文体用品">
        	        	</optgroup>
    	    	<optgroup label="&nbsp;&nbsp;电子数码">
        	        	</optgroup>
    	    	</optgroup>
    	<optgroup label="日用百货">
    	    	</optgroup>
    	</select>          
          
          

          
	<select name="status" id="status">
		<option value="-1" >审核状态</option> 
		<option value="0" >未审核</option>
		<option value="1" >已审核</option>
	</select>          

          
 	<select name="brand_level" id="brand_level">
		<option value="0">品牌级别</option>
				<option value="1" >普通客户</option>
				<option value="2" >优先客户</option>
				<option value="3" >普通推荐</option>
				<option value="4" >yoho推荐</option>
				
	</select>         
          
  
          
 	<select name="brand_type" id="brand_type">
		<option value="0">品牌类型</option>
				<option value="1" >品牌旗舰店</option>
				<option value="2" >香港潮流贩卖</option>
				<option value="3" >台湾街牌速递</option>
				<option value="4" >内地潮流区</option>
				<option value="5" >玩乐生活区</option>
			</select>
	<select name="brand_scale" id="brand_scale">
		<option value="0">品牌规模</option>
				<option value="1" >国际知名</option>
				<option value="2" >流行品牌</option>
				<option value="3" >设计师原创</option>
				<option value="4" >网货(无品牌)</option>
			</select>
	<select name="keywordtype" id="keywordtype">
		<option value="0" >关键词类型</option>
		<option value="1" >品牌名称(中)</option>
		<option value="2" >品牌名称(英)</option>
		<option value="3" >品牌介绍</option>
		<option value="4" >品牌简述</option>
	</select>
	<input type="text" id="keyword" name="keyword" value="" />         
    &nbsp;&nbsp;<button type="button" class="searbut"></button>     
          
    </td>      

</form>            
        </tr>
      </table>
    </ul>
  </div>






	





<table class="table1" style="width: 100%; text-align: center;">
	<thead>
		<tr>
			<th align="center">ID</th>
			<th align="center">品牌名称</th>
			<th align="center">Logo</th>
			<th align="center">主要商品</th>
			<th align="center">品牌级别</th>
			<th align="center">状态</th>
			<th align="center">操作</th>
		</tr>
	</thead>
	
		
			<tr class="F1">
			<td width="40">12 </td>
			<td > <a href="/brand/view?id=12">reputation<br/>reputation </a> </td>
			<td > <img src="http://img002.static.yohobuy.com/brandLogo/2011/01/24/13/261bb351765fcd6d5d0353c967a8f69fe.gif" alt="reputation"> </td>
			<td >掩耳帽,鸭舌帽,单肩包,双肩包</td>
			<td >普通客户</td>
			<td ><span id="curStatus12">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=12" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=12&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(12)" class="but3" id="statusa12"><span id="btntext12">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">11 </td>
			<td > <a href="/brand/view?id=11">mania<br/>mania </a> </td>
			<td > <img src="http://img001.static.yohobuy.com/brandLogo/2011/01/24/13/1c0dc22e950953e69374daa4fe8548710.gif" alt="mania"> </td>
			<td >休闲裤,牛仔裤,短裤,中裤</td>
			<td >普通客户</td>
			<td ><span id="curStatus11">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=11" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=11&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(11)" class="but3" id="statusa11"><span id="btntext11">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">10 </td>
			<td > <a href="/brand/view?id=10">西湖创意<br/>siw </a> </td>
			<td > <img src="http://img001.static.yohobuy.com/brandLogo/2011/01/24/11/11af1ab13b10cbb09c1082db96bf7693a.gif" alt="西湖创意"> </td>
			<td >圆边帽,掩耳帽,鸭舌帽,挎包,钱包</td>
			<td >普通客户</td>
			<td ><span id="curStatus10">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=10" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=10&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(10)" class="but3" id="statusa10"><span id="btntext10">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">9 </td>
			<td > <a href="/brand/view?id=9">furyanimals<br/>furyanimals </a> </td>
			<td > <img src="http://img002.static.yohobuy.com/brandLogo/2011/01/24/11/2fc590590ce92b8c91cb453474908a6a4.jpg" alt="furyanimals"> </td>
			<td >夹克,卫衣,休闲裤</td>
			<td >普通客户</td>
			<td ><span id="curStatus9">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=9" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=9&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(9)" class="but3" id="statusa9"><span id="btntext9">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">8 </td>
			<td > <a href="/brand/view?id=8">Magicstar<br/>Magicstar </a> </td>
			<td > <img src="http://img001.static.yohobuy.com/brandLogo/2011/01/24/11/1c6cbd20ac81bbdbac7f8f4396b5a0bdb.gif" alt="Magicstar"> </td>
			<td >单肩包,双肩包</td>
			<td >普通客户</td>
			<td ><span id="curStatus8">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=8" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=8&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(8)" class="but3" id="statusa8"><span id="btntext8">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">7 </td>
			<td > <a href="/brand/view?id=7">东情西韵<br/>dongqingxiyun </a> </td>
			<td > <img src="http://img001.static.yohobuy.com/brandLogo/2011/01/24/11/17db996334bf58458bee76910241b124e.gif" alt="东情西韵"> </td>
			<td >单肩包,双肩包,腰包,挎包,拎包,钱包,专用储物包</td>
			<td >优先客户</td>
			<td ><span id="curStatus7">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=7" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=7&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(7)" class="but3" id="statusa7"><span id="btntext7">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">6 </td>
			<td > <a href="/brand/view?id=6">morncreations<br/>morncreations </a> </td>
			<td > <img src="http://img002.static.yohobuy.com/brandLogo/2011/01/24/11/214b47d656f3f107fac80f0e644f1bbc7.gif" alt="morncreations"> </td>
			<td >单肩包,双肩包,腰包,挎包,拎包</td>
			<td >普通客户</td>
			<td ><span id="curStatus6">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=6" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=6&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(6)" class="but3" id="statusa6"><span id="btntext6">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">5 </td>
			<td > <a href="/brand/view?id=5">ACROSS<br/>ACROSS </a> </td>
			<td > <img src="http://img002.static.yohobuy.com/brandLogo/2011/01/24/11/2cbe585d5999ce978248687f6b153036d.gif" alt="ACROSS"> </td>
			<td >单肩包,双肩包,腰包,挎包,拎包,钱包,专用储物包,洗漱包/化妆包,环保包</td>
			<td >普通客户</td>
			<td ><span id="curStatus5">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=5" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=5&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(5)" class="but3" id="statusa5"><span id="btntext5">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">4 </td>
			<td > <a href="/brand/view?id=4">速写<br/>croquis </a> </td>
			<td > <img src="http://img002.static.yohobuy.com/brandLogo/2011/01/24/11/20b5029917972155aed428fd6fe2c3375.gif" alt="速写"> </td>
			<td >夹克,卫衣,皮鞋,休闲鞋,皮鞋,休闲鞋</td>
			<td >普通客户</td>
			<td ><span id="curStatus4">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=4" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=4&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(4)" class="but3" id="statusa4"><span id="btntext4">关闭</span></a></td>
		</tr>
		
				
				<tr class="F1">
			<td width="40">3 </td>
			<td > <a href="/brand/view?id=3">LACOSTE<br/>LACOSTE </a> </td>
			<td > <img src="http://img002.static.yohobuy.com/brandLogo/2011/01/24/11/2f41b386800db306ba7a2a0e3ca8cbbee.gif" alt="LACOSTE"> </td>
			<td >皮鞋,休闲鞋</td>
			<td >普通客户</td>
			<td ><span id="curStatus3">已开启</span></td>
			<td><a href="/branddimension/series?brand_id=3" class="but2">系列管理</a> &nbsp;<a href="/brand/edit?id=3&ref=/brand?page=1" class="but2">修改</a> 
			<a href="javascript:void(0)" onclick="javascript:changeStatus(3)" class="but3" id="statusa3"><span id="btntext3">关闭</span></a></td>
		</tr>
		
				
				
		    <tfoot>
      <tr>
        <td colspan="8"><div class="pagination"><div class="pagination"><a href="javascript:void(0);">共12条数据</a><a href="javascript:void(0);">第1页/共2页</a><a href="javascript:void(0);" class="act">1</a><a href="?page=2&q=/brand" title="Results 11 - 12">2</a>&nbsp;<a href="?page=2&q=/brand" title="下一页">下一页</a></div></div></td>
      </tr>
    </tfoot>
		
</table>

<script stype="text/javascript">
function changeStatus(id)
{
	var toStatus = 1;
	if($.trim($('#curStatus' + id).html()) == '已开启')
	{
		toStatus = 0;
	}	
	$.getJSON("/brand/changestatus?id="+id+"&tostatus=" + toStatus , function(data)
			{
				if(data.code == 200)
				{
					if($.trim($('#curStatus' + id).html()) == '已关闭')
					{
						$('#curStatus'+id).html('已开启');
						$('#btntext'+id).html('关闭');
						$('#statusa' + id).attr('class','but3');
					}
					else
					{
						$('#curStatus'+id).html('已关闭');
						$('#btntext'+id).html('开启');
						$('#statusa' + id).attr('class', 'but2');
	
		
					}
				}
				else
				{
					alert(data.message);
				}
			});

}
</script></div>
</body>
</html>