PageSourceSearch

https://movie.foshang.org/static/js/vaild/qireobj.js

js foshang.org collected 2026-10-09 05:15:01 UTC 15,060 bytes, 477 lines download raw bytes

1pp = null;
2
3function checkAll(objname) {
4	
5	objEvent = getEvent();
6	if (objEvent.srcElement) id = objEvent.srcElement;
7	else id = objEvent.target;
8
9	//alert(id.checked);
10	if (objname != '') {
11		var code_Values = document.getElementsByName(objname);
12		for (i = 0; i < code_Values.length; i++) {
13			if (code_Values[i].type == "checkbox") {
14				code_Values[i].checked = id.checked;
15			}
16		}
17	} else {
18
19		
20		var code_Values = document.getElementsByTagName("input");
21		//alert(code_Values.length);
22		for (i = 0; i < code_Values.length; i++) {
23			
24			if (code_Values[i].type == "checkbox") {
25				code_Values[i].checked = id.checked;
26				
27			}
28		}
29	}
30
31	setupLabel();
32}
33$.extend({
34	refresh: function(url) {
35		window.location.href = url;
36	}
37});
38
39function getEvent() {
40	if (document.all) return window.event;
41	func = getEvent.caller;
42	while (func != null) {
43		var arg0 = func.arguments[0];
44		if (arg0) {
45			if ((arg0.constructor == Event || arg0.constructor == MouseEvent) || (typeof(arg0) == "object" && arg0.preventDefault && arg0.stopPropagation)) {
46				return arg0;
47			}
48		}
49		func = func.caller;
50	}
51	return null;
52}
53jQuery.showfloatdiv = function(ox) {
54	var oxdefaults = {
55		txt: '数据加载中,请稍后...',
56		classname: 'progressBar',
57		left: 410,
58		top: 210,
59		wantclose: 1,
60		suredo: function(e) {
61			return false;
62		},
63		succdo: function(r) {},
64		completetxt: '操作成功!',
65		autoclose: 1,
66		ispost: 0,
67		cssname: 'alert',
68		isajax: 0,
69		intvaltime: 1000,
70		redirurl: '/'
71	};
72	ox = ox || {};
73	$.extend(oxdefaults, ox);
74	$("#qirebox_overlay").remove();
75	$("#qirebox").remove();
76	if (oxdefaults.wantclose == 1) {
77		var floatdiv = $('<div class="qirebox-overlayBG" id="qirebox_overlay"></div><div id="qirebox" class="qirebox png-img"><iframe frameborder="0" class="ui-iframe"></iframe><table class="ui-dialog-box"><tr><td><div class="ui-dialog"><div class="ui-dialog-cnt" id="ui-dialog-cnt"><div class="ui-dialog-tip alert" id="ui-cnt"><span id="xtip">' + oxdefaults.txt + '</span></div></div><div class="ui-dialog-close"><span class="close">关闭</span></div></div></td></tr></table></div>');
78		$("body").append(floatdiv);
79		$("#qirebox_overlay").fadeIn(500);
80		$("#qirebox").fadeIn(500);
81		$("#ui-cnt").removeClass('succ error alert loading').addClass(oxdefaults.cssname);
82		$(".ui-dialog-close").click(function() {
83			$.closefloatdiv();
84		});
85		if (oxdefaults.isajax == 1) {
86			objEvent = getEvent();
87			if (objEvent.srcElement) id = objEvent.srcElement;
88			else id = objEvent.target;
89			var idval = (id.attributes["data"].nodeValue != null && id.attributes["data"].nodeValue != undefined) ? id.attributes["data"].nodeValue : id.data;
90			$.ajax({
91				url: idval,
92				async: true,
93				type: 'get',
94				cache: true,
95				dataType: 'json',
96				success: function(data, textStatus) {
97					if (data.msg != null && data.msg != undefined) {
98						$("#xtip").html(data.msg);
99					} else {
100						$("#xtip").html(oxdefaults.completetxt);
101					}
102					oxdefaults.succdo(data);
103					if (data.wantclose != null && data.wantclose != undefined) {
104						$.hidediv(data);
105					} else if (oxdefaults.autoclose == 1) {
106						$.hidediv(data);
107					}
108					if (data.wantredir != undefined || data.wantredir != null) {
109						if (data.redir != undefined || data.redir != null) {
110							setTimeout("$.refresh('" + data.redir + "')", oxdefaults.intvaltime);
111						} else {
112							setTimeout("$.refresh('" + oxdefaults.redirurl + "')", oxdefaults.intvaltime);
113						}
114					}
115				},
116				error: function(e) {
117					$("#xtip").html('系统繁忙,请稍后再试...');
118				}
119			});
120		}
121	} else if (oxdefaults.wantclose == 2) {
122		objEvent = getEvent();
123		if (objEvent.srcElement) id = objEvent.srcElement;
124		else id = objEvent.target;
125		var idval = (id.attributes["data"].nodeValue != null && id.attributes["data"].nodeValue != undefined) ? id.attributes["data"].nodeValue : id.data;
126		var floatdiv = $('<div class="qirebox-overlayBG" id="qirebox_overlay"></div><div id="qirebox" class="qirebox png-img"><iframe frameborder="0" class="ui-iframe"></iframe><table class="ui-dialog-box"><tr><td><div class="ui-dialog"><div class="ui-dialog-cnt" id="ui-dialog-cnt"><div class="ui-dialog-tip alert" id="ui-cnt"><span id="xtip">' + oxdefaults.txt + '</span></div></div><div class="ui-dialog-todo"><a class="ui-link ui-link-small" href="javascript:void(0);" id="surebt">确定</a><a class="ui-link ui-link-small cancelbt"  id="cancelbt">取消</a><input type="hidden" id="hideval" value=""/></div><div class="ui-dialog-close"><span class="close">关闭</span></div></div></td></tr></table></div>');
127		$("body").append(floatdiv);
128		$("#qirebox_overlay").fadeIn(500);
129		$("#qirebox").fadeIn(500);
130		$(".ui-dialog-close").click(function() {
131			$.closefloatdiv();
132		});
133		$(".cancelbt").click(function() {
134			$.closefloatdiv();
135		});
136		$("#surebt").click(function(e) {
137			if (!oxdefaults.suredo(e)) {
138				$(".ui-dialog-todo").remove();
139				$("#ui-cnt").removeClass('succ error alert').addClass('loading');
140				if (oxdefaults.ispost == 0) {
141					$.ajax({
142						url: idval,
143						async: true,
144						type: 'get',
145						cache: true,
146						dataType: 'json',
147						success: function(data, textStatus) {
148							if (data.msg != null && data.msg != undefined) {
149								$("#xtip").html(data.msg);
150							} else {
151								$("#xtip").html(oxdefaults.completetxt);
152							}
153							oxdefaults.succdo(data);
154							if (data.wantclose != null && data.wantclose != undefined) {
155								$.hidediv(data);
156							} else if (oxdefaults.autoclose == 1) {
157								$.hidediv(data);
158							}
159						},
160						error: function(e) {
161							$("#xtip").html('系统繁忙,请稍后再试...');
162						}
163					});
164				} else {
165					$("#" + oxdefaults.formid).qiresub({
166						curobj: $("#surebt"),
167						txt: '数据提交中,请稍后...',
168						onsucc: function(result) {
169							oxdefaults.succdo(result);
170							$.hidediv(result);
171						}
172					}).post({
173						url: oxdefaults.url
174					});
175				}
176			} else {
177				oxdefaults.succdo(e);
178			}
179		});
180	} else {
181		var floatdiv = $('<div class="qirebox_overlayBG" id="qirebox_overlay"></div><div id="qirebox" class="qirebox"><iframe frameborder="0" class="ui-iframe"></iframe><div class="ui-dialog"><div class="ui-dialog-cnt" id="ui-dialog-cnt"><div class="ui-dialog-box"<div class="ui-cnt" id="ui-cnt">' + oxdefaults.txt + '</div></div></div></div></div>');
182		$("body").append(floatdiv);
183		$("#qirebox_overlay").fadeIn(500);
184		$("#qirebox").fadeIn(500);
185	}
186	$('#qirebox_overlay').bind('click', function(e) {
187		$.closefloatdiv(e);
188		if (pp != null) {
189			clearTimeout(pp);
190		}
191	});
192};
193jQuery.closefloatdiv = function(e) {
194	$("#qirebox_overlay").remove();
195	$("#qirebox").remove();
196};
197jQuery.hidediv = function(e) {
198	var oxdefaults = {
199		intvaltime: 1000
200	};
201	e = e || {};
202	$.extend(oxdefaults, e);
203	if (e.msg != null && e.msg != undefined) {
204		$("#ui-cnt").html(e.msg);
205	}
206	if (parseInt(e.rcode) == 1) {
207		$("#ui-cnt").removeClass('loading error alert').addClass('succ');
208	} else if (parseInt(e.rcode) < 1) {
209		$("#ui-cnt").removeClass('loading alert succ').addClass('error');
210	}
211	pp = setTimeout("$.closefloatdiv()", oxdefaults.intvaltime);
212};
213(function($) {
214	$.fn.qiresub = function(options) {
215		var defaults = {
216			txt: '数据提交中,请稍后...',
217			redirurl: window.location.href,
218			dataType: 'json',
219			onsucc: function(e) {},
220			onerr: function() {
221				$.hidediv({
222					msg: '系统繁忙'
223				});
224			},
225			oncomplete: function() {},
226			intvaltime: 1000
227		};
228		options.curobj.attr('disabled', true);
229		var ox = options.curobj.offset();
230		var options = $.extend(defaults, options);
231		$.showfloatdiv({
232			offset: ox,
233			txt: defaults.txt
234		});
235		var obj = $(this);
236		var id = obj.attr('id');
237		return {
238			post: function(e) {
239				$("#ui-cnt").removeClass('succ error alert').addClass('loading');
240				$.post(e.url, obj.serializeArray(), function(result) {
241					options.curobj.attr('disabled', false);
242					defaults.onsucc(result);
243					if (result.closediv != undefined || result.closediv != null) {
244						$.closefloatdiv();
245					}
246					if (result.wantredir != undefined || result.wantredir != null) {
247						if (result.redir != undefined || result.redir != null) {
248							setTimeout("$.refresh('" + result.redir + "')", options.intvaltime);
249						} else {
250							setTimeout("$.refresh('" + options.redirurl + "')", options.intvaltime);
251						}
252					}
253				}, options.dataType).error(function() {
254					options.curobj.attr('disabled', false);
255					defaults.onerr();
256				}).complete(function() {
257					defaults.oncomplete();
258					options.curobj.attr('disabled', false);
259				});
260			},
261			implodeval: function(e) {
262				val = $("#" + id + " :input").map(function() {
263					if ($(this).attr('name') != '' && $(this).attr('name') != undefined) {
264						return $(this).attr('name') + "-" + $(this).val();
265					}
266				}).get().join("-");
267				return val;
268			},
269			get: function(e) {
270				$(".ui-dialog-todo").remove();
271				$("#ui-cnt").removeClass('succ error alert').addClass('loading');
272				var val = this.implodeval();
273				$.get(e.url + "-" + val, '', function(result) {
274					options.curobj.attr('disabled', false);
275					defaults.onsucc(result);
276					if (result.wantredir != undefined || result.wantredir != null) {
277						if (result.redir != undefined || result.redir != null) {
278							setTimeout("$.refresh(" + result.redir + ")", options.intvaltime);
279						} else {
280							setTimeout("$.refresh(" + options.redirurl + ")", options.intvaltime);
281						}
282					}
283				}, options.dataType).error(function() {
284					options.curobj.attr('disabled', false);
285					defaults.onerr();
286				}).complete(function() {
287					defaults.oncomplete();
288					options.curobj.attr('disabled', false);
289				});
290			}
291		};
292	};
293	$.fn.ajaxdel = function(options) {
294		var defaults = {
295			txt: '数据提交中,请稍后...',
296			redirurl: window.location.href,
297			dataType: 'json',
298			onsucc: function(e) {},
299			onerr: function() {},
300			oncomplete: function() {},
301			intvaltime: 3000
302		};
303		$(".ui-dialog-todo").remove();
304		$("#ui-cnt").removeClass('succ error alert').addClass('loading');
305		var options = $.extend(defaults, options);
306		var ajurl = $(this).attr('url');
307		$.ajax({
308			url: ajurl,
309			success: function(data) {
310				options.onsucc(data);
311			},
312			error: function() {
313				options.onerr();
314			},
315			complete: function() {
316				options.oncomplete();
317			},
318			dataType: 'json'
319		});
320	};
321})(jQuery);
322var qruser;
323var loginhtml;
324
325function qireuser() {};
326qireuser.prototype.urls = new Array(syndomain + '/user-Center-flushinfo', syndomain + '/user-Center-getremindnew');
327if (window.location.href.indexOf('Center') > 0) {
328	qireuser.prototype.parms = new Array('', 'intime-1');
329} else {
330	qireuser.prototype.parms = new Array('inhome-1', 'intime-1');
331}
332qireuser.prototype.gu = function(e) {
333	/*
334	alert(this.urls[0] + '-' + this.parms[0]);
335	$.get(this.urls[0] + '-' + this.parms[0], '', function(result) {
336		if (parseInt(result.rcode) == -7) {
337			$.showfloatdiv({
338				txt: result.msg,
339				classname: 'error'
340			});
341			$.hidediv({
342				rcode: -1,
343				msg: result.msg
344			});
345			return false;
346		}
347		if (result[0] > 0) {
348			qruser = result;
349			if (window.location.href.indexOf('Center') > 0) {
350				$("#" + e.ubox).html(result[1]);
351				$("#" + e.h3).html(result[1]);
352				$("#" + e.logo).attr('src', result[13]);
353				$("#ubox").html(result[14]);
354				$(".logoutbt").click(function(e) {
355					$.showfloatdiv({
356						txt: '正在退出...',
357						cssname: 'loading',
358						isajax: 1
359					});
360					return false;
361				});
362			} else {
363				if (parseInt(result[9]) > 5) {
364					$("#morelog").html('<a target="_blank" href="/user-Center-playlog">查看完整播放记录&gt;&gt;</a>');
365					$("#morelog").show();
366				} else {
367					$("#morelog").html('');
368					$("#morelog").hide();
369				}
370				loginhtml = $("#loginbarx").html();
371				$("#loginbarx").html(result[14]);
372				$("#loginbar").hide();
373				$(".logoutbt").unbind();
374				$(".logoutbt").click(function(e) {
375					$.showfloatdiv({
376						txt: '正在退出...',
377						cssname: 'loading',
378						isajax: 1,
379						succdo: function(r) {
380							clearcookie();
381							try {
382								PlayHistoryObj.viewPlayHistory('playhistory');
383							} catch (e) {}
384							r.wantredir = null;
385							$("#loged").html('');
386							$("#innermsg").html('登录');
387							$("#loginbar").show();
388							$("#loginbarx").html(loginhtml);
389							$("#loginform #loginbt").click(function(e) {
390								try {
391									userlogin();
392								} catch (e) {}
393							});
394						}
395					});
396					return false;
397				});
398			}
399		}
400		if (parseInt(result[11])) {
401			$("#" + e.rbox).html('我的留言<strong>(' + result[11] + ')</strong>');
402		}
403		if (window.location.href.match(/s=(.*)/g) == 's=user-Center') {
404			$("#commnum a").html(result[5]);
405			$("#lovenum a").html(result[6]);
406			$("#remindnum a").html(result[10]);
407			$("#playlognum a").html(result[9]);
408			$("#reviewnum a").html(result[7]);
409			$("#gbnum a").html(result[11]);
410		}
411	}, 'jsonp');
412	*/
413};
414qireuser.prototype.gr = function() {
415	$.get(this.urls[1] + '-' + this.parms[1], '', function(result) {
416		this.r = result;
417		if (parseInt(result[0])) {
418			$("#" + e.rbox).html('订阅更新<strong>(' + result[0] + ')</strong>');
419		}
420	}, 'jsonp');
421}
422qireuser.prototype.ucenter = function() {}
423var qr = new qireuser();
424if (checkcookie()) {
425	qr.gu({
426		ubox: 'unm',
427		rbox: 'innermsg',
428		h3: 'h3',
429		logo: 'userlogo'
430	});
431}
432
433function gqq() {
434	qr.ucenter();
435}
436Date.prototype.pattern = function(fmt) {
437	var o = {
438		"M+": this.getMonth() + 1,
439		"d+": this.getDate(),
440		"h+": this.getHours() == 0 ? 12 : this.getHours(),
441		"H+": this.getHours(),
442		"m+": this.getMinutes(),
443		"s+": this.getSeconds(),
444		"q+": Math.floor((this.getMonth() + 3) / 3),
445		"S": this.getMilliseconds()
446	};
447	var week = {
448		"0": "\u65e5",
449		"1": "\u4e00",
450		"2": "\u4e8c",
451		"3": "\u4e09",
452		"4": "\u56db",
453		"5": "\u4e94",
454		"6": "\u516d"
455	};
456	if (/(y+)/.test(fmt)) {
457		fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
458	}
459	if (/(E+)/.test(fmt)) {
460		fmt = fmt.replace(RegExp.$1, ((RegExp.$1.length > 1) ? (RegExp.$1.length > 2 ? "\u661f\u671f" : "\u5468") : "") + week[this.getDay() + ""]);
461	}
462	for (var k in o) {
463		if (new RegExp("(" + k + ")").test(fmt)) {
464			fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
465		}
466	}
467	return fmt;
468}
469
470function timetodate(tim, dat) {
471	return new Date(parseInt(tim) * 1000).pattern(dat);
472}
473
474function clearcookie() {
475	document.cookie = "qr_u=; path=/;domain=qire123.com;expires=" + (new Date(1970, 1, 1)).toGMTString();
476	document.cookie = "qr_uu=; path=/;domain=qire123.com;expires=" + (new Date(1970, 1, 1)).toGMTString();
477}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.