<!--#include virtual="/show/adminhead.asp"-->
<!--#include file="adminleft.asp"-->


<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<%
call logquanxian("a4",1)

act=request.form("act")
if act="edit" then
call lognamecode()
ayjihuayy=request.form("ayjihuayy")            'int      清理优惠券     0否 1是
ayjihuaddwei=request.form("ayjihuaddwei")         'int      清理未支付订单 0否 1是
ayjihuaddbai=request.form("ayjihuaddbai")         'int      清理支付失败订单 0否 1是

ayjihuacw=request.form("ayjihuacw")            'int      清理财务记录   0否 1是
ayjihuakami=request.form("ayjihuakami")          'int      清理卡密记录   0否 1是
ayjihuauser=request.form("ayjihuauser")          'int      清理通知记录   0否 1是
ayjihuarizhi=request.form("ayjihuarizhi")         'int      清理日志记录   0否 1是

ayjihuaddday=request.form("ayjihuaddday")         '数字     清理订单天数
ayjihuacwday=request.form("ayjihuacwday")         '数字     清理财务记录天数
ayjihuakamiday=request.form("ayjihuakamiday")       '数字     清理卡密记录天数
ayjihuauserday=request.form("ayjihuauserday")       '数字     清理通知记录天数
ayjihuarizhiday=request.form("ayjihuarizhiday")      '数字     清理日志记录天数
ayjihuaokddday=request.form("ayjihuaokddday") 
if ayjihuayy="" then ayjihuayy=0        
if ayjihuaddwei="" then ayjihuaddwei=0        
if ayjihuaddbai="" then ayjihuaddbai=0         
if ayjihuacw="" then ayjihuacw=0          
if ayjihuakami="" then ayjihuakami=0        
if ayjihuauser="" then ayjihuauser=0        
if ayjihuarizhi="" then ayjihuarizhi=0   
      
sql="select * from ayquanju" 
rs.open sql,conn,1,3
rs("ayjihuayy")=ayjihuayy
rs("ayjihuaddwei")=ayjihuaddwei
rs("ayjihuaddbai")=ayjihuaddbai
rs("ayjihuacw")=ayjihuacw
rs("ayjihuakami")=ayjihuakami
rs("ayjihuauser")=ayjihuauser
rs("ayjihuarizhi")=ayjihuarizhi
rs("ayjihuaddday")=ayjihuaddday
rs("ayjihuacwday")=ayjihuacwday
rs("ayjihuakamiday")=ayjihuakamiday
rs("ayjihuauserday")=ayjihuauserday
rs("ayjihuarizhiday")=ayjihuarizhiday
rs("ayjihuaokddday")=ayjihuaokddday
rs.update
rs.close
call logadd(request.Cookies("aynameid"),"管理-计划任务设置成功",0,0)
call PopErr2("修改成功","adminjihua.asp")
end if


%>

<title><%=webname%>-最高权限-计划任务</title> 

<DIV>

<DIV id=main1200> 
<%call webleft()%>
<DIV id=main_right>
<DIV id=main_right_content>
<STYLE>.apply_style {
	POSITION: absolute
}
.right_title A {
	LINE-HEIGHT: 27px; WIDTH: 126px; DISPLAY: inline-block; BACKGROUND: url(<%=ossurl%>images/bg22.gif) no-repeat; HEIGHT: 27px
}
.right_title A.current {
	BACKGROUND: url(<%=ossurl%>images/main_right_title_bg.gif) no-repeat; COLOR: #fff; FONT-WEIGHT: bold
}
.table_style_1 TD {
	HEIGHT: 38px
}
.table_style_home_info TD {
	PADDING-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 0px; HEIGHT: 30px; PADDING-TOP: 0px
}
.butbaocun{
    background-color: transparent;
    background-image: url("/images/null.png");
	cursor:pointer;
    border: medium none;
    width: 200px;
    height: 30px;
	color: #FFFFFF;
    line-height: 28px;
	font-size:16;
	font-family: "黑体";
}
.butbaocun2{
    background-color: transparent;
    background-image: url("/images/null_hei.png");
	cursor:default;
    border: medium none;
    width: 200px;
    height: 30px;
	color: #FFFFFF;
    line-height: 28px;
	font-size:16;
	font-family: "黑体";
} 
</STYLE>
<script type="text/javascript">
function check_add()
{
   //if(form1.shangid.value=="0")
   //{alert("请选择商品");return false}
   
   
$(".butbaocun").attr("disabled",true);
$(".butbaocun").addClass('butbaocun2');
   //document.form1.tijiao.disabled="disabled";
     
	 
}
</script>
<DIV class=right_titleadmin>&nbsp;&nbsp;计划任务</DIV>
<DIV class=main>
<%
sql="select * from ayquanju" 
rs.open sql,conn,1,1
%>
<form action="?act=edit" method="post" name="form" id="form" onSubmit="return check_add()">
  <TABLE width="99%" border="0" cellpadding="0" cellspacing="0" class=table_style_a1 style="MARGIN: 15px 0px">
  <TBODY>
  <TR>
    <TD colspan="2" align="left" class="border_bottom">&nbsp;&nbsp;<span style="font-weight: bold; font-size: 14px">计划任务</span> <span style="color: #999999">定期清理无用数据,减轻数据库负担</span></TD>
    </TR>
  <TR>
    <TD align="center" class="border_bottom border_right">优惠券清理</TD>
    <TD align="left" class="border_bottom">
      <input name="ayjihuayy" type="checkbox" id="ayjihuayy" value="1" <%if rs("ayjihuayy")=1 then response.Write("checked")%> >
      清理过期优惠券</TD>
  </TR>
  <TR>
    <TD align="center" class="border_bottom border_right">订单记录清理</TD>
    <TD align="left" class="border_bottom">
&nbsp;清理超过 
  <select name="ayjihuaddday" id="ayjihuaddday">
    <option value="1" <%if cint(rs("ayjihuaddday"))=1 then response.Write("selected")%>>1天</option>
	<option value="3" <%if cint(rs("ayjihuaddday"))=3 then response.Write("selected")%>>3天</option>
	<option value="5" <%if cint(rs("ayjihuaddday"))=5 then response.Write("selected")%>>5天</option>
	<option value="10" <%if cint(rs("ayjihuaddday"))=10 then response.Write("selected")%>>10天</option>
	<option value="30" <%if cint(rs("ayjihuaddday"))=30 then response.Write("selected")%>>30天</option>
	<option value="60" <%if cint(rs("ayjihuaddday"))=60 then response.Write("selected")%>>60天</option>
	<option value="90" <%if cint(rs("ayjihuaddday"))=90 then response.Write("selected")%>>90天</option>
	<option value="180" <%if cint(rs("ayjihuaddday"))=180 then response.Write("selected")%>>180天</option>
	<option value="360" <%if cint(rs("ayjihuaddday"))=360 then response.Write("selected")%>>360天</option>
	<option value="720" <%if cint(rs("ayjihuaddday"))=720 then response.Write("selected")%>>720天</option>
  </select>
  的
  <input name="ayjihuaddwei" type="checkbox" id="ayjihuaddwei" value="1" <%if rs("ayjihuaddwei")=1 then response.Write("checked")%> >
  未支付订单  
   
  <input name="ayjihuaddbai" type="checkbox" id="ayjihuaddbai" value="1" <%if rs("ayjihuaddbai")=1 then response.Write("checked")%>>
  支付失败订单</TD>
  </TR>
  <TR>
    <TD align="center" class="border_bottom border_right">成功订单清理</TD>
    <TD align="left" class="border_bottom">
&nbsp;清理超过 
  <select name="ayjihuaokddday" id="ayjihuaokddday">
    <option value="1" <%if cint(rs("ayjihuaokddday"))=1 then response.Write("selected")%>>1天</option>
	<option value="3" <%if cint(rs("ayjihuaokddday"))=3 then response.Write("selected")%>>3天</option>
	<option value="5" <%if cint(rs("ayjihuaokddday"))=5 then response.Write("selected")%>>5天</option>
	<option value="10" <%if cint(rs("ayjihuaokddday"))=10 then response.Write("selected")%>>10天</option>
	<option value="30" <%if cint(rs("ayjihuaokddday"))=30 then response.Write("selected")%>>30天</option>
	<option value="60" <%if cint(rs("ayjihuaokddday"))=60 then response.Write("selected")%>>60天</option>
	<option value="90" <%if cint(rs("ayjihuaokddday"))=90 then response.Write("selected")%>>90天</option>
	<option value="180" <%if cint(rs("ayjihuaokddday"))=180 then response.Write("selected")%>>180天</option>
	<option value="360" <%if cint(rs("ayjihuaokddday"))=360 then response.Write("selected")%>>360天</option>
	<option value="720" <%if cint(rs("ayjihuaokddday"))=720 then response.Write("selected")%>>720天</option>
  </select>
  的支付成功订单
      </TD>
  </TR>
  <TR>
    <TD align="center" class="border_bottom border_right">财务记录清理</TD>
    <TD align="left" class="border_bottom">
	<input name="ayjihuacw" type="checkbox" id="ayjihuacw" value="1" <%if rs("ayjihuacw")=1 then response.Write("checked")%>>
      开启 清理超过
  <select name="ayjihuacwday" id="ayjihuacwday">
	<option value="3" <%if cint(rs("ayjihuacwday"))=3 then response.Write("selected")%>>3天</option>
	<option value="5" <%if cint(rs("ayjihuacwday"))=5 then response.Write("selected")%>>5天</option>
	<option value="10" <%if cint(rs("ayjihuacwday"))=10 then response.Write("selected")%>>10天</option>
	<option value="30" <%if cint(rs("ayjihuacwday"))=30 then response.Write("selected")%>>30天</option>
	<option value="60" <%if cint(rs("ayjihuacwday"))=60 then response.Write("selected")%>>60天</option>
	<option value="90" <%if cint(rs("ayjihuacwday"))=90 then response.Write("selected")%>>90天</option>
	<option value="180" <%if cint(rs("ayjihuacwday"))=180 then response.Write("selected")%>>180天</option>
	<option value="360" <%if cint(rs("ayjihuacwday"))=360 then response.Write("selected")%>>360天</option>
	<option value="720" <%if cint(rs("ayjihuacwday"))=720 then response.Write("selected")%>>720天</option>
  </select>
的财务记录 提示：请选择结算周期以后的天数进行清理 否则影响结算功能 建议最短10天</TD>
  </TR>
  <TR>
    <TD align="center" class="border_bottom border_right">已卖出的卡密清理</TD>
    <TD align="left" class="border_bottom">
      <input name="ayjihuakami" type="checkbox" id="ayjihuakami" value="1" <%if rs("ayjihuakami")=1 then response.Write("checked")%>>
开启 清理超过
  <select name="ayjihuakamiday" id="ayjihuakamiday">
    <option value="1" <%if cint(rs("ayjihuakamiday"))=1 then response.Write("selected")%>>1天</option>
	<option value="3" <%if cint(rs("ayjihuakamiday"))=3 then response.Write("selected")%>>3天</option>
	<option value="5" <%if cint(rs("ayjihuakamiday"))=5 then response.Write("selected")%>>5天</option>
	<option value="10" <%if cint(rs("ayjihuakamiday"))=10 then response.Write("selected")%>>10天</option>
	<option value="35" <%if cint(rs("ayjihuakamiday"))=35 then response.Write("selected")%>>35天</option>
	<option value="65" <%if cint(rs("ayjihuakamiday"))=65 then response.Write("selected")%>>65天</option>
	<option value="90" <%if cint(rs("ayjihuakamiday"))=90 then response.Write("selected")%>>90天</option>
	<option value="180" <%if cint(rs("ayjihuakamiday"))=180 then response.Write("selected")%>>180天</option>
	<option value="360" <%if cint(rs("ayjihuakamiday"))=360 then response.Write("selected")%>>360天</option>
	<option value="720" <%if cint(rs("ayjihuakamiday"))=720 then response.Write("selected")%>>720天</option>
  </select>
的已卖出的卡密</TD>
  </TR>
  <TR>
    <TD align="center" class="border_bottom border_right">会员站内通知清理</TD>
    <TD align="left" class="border_bottom">
      <input name="ayjihuauser" type="checkbox" id="ayjihuauser" value="1" <%if rs("ayjihuauser")=1 then response.Write("checked")%>>
开启 清理超过
  <select name="ayjihuauserday" id="ayjihuauserday">
    <option value="1" <%if cint(rs("ayjihuauserday"))=1 then response.Write("selected")%>>1天</option>
	<option value="3" <%if cint(rs("ayjihuauserday"))=3 then response.Write("selected")%>>3天</option>
	<option value="5" <%if cint(rs("ayjihuauserday"))=5 then response.Write("selected")%>>5天</option>
	<option value="10" <%if cint(rs("ayjihuauserday"))=10 then response.Write("selected")%>>10天</option>
	<option value="30" <%if cint(rs("ayjihuauserday"))=30 then response.Write("selected")%>>30天</option>
	<option value="60" <%if cint(rs("ayjihuauserday"))=60 then response.Write("selected")%>>60天</option>
	<option value="90" <%if cint(rs("ayjihuauserday"))=90 then response.Write("selected")%>>90天</option>
	<option value="180" <%if cint(rs("ayjihuauserday"))=180 then response.Write("selected")%>>180天</option>
	<option value="360" <%if cint(rs("ayjihuauserday"))=360 then response.Write("selected")%>>360天</option>
	<option value="720" <%if cint(rs("ayjihuauserday"))=720 then response.Write("selected")%>>720天</option>
  </select>
的会员站内通知</TD>
  </TR>
  <TR>
    <TD align="center" class="border_bottom border_right">平台日志清理</TD>
    <TD align="left" class="border_bottom">
      <input name="ayjihuarizhi" type="checkbox" id="ayjihuarizhi" value="1" <%if rs("ayjihuarizhi")=1 then response.Write("checked")%>>
开启 清理超过
<select name="ayjihuarizhiday" id="ayjihuarizhiday">
    <option value="1" <%if cint(rs("ayjihuarizhiday"))=1 then response.Write("selected")%>>1天</option>
	<option value="3" <%if cint(rs("ayjihuarizhiday"))=3 then response.Write("selected")%>>3天</option>
	<option value="5" <%if cint(rs("ayjihuarizhiday"))=5 then response.Write("selected")%>>5天</option>
	<option value="10" <%if cint(rs("ayjihuarizhiday"))=10 then response.Write("selected")%>>10天</option>
	<option value="30" <%if cint(rs("ayjihuarizhiday"))=30 then response.Write("selected")%>>30天</option>
	<option value="60" <%if cint(rs("ayjihuarizhiday"))=60 then response.Write("selected")%>>60天</option>
	<option value="90" <%if cint(rs("ayjihuarizhiday"))=90 then response.Write("selected")%>>90天</option>
	<option value="180" <%if cint(rs("ayjihuarizhiday"))=180 then response.Write("selected")%>>180天</option>
	<option value="360" <%if cint(rs("ayjihuarizhiday"))=360 then response.Write("selected")%>>360天</option>
	<option value="720" <%if cint(rs("ayjihuarizhiday"))=720 then response.Write("selected")%>>720天</option>
  </select>
的平台日志清理</TD>
  </TR>
  <TR>
    <TD align="center">&nbsp;</TD>
    <TD align="left"><input class="butbaocun" type="submit" name="Submit" id="tijiao" value=" 保 存 配 置 ">
      <input name="act" type="hidden" id="act" value="edit"></TD>
  </TR>
  <TR>
    <TD colspan="2" align="center">&nbsp;</TD>
  </TR>
  </TBODY></TABLE>
	</form>
	<%rs.close%>


</DIV></DIV>
<DIV class=clear></DIV></DIV>
</DIV>
<SCRIPT>
$(function(){
$('.left_title').each(function(){
   $(this).click(function(){
	   var index=$('.left_title').index(this);
	   if($(this).next().hasClass('hide_m')){
		   $(this).next().removeClass('hide_m');
           $(this).next().show();		 
		   $(this).find('img').attr('src','<%=ossurl%>images/expansion.gif');
		   $.cookie('m_index_'+index,'',{expires:0});
	   } else {
	       $(this).next().hide();
		   $(this).next().addClass('hide_m');
		   $(this).find('img').attr('src','<%=ossurl%>images/shrank.gif');		   
		   $.cookie('m_index_'+index,'none',{expires:365});
	   }
   })
})

$('.left_title').each(function(){
	var index=$('.left_title').index(this);
    $(this).next().css('display',$.cookie('m_index_'+index) ? $.cookie('m_index_'+index) : '');
	if($.cookie('m_index_'+index)){
	    $(this).next().addClass('hide_m');
	}
	$(this).find('img').attr('src',$.cookie('m_index_'+index) ? '<%=ossurl%>images/shrank.gif' : '<%=ossurl%>images/expansion.gif');
})
})

</SCRIPT>


<!--#include virtual="/show/footadmin.asp"-->

