<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ProductTags.aspx.cs" Inherits="Hidistro.UI.Web.Admin.ProductTags" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.Common.Controls" Assembly="Hidistro.UI.Common.Controls" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.ControlPanel.Utility" Assembly="Hidistro.UI.ControlPanel.Utility" %>
<%@ Register TagPrefix="Hi" Namespace="Hidistro.UI.Common.Validator" Assembly="Hidistro.UI.Common.Validator" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Import Namespace="Hidistro.Core" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentHolder" Runat="Server">

<div class="blank12 clearfix"></div>
<div class="dataarea mainwidth databody">
  <div class="title">
  <em><img src="../images/03.gif" width="32" height="32" /></em>
  <h1>商品标签管理</h1>
  <span>定义商品所属的各个标签，如果在上架商品时给商品指定了标签，则首页会浏览到各标签中所指定的商品</span></div>
  	
		<!-- 添加按钮-->
   <div class="btn"><a href="#" onclick="ShowTags('add',null,null)" class="submit_jia100">添加标签</a></div>
   <div class="batchHandleArea" style="margin-left:10px;">
		<ul>
			<li class="batchHandleButton">
			<%--<span class="signicon"></span>--%>
			
			</li>
		</ul>
</div>
   <br />
   
    
<!--结束-->
		<!--数据列表区域-->
	<div class="datalist">
	<table cellspacing="0" border="0" style="width:100%;border-collapse:collapse;">
		<tr class="table_title"><th scope="col">标签名称</th><th class="td_left td_right_fff" scope="col">操作</th>

		</tr>
		<asp:Repeater ID="rp_prducttag" runat="server">
		<ItemTemplate>
		<tr><td><%# Eval("TagName") %></td>
			<td>
			    <span class="submit_shanchu">
			    <a href="#" onclick="ShowTags('update',<%# Eval("TagID") %>,'<%# Eval("TagName") %>')">编辑</a>
			    <asp:LinkButton ID="btndelete" runat="server" CommandName="delete" CommandArgument='<%# Eval("TagID") %>' OnClientClick="return confirm('确认删除该商品标签？');"  Text="删除"></asp:LinkButton>
			    </span>
             </td>
		</tr>
		</ItemTemplate>
		</asp:Repeater>
		
		</table>
	</div>
</div>
<div class="Pop_up" id="updatetag_div" style="display:none;">
<input type="hidden" id="hdtagId" runat="server" />
  <h1>修改商品标签名 </h1>
    <div class="img_datala"><img src="../images/icon_dalata.gif" width="38" height="20" /></div>
  <div class="mianform">
        <ul id="valueStr1">
          <li>
             <span class="formitemtitle Pw_100">标签名称：<em >*</em></span>
            <asp:TextBox ID="txttagname" CssClass="forminput" runat="server" />  
            <p class="Pa_100"></p>     
          </li>         
        </ul>       
        <ul class="up Pa_100">
          <asp:Button ID="btnupdatetag" runat="server" Text="修 改"  CssClass="submit_DAqueding"  OnClientClick="return isFlagValue1();"/>
        </ul>
  </div>
</div>
<div class="Pop_up" id="addtag_div" style="display:none;">
  <h1>添加商品标签名 </h1>
    <div class="img_datala"><img src="../images/icon_dalata.gif" width="38" height="20" /></div>
  <div class="mianform">
        <ul id="Ul1">
          <li>
             <span class="formitemtitle Pw_100">标签名称：<em >*</em></span>
            <asp:TextBox ID="txtaddtagname" CssClass="forminput" runat="server" />  
            <p class="Pa_100"></p>     
          </li>         
        </ul>       
        <ul class="up Pa_100">
          <asp:Button ID="btnaddtag" runat="server" Text="添 加"  CssClass="submit_DAqueding"  OnClientClick="return isFlagValue1();"/>
        </ul>
  </div>
</div>
<script type="text/javascript" language="javascript">
function  ShowTags(oper,tagId,tagName){
    if(oper=="add"){
        DivWindowOpen(480, 250, 'addtag_div');
    }else{
        $("#ctl00_contentHolder_hdtagId").val(tagId);
        $("#ctl00_contentHolder_txttagname").val(tagName);
        DivWindowOpen(480, 250, 'updatetag_div');
    }
  
}
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="validateHolder" Runat="Server">
       
</asp:Content>
