📄 apus003a.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>功能: 编辑push管理</p>
* <p>作者: sxit</p>
* <p>公司: 深训信科</p>
* <p>日期: 2005-12-15</p>
* @版本: 1.0
* @修改:**/
%>
<%
com.sxit.pim.push.Tpush tpush=null;
if(request.getAttribute("tpush")!=null){
tpush=(com.sxit.pim.push.Tpush)request.getAttribute("tpush");
}
String showpath="";
if(request.getAttribute("showpath")!=null){
showpath=request.getAttribute("showpath").toString();
}
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 isEmpty(s){
return ((s == null) || (s.length == 0))
}
function isInBag(s,bag){
var i;
for (i = 0; i < s.length; i++){
var c = s.charAt(i);
if (bag.indexOf(c) == -1) return false;
}
return true;
}
function isNotInBag(s,bag){
var i;
for (i = 0; i < s.length; i++){
var c = s.charAt(i);
if (bag.indexOf(c) > -1) return false;
}
return true;
}
function isGoodChar(content2){
if (isNotInBag(content2," -_.><,[]{}?/+=|\\\'\":;~!@#$%^&()`")) return true;
else return false;
}
function isNumber(content2){
if (isInBag(content2,"0123456789")) return true;
else return false;
}
function isDouble(content2){
if (isInBag(content2,".0123456789")) return true;
else return false;
}
function isLetter(content2){
if (isInBag(content2,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) return true;
else return false;
}
function isLetterNumber(content2){
if (isInBag(content2,"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) return true;
else return false;
}
function isTel(content2){
if (isInBag(content2,",;/()-0123456789 ")) return true;
else return false;
}
//str全部为空格function isSpace(content2){
for(i=0;i<content2.length;i++){
var c=content2.charAt(i);
if(c!=" ") return false;
}
return true;
}
//str为邮件地址function isEMail(content2){
len=content2.length;
pos1=content2.indexOf("@");
pos2=content2.indexOf(".");
if ((pos1<= 0)||(pos1==len)||(pos2<= 0)||(pos2== len)){
return false;
}else{
if((pos1==pos2-1)||(pos1==pos2+1)){
return false;
}
}
return true;
}
function getStringLength(content2){
var num=0;
if (content2!=""){
var i;
var s;
for(i=0;i<content2.length;i++){
s=content2.charCodeAt(i);
if(s-128<0) num=num+1;
else num=num+2;
}
}
return num;
}
function isOneSpace (s)
{
var whitespace = " tnr";
var i;
for (i = 0; i < s.length; i++)
{
var c = s.charAt(i);
if (whitespace.indexOf(c) >= 0)
{
return true;
}
}
return false;
}
function getValue(){
if(isEmpty(document.form1.frommdn.value)){
alert("请输入 ,不能为空!");
document.form1.frommdn.focus();
return false;
}else{
if(isSpace(document.form1.frommdn.value)){
alert("请输入正确 ,不能全部为空格!");
document.form1.frommdn.focus();
return false;
}else{
if(getStringLength(document.form1.frommdn.value)>20){
alert("请输入正确 ,长度为1-20位!");
document.form1.frommdn.focus();
return false;
}
}
}
if(isEmpty(document.form1.tomdn.value)){
alert("请输入 ,不能为空!");
document.form1.tomdn.focus();
return false;
}else{
if(isSpace(document.form1.tomdn.value)){
alert("请输入正确 ,不能全部为空格!");
document.form1.tomdn.focus();
return false;
}else{
if(getStringLength(document.form1.tomdn.value)>20){
alert("请输入正确 ,长度为1-20位!");
document.form1.tomdn.focus();
return false;
}
}
}
if(isEmpty(document.form1.title.value)){
alert("请输入 ,不能为空!");
document.form1.title.focus();
return false;
}else{
if(isSpace(document.form1.title.value)){
alert("请输入正确 ,不能全部为空格!");
document.form1.title.focus();
return false;
}else{
if(getStringLength(document.form1.title.value)>200){
alert("请输入正确 ,长度为1-200位!");
document.form1.title.focus();
return false;
}
}
}
if(isEmpty(document.form1.url.value)){
alert("请输入 ,不能为空!");
document.form1.url.focus();
return false;
}else{
if(isSpace(document.form1.url.value)){
alert("请输入正确 ,不能全部为空格!");
document.form1.url.focus();
return false;
}else{
if(getStringLength(document.form1.url.value)>500){
alert("请输入正确 ,长度为1-500位!");
document.form1.url.focus();
return false;
}
}
}
if(document.form1.status.options[document.form1.status.selectedIndex].value==0){
alert("请选择 ,不能不选!");
document.form1.status.focus();
return false;
}
if(isEmpty(document.form1.result.value)){
alert("请输入 ,不能为空!");
document.form1.result.focus();
return false;
}else{
if(isSpace(document.form1.result.value)){
alert("请输入正确 ,不能全部为空格!");
document.form1.result.focus();
return false;
}else{
if(getStringLength(document.form1.result.value)>200){
alert("请输入正确 ,长度为1-200位!");
document.form1.result.focus();
return false;
}
}
}
if(document.form1.channelid.options[document.form1.channelid.selectedIndex].value==0){
alert("请选择 ,不能不选!");
document.form1.channelid.focus();
return false;
}
if(isEmpty(document.form1.systime.value)){
alert("请输入 ,不能为空!");
document.form1.systime.focus();
return false;
}
if(document.form1.corporationid.options[document.form1.corporationid.selectedIndex].value==0){
alert("请选择 ,不能不选!");
document.form1.corporationid.focus();
return false;
}
document.form1.save.value="save";
return 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="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table1">
<tr class="tr1">
<td>您目前正在push管理-push管理管理-编辑push管理页面</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="table2">
<tr class="tr2">
<td>
<form name="form1" action="../apus/apus003b" method="post" onsubmit="return getValue()" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table3">
<tr>
<td> </td>
</tr>
</table>
<%if(tpush!=null){%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table5">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><input type="hidden" name="save"></td>
</tr>
<tr>
<td align="right" class="td51">
</td>
<td class="td52">
<input type="hidden" name="id" size="20" value="<%=tpush.getId()%>" maxlength="0">
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<input type="text" name="frommdn" size="20" value="<%=tpush.getFrommdn()==null?"":tpush.getFrommdn()%>" maxlength="20" class="text1">
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<input type="text" name="tomdn" size="20" value="<%=tpush.getTomdn()==null?"":tpush.getTomdn()%>" maxlength="20" class="text1">
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<textarea name="title" cols="30" rows="4" class="textarea1"><%=tpush.getTitle()==null?"":tpush.getTitle()%></textarea>
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<textarea name="url" cols="30" rows="4" class="textarea1"><%=tpush.getUrl()==null?"":tpush.getUrl()%></textarea>
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<select name="status" class="select1">
<%if(tpush.getStatus()==2){%>
<option value='0'>请选择</option>
<option value='1'>不用</option>
<option selected value='2'>使用</option>
<%}else{%>
<option value='0'>请选择</option>
<option selected value='1'>不用</option>
<option value='2'>使用</option>
<%}%>
</select>
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<textarea name="result" cols="30" rows="4" class="textarea1"><%=tpush.getResult()==null?"":tpush.getResult()%></textarea>
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<select name="channelid" class="select1">
<%if(tpush.getChannelid()==2){%>
<option value='0'>请选择</option>
<option value='1'>不用</option>
<option selected value='2'>使用</option>
<%}else{%>
<option value='0'>请选择</option>
<option selected value='1'>不用</option>
<option value='2'>使用</option>
<%}%>
</select>
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<input type="text" name="systime" size="20" value="<%=com.sxit.util.SxitTimestamp.getDate(tpush.getSystime())%>" readonly class="text1"><a href="javascript:CalendarWebControl.show(document.form1.elements['systime'],document.form1.elements['systime'].value)">选择日期</a>
</td>
</tr>
<tr>
<td align="right" class="td51">
:
</td>
<td class="td52">
<select name="corporationid" class="select1">
<%if(tpush.getCorporationid()==2){%>
<option value='0'>请选择</option>
<option value='1'>不用</option>
<option selected value='2'>使用</option>
<%}else{%>
<option value='0'>请选择</option>
<option selected value='1'>不用</option>
<option value='2'>使用</option>
<%}%>
</select>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table6">
<tr>
<td>
</td>
</tr>
<tr align="center">
<td><input type="submit" value="发送" class="button1"><input type="button" value="返回" onclick="javascript:history.back(-1)" class="button1">
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<%}else{%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table7">
<tr align="center">
<td>暂时没有push管理信息!
</td>
</tr>
<tr align="center">
<td><input type="button" value="返回" onclick="javascript:history.back(-1)" class="button1">
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<%}%>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -