⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asms603.jsp

📁 WAP PUSH后台源码,WAP PUSH后台源码
💻 JSP
字号:



<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.sql.Date" %>
<%@ page import="java.util.*" %>
<%@ page import="com.sxit.pim.shortmessage.*"%>
<html>
<head>
<title>中国联通青海分公司系统管理软件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../imagesa/style.css" rel=stylesheet type=text/css>
<%
SMSType smstype =null;
if(request.getAttribute("smstype")!=null){
     smstype=(SMSType)request.getAttribute("smstype");
     }
String parentid="";
  if(request.getAttribute("parentid")!=null){
  parentid=(String)request.getAttribute("parentid");     
     
}
%>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function isEmpty(s)
{
	return ((s == null) || (s.length == 0));
}
//str全部为空格
function isSpace(str){
  for(i=0;i<str.length;i++){
    var c=str.charAt(i);
    if(c!=" ") return false;
  }
  return true;
}
//取str的长度
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 getValue()
{

     if(isEmpty(document.form1.typeName.value))
     {
          alert("内容不可为空,请输入!");
          document.form1.typeName.focus();
          return  false;
     }else{
       if(isSpace(document.form1.typeName.value)){
            alert("内容不可全为空格,请输入!");
            document.form1.typeName.focus();
            return  false;
       }
     }
     document.form1.save.value="save";
     document.form1.submit();
     return true;
}
</script>
</head>



<body leftmargin="0" marginwidth="0" marginheight="0" topmargin="0">


 <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="high">
    <tr>

    <td><b>您目前正在短信管理-短信类型采编-<font color="#ff0000">短信类型编辑页面</font></b></td>
    </tr>
  </table>

<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="#000000" height="69">
  <tr bgcolor="#FFFFFF">
      <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="high" align="center" bgcolor="#fef7e9">
          <tr>
            <td width="99">&nbsp;</td>
            <td align="right" width="292">&nbsp;</td>
            <td align="right" width="387">&nbsp;</td>
          </tr>
        </table>
  <form name="form1" method="post"  action="../asms/asms603">
<%if(smstype!=null){
int typeID = 0;
int parentID = 0;
short statusID = 0;
String typeName = "";
typeID = smstype.getTypeID();
parentID = smstype.getParentID();
typeName = smstype.getTypeName();
statusID = smstype.getStatusID();

%>
        <table width="100%" border="0" cellspacing="1" cellpadding="1" align="center" bgcolor="#FFFFFF" class="high">
          <tr bgcolor="#f9f9f7">
            <td width="183" align="right">父 类 型:</td>
            <td width="590">
              <select name="parentID" class="forms">
              <%=parentid%>
              </select>
            </td>
          </tr>
          <tr bgcolor="#f9f9f7">
            <td width="183" align="right">短信类型:</td>
            <td width="590">
              <input type="text" name="typeName" class="forms" size="45" value="<%=typeName%>" maxlength="50">
            </td>
          </tr>
          <tr bgcolor="#f9f9f7">
            <td width="183" align="right">状态:</td>
            <td width="590">
              <select name="statusID">
                <%if(statusID==2){%>
                <option value="1">不用</option>
                <option value="2" selected>启用</option>
                <%}else{%>
                <option value="1" selected>不用</option>
                <option value="2">启用</option>
                <%}%>
              </select>
            </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="high" align="center" bgcolor="#fef7e9">
          <tr>
            <td width="99">&nbsp;</td>
            <td align="right" width="292">&nbsp;</td>
            <td align="right" width="387">&nbsp;</td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            
            <td align="center">
              <input type="hidden" name="typeID" class="forms" value="<%=typeID%>">
            </td>
            <td width="9"><input type="hidden" name="save" class="forms"></td>
          </tr>
          <tr>
            
            <td align="center">
              <input type="button" name="Submit6" value="保存" class="forms" onclick="return getValue()">
              <input type="reset" name="Submit9" value="重填" class="forms">
              <input type="button" name="Button" value="返回" onClick="javascript:history.back(-1)" class="forms">
            </td>
            
          </tr>
          <tr>
            
            <td align="center">&nbsp;</td>
            
          </tr>
        </table>
<%}else{%>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="high" align="center" bgcolor="#fef7e9">
          <tr>
            <td width="99">&nbsp;</td>
            <td align="right" width="292">暂时没有信息</td>
            <td align="right" width="387">&nbsp;</td>
          </tr>
          <tr>
            <td width="99">&nbsp;</td>
            <td align="right" width="292">&nbsp;</td>
            <td align="right" width="387">&nbsp;</td>
          </tr>
          <tr>
            <td width="99">&nbsp;</td>
            <td align="right" width="292">&nbsp;</td>
            <td align="right" width="387">&nbsp;</td>
          </tr>
        </table>
<%}%>
</form>
      </td>
    </tr>
  </table>


</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -