<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>会员动态信息</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="js/jquery.min.js" type="text/javascript"></script>	
<script type="text/javascript" src="js/admin.jquery.configuration.js"></script>

<script language="javascript" src="js/global.js"></script>
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script language="javascript">
//获得选中文件的文件名
function getCheckboxItem(){
	 var allSel="";
	 if(document.form1.logs.value) return document.form1.logs.value;
	 for(i=0;i<document.form1.logs.length;i++)
	 {
		 if(document.form1.logs[i].checked){
			 if(allSel=="")
				 allSel=document.form1.logs[i].value;
			 else
				 allSel=allSel+"`"+document.form1.logs[i].value;
		 }
	 }
	 return allSel;	
}

function ReSel(){
	for(i=0;i<document.form1.logs.length;i++){
		if(document.form1.logs[i].checked) document.form1.logs[i].checked = false;
		else document.form1.logs[i].checked = true;
	}
}

function DelSel(){
	 var nid = getCheckboxItem();
	 if(nid==""){
		  alert("请选择项目!\r\n");
		  return ;
	 }
	 location.href = "member_feed_edit.php?dopost=del&ids="+nid;
}

function CheckSel(){
	 var nid = getCheckboxItem();
	 if(nid==""){
		  alert("请选择项目!\r\n");
		  return ;
	 }
	 location.href = "member_feed_edit.php?dopost=check&ids="+nid;
}

function ClearLog(){
	 location.href = "member_feed_edit.php?dopost=clear";
}

function ClearcheckLog(){
	 var obj;   
	 var deltype;
	 obj=document.getElementsByName('dellog');
	 if(obj!=null){
		var i;
		for(i=0;i<obj.length;i++){
			if(obj[i].checked){
				deltype = obj[i].value;           
			}
		}
	 }
	 location.href = "member_feed_edit.php?dopost=clearcheck&dellog=" + deltype;
}
</script>
</head>
<body>
<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
<?php include(DEDEADMIN.'/templets/menu.htm'); ?>
<script language="javascript">
$("#member").addClass("current");$("#member_feed").addClass("current");</script>				

	<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>会员动态信息</h3>
					
					<ul class="content-box-tabs">

					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
<div class="tab-content  default-tab" id="tab1">				
<table width="98%" border="0" cellpadding="2" cellspacing="1" align="center">
  <tr>
    <td colspan="4"><table width="96%" border="0" cellpadding="0" cellspacing="0">

      <form name='formsearch'>
      <input type="hidden" value="<?php echo $ischeck;?>" name="ischeck">
      <input type="hidden" value="feed" name="type">
         时间：
            <select name="dtime">
              <option value="0" selected>--全部--</option>
              <option value="1">今天</option>
              <option value="7">一周内</option>
              <option value="15">15天内</option>
              <option value="30">30天以内</option>
              <option value="60">60天以内</option>
              </select>
            &nbsp;
            <input class="button" name="Submit" type="submit" value="搜索" />
           

        </form>
      </td>
      </tr>
    </table></td>
  </tr>
  <tr align="center" >
    <td height="32" colspan="4" align="left"><span <?php if(empty($ischeck)) echo "class='current'";?>><a href='member_info_main.php?type=feed'>全部(<?php echo $totalnum;?>)</a></span> | <span <?php if($ischeck=='1') echo "class='current'";?>><a href='member_info_main.php?type=feed&ischeck=1'>已审核(<?php echo $checknum;?>)</a></span>| <span <?php if($ischeck=='-1') echo "class='current'";?>><a href='member_info_main.php?type=feed&ischeck=-1'>未审核(<?php echo $ischecknum;?>)</a></span></td>
  </tr>
  <tr align="center" height="26" bgcolor="#FBFCE2">
    <td width="8%">选择</td>
    <td width="11%">ID</td>
    <td>内容</td>
    <td width="15%">时间</td>
  </tr>
  <form name="form1">
    {dede:datalist}
    <tr align="center" bgcolor="#FFFFFF" height="26" >
      <td><input name='logs' type='checkbox' class='np' id="logs" value='{dede:field.fid/}' /></td>
      <td width="11%">{dede:field.fid /} </td>
      <td align="left"><a href="/member/index.php?uid={dede:field.uname /}">{dede:field.uname /}</a> {dede:field.title function='jstrimjajxlog(@me,200)'/} [{dede:field.ischeck function=IsChecklog(@me)/}]</td>
      <td> {dede:field.dtime function="floorTime(time()-@me,@me)" /} </td>
    </tr>
    {/dede:datalist}
  </form>
  <tr>
    <td height="30" colspan="4" bgcolor="#ffffff">&nbsp;
    <input class="button" name="b5" type="button" value="反选" onClick="ReSel();" />

      &nbsp;
      <input class="button" name="b5" type="button" value="审核" onClick="CheckSel();" />

      &nbsp;
       <input class="button" name="b6" type="button" value="删除所选" onClick="DelSel();" />

       </td>
  </tr>
    <tr id="type" >
    <form action="" method="post" name="doform">
      <td height="30" colspan="4" bgcolor="#ffffff" >&nbsp;<strong>特别提醒：</strong> &nbsp;当网站运行一段时间后,网站的会员动态记录表可能存放着大量的记录,为使系统的运行性能更佳,建议一段时间后清理一次。</br>
        &nbsp;<strong>删除范围：</strong> &nbsp;
        <input name="dellog" type="radio" value="7" id="dellog1" checked>
        <label for="dellog1">过去7天</label>
        &nbsp;
        <input name="dellog" type="radio" id="dellog2" value="15">
        <label for="dellog2">过去15天</label>
        &nbsp;
        <input name="dellog" type="radio" id="dellog3" value="30">
        <label for="dellog3">过去30天</label>
        &nbsp;
        <input name="dellog" type="radio" id="dellog4" value="60">
        <label for="dellog4">过去二个月（60天）</label>
        &nbsp;
        <input name="dellog" type="radio" id="dellog5" value="180">
        <label for="dellog5">过去六个月（180天）</label>
        &nbsp;
        <input name="dellog" type="radio" id="dellog6" value="365">
        <label for="dellog6">过去一年</label>
        &nbsp;
        <input class="button" name="b7" type="button" value="清空所选" onClick="ClearcheckLog();" />

        &nbsp;&nbsp;&nbsp;
        <input class="button" name="b8" type="button" value="清空所有记录(慎用)" onClick="ClearLog();" />
    </form>
  </tr>
  <tr bgcolor="#F9FCEF">
    <td height="24" colspan="4" align="center"> {dede:pagelist listsize='5' /} </td>
  </tr>
</table>
							<div class="clear"></div><!-- End .clear -->
							
						
						
					</div> <!-- End #tab1 -->

					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
           <?php include(DEDEADMIN.'/templets/footer.htm'); ?>
			
		</div> <!-- End #main-content -->	
	</div>
</body>
</html>