boradupper.jsp

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

JSP
109
字号
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="../common/taglibs.jsp"%>

<html>
<head>
<link href="${webctx}/css/style.css" rel="stylesheet" type="text/css" />
<SCRIPT language="javaScript" SRC="<%=request.getContextPath()%>/js/validate.js"></SCRIPT>
<SCRIPT language="javaScript" SRC="<%=request.getContextPath()%>/js/fcnclander.js"></SCRIPT>
<script type="text/javascript">
function checkMsg(){
       if(document.getElementById("st").value==""){
           alert("请选择时间");
           return false;
       }
       document.frm.submit();  
   }
function getForm_Value(){
    if(document.frm.mmsType.value==""){
             document.frm.mmsType.value="${mmsType}";
      }
     if(document.frm.startDate.value==""){
             document.frm.startDate.value="${startDate}";
      }
}
function creatework(){
  	if(document.getElementById("st").value==""){
           alert("请选择时间");
           return false;
       }
  	if(window.confirm("确定吗?")){
  		window.open("${webctx}/jsp/boardCreate.jsp?mmsType="+document.frm.mmsType.value+"&startDate="+document.frm.startDate.value);
  	}
  
}
</script>
</head>

<body onLoad="getForm_Value();">
<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="110" 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>

<table width="98%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
  <tr>
    <td height="20" align="center" bgcolor="#FFFFFF">
    <form name="frm" action="${webctx}/checkBoradcast.do" method="post">

    <table width="99%" border="0" cellspacing="1" cellpadding="3" >
      <tr>
        <td height="20" align="left" bgcolor="#FFFFFF" class="psize4">按栏目查询:</td>
      </tr>
      <tr>  
        <td height="20" align="left" bgcolor="#FFFFFF">栏目:
      <s:select theme="simple" name="mmsType" list="list" listKey="sortIndex" listValue="sortName"  headerKey="all" headerValue="所有栏目" cssStyle="WIDTH: 130px">
      </s:select>
                &nbsp; 时间:
       <input type="text" id="st" name="startDate" CLASS="txtInp" readonly="readonly" size="10" maxlength="10" <%if(request.getAttribute("startdate")!=null){%>
						value="<%=request.getAttribute("startdate")%>" <%}%>/>
  <input class="sBtn" type="button" name="selectStartDate" size="20" value="选择日期"  onclick="fPopCalendar(startDate,startDate)"  style="cursor:hand">
          <input type="button" class="pal" value="确定" onclick="checkMsg();"/>
          <input type="reset" class="pal" value="重置" />
          <input type="button" class="pal" value="数据导出" onclick="creatework();"/></td>
        </tr>
    </table>
</form>    

<table width="99%" border="0" cellspacing="1" cellpadding="4" style="border:1px solid #5C92B7;">
        <tr>
          <td height="20" align="center" bgcolor="#A6D5D9" class="psize4">栏目</td>
          <td height="20" align="center" bgcolor="#A6D5D9" class="psize4">截止时间</td>
          <td height="20" align="center" bgcolor="#A6D5D9" class="psize4">总点播量</td>
          <td height="20" align="center" bgcolor="#A6D5D9" class="psize4">短信点播量</td>
          <td height="20" align="center" bgcolor="#A6D5D9" class="psize4">网站点播量</td>
        </tr>
        <s:iterator value="boradList">
        <tr>
          <td height="20" align="center" bgcolor="#F2FAFD">
          <s:property value="sortName"/></td>
          <td height="20" align="center" bgcolor="#F2FAFD">
          <s:property value="month"/></td>
          <td height="20" align="center" bgcolor="#F2FAFD">
          <s:property value="total"/></td>
          <td height="20" align="center" bgcolor="#F2FAFD">
          <s:property value="total"/></td>
          <td height="20" align="center" bgcolor="#F2FAFD">0</td>
        </tr>
        </s:iterator>
        
        <tr>
          <td height="20" align="center" bgcolor="#CEE8EA" class="psize4 psize5">总计</td>
          <td height="20" align="center" bgcolor="#CEE8EA">&nbsp;</td>
          <td height="20" align="center" bgcolor="#CEE8EA">${totalNumber}</td>
          <td height="20" align="center" bgcolor="#CEE8EA">${totalNumber}</td>
          <td height="20" align="center" bgcolor="#CEE8EA">0</td>
        </tr>
         
      </table>

</table>
</body>
</html>

⌨️ 快捷键说明

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