ygg.jsp

来自「移动彩信管理平台」· JSP 代码 · 共 142 行

JSP
142
字号
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="../common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>发布公告</title>
<link href="${webctx}/css/style.css" rel="stylesheet" type="text/css" />
<script language="javaScript">
function checkboxselect(itemname,checkstatus) {
 if(!itemname) return;
 if(!itemname.length) {
  itemname.checked=checkstatus;
 } else {
  for(var i=0;i<itemname.length;i++) {
   itemname[i].checked=checkstatus;
  }
 }
}
function check()
{
   if(document.form1.title.value.length==0){
      alert("标题不能为空");
      return false;
  }
  if(document.form1.content.value.length==0)
  {
     alert("内容不能为空");
     return false;
  }
  if(document.form1.content.value.length>1500)
  {
    alert("输入的内容过多");
    document.form1.content.focus();
    return false;
  }
 
}
</script>
</head>
<body>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="8" align="left"><img src="images/pny_01.jpg" width="8" height="25" /></td>
        <td width="80" align="center" background="images/pny_bg.gif" class="psize3">发布公告</td>
        <td width="8" align="right"><img src="images/pny_02.jpg" width="8" height="25" /></td>
      </tr>
    </table></td>
  </tr>
</table>

<form name="form1" action="${webctx}/release.do" method="post"  onsubmit="return check();" enctype="multipart/form-data" style="display: inline">
<table width="98%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
  <tr>
    <td height="180" align="center" valign="top" bgcolor="#FFFFFF"><table width="99%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
      <tr>
        <td height="20" align="left" bgcolor="#CEE8EA" class="psize4">发布对象:</td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#F3F3F3">
        <input type="hidden" name="manager" value="1"/>
         <input type="checkbox" name="manager" value="1" checked disabled/>
          运营商管理员
          <input type="checkbox" name="manager" value="2"/>
          平台管理员
          <input type="checkbox" name="manager" value="3"/>
          客服管理员
       </td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#CEE8EA" class="psize4"> 
         内容提供商:
         <input type="checkbox" name="radiobutton" value="radiobutton"
          onClick="checkboxselect(document.form1.cp, document.form1.radiobutton.checked)"/>全部</td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#F3F3F3">
            <s:iterator value="cpList">
              <input type="checkbox" name="cp" value="<s:property value="userId"/>"/>
              <s:property value="userName"/>
            </s:iterator>
      </tr>
      <tr>
        <td align="left" bgcolor="#CEE8EA" class="psize4">公告主题:
        <input type="text" name="title"/>
        </td>
      </tr>
      <tr>
        <td align="left" bgcolor="#F3F3F3">地&nbsp;&nbsp;&nbsp;&nbsp;区:
          <s:select theme="simple" name="area" list="list" listKey="code" listValue="name" headerKey="0" headerValue="所有地区"  cssStyle="WIDTH: 130px"></s:select>
       </td>
      </tr>
      <tr>
        <td align="left" bgcolor="#CEE8EA">紧急程度:
          <select name="level" onchange="MM_jumpMenu('parent',this,0)"  style="WIDTH: 105px">
            <option value="1" selected="selected">一般</option>
            <option value="2">紧急</option>
            <option value="3">非常紧急</option>
          </select></td>
      </tr>
      
      
      <tr>
        <td height="20" align="left" valign="top"  class="ysize1" bgcolor="#F3F3F3"><span class="psize4">公告内容:</span></td>
      </tr>
      <tr>
        <td height="80" align="left" valign="top" bgcolor="#CEE8EA" class="ysize1">
        <textarea rows="5" cols="60" name="content"></textarea>
        </td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#F3F3F3" class="ysize1">
        	<input type="file" name="doc"/>
          &nbsp;</td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#F3F3F3" class="ysize1">
        	<input type="file" name="doc"/>
          &nbsp;</td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#F3F3F3" class="ysize1">
        	<input type="file" name="doc"/>
          &nbsp;</td>
      </tr>
      <tr>
        <td height="20" align="left" bgcolor="#A6D5D9" class="ysize1">
        <input type="submit" class="pal" value="确认发布" />
         &nbsp;</td>
      </tr>
    </table>
 </td>
 </tr>
</table>
</form>


</body>
</html>

⌨️ 快捷键说明

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