[财政部会计司] 信息公开
👤 正信亿财税
👁️ 1 浏览
💬 0 评论
🕐 2026-08-22 18:01
//信息公开页下拉框
$(function () {
var s_title = $(".select_box span");
var s_select = $(".select_box li");
var s_input = $(".select_box .zdydiv");
s_title.click(function (e) {
$(this).addClass("span_aa");
$(this).next("ul").show();
e.stopPropagation();
});
s_select.click(function () {
var s_text = $(this).html();
var s_title_2 = $(this).parent('ul').prev("span");
s_title_2.html(s_text).removeClass("span_aa");
$(this).parent('ul').hide();
});
s_input.click(function (e) {
e.stopPropagation();
});
$(document).click(function () {
//alert("111");
s_title.removeClass("span_aa");
$(".select_box ul").hide();
});
});function setZTSearchScope(sCValue) {
$("#zhuti").val(sCValue);
//alert($("#zhuti").val());
}
function setTCSearchScope(sCValue) {
$("#ticai").val(sCValue);
}
function setDWSearchScope(sCValue) {
$("#jigou").val(sCValue);
}
function setTimeScope(type) {
document.searchformji.timescope.value = type;
if (type == "customdate") {
if ($("#sstarttime").val() == "") {
alert("自定义开始时间不能为空!");
return false;
}
if ($("#sendtime").val() == "") {
alert("自定义结束时间不能为空!");
return false;
}
document.searchformji.sStartTime.value = $("#sstarttime").val();
document.searchformji.sEndTime.value = $("#sendtime").val();
}
}
String.prototype.trim = function () {
return this.replace(/^\s*/, "").replace(/\s*$/, "");
};
function checkInput() {
//document.searchform.submit();
var searchword = document.searchformji.searchword.value.trim();
//alert(searchword);
if (searchword != '') {
document.searchformji.submit();
} else {
document.searchformji.searchword.focus();
//alert("检索词不能为空");
alert("关键词不能为空");
return false;
}
}