yxymailList.js 2.2 KB
//页头统计页面
var yxy_daysendmax=0;//日发量上限
var yxy_monthsendmax=0;//月发量上限
var yxy_daysendover=0;//日已发量
var yxy_monthsendover=0;//月已发量

$(document).ready(function() {
	 //$(parent.document).find("#ldt").show();
	//8.查询页头统计
	findCountInfo();

	$(".ctj_1,.ctj_2").click(function(){
		$(".ctj_1").removeClass().addClass("ctj_2");
		$(this).removeClass().addClass("ctj_1");
	})	
});	



//查询页头统计
function findCountInfo(){
	$.ajax({ 
		type: "post", 
		url: "count_findCountPageTop.action", 
		dataType:"json",
		async:false,
	    cache: false,
		success: function(msg) {
			//日发上限
			$("#yxyM_daysendmax").html(msg.daymax);
			yxy_daysendmax=msg.daymax;//日发量上限
			//月发上限
			$("#yxyM_monthsendmax").html(msg.monthmax);
			yxy_monthsendmax=msg.monthmax;//月发量上限
			//日已发量
			$("#yxyM_daysendover").html(msg.daysendnum);
			yxy_daysendover=msg.daysendnum;
			//月已发量
			$("#yxyM_monthsendover").html(msg.monthsendnum);
			yxy_monthsendover=msg.monthsendnum;
			//当日剩余量
			$("#yxyM_dayhavesend").html(msg.daymax-msg.daysendnum);
			//当月剩余量
			$("#yxyM_monthhavesend").html(msg.monthmax-msg.monthsendnum);
		}
	});	
}


//根据语言设置标签及按扭显示文本
function SetLanguage(){
		var languageID="";
		$("[language="+languageName+"]").each(function(i,row){
		 languageID=$(this).attr("languageValue");
		 $(this).text(frontMsg.get(languageValue+"."+languageID));
		 $(this).attr("value",frontMsg.get(languageValue+"."+languageID));
	});
} 

//弹出框
function popTips(name,id,dx){
	showTipsWindown(name, id, dx);
}
function showTipsWindown(title,id,width){
		var hdeight2=$("#"+id).height();
	tipsWindown(title,"id:"+id,width,"100%",hdeight2,"true","","true",id);
		 var pickerOpts1 = {
         changeMonth: true,
         changeYear: true,
         dateFormat: "yy-mm-dd"
        };
}
//关闭层
function confirmTerm(s) {
	closeWindown(s);
}

//什么是点读弹出框
function whyClick(){
	$.weeboxs.open('#whyclickdiv', {
		title:"什么是点读?",
        onopen:function() {
			
		},
		width:700,
		height:300,
		showButton:false,
		oncancel:function(box){
			box.close();//增加事件方法后需手动关闭弹窗
		}
	});
}