📄 aeab401.jsp
字号:
<html>
<head>
<title>管理软件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<%@ include file="../aadm/jspheader.jsp"%>
<%@ page contentType="text/html; charset=gb2312" %>
<%
/**
* <p>功能: 企业自由短信</p>
* <p>作者: sxit</p>
* <p>公司: 深训信科</p>
* <p>日期: 2004-11-11</p>
* @版本: 1.0
* @修改:
**/
%>
<%
int yyyy,mm,dd,hh;
java.util.Calendar c=java.util.Calendar.getInstance();
yyyy=c.get(java.util.Calendar.YEAR);
mm=c.get(java.util.Calendar.MONTH) +1;
dd=c.get(java.util.Calendar.DAY_OF_MONTH);
hh=c.get(java.util.Calendar.HOUR_OF_DAY);
int i=0;
int j=0;
%>
<script type="text/javascript" src="/calendar.js"></script>
<script language=javascript>
<!--
var CalendarWebControl = new atCalendarControl();
-->
</script>
<script lanaguage="javascript">
<!--
function getStringLength(str){
var num=0;
if (str!=""){
var i;
var s;
for(i=0;i<str.length;i++){
s=str.charCodeAt(i);
if(s-128<0) num=num+1;
else num=num+2;
}
}
return num;
}
function noChecked() {
var i;
if(document.form1.check!=null){
if(document.form1.check.length!=null){
for(i=0;i<document.form1.check.length;i++){
if(document.form1.check[i].checked==true){
return false;
// break;
}
}
}else{
if(document.form1.check.checked==true) return false;
}
return true;
}
}
function checkSubmit(){
if( document.form1.timer.checked == true)
{
document.form1.Is_Checked.value ='yes'; }
document.form1.action="../aeab/aeab401";
document.form1.save.value="save";
document.form1.submit();
return true;
}
function getCheckAll(){
var i;
var b=0;
if(document.form1.check!=null){
if(document.form1.check.length!=null){
for(i=0;i<document.form1.check.length;i++){
document.form1.check[i].checked=document.form1.selectAll.checked;
}
}else{
document.form1.check.checked=document.form1.selectAll.checked;
}
}
}
function getAdd(){
document.form1.action="../aopm/aopm002";
document.form1.submit();
return true;
}
function getDelete(){
if(noChecked()){
alert("请选择,批量删除需要选择!");
return false;
}
if(!confirm("确定要删除?")){
return false;
}
document.form1.action="../aopm/aopm005";
document.form1.submit();
return true;
}
function getDeleteOne(){
if(!confirm("确定要删除?")){
return false;
}
return true;
}
function disselect(){
var nVal;
nVal = !document.form1.timer.checked;
document.form1.actionyyyy.disabled= nVal;
document.form1.actionmm.disabled= nVal;
document.form1.actiondd.disabled= nVal;
document.form1.actionhh.disabled= nVal;
document.form1.actionmi.disabled= nVal;
}
function checkDate(){
var sd=document.form1.fromDate.value;
var ed=document.form1.toDate.value;
var sd=sd.split("-");
var ed=ed.split("-");
var startDate=new Date(sd[0],sd[1],sd[2]);
var endDate= new Date(ed[0],ed[1],ed[2]);
if(startDate>endDate){
alert("请选择正确的起始日期与结束日期,结束日期不能早于起始日期!");
return false;
}
return true;
}
function submitOnClick()
{
if(getStringLength(document.form1.selectMsg.value)>50){
alert("请输入正确查询内容,长度不能超过50位!");
document.form1.selectMsg.focus();
return false;
}
if(!checkDate()){
return false;
}
return true;
}
function fanYe(str){
document.form1.pageNo.value=str;
return true;
}
//getOnChange()的子方法
function getMonthDay(str){
var i;
i=parseInt(str);
monthArray=new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
return monthArray[i];
}
//处理年月日
function getOnChange(){
var i=1;
var j="";
var selectYear=document.form1.actionyyyy.options[document.form1.actionyyyy.selectedIndex].value;
var selectMonth=document.form1.actionmm.options.selectedIndex;
var selectDay=getMonthDay(selectMonth);
if (selectMonth==1){
if(selectYear%4==0 && (selectYear%100!=0 || selectYear%400==0))
selectDay=29;
}
for (i=document.form1.actiondd.options.length-1;i>=0;i--) {
document.form1.actiondd.options[i]=null;
}
for (i =1;i<=9;i++) {
j=i;
document.form1.actiondd.options[i-1]=new Option(j);
document.form1.actiondd.options[i-1].value="0"+i;
}
for (i =10;i<=selectDay;i++) {
j=i;
document.form1.actiondd.options[i-1]=new Option(j);
document.form1.actiondd.options[i-1].value=i;
}
document.form1.actiondd.options[0].selected = true;
}
//-->
</script>
</head>
<body leftmargin="0" marginwidth="0" marginheight="0" topmargin="0">
<%@ include file="../aadm/menu.jsp"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="table1">
<tr class="tr1">
<td>您目前正在企业短信-企业自由页面</td>
</tr>
</table>
</td>
</tr>
</table>
<TABLE width="95%" border=1 align=center cellPadding=3 cellSpacing=1 bordercolor="#FFFFFF" bgcolor="#DADDE2" class=pt9>
<TBODY>
<form name="form1" action="/aeab/aeab401" method="POST">
<input type="hidden" name="maxlength" value=70 >
<input type="hidden" name="nlist" value=1>
<input type="hidden" name="Is_Checked" value="no">
<input type="hidden" name="save">
<TR>
<TD height="22" align=left bgcolor="#E9ECF0">
发送名单: (多个手机用逗号分隔,可同时发给 20 个号码)
<div align="center" class="style3"></div>
</TD>
</TR>
<TR bgcolor="#FEFEFE">
<TD align=left><INPUT class=input1 type="text" size=50 name=sendto >
<a href="#" onClick="javascript:window.open('/asms/asms726','name','width=350,height=300')">企业短语库</a>
</TD>
</TR>
<TR >
<TD align=left bgcolor="#E9ECF0"> 短信内容: </TD>
</TR>
<TR bgcolor="#FEFEFE">
<TD align=left><textarea class="pt9" name="msgcontent" cols="50" rows="6"></textarea></TD>
</TR>
<TR bgcolor="#FEFEFE">
<TD align=left height="16">
<input name="timer" type="checkbox" id="timer" value="checkbox" onclick="javascript:disselect();" >
<SELECT class=input1 onchange="getOnChange()" name="actionyyyy">
<%
for(i=yyyy;i<=2020;i++){
out.println("<option value='"+i+"'>"+i+"</option>");
}
%>
</SELECT> 年
<SELECT class=input1 onchange="getOnChange()" name="actionmm">
<%
String checkmm = "";
for(i=1;i<=12;i++){
if(i==mm)
checkmm = "selected";
else
checkmm = "";
out.println("<option value='"+i+"' "+checkmm+">"+i+"</option>");
}
%>
</SELECT> 月
<SELECT class=input1 style="MARGIN: -1px; WIDTH: 40px" name="actiondd">
<%
String checkdd = "";
for(i=1;i<=31;i++){
if(i==dd)
checkdd = "selected";
else
checkdd = "";
out.println("<option value='"+i+"' "+checkdd+">"+i+"</option>");
}
%>
</SELECT>日
<SELECT class=input1 style="MARGIN: -1px; WIDTH: 40px" name="actionhh">
<%
String checkhh = "";
for(i=0;i<=23;i++)
{
if(i==hh)
checkhh = "selected";
else
checkhh = "";
out.println("<option value='"+i+"' "+checkhh+">"+i+"</option>");
}
%>
</SELECT> 时
<SELECT class=input1 style="MARGIN: -1px; WIDTH: 40px" name="actionmi">
<script>
for(i=0;i<=59;i++)
{
document.write("<OPTION value='"+i+"'>"+i+"</OPTION>");
}
</script>
</SELECT> 分
</TD>
</TR>
<TR bgcolor="#FEFEFE">
<TD height="29" align=center bgcolor="#FEFEFE"><input class=button1 type=button value=发送 name=Submit522 onClick="return checkSubmit();">
<input class=button1 type=reset value=重填 name=Submit5223></TD>
</TR>
</form></TBODY>
</TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -