<%@ page language="VB" autoeventwireup="false" inherits="parrot_admin_user_goods, App_Web_admin_user_goods.aspx.25f04327" %>
<!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>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="JavaScript" src="js/tanbox.js"></script>
 <style type="text/css">
<!--
.redparrot {
	position: absolute;
	text-align: left;
	z-index: 100;
	float: left;
}
-->
   </style>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/body.css" rel="stylesheet" type="text/css" />
<link href="css/text.css" rel="stylesheet" type="text/css" />
<link href="css/button.css" rel="stylesheet" type="text/css" />
<script src="js/intjs.js" type="text/javascript"></script>
<script language="JScript.Encode" src="js/resources_zh_CN.js"></script>
<script language="JScript.Encode" src="js/calendar.js"></script>
<script src="js/web_alt.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    function CheckAll(form) //传一个表单作参数
    {
        for (var i = 0; i < form.elements.length; i++) //对这个表单里的元素进行循环
        {
            var e = form.elements[i]; //一个一个元素判断
            if (e.Name != "checkbox_id" && e.disabled != true) //如果该元素的name属性为chkAll并且disabled!=true.即:该控件可用时.
                e.checked = form.chkAll.checked; //控元素的checked与当前选中的控件checked保持一致.即:全选/全不选.
        }
    } 
	document.oncontextmenu=new Function('event.returnValue=false;');
    </script>
    <style type="text/css">
.mygoods_img_div {
	height: auto;
	width: 236px;
	float: left;
	margin-left: 1px;
}
        </style>
</head>
<body>
<form id="form1" runat="server">
<%  If ubb.query_string("system_goods_obj") <> "True" Then%>
  <table border="0" cellpadding="0" cellspacing="5" class="wuse12">
    <tr>
      <td><asp:DropDownList ID="select_g_site" runat="server">
          <asp:ListItem>使用方式</asp:ListItem>
          <asp:ListItem>订单运算</asp:ListItem>
          <asp:ListItem>自定使用</asp:ListItem>
        </asp:DropDownList>
      </td>
      <td><asp:DropDownList ID="select_g_manner" runat="server">
          <asp:ListItem>运算对象</asp:ListItem>
          <asp:ListItem>订单金额</asp:ListItem>
          <asp:ListItem>运输费用</asp:ListItem>
          <asp:ListItem>会员积分</asp:ListItem>
          <asp:ListItem>会员等级</asp:ListItem>
        </asp:DropDownList>
      </td>
      <td><asp:DropDownList ID="select_g_equation" runat="server">
          <asp:ListItem>运算方式</asp:ListItem>
          <asp:ListItem>修改</asp:ListItem>
          <asp:ListItem>累加</asp:ListItem>
          <asp:ListItem>递减</asp:ListItem>
          <asp:ListItem>乘以</asp:ListItem>
        </asp:DropDownList>
      </td>
      <td><asp:TextBox ID="select_g_effective_time" runat="server" Width="70px"  onclick="showCalendar(this,document.form1.select_g_effective_time)"
      onfocus="if(this.value=='有效时间'){this.value='';}"  
      onblur="if(this.value==''){this.value='有效时间';}" value="有效时间"></asp:TextBox>
      </td>
      <td><asp:DropDownList ID="select_g_effective" runat="server">
          <asp:ListItem>筛选状态</asp:ListItem>
          <asp:ListItem>有效</asp:ListItem>
          <asp:ListItem>无效</asp:ListItem>
          <asp:ListItem>已使用</asp:ListItem>
          <asp:ListItem>已过期</asp:ListItem>
        </asp:DropDownList>
      </td>
      <td><asp:TextBox ID="select_string" runat="server" 
                                          onfocus="if(this.value=='请输入筛选关键字...'){this.value='';}"  
                                          onblur="if(this.value==''){this.value='请输入筛选关键字...';}"  value="请输入筛选关键字..." 
                                          Width="150px" ></asp:TextBox>
      </td>
      <td><asp:Button ID="select_button_ok" runat="server" CssClass="btn" Text="提交筛选" width="60"/>  
      </td>
      <td><asp:Button ID="select_button_False" runat="server" CssClass="btn" Text="取消筛选" width="60"/>  
      </td>
    </tr>
  </table>
  <%End If%>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><asp:Repeater ID="repeater_admin_goods" runat="server">
          <ItemTemplate>
            <div class="mygoods_img_div">
              <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="8"><img src="image/img_i1.gif" width="8" height="8" /></td>
                  <td background="image/img_i2.gif"><img src="image/img_i2.gif" width="8" height="8" /></td>
                  <td width="8"><img src="image/img_i3.gif" width="8" height="8" /></td>
                </tr>
                <tr>
                  <td background="image/img_i8.gif"><img src="image/img_i8.gif" width="8" height="8" /></td>
                  <td><a href="../file_document/jifen.JPG" target="_blank"> </a>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="huise12">
                              <tr>
                                <td width="9%"><input name="checkbox_id" type="checkbox" id="checkbox_id" value="<%#Eval("g_id")%>" /></td>
                                <td width="68%" align="center"><%# Eval("g_name")%></td>
                                <td width="23%" align="right">No.：<%#Eval("g_id")%></td>
                              </tr>
                              <tr>
                                <td colspan="3"><a onmouseover="wsug(event, '<table width=190 border=0 cellpadding=0 cellspacing=0 class=wuse12><tr><td width=80 height=20 align=center>所属会员：</td><td><%#Eval("g_user_id")%></td></tr><tr><td height=20 align=center>使用方式：</td><td><%#Eval("g_site")%></td></tr><tr><td height=20 align=center>运算对象：</td><td><%#Eval("g_manner")%></td></tr><tr><td height=20 align=center>运算方式：</td><td class=hongse12><%#Eval("g_equation")%></td></tr><tr><td height=20 align=center>运算单位：</td><td class=lanse12><%#Eval("g_quantity")%></td></tr><tr><td height=20 align=center>使用下限：</td><td class=lanse12><%#Eval("g_use_fw")%></td></tr><tr><td height=20 align=center>创建时间：</td><td class=huise12><%#Eval("g_add_time")%></td></tr><tr><td height=20 align=center>使用时间：</td><td><%#Eval("g_use_time")%></td></tr><tr><td height=20 align=center>发放时间：</td><td><%#Eval("g_outuser_time")%></td></tr></table>')" onmouseout="wsug(event, 0)"><%#Eval("g_img_url")%></a></td>
                              </tr>
                              <tr>
                                <td height="19" colspan="2" valign="bottom">有效至：<%# Eval("g_effective_time")%></td>
                                <td align="right" valign="bottom"><%# Eval("g_effective").ToString.Replace("有效", " <font color=#0000ff>有效</font>")%></td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  <td background="image/img_i4.gif"><img src="image/img_i4.gif" width="8" height="0" /></td>
                </tr>
                <tr>
                  <td><img src="image/img_i7.gif" width="8" height="8" /></td>
                  <td background="image/img_i6.gif"><img src="image/img_i6.gif" width="8" height="8" /></td>
                  <td><img src="image/img_i5.gif" width="8" height="8" /></td>
                </tr>
              </table>
            </div>
          </ItemTemplate>
      </asp:Repeater></td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="5" class="wuse12">
    <tr>
      <td width="20"><input name="chkAll" type="checkbox" id="chkAll" onclick="CheckAll(this.form)" value="checkbox" style="border:0" /></td>
      <td width="55">全选/反选</td>
      <%  If ubb.query_string("system_goods_obj") <> "True" Then%>
      <td width="68"><asp:Button ID="goods_fafang_false" runat="server" CssClass="btn" Text="批量回收" />  
      </td>
       <td width="68"><asp:Button ID="g_goods_use_True" runat="server" CssClass="btn" Text="批量使用" />  
      </td>
      <td width="68"><asp:Button ID="g_site_false" runat="server" CssClass="btn" Text="批量无效" />  
      </td>
      <td width="68"><asp:Button ID="g_site_true" runat="server" CssClass="btn" Text="批量有效" />  
      <%else%>
      <td width="68"><asp:Button ID="goods_fafang" runat="server" CssClass="btn" Text="批量发放" />  
      </td>
      <%end if %>
      </td>
      <td width="68"><asp:Button ID="g_fuzhi" runat="server" CssClass="btn" Text="批量复制" />  
      </td>
      <td align="right"><%  If ubb.query_string("system_goods_obj") <> "True" Then%><a href="?user_id=<%=ubb.query_string("user_id")%>&system_goods_obj=True">显示系统未分配的物品</a><%else%><a href="?user_id=<%=ubb.query_string("user_id")%>&system_goods_obj=False">显示当前会员所有物品</a><%end if %></td>
    </tr>
  </table>
</form>
</body>
</html>