<%@ page language="C#" autoeventwireup="true" inherits="admin_adminproduct, shazhiqiu_freetaoke" %>
<!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" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
-->
</style>
      <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">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">管理商品</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">

    <div class="divtext">
  <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="tablebg"></td>
<td align="center" style="width:60px;" class="tablebg"></td>
<td align="center" style="width:35%;"  class="tablebg">商品名</td>
<td align="center" class="tablebg">分类</td>
<td align="center" class="tablebg">价格</td>
<td align="center" class="tablebg">店铺点出</td>
<td align="center" class="tablebg">商品点出</td>
<td align="center" class="tablebg">时间</td>
<td align="center" class="tablebg">修改</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;' ><a href="/<%=_producturl %>-<%# Eval("productid")%>.html" target="_blank"><%# Eval("productname")%></a></td>
<td align="center"><%# Eval("classname")%></td>
<td align="center"><span style="color:Red"><%# Convert.ToDouble(Eval("productprice")) %></span> 元</td>
<td align="center"><%# Eval("shophot") %></td>
<td align="center"><%# Eval("producthot") %></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;<asp:Button 
        ID="Button1" runat="server" onclick="Button1_Click" Text="置顶" />
&nbsp;<asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="取消" />
&nbsp;<input id="Submit2" runat="server" type="submit" value="删除" class="t1" onserverclick="Submit2_ServerClick" /></td>
</tr>
</table>
    </div>
     </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
    </form>
</body>
</html>