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

📄 checkinmanage.jsp

📁 jsp网站
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="com.sunny.s3fornetoffice.*,com.sunny.currency.*,java.util.*" %>

<%Session m_session = new Session(session);%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
<title>预约登记管理-- S3 </title>
<link href="../css/txt.jsp" rel="stylesheet" type="text/css">
<script language="JavaScript" src="/js/changestyle.js"></script>
</head>

<body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  <%
    Request m_request = new Request(request);
    int iPageSize = 18;
    int iPage = m_request.GetInt("Page");
    String strCurrentPageURL = request.getRequestURI();
    
	String strIDs = m_request.GetString("ID");
    //String strMultUserID = m_request.GetString("MultUserID");
    //String strMultSysID = m_request.GetString("MultSysID");
	
	
    String strYYWTRXM = m_request.GetString("YYWTRXM");
    String strNGMCPMC = m_request.GetString("NGMCPMC");
    String strNGMJE = m_request.GetString("NGMJE");
    String strDZ = m_request.GetString("DZ");
    String strDH = m_request.GetString("DH");
    String strDZYX = m_request.GetString("DZYX");
    String strGMFS = m_request.GetString("GMFS");
    String strSFXYQTBZ = m_request.GetString("SFXYQTBZ");
	String strYYRQ=m_request.GetString("YYRQ");
    String strOrderBy=m_request.GetString("OrderBy");
    String strIsDesc=m_request.GetString("IsDesc");
 // out.print("<script language='javascript'>alert('"+strOrderBy+"');</script>");
  //out.print("<script language='javascript'>alert('"+strIsDesc+"');</script>");
    String strOrderArrow="↑";
    if(strIsDesc.equalsIgnoreCase("True"))
    {
      strOrderArrow="↓";
    }
    else
    {
      strOrderArrow="↑";
    }
  %>
<script language="JavaScript">
function changeorder(orderBy)
{
  with(document.WebSiteCheckinNextPage)
  {
    if(OrderBy.value==orderBy)
    {
      if(IsDesc.value=="")
    {
        IsDesc.value="True";
    }
      else
    {
        IsDesc.value="";
    }
    }
    else
    {
      OrderBy.value=orderBy;
      IsDesc.value="";
      Page.value="1";
    }
  }
  document.WebSiteCheckinNextPage.submit();
}
   function changepage(pageNum)
   {
      with(document.WebSiteCheckinNextPage)
        {
    Page.value=pageNum;
         }
      document.WebSiteCheckinNextPage.submit();
    }
function checkWebSiteCheckin()
{
  var isIDCheck = false;
  var isIDCheck = false;

  with(document.WebSiteCheckin)
  {
    try
    {
      for(i=0;i<elements.length;i++)
      {
        if(elements[i].type=="checkbox"&&elements[i].name=="ID")
        {
          if(elements[i].checked)
          {
            isIDCheck = true;
            break;
          }
        }
      }
    }
    catch(ex)
    {
    }
  }
  if(!isIDCheck)
  {
    alert("请先选择预约登记,再进行删除操作!");
    return false;
  }
  return window.confirm('确实要删除这些预约登记吗?');
}

function checktall()
{
  var allselect=true;
  with(document.WebSiteCheckin)
  {
    if(selectall.value=="全部选择")
    {
      allselect = true;
      selectall.value="全部取消";
    }
    else
    {
      allselect = false;
      selectall.value="全部选择";
    }
    for(i=0;i<elements.length;i++)
    {
      if(elements[i].type=="checkbox")
        elements[i].checked = allselect;
    }
  }
}
</script>
  <table width="100%" height="100%" border="0" align="center" cellspacing="0">
    <tr>
    <td align="center" valign="top"><p>&nbsp;</p>
      <form name="WebSiteCheckinNextPage" action="<%=strCurrentPageURL%>" method="post">
        <input name="Page" type="hidden" value="<%=iPage%>">
        <input name="ID" type="hidden" value="<%=strIDs%>">
        <input name="YYWTRXM" type="hidden" value="<%=strYYWTRXM%>">
        <input name="NGMCPMC" type="hidden" value="<%=strNGMCPMC%>">
        <input name="NGMJE" type="hidden" value="<%=strNGMJE%>">
        <input name="DZ" type="hidden" value="<%=strDZ%>">
        <input name="DH" type="hidden" value="<%=strDH%>">
        <input name="DZYX" type="hidden" value="<%=strDZYX%>">
        <input name="GMFS" type="hidden" value="<%=strGMFS%>">
        <input name="SFXYQTBZ" type="hidden" value="<%=strSFXYQTBZ%>">
        <input name="YYRQ" type="hidden" value="<%=strYYRQ%>">
        <input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
        <input name="IsDesc" type="hidden" value="<%=strIsDesc%>"><font color="#000000"><b>预约登记管理</b></font>
        <br><br>
       </form>
       <form name="WebSiteCheckin" action="DelCheckin.jsp" method="post" onsubmit="return checkWebSiteCheckin();">
           <table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
            <tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
            <th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
            <th width="2%" nowrap><font color="#000000">编号</font></th>
            <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('YYWTRXM');return false;">预约委托人姓名</a><%=(strOrderBy.equalsIgnoreCase("YYWTRXM"))?strOrderArrow:""%></font></th>
            <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('NGMCPMC');return false;">拟购买产品名称</a><%=(strOrderBy.equalsIgnoreCase("NGMCPMC"))?strOrderArrow:""%></font></th>
            <th width="5%" nowrap><font color="#000000"><a href="" onclick="changeorder('NGMJE');return false;">拟购买金额</a><%=(strOrderBy.equalsIgnoreCase("NGMJE"))?strOrderArrow:""%></font></th>
            <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('DZ');return false;">地址</a><%=(strOrderBy.equalsIgnoreCase("DZ"))?strOrderArrow:""%></font></th>
            <th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('DH');return false;">电话</a><%=(strOrderBy.equalsIgnoreCase("DH"))?strOrderArrow:""%></font></th>
            <th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('DZYX');return false;">电子邮箱</a><%=(strOrderBy.equalsIgnoreCase("DZYX"))?strOrderArrow:""%></font></th>
            <th width="10%" nowrap><font color="#000000"><a href="" onclick="changeorder('GMFS');return false;">购买方式</a><%=(strOrderBy.equalsIgnoreCase("GMFS"))?strOrderArrow:""%></font></th>
            <th width="5%" nowrap><font color="#000000"><a href="" onclick="changeorder('SFXYQTBZ');return false;">是否需要其他帮助</a><%=(strOrderBy.equalsIgnoreCase("SFXYQTBZ"))?strOrderArrow:""%></font></th>
			<th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('YYRQ');return false;">预约日期</a><%=(strOrderBy.equalsIgnoreCase("YYRQ"))?strOrderArrow:""%></font></th>
            <th width="3%" nowrap><font color="#000000">删除</font></th>
            </tr>
  <%
  //out.print("<script language='javascript'>alert('"+strOrderBy+"');</script>");
  //out.print("<script language='javascript'>alert('"+strIsDesc+"');</script>");
    Vector vt = CheckBespeakManager.getRecordBySearch(strIDs,strYYWTRXM,strNGMCPMC,strNGMJE,strDZ,strDH,strDZYX,strGMFS,strSFXYQTBZ,strYYRQ,strOrderBy,strIsDesc);
    if(iPage<1)iPage=1;
    int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
    if(iPage>iPageCount) iPage=1;
    for(int i=(iPage-1)*iPageSize;i<vt.size()&&i<iPage*iPageSize;i++)
    {
      String strID = ((Vector)vt.get(i)).get(0).toString();
      if(i % 2 == 0)
      {
        out.println("<tr id=\"Row"+ i+ "\" class=\"DataRowsSingle\" onmouseover=\"mouseon(this,'image" + i + "');\" onmouseout=\"mouseout(this,'image" + i + "','DataRowsSingle');\">");
      }
      else
      {
        out.println("<tr id=\"Row"+ i+ "\" class=\"DataRowsDouble\" onmouseover=\"mouseon(this,'image" + i + "');\" onmouseout=\"mouseout(this,'image" + i + "','DataRowsDouble');\">");
      }
      out.println("<td align=\"right\" valign=\"middle\"><img id=\"image" + i + "\" src=\"../images/lastpost1.gif\" style=\"display:none;\"> </td>");
      out.println("<td align=\"right\" valign=\"middle\">" + (i+1) + "</td>");
      out.println("<td align=\"left\" valign=\"middle\" nowrap ><input type=\"checkbox\" name=\"ID\" value=\"" + strID + "\">" + ((Vector)vt.get(i)).get(1).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(2).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(3).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(4).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(5).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(6).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(7).toString() + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(8).toString() + "&nbsp;</td>");
	  out.println("<td align=\"center\" valign=\"middle\" nowrap >" + StringNew.GetDateString(((Vector)vt.get(i)).get(9).toString(),"MM-dd HH:mm") + "&nbsp;</td>");
      out.println("<td align=\"center\" valign=\"middle\" nowrap ><a href=\"DelCheckin.jsp?ID=" + strID + "\" onclick=\"return confirm('您确实要删除该条信息吗?');\">删除</a></td>");
      out.println("</tr>");
    }
	///StringNew.GetDateString(((Vector)vt.get(i)).get(5).toString(),"MM-dd HH:mm")
  %>
            <tr>
             <th align="center" valign="top" colspan="9">
              <%
              if(iPage<2)
              out.print("首页&nbsp;&nbsp;上页");
              else
              out.print("<a href=\"\" onclick=\"changepage(" + 1 + ");return false;\">首页</a>&nbsp;&nbsp;<a href=\"\" onclick=\"changepage(" + (iPage-1) + ");return false;\">上页</a>");
              out.print("&nbsp;&nbsp;当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页&nbsp;&nbsp;");
              if(iPage>=iPageCount)
              out.print("下页&nbsp;&nbsp;末页");
              else
              out.print("<a href=\"\" onclick=\"changepage(" + (iPage+1) + ");return false;\">下页</a>&nbsp;&nbsp;<a href=\"\" onclick=\"changepage(" + iPageCount + ");return false;\">末页</a>");
              %>
             </th>
              <th colspan="3">
                <input name="selectall" type="button" value="全部选择" onclick="checktall()" style="background-color: #FFFFFF; border: 1 solid #000000">
                <input name="subm" type="submit" value="删除" style="background-color: #FFFFFF; border: 1 solid #000000">
              </th>
            </tr>
           </table>
          </form>
        </td>
      </tr>
    </table>
  </body>
</html>

⌨️ 快捷键说明

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