<?php
echo ahead("会员消费记录");
?>
<script type="text/javascript" src="../js/calendar.js"></script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tableBorder">
  <form action="user_paypoint.php" method="post">
  <tr>
    <th height="25">会员消费记录</th>
  </tr>
  <tr>
    <td height=25 class="pl20"><b>管理选项：</b><a href="user_paypoint.php">管理首页</a> | <a href="user_paypoint.php?stype=0">会员消费记录</a> | <a href="user_paypoint.php?stype=1">会员积分记录</a>&nbsp;[<a href="javascript:location.reload()">刷新页面</a>]</td>
  </tr>
  <tr>
    <td height=25 class="pl20">关键字：<input name="keyword" type="text" id="keyword" size="10" value="<?php echo $keyword;?>" />
    搜索字段：<select name="segment" size="1" id="segment">
            <option value="member">会员帐号</option>
			<option value="content">备注说明</option>
          </select>
          操作时间：<input name="adddate" type="text" size="10" id="adddate" value="" onclick="ShowCalendar(this.id)" onfocus="ShowCalendar(this.id)" readonly> <input name="stype" type="hidden" value="<?php echo $stype;?>" /><input name="Submit" type="submit" class="inputs" value="搜索"></td>
  </tr>
  </form>
</table>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableBorder mt6">
<form name="form" action="?" method="post">
<tr>
    <th colspan="7" height="25">会员消费记录</th>
</tr>
<tr align="center"> 
    <td width="5%" height="22">编号</td>
    <td width="13%">会员账号</td>
    <td width="18%">操作时间</td>
    <td width="14%">操作IP</td>
    <td width="5%">操作</td>
    <td width="40%">备注说明</td>
    <td width="5%"><input name="checkSelect" type="checkbox" class="checkbox" onclick="javascript: checkAll(this)" value="checkbox"></td>
</tr>
<?php echo $gblist;?>
<tr><td height="25" align="right" colspan="7"> <input type="hidden" name="ids" value="">
      <input name="button" type="button" class="inputs" onclick="confirmX(1);" value=" 删除 "></td></tr>
<tr>
<td height="25" align="center" colspan="7" class="tdpage"><?php echo $getpageinfo['pagecode'];?></td></tr>
</form>
</table>
<?php
echo acopy();
?>
<script language="javascript">
function confirmX(num)
{
	var ids = document.getElementsByName("id");
	var check=false;
	var allSel="";
	if (ids != null) {
		for (i=0; i<ids.length; i++) 
		{
			var obj = ids[i];
			if (obj.checked==true)
			{
				if(allSel==""){
				allSel=obj.value;
				}else{
				allSel=allSel+","+obj.value;
				}
				form.ids.value = allSel;
				check=true;
				
			}
		}
		if(check==false){alert("请选择操作对象！");return false;}
	}
	if(num==1)
	{
		document.form.action="?do=del";
		document.form.submit();
	}
	return false;	
}
function checkAll(box1) {
    var ids = document.getElementsByName("id");
	if (ids != null) {
		for (i=0; i<ids.length; i++) {
			var obj = ids[i];
			obj.checked = box1.checked;
		}
	}
}
</script>