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

📄 provider.jsp

📁 精美的画面。完善的功能
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%
if(session.getAttribute("midentity")==null)
   {
      //  request.setAttribute("result","您没有权力进入此页");
       // getServletContext().getRequestDispatcher("display.jsp").forward(request,response);
       response.sendRedirect("FlowerIndex.jsp");
  }
%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <title>untitled</title>
    <link href="css/jdeveloper.css" rel="stylesheet" media="screen"/>
  </head>
  <body>
  <script>
       function judge1()
        {
        if( formadd.zipcode.value==""||isNaN(formadd.zipcode.value))
        {
            window.alert("必须为数字!请输入数字!");
            document.formadd.zipcode.value="";
             return;
        }
      }
       function judge2()
    {
        if(formadd.tel.value==""||isNaN(formadd.tel.value))
        {
            window.alert("必须为数字!请输入数字!");
            document.formadd.tel.value="";
            return;
        }
    }
  </script>
    <table cellspacing="0" cellpadding="0" border="0" width="760" align="center">
      <tr>
        <td>
          <H1 align="center">供应商基本信息添加</H1>
          <form action="providerservlet" method="post" name="formadd">
            <table cellspacing="0" cellpadding="0" border="1" width="60%" align="center">
          
               
              <tr>
                <td>
                  <FONT color="#ff9966">供应商编号:</FONT>
                </td>
                <td>
                  <input type="text" name="supid" />
                </td>
              </tr>
              <tr>
                <td>
                  <FONT color="#ff9966">供应商名称:</FONT>
                </td>
                <td>
                  <input type="text" name="supname" />
                </td>
              </tr>
              <tr>
                <td>
                  <FONT color="#ff9966">供应商地址:</FONT>
                </td>
                <td>
                  <input type="text" name="address" />
                </td>
              </tr>
              <tr>
                <td>
                  <FONT color="#ff9966">邮政编码:</FONT>
                </td>
                <td>
                  <input type="text" name="zipcode" onchange="judge1()" />
                </td>
              </tr>
              <tr>
                <td>
                  <FONT color="#ff9966">Email:</FONT>
                </td>
                <td>
                  <input type="text" name="email" />
                </td>
              </tr>
              <tr>
                <td>
                  <FONT color="#ff9966">联系电话:</FONT>
                </td>
                <td>
                  <input type="text" name="tel" onchange="judge2()" />
                </td>
              </tr>
             
                
              <tr>
                <td>
                  <FONT color="#0033cc">系统提示:</FONT>
                </td>
                <td>
                <%
                    
                  String result="请注意系统提示";
                  if(request.getAttribute("result")!=null)
                  {
                    result=request.getAttribute("result").toString();
                      
                  }
                %>
                <font color="Red"><%=result%></font>
                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>
                  <input type="submit" value="确定"/>
                  <input type="reset" value="重置"/>
                </td>
              </tr>
            </table>
            <%@ page import="java.sql.*"%>
            <%@ page import="Flower.model.Providerinfo11"%>
            <%@ page import="Flower.model.ProviderBean"%>
            <%@ page import="Flower.model.DBConnect"%>
            <input type="hidden" name="action" value="provideradd"/>
          </form>
          <P align="center">
            <a href="ManagerMain.jsp">返回管理员主页</a>
          </P>
          <P>&nbsp;</P>
          <P>&nbsp;</P>
        </td>
      </tr>
    </table>
    <P>&nbsp;</P>
    <P>&nbsp;</P>
  </body>
</html>

⌨️ 快捷键说明

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