📄 fsfs.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<html>
<head>
<title>日程安排--新增</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link href="../include/style.css" rel="stylesheet" type="text/css"/>
<link href="../include/text.css" rel="stylesheet" type="text/css"/>
</head>
<script language="javascript" src="../include/calendar.js"></script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="BACKGROUND-COLOR: transparent">
<form name="form1" method="post" action="">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td class="bg-2" >发送方式</td>
<td bgcolor="#f3f3f3" colspan=3>
<input type="checkbox" id="tx2" name="aa" value="0" />短信<br>
<input type="checkbox" id="tx3" name="aa" value="1"/>系统消息
</td>
</tr>
<tr>
<td class="bg-2" >发送时间</td>
<td bgcolor="#f3f3f3" colspan=3>
<input type="checkbox" id="tx4"/>提前一天<br>
<input type="checkbox" id="tx5"/>提前一小时<br>
<input type="checkbox" id="tx6"/>定时发送 <input type="text" style="cursor:hand" name="setime" onClick="showCal()" size=10/>
<select name="select1">
<script>
for(var i=0;i<=23;i++)
{
if(i<10)i="0"+i;
document.write("<option value='"+i+"'>"+i+"</option>");
}
</script>
</select>
<select name="select2">
<script>
for(var i=0;i<=59;i++)
{
if(i<10)i="0"+i;
document.write("<option value=':"+i+"'>:"+i+"</option>");
}
</script>
</select>
<select name="select3">
<script>
for(var i=0;i<=59;i++)
{
if(i<10)i="0"+i;
document.write("<option value=':"+i+"'>:"+i+"</option>");
}
</script>
</select>
</td>
</tr>
<!--tr>
<td class="bg-2" >提醒内容</td>
<td bgcolor="#f3f3f3" colspan=3>
<textarea name="content" cols="50" rows="3"></textarea></td>
</tr> -->
<tr>
<td align="center" colspan="4" bgcolor="#f3f3f3">
<input name="fanhui" type="button" value="确定" class="btn" onClick="javascript:val()">
<input type="button" value="取消" class="btn" onClick="javascript:window.close();">
</td></tr>
</table>
</td>
</tr>
</table>
</form>
</body>
<script>
function val()
{
l=document.getElementsByName("aa")
var num=0;
for(i=0;i<l.length;i++)
{
if(l[i].checked)
{
num += 1;
}
}
if(num == 0)
{
alert("请选择发送方式!!!")
return false;
}
var TransWay;
var TransWay2 ="";
var TransWay3 ="";
if(document.getElementById("tx2").checked)
TransWay2 = document.getElementById("tx2").value
if(document.getElementById("tx3").checked)
TransWay3 = document.getElementById("tx3").value
if(num==2)
TransWay2 +=","
TransWay = TransWay2 + TransWay3
if(document.form1.setime.value=="")
{
alert("请选择发送时间!!!");
return false;
}
var selectBox = document.form1.select1;
user_input = selectBox.options[selectBox.selectedIndex].value;
var selectBox2 = document.form1.select2;
user_input2 = selectBox2.options[selectBox2.selectedIndex].value;
var selectBox3 = document.form1.select3;
user_input3 = selectBox3.options[selectBox3.selectedIndex].value;
window.opener.form1.sendTime.value = document.form1.setime.value +" "+ user_input + user_input2 + user_input3;
window.opener.form1.TransWay.value = TransWay;
window.close();
}
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -