top.jsp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  2. <%@ page import="org.maxkey.domain.*"%>
  3. <%@ page import="org.maxkey.web.*"%>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  5. <%@ taglib prefix="s" uri="http://sso.maxkey.org/tags" %>
  6. <div id="topBar" >
  7. <div class="container">
  8. <div style="float:left;margin-left:20px;margin-top: 5px;"><IMG SRC="<s:Base/>/images/logo.jpg" style="width:55px;heigth:55px"></div>
  9. <div style="margin-top:15px;margin-left:10px;float:left">
  10. <div style="letter-spacing:2px;font-size:28px;font-weight:bolder;"><s:Locale code="global.access.application"/></div>
  11. </div>
  12. <div style="margin-top:25px;margin-right:10px;float:right;">
  13. <table style="height: 31px;">
  14. <tr>
  15. <td><%System.out.println(WebContext.getUserInfo()); %>
  16. <s:Locale code="global.text.welcome"/>:<%=WebContext.getUserInfo()==null?"":WebContext.getUserInfo().getDisplayName()%>(<%=WebContext.getUserInfo()==null?"":WebContext.getUserInfo().getUsername()%>)&nbsp;&nbsp;
  17. </td>
  18. <%if(WebContext.getUserInfo().getGridList()==0) {%>
  19. <td>
  20. <img src='<s:Base/>/images/grid_sel.png' style="width=:31px;height:31px;border:0;">
  21. </td>
  22. <td>
  23. <a href="<s:Base/>/appList?mnid=110101020000&gridList=1"><img src='<s:Base/>/images/list.png' style="width=:31px;height:31px;border:0;"></a>
  24. </td>
  25. <%}else{%>
  26. <td>
  27. <a href="<s:Base/>/appList?mnid=110101020000&gridList=0" ><img src='<s:Base/>/images/grid.png' style="width=:31px;height:31px;border:0;"></a>
  28. </td>
  29. <td>
  30. <img src='<s:Base/>/images/list_sel.png' style="width=:31px;height:31px;border:0;">
  31. </td>
  32. <%} %>
  33. <td id="changepassword" nowrap>
  34. <a href="<s:Base/>/safe/forward/changePasswod">
  35. <div style="float:right;" >&nbsp;&nbsp;<s:Locale code="login.password.changepassword"/>&nbsp;&nbsp;</div>
  36. </a>
  37. </td>
  38. <td id="manage" nowrap>
  39. <a target="_blank" href="<s:Base/>/authz/manage">
  40. <div style="float:right;" >&nbsp;&nbsp;<s:Locale code="global.text.manage"/>&nbsp;&nbsp;</div>
  41. </a>
  42. </td>
  43. <td class="ui-widget-header" >
  44. <a href="<s:Base/>/logout?reLoginUrl=login">
  45. <div style="float:right;" >&nbsp;&nbsp;<s:Locale code="global.text.logout"/>&nbsp;&nbsp;</div>
  46. </a>
  47. </td>
  48. </tr>
  49. </table>
  50. </div>
  51. </div>
  52. </div>