www.pudn.com > Java_web_shipin_gongsi-.rar > main.jsp, change:2011-12-14,size:4408b


<%@ page language="java" import="java.util.*" pageEncoding="GBK"%> 
<%@ page import="bean.User"%> 
<html> 
<% 
	String path = request.getContextPath(); 
	String basePath = request.getScheme() + "://" 
			+ request.getServerName() + ":" + request.getServerPort() 
			+ path + "/"; 
%> 
<head> 
<base href="<%=basePath%>"> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
<title>大连食品零售企业配送管理系统后台</title> 
 
	<link rel="stylesheet" type="text/css"  href="css/sdmenu.css" /> 
	<script type="text/javascript"  src="js/sdmenu.js"> 
	</script> 
		<script type="text/javascript"> 
	// <![CDATA[ 
	var myMenu; 
	window.onload = function() { 
		myMenu = new SDMenu("my_menu"); 
		myMenu.init(); 
	}; 
	// ]]> 
	</script> 
<style type="text/css"> 
span{color:#ffffff; background-color:#4E3D2D} 
 
</style> 
</head> 
 
 
<body> 
<div  style="background-image:url(images/2.jpg); background-repeat:no-repeat; background-position:center; background-color:#8E7D6D;height:300px" > 
 </div> 
  
<div  style="background-color:#6E5D4D; color:#66FF66"><table width="100%"> 
  <tr> 
    <td width="89%" style="padding-left:50px; color:#FFFFFF">欢迎:<%=((User)session.getAttribute("userInfo")).getId() %>的到来!</td> 
    <td width="11%"><a href="logout.jsp" style="text-decoration:none; color:#FFFFFF">注销</a> </td> 
  </tr> 
</table> 
</div> 
<table> 
<tr> 
<td> 
<div id="leftmenu" style="background-color:#6E5D4D"> 
    <div style="float: left" id="my_menu" class="sdmenu"> 
    <% User u=(User)session.getAttribute("userInfo"); 
    	if("admin".equals(u.getRole().trim())){ 
     %> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">车辆管理</span> 
		<a href="cl/insertClInfo.jsp" target="myIfm">增加车辆</a> 
		<a href="cl/showAllClInfo.jsp" target="myIfm">所有车辆信息</a> 
      </div> 
      <div class="collapsed"> 
        <span style="color:#ffffff; background-color:#4E3D2D">商品管理</span> 
		<a href="sp/insertSpInfo.jsp" target="myIfm">增加商品信息</a>		 
		<a href="sp/showAllSpInfo.jsp" target="myIfm">所有商品信息</a> 
      </div> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">零售商管理</span> 
		<a href="lss/insertLssInfo.jsp" target="myIfm">增加零售商信息</a>		 
		<a href="lss/showAllLssInfo.jsp" target="myIfm">所有零售商信息</a> 
      </div> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">补货管理</span> 
		<a href="bh/insertBhInfo.jsp" target="myIfm">增加补货信息</a>		 
		<a href="bh/showAllBhInfo.jsp" target="myIfm">所有补货信息</a> 
      </div> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">发货管理</span> 
		<a href="fh/insertFhInfo.jsp" target="myIfm">增加发货信息</a>		 
		<a href="fh/showAllFhInfo.jsp" target="myIfm">所有发货信息</a> 
      </div> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">配送管理</span> 
		<a href="ps/insertPsInfo.jsp" target="myIfm">增加配送信息</a>		 
		<a href="ps/showAllPsInfo.jsp" target="myIfm">所有配送信息</a> 
      </div> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">信息查询</span> 
		<a href="bh/showBhInfoById.jsp" target="myIfm">补货信息查询</a>		 
		<a href="fh/showFhInfoById.jsp" target="myIfm">发货信息查询</a> 
		<a href="ps/showPsInfoById.jsp" target="myIfm">配送信息查询</a> 
      </div> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">用户管理</span> 
		<a href="user/insertUserInfo.jsp" target="myIfm">增加用户信息</a> 
		<a href="user/showAllUserInfo.jsp" target="myIfm">所有用户信息</a> 
		<a href="user/updateUserInfo.jsp" target="myIfm">修改个人信息</a> 
      </div> 
    </div> 
   <%}else{ %> 
      <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">信息查询</span> 
		<a href="bh/showBhInfoById.jsp" target="myIfm">补货信息查询</a>		 
		<a href="fh/showFhInfoById.jsp" target="myIfm">发货信息查询</a> 
		<a href="ps/showPsInfoById.jsp" target="myIfm">配送信息查询</a> 
      </div>    
       <div> 
        <span style="color:#ffffff; background-color:#4E3D2D">用户管理</span> 
		<a href="user/updateUserInfo.jsp" target="myIfm">修改个人信息</a> 
      </div>   
   <%} %> 
   </td> 
   <td> 
</div> 
<div id="content" > 
<iframe name="myIfm" frameborder="0" width="1082" height="450"  src="welcome.html"></iframe> 
</div> 
</td> 
</tr> 
</table> 
</body> 
</html>