<%@ page language="C#" autoeventwireup="true" inherits="admin2_sp5a, GJ_YM" enableviewstatemac="false" enableEventValidation="false" %>
<%@ Register Src="spcz.ascx" TagName="spcz" TagPrefix="cz" %>
<head><title>无标题页</title></head><link href="css/yb.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/sbyk.js" ></script><script language="javascript" src="js/db.js" ></script>
<script language="javascript" src="js/xzrl.js" ></script>
<body>
<form id="form1" runat="server">
<script  language=javascript>
function jssc(cz,id)
{
document.getElementById("hid_cz").value=cz;
document.getElementById("hid_xz").value=id;
sendRequest('sp5c.aspx?h='+id,'sp5a.aspx?id='+id);
}
</script>
<input type="hidden" name="hid_xz" id="hid_xz" /><input type="hidden" name="hid_cz" id="hid_cz" /><cz:spcz runat="server" id="ffff"/>
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2"  style="margin-bottom:5px;">
<tr style="background-color:#f2f2f2;"><td >
<div class="bt"><asp:label ID="btxs" runat="server" text="添加返赠送促销 "></asp:label>
<span style="margin-left:30px;font-weight:normal;"><a href="sp5.aspx?id=<%=idc%>">返回规格列表</a></span>
<span style="margin-left:30px;font-weight:normal;"><a href="sp1.aspx">商品列表</a></span>
</div>
</td></tr></table>

<asp:Repeater ID="Repeater1" runat="server"><HeaderTemplate>
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2" id="yygg">
<tr style="background-color:#e2e2e2;"><td style="padding:2px;" colspan="2">已有规格</td>
</tr>
<tr style="background-color:#f2f2f2;">
<td>规格名称</td><td >可选值</td><td>操作</td></tr></HeaderTemplate><ItemTemplate>
<tr id="div<%#Eval("fcid") %>" bgcolor="#f2f2f2">

<td><%#rsd(Eval("fcmc").ToString())%></td>
<td><%#rsd(Eval("fczx").ToString())%></td>
<td><%#ghxs(Eval("fcid").ToString())%></td>
</tr></ItemTemplate><FooterTemplate></table></FooterTemplate></asp:Repeater>

<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2"  style="margin-bottom:10px;" id="yygg2">
<tr style="background-color:#ffffff;"><td >
<asp:Label ID="nodate" runat="server" Text=""></asp:Label>
</td></tr></table>

<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2"  style="margin-bottom:5px;">
<tr style="background-color:#e2e2e2;"><td style="padding:2px;" colspan="2">新增规格</td>
</tr>

<tr style="background-color:#ffffff;"><td align="right" style="padding:8px;">规格名称：</td>
<td > <asp:TextBox ID="TextBox1" runat="server" Width="136px" ></asp:TextBox> 如：颜色/尺码等</td></tr>

<tr style="background-color:#ffffff;"><td align="right" style="padding:8px;">可 选 值：</td>
<td > <asp:TextBox ID="TextBox2" runat="server" Width="236px" ></asp:TextBox><br /> 如：红色，蓝色，绿色或均码，S，M，L，XL等，每个可选值用逗号区隔</td></tr>

</table>

<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#e2e2e2"  style="margin-top:5px;">
<tr style="background-color:#f2f2f2;"><td >

<input id="Button1" type="button" value="添加" onclick="jssc('4','<%=idc%>');" style="width:80px;" onfocus="this.blur();" />

</td></tr></table>    
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<%=rfh()%>
</form>
</body>