zouzhou1984 2021-01-08 10:48 采纳率: 0%
浏览 50

选择选项后,点击确定无反应?

 

 
































<html style="position: relative; width: 100%; height: 100%; background-image: url(/media/styles/zhanxiao/images/indexBg.png);background-size:100% 100%; background-attachment: fixed;">
<head>
<title>稿件查看</title>
<link rel="stylesheet" href="/media/styles/zhanxiao/css/backStageFrame.css">
<script src="/media/styles/zhanxiao/js/jquery-1.8.3.min.js"></script>
<link href="/media/styles/default/css/text.css" rel="stylesheet" type="text/css">
<link href="/media/styles/default/css/main.css" rel="stylesheet" type="text/css">
<link href="/media/styles/default/css/popwin.css" rel="stylesheet" type="text/css">


<script type="text/javascript" language="javascript" src="/media/styles/js/page.js" ></script>
<script type="text/javascript" language="javascript" src="/media/styles/js/ajax.js"></script>
<script type="text/javascript" language="javascript" src="/media/styles/jquery/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" language="javascript" src="/media/styles/jquery/jquery.hotkeys-0.7.8-packed.js"></script>




<link type="text/css" href="/media/styles/lastyle/easyui-1.5/themes/default/easyui.css" rel="stylesheet" />
<link type="text/css" href="/media/styles/lastyle/easyui-1.5/themes/icon.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/media/styles/lastyle/easyui-1.5/demo/demo.css">


<script type="text/javascript" src="/media/styles/lastyle/easyui-1.5/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/media/styles/lastyle/easyui-1.5/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/media/styles/lastyle/easyui-1.5/jquery.min.js"></script>


<!--[if IE]>
<style type="text/css">
body { behavior:url("/media/styles/default/htc/IE.htc");}
</style>
<![endif]-->


<script language="JavaScript" type="text/JavaScript">
document.write("<style>");
document.write("#__calendar{margin:0;padding:0;background:#FFF}");
document.write("#calendarTable{ margin:0;padding:0;border:1px solid #000;}");
document.write("#calendarTable th,#calendarTable td{margin:0;padding:0px}");
document.write("#calendarTable th ,#calendarTable td{font:12px/20px Arial,sans-serif;text-align:center;}");
document.write("#calendarTable thead th.week{border-top:1px solid #CCC;border-bottom:1px solid #ccc;background:#EEE;}");
document.write("#calendarTable thead tr.function th{border:1px solid #fff}");
document.write("#calendarTable tr{background:#fff}");
document.write("#calendarTable thead tr.top{letter-spacing:1px;}");
document.write("#calendarTable thead a{color:#000;width:19px;height:18px;text-decoration:none;display:block;border:1px solid #ccc;background:#E1F1FF;}");
document.write("#calendarTable tbody a:hover{color:#990;width:19px;height:18px;text-decoration:none;display:block;border:1px solid #ccc;background:#E1F1FF;}");
document.write("#calendarTable thead a.today{width:60px;}");
document.write("#calendarTable thead a.today:hover{width:60px;}");
document.write("#calendarTable td{width:21px;height:20px;border-bottom:1px solid #E6E6E6;color:#fff;}");
document.write("#calendarTable th{height:21px;}");
document.write("#calendarTable tr.com{background:#fff;}");
document.write("#calendarTable tr.cur{background:#F0FAFF;}");
document.write("#calendarTable tbody a{color:#000;width:19px;height:18px;text-decoration:none;display:block;border:1px solid #fff;}");
document.write("#calendarTable tbody a:hover{color:#990;width:19px;height:18px;text-decoration:none;border:1px solid #E6E6E6;background:#E1F1FF;display:block;}");
document.write("#calendarTable tbody a.today{color:#c00;width:100%;border:1px solid #DBDBDB;background:#CCE4FF;}");
document.write("#calendarTable tbody a.today:hover{color:#990;width:100%;border:1px solid #DBDBDB;background:#CCE4FF;}");
document.write("#calendarTable tbody a.week{color:#c00;}");
document.write("#calendarTable select{font:12px/120% Verdana sans-serif;color:#000;padding:0;}");
document.write("<\/style>");
document.write("<div id='__calendar' style='width:149px;height:170px !important;height:185px;position:absolute;display:none;z-index:9998'><\/div>");
document.write("<table cellspacing=\"0\" cellpadding=\"0\" id=\"calendarTable\"><thead><th colspan=\"6\" id=\"sohwdate\"><\/th><th><a href=\"javascript:void(0);\" title=\"关闭\" onclick=\"shut()\">×<\/a><\/th><\/tr><tr class=\"function\"><th><a href=\"javascript:void(0);\" title=\"上一年\" onclick=\"preYear()\">&lt;&lt;<\/a><\/th><th><a href=\"javascript:void(0);\" title=\"上一月\" onclick=\"preMonth()\">&lt;<\/a><\/th><th colspan=\"3\" nowrap><a href=\"javascript:void(0);\" class=\"today\" title=\"今天\" onclick=\"getDate('0')\">今天<\/a><\/th><th><a href=\"javascript:void(0);\" title=\"下一月\" onclick=\"nextMonth()\">&gt;<\/a><\/th><th><a href=\"javascript:void(0);\" title=\"下一年\" onclick=\"nextYear()\">&gt;&gt;<\/a><\/th><\/tr><tr><th class=\"week\">日<\/th><th class=\"week\">一<\/th><th class=\"week\">二<\/th><th class=\"week\">三<\/th><th class=\"week\">四<\/th><th class=\"week\">五<\/th><th class=\"week\">六<\/th><\/thead><tbody id=\"calendarTbody\"><\/tbody><\/table>");
document.write("<iframe id=\"__calframe\" src=\"javascript:false;\" scrolling=\"no\" frameborder=\"0\" style=\"position:absolute;display:none;background-color:#FFF\">&nbsp;<\/iframe>");


var objInput;
var isShow = true;
var focusStatus = true;
var inputDate = "";
var curFlag;
var objouter=document.getElementById("__calendar");
var iframeobj = document.getElementById("__calframe");
var calendarTable = document.getElementById("calendarTable");
objouter.appendChild(calendarTable);


function setday(obj,show){
try{
if(focusStatus){
focusStatus = false;
obj.style.cursor = "text";
obj.readOnly = true;
if (obj.value != ""){inputDate = obj.value;getInputDate();}
curFlag = false;
objInput = obj;
showFormat = false;
if(show != null) showFormat = true;
objouter.style.top =getAbsoluteHeight(objInput)+getAbsoluteTop(objInput) + "px";
objouter.style.left =getAbsoluteLeft(objInput) + "px";
iframeobj.style.width = objouter.style.width;
iframeobj.style.height = objouter.style.height;
iframeobj.style.top = objouter.style.top;
iframeobj.style.left = objouter.style.left;
iframeobj.style.zIndex = objouter.style.zIndex - 1;
iframeobj.style.display = "block";
objouter.style.display = "block";
writeDate();
sohwDate();
}
}catch (e){
alert("error");
}
}


function getAbsoluteHeight(ob){return ob.offsetHeight;}
function getAbsoluteWidth(ob){return ob.offsetWidth;}
function getAbsoluteLeft(ob){var s_el=0;el=ob;while(el){s_el=s_el+el.offsetLeft;el=el.offsetParent;}; return s_el}
function getAbsoluteTop(ob){var s_el=0;el=ob;while(el){s_el=s_el+el.offsetTop ;el=el.offsetParent;}; return s_el}






var daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
var toDay = new Date();
var tempYear = toDay.getFullYear();
var tempMonth = toDay.getMonth();
var tempDate = toDay.getDate();
var startYear = parseInt(toDay.getFullYear() - 100);
var endYear = parseInt(toDay.getFullYear() + 10);
var tbody = document.getElementById("calendarTbody");
var sohwId = document.getElementById("sohwdate");
function getDays(month, year)
{
if (1 == month) return ((0 == year % 4) && (0 != (year % 100))) || (0 == year % 400) ? 29 : 28;
else return daysInMonth[month];
}
function getInputDate()
{
if( validDate())
{
var dateStr = inputDate.split("-");
tempYear = dateStr[0];
tempMonth = dateStr[1] - 1;
tempDate = dateStr[2] - 0;
}
}
function validDate()
{
if(inputDate == "" || inputDate.length != 10 || inputDate.indexOf("-") == -1 ) return false;
var dateStr = inputDate.split("-");
if(dateStr.length != 3) return false;
for(var i=0 ; i<dateStr.length ; i++){
if(isNaN(dateStr[i])) return false;
}
var year = parseInt(dateStr[0]);
var month = dateStr[1];
var day = dateStr[2];
if(year < startYear || year > endYear) return false;
if(month < 1 || month > 12) return false;
if(day < 1 || day > 31) return false;
return true;
}


function writeDate() {
var curCal = new Date(tempYear,tempMonth ,1);
var startDay = curCal.getDay();
var daily = 0;
var today = tempDate;
if ( curFlag ) { if( tempYear != toDay.getFullYear() || tempMonth != toDay.getMonth()) today = -1; }
curFlag = true;
var todayStyle = "";
var weekEndStyle = "";
clear();
var intDaysInMonth =getDays(curCal.getMonth(), curCal.getFullYear());
var weeks = (intDaysInMonth + startDay) % 7 == 0 ? (intDaysInMonth + startDay) / 7 : parseInt((intDaysInMonth + startDay ) / 7) + 1;
if(weeks == 6){ iframeobj.style.display = "none"; iframeobj.style.height = "208px"; iframeobj.style.display = "block"; }else{iframeobj.style.display = "none"; iframeobj.style.height = objouter.style.height; iframeobj.style.display = "block"; }
for (var intWeek = 1; intWeek <= weeks; intWeek++){
var tr = document.createElement("tr");
tr.setAttribute("onmouseover","javascript:this.className='cur'");
tr.setAttribute("onmouseout","javascript:this.className='com'");
tr.onmouseover = function (){this.className = "cur";}
tr.onmouseout = function (){this.className = "com";}
for (var intDay = 0;intDay < 7;intDay++){
var td = document.createElement("td");
if ((intDay == startDay) && (0 == daily))
daily = 1;


if(today == daily) todayStyle="today";


if (intDay == 6 || intDay == 0) weekEndStyle = "week" ;


if ((daily > 0) && (daily <= intDaysInMonth))
{
td.innerHTML = "<a href=\"javascript:void(0);\" class=\""+ weekEndStyle + todayStyle +"\" onclick=\"getDate('"+daily+"')\" title=\""+eval(tempMonth+1)+"-"+daily+"\">" + daily + "<\/a>";
todayStyle = "";
weekEndStyle = "";
daily++;
}else{
td.innerHTML = "&nbsp;";
todayStyle = "";
weekEndStyle = "";
}
tr.appendChild(td);
}
tbody.appendChild(tr);
}
}
function getDate(day){
var year , month ,date;
if(day == "0"){
year = toDay.getFullYear();
month = eval(toDay.getMonth()+1) < 10 ? "0"+eval(toDay.getMonth()+1) : eval(toDay.getMonth()+1);
date = toDay.getDate() < 10 ? "0"+toDay.getDate() : toDay.getDate();
}else{
year = tempYear;
month = eval(tempMonth+1) < 10 ? "0"+eval(tempMonth+1) : eval(tempMonth+1);
date = day < 10 ? "0"+day : day;
}
if (showFormat) {
objInput.value = year + "-" + month;
}else{
objInput.value = year + "-" + month +"-"+ date;
}
calClose();
}
function sohwDate(){
//tempMonth=parseInt(tempMonth);
//sohwId.innerHTML = tempYear + "年" + eval(tempMonth+1) +"月";
var selectYearOption = "";
var selFlag = "";
for(var i=startYear;i<endYear;i++){
if(i == tempYear ){ selFlag = "selected" ; }else{selFlag = "";}
selectYearOption = selectYearOption + "<option value=\""+i+"\"" + selFlag + ">" + i + "<\/option>";
}
var selectYear = "<select onchange=\"seltion(this.options[this.selectedIndex ].value,'Y')\">"+selectYearOption+"<\/select>";
var selectMonthOption = "";
for(var i=0;i<12;i++){
if(i == tempMonth ){ selFlag = "selected" ; }else{selFlag = "";}
selectMonthOption = selectMonthOption + "<option value=\""+i+"\"" + selFlag + ">" + eval(i+1) + "<\/option>";
}
var selectMonth = "<select onchange=\"seltion(this.options[this.selectedIndex ].value,'M')\">"+selectMonthOption+"<\/select>";


sohwId.innerHTML = selectYear + "年" + selectMonth +"月";
}


function seltion(str,flag){
isShow = false;
str = parseInt(str);
if(flag == "Y"){tempYear = str; }
if(flag == "M"){tempMonth = str;}
sohwDate();
writeDate();
}
function preYear(){
isShow = false;
if(tempYear > startYear && tempYear < endYear){
tempYear--;
}else{
alert("年份超出范围(1000-9999)!");
}
sohwDate();
writeDate();
}
function nextYear(){
isShow = false;
if(tempYear > startYear && tempYear < endYear){
tempYear++;
}else{
alert("年份超出范围(1000-9999)!");
}
sohwDate();
writeDate();
}


function preMonth(){
isShow = false;
if(tempMonth >= 1){tempMonth--}else{tempYear--;tempMonth = 11;}
sohwDate();
writeDate();
}
function nextMonth(){
isShow = false;
if(tempMonth == 11){tempYear++;tempMonth = 0}else{tempMonth++}
sohwDate();
writeDate();
}
function clear(){
var nodes = tbody.childNodes;
var nodesNum = nodes.length;
for(var i=nodesNum-1;i>=0;i--) {
tbody.removeChild(nodes[i]);
}
}
function shut(){
calClose();
}
function calClose(){
tempYear = toDay.getFullYear();
tempMonth = toDay.getMonth();
tempDate = toDay.getDate();
clear();
objouter.style.display = "none";
iframeobj.style.display = "none";
objouter.style.top = 0;
objouter.style.left = 0;
iframeobj.style.top = 0;
iframeobj.style.left = 0;
focusStatus = true;
}
function vent(event){
if(document.all){
if(isShow){
if (window.event.srcElement != objouter && window.event.srcElement != objInput && window.event.srcElement.tagName!="SELECT") calClose();
isShow = true;
return;
}
isShow = true;
}else{
if(isShow){
if(event.target != objouter && event.target != objInput && event.target.tagName!="SELECT") calClose();
isShow = true;
}
isShow = true;
}
}
document.onclick = vent;
</script>
</head>
<script type="text/javascript">
function getU(){
var url = document.location+"";
window.open("../help.jsp?url="+url);
}
</script>
<body style="padding:0px; background: none;">




<div class="topBg" style="margin: 0 auto;position: relative;top:30px;">
<ul class="topMenu">


<a href="/media/logout_security_check" target="_top"><li id="menu2"></li></a>
<a href="/media/logout_security_check" target="_top"><li id="menu3"></li></a>
</ul>
</div>


<div id="content" style="position: relative;top:30px;">
<div id="text">
























<script type="text/javascript" src="/media/styles/lastyle/js/jquery-3.1.0.js"></script>
<script type="text/javascript" src="/media/styles/frontLibraries/myjs/transformationStyle.js"></script>


<script type="text/javascript">
var ischeck = false;
function checkForm(){
//alert("aaa");
if(!ischeck){
ischeck=true;
}else{
alert("无需重复提交!");
ischeck=false;
}
return ischeck;
}
</script>


<script type="text/javascript">
$(function(){
$("#confirm").click(function(){


var val = $("input:radio[name='select']:checked").val();
if(val==null){
alert("请选择媒体!");
return false;
}


var industry = $("input:radio[name='industryId']:checked").val();
if(industry==null){
alert("请选择新闻类别!");
return false;
}




$.get("draftSelect.do?",{
select:$("input:radio[name='select']:checked").val(),
draftId:$("input:hidden[name='draftId']").val(),
industryId:$("input:radio[name='industryId']:checked").val()
},function(data){
if("ok"==data) {
alert("成功选取!");
$("#download").show();
}
if("hasSame"==data)
alert("已有人选用!");
});




// $("#form1").submit();
});
});
</script>
<script type="text/javascript" >
function check_radio(){
var media = document.getElementsByName("select");
alert(media.length);
var mediaSelect = false;
for(var i=0;i<media.length;i++){
if(media[i].checked){
mediaSelect = true;
break;
}
}
if(!mediaSelect){
alert("请选择媒体!");
return false;
}


var industry = document.getElementsByName("industryId");
// alert(industry.length);
var industrySelect = false;
for(var i=0;i<industry.length;i++){
if(industry[i].checked){
industrySelect = true;
break;
}
}
if(!industrySelect){
alert("请选择新闻类别!");
return false;
}
document.getElementById("form1").submit();
}
</script>












<script type="text/javascript" charset="utf-8" src="/media/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/media/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/media/ueditor/lang/zh-cn/zh-cn.js"></script>
<link rel="stylesheet" href="/media/ueditor/themes/default/css/ueditor.css"/>
<script type="text/javascript" charset="utf-8" src="/media/ueditor/dialogs/video/video.js"></script>
<script type="text/javascript" charset="utf-8" src="/media/ueditor/ueditor.parse.js"></script>




<div class="title">
<span class="left"><em>素材查看及采用</em></span>
<span class="right">&nbsp;</span>
</div>
<table class="form" cellpadding="0" cellspacing="0">
<tr>
<th>稿件名称</th>
<td colspan="3">煤基清洁能源:“小形式”助力安全培训 “小课堂”推进素质提升</td>
</tr>
<tr>
<th>新闻类别</th>
<td >
安全&nbsp;
</td>
</tr>
<tr>
<th>绩效类别</th>
<td>普通</td>
</tr>
<tr>
<th>素材类型</th>
<td>
有文档
有视频
有图片


</td>
</tr>
<tr>
<th>绩效类别<em class="error">*</em></th>
<td>普通</td>
</tr>
<tr>
<th>素材类型</th>
<td>通联
</td>
</tr>




















<tr>
<th>记者或通讯员 </th>
<td>
<div style="border-bottom:1px solid;">文字记者:;</div><br>
<div style="border-bottom:1px solid;">图片记者:;</div><br>
<div style="border-bottom:1px solid;">音视频记者:;</div><br>
<div style="border-bottom:1px solid;">出镜记者:;</div><br>
采访记者:;</td>
</tr>
















<tr>
<th>添加时间</th>
<td>2021-01-05</td>
</tr>
<tr>
<th>内容</th>
<td class="transformationStyle">














</td>






</tr>
<tr>
<th>上传文件内容(下载请先选用)</th>
<td></td>
</tr>




<form action="draftSelect.do" method="post" id="form1" >


<tr>
<th class="c">采用媒体<em class="star">*</em></th>
<td>
<input name="draftId" value="125717" type="hidden"/>


<input type="radio" value="1" name="select">潞安矿报


<input type="radio" value="2" name="select">潞安广播


<input type="radio" value="3" name="select">潞安电视


<input type="radio" value="5" name="select">潞安官网


<input type="radio" value="6" name="select">潞安官微


<input type="radio" value="7" name="select">直播潞安APP


<input type="radio" value="8" name="select">休闲时光


<input type="radio" value="122" name="select">外宣


<input type="radio" value="142" name="select">媒资


</td>


</tr>
<tr>
<th>新闻类别<em class="star">*</em></th>
<td>




<input type="radio" value="120" name="industryId">时政






<input type="radio" value="122" name="industryId">安全






<input type="radio" value="124" name="industryId">生产经营






<input type="radio" value="126" name="industryId">融资






<input type="radio" value="128" name="industryId">营销






<input type="radio" value="130" name="industryId">改革






<input type="radio" value="132" name="industryId">创新






<input type="radio" value="134" name="industryId">转型




<br>
<input type="radio" value="136" name="industryId">党建






<input type="radio" value="137" name="industryId">党风廉政






<input type="radio" value="138" name="industryId">社会民生






<input type="radio" value="139" name="industryId">环保节能






<input type="radio" value="140" name="industryId">其它




</td>


<tr>
<th>文档下载 </th>
<td colspan="2">


<a href="../common/downloadFile.jsp?id=119603" target="blank">煤基清洁能源:“小形式”助力安全培训 “小课堂”推进素质提升.docx</a>


</td>


<td>


</td>


</tr>
<tr>
<th>视频下载 </th>
<td colspan="2">


<a href="../common/downloadFile.jsp?id=119606" target="blank">煤基清洁能源:“小形式”助力安全培训 “小课堂”推进素质提升.mpg</a>


</td>
<td>


</td>
</tr>
<tr>
<th>音频下载 </th>
<td colspan="3">


</td>
</tr>
<tr>
<th>图片下载 </th>
<td colspan="2">


<a href="../common/downloadFile.jsp?id=119604" target="blank">煤基清洁能源:“小形式”助力安全培训 “小课堂”推进素质提升.zip</a>


</td>
<td>


</td>
</tr>










<td colspan="4">
<div class="buttonc">




<input id="confirm" type="button" class="button" value="确定" >


<input type="button" class="button" value="关闭" onclick="window.close()">
</div>
</td>
</form>






</table>










































































































































</div>
</div>








</body>
</html>

 

  • 写回答

1条回答 默认 最新

  • 逆风飞翔的猿 2021-01-08 11:47
    关注

    点击按钮没反应一般两种情况

    1. 按钮button没有绑定事件,或者绑定的事件名称和你定义的名称不一致
    2. 如果1中的问题不存在,那么就是程序出错了。代码出错,程序就不会继续执行下去。建议F12查看是否报错。
    评论

报告相同问题?

悬赏问题

  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败