apzl_leasing/WebContent/FrameCase/Layout/ExampleActionTabStrip.jsp
2018-06-03 22:26:41 +08:00

34 lines
1.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@page import="com.amarsoft.are.util.json.JSONEncoder"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBegin.jsp"%>
<%
//参数0.是否显示, 1.标题, 2.JS事件字符串表示(TabContentFrame会替换为真实名称), 3. 是否缓存(默认是), 4. 是否有关闭按钮(默认无), 5. Strip高度(默认600px)
String sTabStrip[][] = {
{"true", "List", "AsControl.OpenComp('/FrameCase/widget/dw/ExampleList.jsp', '', 'TabContentFrame')"},
{"true", "Info", "AsControl.OpenComp('/FrameCase/widget/dw/ExampleInfo.jsp', '', 'TabContentFrame')", "", "true"},
{"true", "Frame_1", "AsControl.OpenComp('/FrameCase/Layout/ExampleFrame.jsp', '', 'TabContentFrame')"},
{"true", "事件", "alert('TabContentFrame')", "false"},
{"true", "Tab", "AsControl.OpenComp('/FrameCase/Layout/ExampleTab03.jsp', '', 'TabContentFrame')"},
{"true", "Blank", "AsControl.OpenComp('/AppMain/Blank.jsp', '', 'TabContentFrame')"},
};
//参数0.是否显示, 1.权限, 2.类型, 3.按钮文字, 4.说明文字, 5.事件, 6.快捷键, 7.资源路径, 8.资源路径参数, 9.图标, 10.风格
String sButtons[][] = {
{"true","","Button","按钮1", "", "alert('你点到我啦!')", "", "", "", "btn_icon_edit"},
{"true","","Button","按钮2", "", "alert('第二个按钮')", "", "", "", "btn_icon_help"},
};
// BeforeTabStripHtml-html
CurPage.setAttribute("BeforeTabStripHtml", Button.getHtmlText(sButtons, CurUser, CurPage, CurConfig));
// TabStrip-JSON
CurPage.setAttribute("TabStrip", JSONEncoder.encode(sTabStrip));
// TabStripType-tab/strip 默认为tab
//CurPage.setAttribute("TabStripType", "strip");
// First-num 默认为0
CurPage.setAttribute("First", "2");
%>
<%@ include file="/Frame/resources/include/ui/include_tabstrip.jspf"%>
<%@ include file="/IncludeEnd.jsp"%>