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

📄 transferlist.jsp

📁 《jsp案例开发》这本书的源代码。包括源代码和相关的具体配置操作步骤。非常不错
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page
    language="java"
    contentType="text/html; charset=GBK"
    import="imis.*,javax.naming.*,javax.rmi.PortableRemoteObject,java.util.*,java.sql.*,java.io.*"
%>

<jsp:useBean id="rechangeget" scope="page" class="imis.rechangeget" />
<jsp:useBean id="contractget" scope="page" class="imis.contractget" />
<jsp:useBean id="handtakeget" scope="page" class="imis.handtakegetdev_type" />


<SCRIPT language=JavaScript src= "../../public/js/selffunction.js" type=text/Javascript></script>

<%
  session=request.getSession();
      userStruct user=(userStruct)session.getAttribute("user");
    if(user==null){
      response.sendRedirect("../../login.html");
    }
    else
      if(((user.getAccess().intValue() == 0)||(user.getAccess().intValue() == 1))){
          response.sendRedirect("../../error/access.html");
    }else{

 /*   userStruct session_us=(userStruct)session.getAttribute("user");
    if(session_us==null){
    response.sendRedirect("../../login.html");
    }
    else if((session_us.getAccess().intValue()!=3)||(session_us.getAccess().intValue()!=4)){
            response.sendRedirect("../../error/access.html");
    }else{
    */
        try{
          String sqlwhereget=request.getParameter("sqlwhereget");
         /* if (sqlwhereget==null)
            sqlwhereget=(String)session.getAttribute("sqlwhereget");
          else
            session.setAttribute("sqlwhereget",sqlwhereget);
          */
          %>
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
            <HTML><HEAD><TITLE>MSA Office</TITLE>
            <META http-equiv=Content-Type content="text/html; charset=gb_2312-80">
            <META content="Microsoft FrontPage 4.0" name=GENERATOR>
            <link rel="stylesheet" href="../../css/msa.css" type="text/css">
            <script language="JavaScript" src="../../public/js/table_display.js"></script>
            <script language="JavaScript" src="../../public/js/all_checked.js"></script>
            <script language="JavaScript" src="../../public/js/equipment_menu.js"></script>
            <script language="javascript" src="../../public/util/openselect.js"></script>
            <script language="javascript" src="../../public/js/getdate.js"></script>
            <script language="javascript">
            init1();
            </script>
            <SCRIPT>
            window.onload=init
            </SCRIPT>
<SCRIPT>
function checkdel(){
    var re = confirm("您确实要删除吗?");
    if(re){
    form2.flagdel.value="true";
    form2.action="contractsearch.jsp";
    form2.submit();
    }
}

function highsearch(){
  var dev_name=form1.dev_name.value;
  var dev_type=form1.dev_type.value;
  var sqlwhere="";
   if(dev_name!=""){
     sqlwhere=" dev_name like '%"+dev_name+"%'";
   }

   if(dev_type!=""){
    if(sqlwhere=="")
      sqlwhere+=" dev_type="+dev_type;
    else
      sqlwhere+=" and dev_type="+dev_type;
   }
   form1.sqlwhereget.value=sqlwhere;
   form1.submit();
}
</SCRIPT>
           </HEAD>
            <BODY class="bg" topMargin=20 leftmargin="0" marginwidth="0" marginheight="0" onclick="h_cele_date()">
            <DIV align=center>
                <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
                <TR>
                  <TD><IMG height=4 src="../../MacOS/lefttop.gif" width=6></TD>
                  <TD background=../../MacOS/top.gif colSpan=3><IMG height=4
                  src="../../MacOS/top.gif" width=1></TD>
                  <TD><IMG height=4 src="../../MacOS/righttop.gif"></TD>
                </TR>
                <TR>
                  <TD vAlign=top background="../../MacOS/lwing.gif" rowSpan=3><IMG height=18
                  src="../../MacOS/left.gif" width=6></TD>
                  <TD vAlign=top background="../../MacOS/titlebg.gif" width="16">
                    <DIV><img src="../../MacOS/logo.gif" width="16" height="16" border="0" ></DIV>
                  </TD>

                  <TD vAlign=top noWrap align=center width="100%"
                background="../../MacOS/titlebg.gif"><SPAN
                  style="BACKGROUND-COLOR: #cecece"><FONT class=strong> MSA - OFFICE </font></SPAN></TD>
                    <TD><IMG height=18 src="../../MacOS/right_b2.gif" width=18 border="0" ></TD>
                  <TD vAlign=top background="../../MacOS/rwing.gif" rowSpan=3><IMG height=18
                  src="../../MacOS/right.gif" width=7></TD>
                </TR>
                <TR>
                  <TD background="../../MacOS/hr.gif" colSpan=3><IMG height=2
                  src="../../MacOS/hr.gif" width=1></TD>
                </TR>
                <%
                 handtakeget.query(pageContext);
                %>
                <TR>
                    <TD colSpan=3 align="center"> <br>
                    <table width="600" border="1" cellspacing="1" bordercolor="#666666">
                      <tr bgcolor="#fafafa">
                        <td> <div align="center">
                            <table width="100%" border="0" cellspacing="0" cellpadding="2">
                              <form name="form1" method="post" action="transferlist.jsp">
                                <tr bgcolor="#666666">
                                  <td colspan="4" height="15"><font class="strongw">设备管理</font></td>
                                </tr>
                                <tr>
                                  <td colspan="4"><a href="contractdisplay.html">设备管理</a>&gt;&gt;设备调拨查询</td>
                                </tr>
                            <tr bgcolor="#fafafa">
                      <td width="64"> <nobr><font class="strong" > 设备类型:</font> </nobr></td>
                      <td width="208">
                      <select name="dev_type">
                                          <option value="">请选择设备类型</option>
                                          <option value="1">--VTS备件--</option>
                                          <option value="2">--航标设备及备件--</option>
                                          <option value="3">--AIS系统及备件--</option>
                                          <option value="4">--测绘设备及备件--</option>
					  <option value="5">--其他--</option>
                      </select>
                      </td>
                    </tr>
                    <tr bgcolor="#e0e0e0">
                            <td width="131"> <font  class="strong"> 设备名称</font>:
                            </td>
                            <td width="463"> <input name="dev_name" class="file" type="text" value="" size="52">
                          </td>
                          </tr>
                    <!--
                    <tr bgcolor="#e0e0e0">
                            <td width="131"> <font  class="strong"> 合同签订时间: </font>
                            </td>
                            <td width="463"> <input name="timesign2" type="text" class="file" size="9" maxlength="9" readonly>
                              <input type="button" value="  " name="Submit_timesion2" class="button_date" onClick="show_cele_date(Submit_timesion2,'','',timesign2)">
                                                    </td>
                          </tr>
                          <tr bgcolor="#fafafa">
                            <td width="131"><font  class="strong"> 合同到期时间</font>:</td>
                            <td width="463"> <input name="maturity2" type="text" class="file" value="" size="9" maxlength="9" readonly>
                              <input type="button" value="  " name="Submit_maturity2" class="button_date" onClick="show_cele_date(Submit_maturity2,'','',maturity2)">
                            </td>
                          </tr>
                    -->
                          <tr bgcolor="#e0e0e0">
                            <td width="131"  align="center">
                           <input type="hidden" name="sqlwhereget">
                           <input type="button" name="shanchu" value="  查 询  " class="file" onClick="javascript:highsearch()">
                             </td>
                            <td width="463"></td>
                            </tr>
                              </form>
                            </table>
                            <form name="form2" method="post">
                            <table class=title cellspacing=1 cellpadding=2 width="100%" border=0>
                                <tr bgcolor="#666666">
                                  <td colspan="6"> <font class="strongw">设备调拨表 </font> </td>
                                </tr>
                                <tr  align="center" >
                    <!--
                                  <td width="8%"><font  class="strong">选择</font></td>
                    -->

⌨️ 快捷键说明

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