RaUI/Bin/Debug/CommonControls/.NET4/WebUpdateLogs/js/comm.js
zilinsoft b4e236fd55 ### 2025-01-06 星期一更新
------
#### OnLineUpgradeConfig    V1.0.2501.0601
- *.[修复]修复用户管理列表无法默认勾选已选择用户的BUG。
#### RaUI    V4.0.2501.0601
- *.[新增]RyFiles类新增SetFileDate、SetFileCreationTime、SetFileLastWriteTime方法。
- *.[新增]RyFiles.CopyBigFile方法现在会同步来源文件的创建和修改时间。
- *.[新增]ryQuickSQL类新增GetPostData函数,将数据快速转成Post数据。
- *.[改进]执行MySQL下的ExecuteNonQuery时,如果遇到连接关闭错误,允许重连并重新执行。
- *.[改进]IDbInterface在执行新的SQL语句前,自动清空最后错误。
- *.[修复]修复LayeredForm窗体以正常窗体打开的时候,文本框无法编辑的BUG。
- *.[修复]修复ApkOp获取apk权限时可能带乱码的BUG。
- *.[修复]修复WeifenLuo.WinFormsUI.Docking的ResourceManager.GetString路径不对导致报错的BUG。
2025-01-06 11:14:35 +08:00

204 lines
5.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ËÑË÷
$(function(){
$(".so ul li").click(function(){
$(".so ul li").removeClass("hover");
$(this).addClass("hover");
rel = $(this).attr("rel").split("|");
$("#searchType").val(rel[0]);
$("#rootID").val(rel[1]);
});
var pageurl = location.href.toLowerCase().replace("http://www.3h3.com/","").split("/");
var LINK = {"danji" : "2" ,"jieji" : "3" ,"moniqi" : "3" ,"patch" : "4" ,"info" : "5" ,"gl" : "6" ,"meitu" : "7" ,"video" : "8"};
var autos = true;
if(LINK[pageurl[0]])
{
$("#v"+LINK[pageurl[0]]+" a").addClass("hover");
$("#t_m_"+LINK[pageurl[0]]+"").show();
autos = false;
}
if(pageurl[1] && pageurl[1].indexOf("_") > 0)
{
var U = pageurl[1].split("_");
if(U.length == 3)
{
$("#t_m_"+LINK[pageurl[0]]+" a").each(function(){
if($(this).attr("href").indexOf("_"+U[1]+"_") > 0)
{
$(this).addClass("hover");
autos = false;
return false;
}
});
}
}
if(autos)
{
$("#v1 a").addClass("hover");
$("#t_m_2").show();
}
});
function autoSearch()
{
var autooptions;
autooptions = {
serviceUrl:'/ajax.asp',
minChars:1,
delimiter: /(,|;)\s*/, // regex or character
maxHeight:400,
// width:300,
zIndex: 9999,
deferRequestBy: 0, //miliseconds
params: {action:'15' }, //aditional parameters
//default is false, set to true to disable caching
// callback function:
onSelect: function(value, data){
window.location=data;
},
// local autosugest options:
//lookup: ['January', 'February', 'March', 'April', 'May'] //local lookup values
noCache: true
};
if($('#keyword').length>0)
{
var a1 = $('#keyword').autocomplete(autooptions);
}
}
var http_request = true;
function send_request(url,Temp,ref , tb)
{
http_request = false;
if(window.XMLHttpRequest) {
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
}
else if (window.ActiveXObject) { // IEä¯ÀÀÆ÷
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
window.alert("²»ÄÜ´´½¨XMLHttpRequest¶ÔÏóʵÀý.");
return false;
}
http_request.onreadystatechange = ref;
http_request.open("Post", url, tb);
http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
http_request.send(Temp);
}
var isVote=false;
function sEval(softid,num,din,cai,Tpye)
{
if(isVote)
{
alert('ÄúÒѾ­Í¶¹ýƱÁË,Çë²»ÒªÖØ¸´Í¶Æ±,¸ÐлÄúµÄÖ§³Ö!!')
return
}
var Temp="Action=0&softid="+ escape(softid) + "&num=" +escape(num)+"&type="+ Tpye; //·¢Ë͵ÄÊý¾Ý
var RequestFunction=function() { //·µ»Ø´¦Àíº¯Êý
if (http_request.readyState == 4) { // Åж϶ÔÏó״̬
if (http_request.status == 200) { // ÐÅÏ¢ÒѾ­³É¹¦·µ»Ø£¬¿ªÊ¼´¦ÀíÐÅÏ¢
ReadMark(softid,din,cai,Tpye);
alert('ͶƱ³É¹¦!!');
} else { //Ò³Ãæ²»Õý³£
// alert("ÄúËùÇëÇóµÄÒ³ÃæÓÐÒì³£¡£");
}
}
};
send_request("../ajax.asp",Temp,RequestFunction,false);
isVote = true;
}
function ReadMark(softid,din,cai,Tpye)
{
var Temp="Action=1&softid="+ escape(softid)+"&type="+ Tpye; //·¢Ë͵ÄÊý¾Ý
var RequestFunction=function() {
if (http_request.readyState == 4) {
if (http_request.status == 200) {
var TempText=http_request.responseText;
document.getElementById("pding").getElementsByTagName("span")[0].innerHTML = TempText.split("|")[0];
document.getElementById("pcai").getElementsByTagName("span")[0].innerHTML = TempText.split("|")[1];
document.getElementById("rankstar").innerHTML = '<img src="/template/3h3/images/star/'+(TempText.split("|")[2])+'.gif" /><b>'+(TempText.split("|")[3])+'</b>';
} else {
// alert("ÄúËùÇëÇóµÄÒ³ÃæÓÐÒì³£");
}
}
};
send_request("../ajax.asp",Temp,RequestFunction,false);
}
function ngsEval(id,goodid,badid,verid,type)
{
var objgood = $(goodid);
var objbad = $(badid);
//objgood.css({cursor:"pointer"});
ngSendEval(id,goodid,badid,verid,0,type);
objgood.click(function (){ ngSendEval(id,goodid,badid,verid,1,type) ; isVote=true; });
objbad.click(function (){ ngSendEval(id,goodid,badid,verid,2,type); isVote=true; });
}
function ngSendEval(id,goodid,badid,verid,num,type)
{
if(isVote && num>0)
{
alert('ÄúÒѾ­Í¶¹ýƱÁË,Çë²»ÒªÖØ¸´Í¶Æ±,¸ÐлÄúµÄÖ§³Ö!!')
return true;
}
var url="action=3&id="+id+"&num="+num+"&type="+type;
$.ajax({
type: "POST",
url: "/ajax.asp",
data: url,
success: function(msg){
ListEval(goodid,badid,verid,msg);
}
});
}
function ListEval(goodid,badid,verid,msg){
var objgoodb = $(goodid + " strong");
var objbadb = $(badid + " strong");
var dataObj=eval("("+msg+")");
objgoodb.eq(0).html(dataObj.Num[0] );
objbadb.eq(0).html(dataObj.Num[1] );
}
function ViewCmsHits(tobj,id)
{
var obj= document.getElementById(tobj);
var Url="Action=4&id="+ id;
var ref=function()
{
if (http_request.readyState == 4) {
if (http_request.status == 200) {
var requestText=http_request.responseText;
obj.innerHTML = requestText;
} else {
// alert("дÊý¾Ý³ö´íÁË£¡£¡");
}
}
}
send_request("../ajax.asp",Url,ref,true);
}