| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
- <%@ include file="/jsp/framework/head.jsp" %>
- <%@ taglib uri="/WEB-INF/hnisi.tld" prefix="hnisi" %>
- <%@ page import="cn.sinobest.framework.util.DTOUtil" %>
- <%
- String contextPath = request.getContextPath();
- %>
-
- <style>
- #fwshortcut{
- font-family:微软雅黑,宋体;
- }
- #fwshortcut table{
- border-collapse:collapse;
- }
- #fwshortcut .shortcut-tr{
- background-color:white;
- }
- #fwshortcut .shortcut-tr-alt{
- background-color:#eeeeff;
- }
- #fwshortcut td{
- font-size:20px;
- width:300px;
- vertical-align:middle;
- padding:10px 20px;
- margin:0;
- border:#ccc 1px solid;
- }
-
- </style>
- <img src="<%=contextPath%>/images/refresh.gif"
- onmouseover="this.src='<%=contextPath%>/images/refresh_over.gif'"
- onmouseout ="this.src='<%=contextPath%>/images/refresh.gif'"
- onmousedown="this.src='<%=contextPath%>/images/refresh_down.gif'"
- onmouseup ="this.src='<%=contextPath%>/images/refresh_over.gif';refresh();"
- />
- <br/>
- <div id="fwshortcut" position="relative">
- </div>
- </br>
- <p align="center">
- <hnisi:btn value="设置常用菜单" onclick="setShortcut()">
- </hnisi:btn>
- </p>
- <script>
- $(function(){
- $("#refreshBtn").blur();
- });
- fwshortcut.innerHTML = window.dialogArguments.shortcut.shortcutHtml;
- var operId = window.dialogArguments.shortcut.operId;
- function tohref(url){
- window.dialogArguments.parent.top.workspace.location.href=url;
- window.close();
- }
- function refresh(){
- new Service({
- serviceId:'blankService',
- method:'getShortcutHtml',
- parameters:{OPERID:operId,CONTEXTPATH:"<%=contextPath%>"}
- }).sentAjax('刷新常用菜单',function(data){
- if(data==null || data[0]==null){
- alert("刷新失败");
- return;
- }
- fwshortcut.innerHTML = data[0].shortcutHtml;
- window.dialogArguments.shortcut.shortcutHtml = data[0].shortcutHtml;
- });
- }
- function setShortcut(){
- var url = "<%=contextPath%>/sysmngr/web/sys/personality!query.do?RightID=990307#tab2";
- tohref(url);
- }
- </script>
- </body>
- </html>
|