<%@ page language="C#" autoeventwireup="true" inherits="admin_adminproduct, shazhiqiu_taoke_free" %>
<!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>
    <title></title>
<link href="images/skin.css" rel="stylesheet" type="text/css" />

      <script src="fenye.js" type="text/javascript"></script> 
<script language="javascript" type="text/javascript">
function Cbg(obj, objColor)
{
obj.style.backgroundColor=objColor
}
function CheckAll(form){
for (var i=0;i<form.elements.length;i++){
var e = form.elements[i];
if (e.name != 'chkAll')
e.checked = form.chkAll.checked;
}
}
</script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="divtext">
    <div class="righttitle"><img src="images/biaoti.png" /> 管理商品</div>
    <table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" style="margin-top:10px;" border="0">
<tr><td align="left" class="tablexianbg">
    搜索：<asp:TextBox ID="keywords" runat="server"></asp:TextBox>
&nbsp;<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="搜索" CssClass="button" />
    &nbsp;按商品名或者网站搜索</td></tr>
</table>
  <asp:Repeater ID="Repeater1" runat="server"  OnItemCreated="Repeater1_ItemCreated">
<HeaderTemplate>
<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" border="0">
<tr>
<td align="center" style="width:5%;" class="tablexianbg"></td>
    <td align="center" style="width:60px;" class="tablexianbg">图片</td>
<td align="center" style="width:30%;"  class="tablexianbg">商品名</td>
<td align="center"  style="width:15%;" class="tablexianbg">网站</td>
<td align="center" class="tablexianbg">价格</td>
<td align="center" class="tablexianbg">数量</td>
<td align="center" class="tablexianbg">时间</td>
<td align="center" class="tablexianbg">修改</td>


</tr>
</HeaderTemplate>
<ItemTemplate>
<tr onmouseover="Cbg(this, 'F2F2F2')" onmouseout="Cbg(this, 'ffffff')">
<td align="center"><input id="xuan" type="checkbox" class="checkbox"  runat="server"/><input id="productid" type="hidden"  runat="server" value='<%# Eval("productid") %>'/> <input id="productpic" type="hidden"  runat="server" value='<%# Eval("productpic") %>'/></td>
    <td align="center"><img src="/<%# Eval("productid")%>-50-50.jpeg" /></td>
<td align="left" style='line-height:20px;' ><%# Eval("productname")%></td>
<td align="center"><%# Eval("siteurl")%></td>
<td align="center" ><span style="color:Red"><%# Convert.ToDouble(Eval("productprice")) %></span>元</td>
<td align="center" ><%# Eval("productsum") %></td>
<td align="center"><%# Eval("producttime") %></td>
<td align="center"><a href="editproduct.aspx?productid=<%# Eval("productid")%>">【修改】</a></td>


</tr>
</ItemTemplate>
<FooterTemplate>
</table>  
</FooterTemplate>
</asp:Repeater>   
<table cellspacing="0" cellpadding="0" width="100%"  class="tablexian" style="margin-top:10px;" border="0">
<tr><td align="left">
    <asp:Label ID="fenye" runat="server"></asp:Label></td></tr>
<tr style="height:25px;">
<td align="left">
全选：<input type="checkbox" name="chkAll" class="checkbox" value="on" onclick="CheckAll(this.form)" />&nbsp;<input id="Submit2" runat="server" type="submit" value="删除" class="button" onserverclick="Submit2_ServerClick" /></td>
</tr>
</table>
    </div>

    </form>
</body>
</html>