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

📄 vendormain.jsp

📁 海鲜超市管理系统是不个错的超市管理系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=Gbk" %>
<%@ page import="dto.VendorDto,java.util.List,util.PageControl,util.Util,dto.ShopUserDto" %>

<HTML><HEAD><TITLE>Captain Fresh Seafood Supermarket : Welcome</TITLE>
<%
  	Object ob = session.getAttribute("check");
  	if (ob != null)
  	{
  	ShopUserDto user = (ShopUserDto)ob;
  	
	if (user.getFlag() == 2)
	{
%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Microsoft FrontPage 5.0" name=GENERATOR></HEAD>
<BODY vLink=#00cc33 aLink=#00cc33 link=#993333 bgColor=#FFFFCC leftMargin=0 
topMargin=0 rightMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<center>
<TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
  <TBODY>
  <TR>
    <TD width=172><IMG alt="Captain Fresh Seafood Supermarket" 
      src="images/home_top_left.jpg" 
      border=0 width="180" height="62"></TD>
    <TD width=253><IMG height=62 alt="Captain Fresh Seafood Supermarket" 
      src="images/home_top_mid.jpg" width=303 
    border=0></TD>
    <TD width=225><IMG alt="Captain Fresh Seafood Supermarket" 
      src="images1/home_top_right.jpg" 
      border=0 width="264" height="61"></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 
background="images/top_band.gif" border=0>
  <TBODY>
  <TR>
    <TD align=right height=25><FONT face=Verdana,Arial,Helvetica 
      size=1>&nbsp;&nbsp; <%=Util.getDate()%>&nbsp;&nbsp;</FONT></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=748 border=0 height="533">
  <TBODY>
  <TR>
    <TD vAlign=middle width=179 height="43" bgcolor="#FDCC64" bordercolor="#993333" bordercolorlight="#800000" align="left">
      <p><b><font color="#993333" size="3">Income management</font>
      </b>
    </TD>
    <TD vAlign=top width=558 height="305" rowspan="7">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <div align="center">
      <center>
      <table border="1" width="88%" bordercolor="#800000">
        <tr>
          <td width="14%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Vendor
            Name</font></b></td>
          <td width="14%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Vendor
            Address</font></b></td>
          <td width="15%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Vendor
            Phone</font></b></td>
          <td width="15%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Vendor
            FAX</font></b></td>
          <td width="15%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Contact
            Person</font></b></td>
          <td width="34%" align="center" bgcolor="#FDCC64"><b><font color="#993333">Update</font></b></td>
        </tr>
        
       <%
        List list = (List)request.getAttribute("list");
        VendorDto ia = null;
		for (int i=0;i<list.size();i++)
		{
			ia = (VendorDto)list.get(i);
			if (ia != null)
			{
%>
			<tr>
			
			<td width="14%" align="center"><font color="#993333"><%=ia.getVendor_Name()%></font></td>
          <td width="14%" align="center"><font color="#993333"><%=ia.getVendor_Address()%></font></td>
          <td width="15%" align="center"><font color="#993333"><%=ia.getVendor_Phone()%></font></td>
          <td width="15%" align="center"><font color="#993333"><%=ia.getVendor_Fas()%></font></td>
          <td width="15%" align="center"><font color="#993333"><%=ia.getVendor_Person()%></font></td>
          <td width="34%" align="center">
          <a href="/VendorMainServlet2?Vendor_Id=<%=ia.getVendor_Id()%>&Vendor_Name=<%=ia.getVendor_Name()%>&Vendor_Addr=<%=ia.getVendor_Address()%>&Vendor_Phone=<%=ia.getVendor_Phone()%>&Vendor_Fas=<%=ia.getVendor_Fas()%>&Vendor_Person=<%=ia.getVendor_Person()%>">
          <img border="0" src="images1/depart3.gif" width="43" height="23"></td>
        
			
        	</form>
        	</tr>

<%
			}
		}
%>
      
      </table>
      </center>
    </div>
    </TD>
  </TR>
  <TR>
    <TD vAlign=middle width=179 height="43" bgcolor="#FDCC64" bordercolor="#993333" bordercolorlight="#800000" align="left">
    <p><b><font color="#993333" size="3"> <a href="/DespServlet2">Dept management</a></font> </b>
    </TD>
  </TR>
  <TR>
    <TD vAlign=middle width=179 height="43" bgcolor="#FDCC64" bordercolor="#993333" bordercolorlight="#800000" align="left">
    <p><b><font color="#993333" size="3"> Report management</font>
    </b>
    </TD>
  </TR>
  <TR>
    <TD vAlign=middle width=179 height="44" bgcolor="#FDCC64" bordercolor="#993333" bordercolorlight="#800000" align="left">
    <p><b><font color="#993333" size="3"> Vendor management</font>
    </b>
    </TD>
  </TR>
  <TR>
    <TD vAlign=middle width=179 height="44" bgcolor="#FDCC64" bordercolor="#993333" bordercolorlight="#800000" align="left">
    <p><b><font color="#993333" size="3"><a href="/DespServlet5">Bill management</a></font> </b>
    </TD>
  </TR>
  <TR>
    <TD vAlign=middle width=179 height="44" bgcolor="#FDCC64" bordercolor="#993333" bordercolorlight="#800000" align="left">
    <p><b><font color="#993333" size="3"> <a href="/DespServlet6"> Bill Payment</a></font> </b>
    </TD>
  </TR>
  <TR>
    <TD vAlign=middle width=179 height="44" bgcolor="#FDCC64" align="left">
    <b><font color="#993333" size="3"> Backup</font> </b>
    </TD>
  </TR>
  <TR>
    <TD vAlign=bottom width=746 height="1" colspan="2">
      <form method="POST" action="/VendorMainServlet1" >
        <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan i-checksum="43374" -->
        <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input type="submit" value="Add    Vendor " name="B3" style="color: #800000; font-weight: bold; background-color: #FDCC64"></p>
      </form>
       <TR>
    <TD vAlign=bottom align=right width=746 height="1" colspan="2">
      <%
    	PageControl pageBean = (PageControl)request.getAttribute("pageControl");
  %>
 
本页显示<%=pageBean.getStart()%> - <%=pageBean.getEnd()%>条
共计<%=pageBean.getTotalnum()%> 条<br>
	<a href="/DespServlet4?curpage=1">首  页</a>&nbsp;&nbsp;
	<a href="/DespServlet4?curpage=<%=pageBean.getPrepage()%>">上一页</a>&nbsp;&nbsp;
	<a href="/DespServlet4?curpage=<%=pageBean.getNextpage()%>">下一页</a>&nbsp;&nbsp;
	<a href="/DespServlet4?curpage=<%=pageBean.getTotalpage()%>">尾  页</a>&nbsp;&nbsp;
      <p>&nbsp;
    </TD>
    
  </TR>
      <p>&nbsp;
    </TD>
  </TR>
   <tr>
  <td><%@ include file="link.jsp"%></td>
  </tr>
  <TR>
    <TD vAlign=bottom width=746 height="122" colspan="2">
      <p><IMG height=24 alt="Captain Fresh Seafood Supermarket" 
      src="images1/home_bot_right.jpg" width=742 
      border=0></p>
    </TD>
  </TR>
  <TR>
    <TD vAlign=top align=middle height="380" width="746" colspan="2"><IMG height=1 alt="" 
      src="images/dot_clear.gif" width=1 
      border=0><BR><FONT face=Verdana,Arial,Helvetica size=1>copyright ?004
      Captain Fresh Seafood Supermarket<BR>designed and programmed by <a href="http://it.neworiental.org/" target="_blank">neworiental</a></FONT>
      </FORM>
      </TD>
  </TR>
  </TBODY>
</TABLE>
</center>
      </BODY>
      
      

<%
	}
	else if (user.getFlag() == 1)
	{
%>
<body>
您无权访问此页!
<a href="/index.jsp">返回登录框</a>
</body>
<%		
	}
	}
	else
	{
		request.setAttribute("flg","error");
  		RequestDispatcher rd = request.getRequestDispatcher("/index.jsp");
		rd.forward(request,response);
	}
		
%>
      
      </HTML>

⌨️ 快捷键说明

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