MyJsp.jsp 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme() + "://"
  5. + request.getServerName() + ":" + request.getServerPort()
  6. + path + "/";
  7. %>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10. <head>
  11. <base href="<%=basePath%>">
  12. <title>My JSP 'MyJsp.jsp' starting page</title>
  13. <meta http-equiv="pragma" content="no-cache">
  14. <meta http-equiv="cache-control" content="no-cache">
  15. <meta http-equiv="expires" content="0">
  16. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  17. <meta http-equiv="description" content="This is my page">
  18. <link rel="stylesheet" type="text/css"
  19. href="<%=path%>/resource/js/easyui/themes/gray/easyui.css">
  20. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  21. <link rel="stylesheet" type="text/css"
  22. href="<%=path%>/resource/js/easyui/prettify/prettify.css">
  23. <script type="text/javascript"
  24. src="<%=path%>/resource/js/easyui/prettify/prettify.js"></script>
  25. <script type="text/javascript"
  26. src="<%=path%>/resource/js/easyui/jquery.min.js"></script>
  27. <script type="text/javascript"
  28. src="<%=path%>/resource/js/easyui/jquery.easyui.min.js"></script>
  29. <script type="text/javascript">
  30. $(function() {
  31. $("#easyui-tree").tree({
  32. url:'<%=path%>/userMenu1.action',
  33. lines : true,
  34. onClick : function(node) {
  35. if (node.url != null) {
  36. alert(node.url)
  37. open1(node.text, node.url);
  38. //open1(node.text,'/nxfd/pages/MyJsp.jsp');
  39. }
  40. }
  41. });
  42. $('#tt').tabs({onLoad : function(panel) {
  43. var plugin = panel.panel('options').title;
  44. panel
  45. .find(
  46. 'textarea[name="code-' + plugin
  47. + '"]')
  48. .each(
  49. function() {
  50. var data = $(this).val();
  51. data = data.replace(
  52. /(\r\n|\r|\n)/g,
  53. '\n');
  54. if (data.indexOf('\t') == 0) {
  55. data = data.replace(
  56. /^\t/, '');
  57. data = data.replace(
  58. /\n\t/g, '\n');
  59. }
  60. data = data.replace(/\t/g,
  61. ' ');
  62. var pre = $(
  63. '<pre name="code" class="prettyprint linenums"></pre>')
  64. .insertAfter(this);
  65. pre.text(data);
  66. $(this).remove();
  67. });
  68. prettyPrint();
  69. }
  70. });
  71. });
  72. function open1(title, plugin) {
  73. if ($('#tt').tabs('exists', title)) {
  74. $('#tt').tabs('select', title);
  75. } else {
  76. $('#tt').tabs('add', {
  77. title : title,
  78. href : plugin,
  79. closable : true,
  80. extractor : function(data) {
  81. data = $.fn.panel.defaults.extractor(data);
  82. var tmp = $('<div></div>').html(data);
  83. data = tmp.find('#content').html();
  84. tmp.remove();
  85. return data;
  86. }
  87. });
  88. }
  89. }
  90. </script>
  91. </head>
  92. <body class="easyui-layout" style="text-align:left">
  93. <div region="north" border="false"
  94. style="background:#666;text-align:center">
  95. <!-- <div id="header-inner">
  96. <table cellpadding="0" cellspacing="0" style="width:100%;">
  97. <tr>
  98. <td rowspan="2" style="width:20px;"></td>
  99. <td style="height:52px;">
  100. <div style="color:#fff;font-size:22px;font-weight:bold;">
  101. <a href="/index.php"
  102. style="color:#fff;font-size:22px;font-weight:bold;text-decoration:none">jQuery
  103. EasyUI</a>
  104. </div>
  105. <div style="color:#fff">
  106. <a href="/index.php" style="color:#fff;text-decoration:none">easyui
  107. helps you build your web pages easily!</a>
  108. </div>
  109. </td>
  110. <td
  111. style="padding-right:5px;text-align:right;vertical-align:bottom;">
  112. <div id="topmenu">
  113. <a href="/index.php">Home</a> <a href="/demo/main/index.php">Demo</a>
  114. <a href="/tutorial/index.php">Tutorial</a> <a
  115. href="/documentation/index.php">Documentation</a> <a
  116. href="/download/index.php">Download</a> <a
  117. href="/extension/index.php">Extension</a> <a href="/contact.php">Contact</a>
  118. <a href="/forum/index.php">Forum</a>
  119. </div>
  120. </td>
  121. </tr>
  122. </table>
  123. </div> -->
  124. </div>
  125. <div region="west" split="true" title="Plugins"
  126. style="width:250px;padding:5px;">
  127. <ul class="easyui-tree" id="easyui-tree">
  128. <!-- <li iconCls="icon-base"><span>Base</span>
  129. <ul>
  130. <li iconCls="icon-gears"><a class="e-link" href="#"
  131. onclick="open1('parser')">parser</a></li>
  132. <li iconCls="icon-gears"><a class="e-link" href="#"
  133. onclick="open1('easyloader')">easyloader</a></li>
  134. <li iconCls="icon-gears"><a class="e-link" href="#"
  135. onclick="open1('draggable')">draggable</a></li>
  136. <li iconCls="icon-gears"><a class="e-link" href="#"
  137. onclick="open1('droppable')">droppable</a></li>
  138. <li iconCls="icon-gears"><a class="e-link" href="#"
  139. onclick="open1('resizable')">resizable</a></li>
  140. <li iconCls="icon-gears"><a class="e-link" href="#"
  141. onclick="open1('pagination')">pagination</a></li>
  142. <li iconCls="icon-gears"><a class="e-link" href="#"
  143. onclick="open1('searchbox')">searchbox</a></li>
  144. <li iconCls="icon-gears"><a class="e-link" href="#"
  145. onclick="open1('progressbar')">progressbar</a></li>
  146. <li iconCls="icon-gears"><a class="e-link" href="#"
  147. onclick="open1('tooltip')">tooltip</a></li>
  148. <li iconCls="icon-gears"><a class="e-link" href="#"
  149. onclick="open1('mobile')">mobile</a></li>
  150. </ul></li>
  151. <li iconCls="icon-layout"><span>Layout</span>
  152. <ul>
  153. <li iconCls="icon-gears"><a class="e-link" href="#"
  154. onclick="open1('panel')">panel</a></li>
  155. <li iconCls="icon-gears"><a class="e-link" href="#"
  156. onclick="open1('tabs')">tabs</a></li>
  157. <li iconCls="icon-gears"><a class="e-link" href="#"
  158. onclick="open1('accordion')">accordion</a></li>
  159. <li iconCls="icon-gears"><a class="e-link" href="#"
  160. onclick="open1('layout')">layout</a></li>
  161. </ul></li>
  162. <li iconCls="icon-menu"><span>Menu and Button</span>
  163. <ul>
  164. <li iconCls="icon-gears"><a class="e-link" href="#"
  165. onclick="open1('menu')">menu</a></li>
  166. <li iconCls="icon-gears"><a class="e-link" href="#"
  167. onclick="open1('linkbutton')">linkbutton</a></li>
  168. <li iconCls="icon-gears"><a class="e-link" href="#"
  169. onclick="open1('menubutton')">menubutton</a></li>
  170. <li iconCls="icon-gears"><a class="e-link" href="#"
  171. onclick="open1('splitbutton')">splitbutton</a></li>
  172. </ul></li>
  173. <li iconCls="icon-form"><span>Form</span>
  174. <ul>
  175. <li iconCls="icon-gears"><a class="e-link" href="#"
  176. onclick="open1('form')">form</a></li>
  177. <li iconCls="icon-gears"><a class="e-link" href="#"
  178. onclick="open1('validatebox')">validatebox</a></li>
  179. <li iconCls="icon-gears"><a class="e-link" href="#"
  180. onclick="open1('textbox')">textbox</a></li>
  181. <li iconCls="icon-gears"><a class="e-link" href="#"
  182. onclick="open1('combo')">combo</a></li>
  183. <li iconCls="icon-gears"><a class="e-link" href="#"
  184. onclick="open1('combobox')">combobox</a></li>
  185. <li iconCls="icon-gears"><a class="e-link" href="#"
  186. onclick="open1('combotree')">combotree</a></li>
  187. <li iconCls="icon-gears"><a class="e-link" href="#"
  188. onclick="open1('combogrid')">combogrid</a></li>
  189. <li iconCls="icon-gears"><a class="e-link" href="#"
  190. onclick="open1('numberbox')">numberbox</a></li>
  191. <li iconCls="icon-gears"><a class="e-link" href="#"
  192. onclick="open1('datebox')">datebox</a></li>
  193. <li iconCls="icon-gears"><a class="e-link" href="#"
  194. onclick="open1('datetimebox')">datetimebox</a></li>
  195. <li iconCls="icon-gears"><a class="e-link" href="#"
  196. onclick="open1('datetimespinner')">datetimespinner</a></li>
  197. <li iconCls="icon-gears"><a class="e-link" href="#"
  198. onclick="open1('calendar')">calendar</a></li>
  199. <li iconCls="icon-gears"><a class="e-link" href="#"
  200. onclick="open1('spinner')">spinner</a></li>
  201. <li iconCls="icon-gears"><a class="e-link" href="#"
  202. onclick="open1('numberspinner')">numberspinner</a></li>
  203. <li iconCls="icon-gears"><a class="e-link" href="#"
  204. onclick="open1('timespinner')">timespinner</a></li>
  205. <li iconCls="icon-gears"><a class="e-link" href="#"
  206. onclick="open1('slider')">slider</a></li>
  207. <li iconCls="icon-gears"><a class="e-link" href="#"
  208. onclick="open1('filebox')">filebox</a></li>
  209. </ul></li>
  210. <li iconCls="icon-window"><span>Window</span>
  211. <ul>
  212. <li iconCls="icon-gears"><a class="e-link" href="#"
  213. onclick="open1('window')">window</a></li>
  214. <li iconCls="icon-gears"><a class="e-link" href="#"
  215. onclick="open1('dialog')">dialog</a></li>
  216. <li iconCls="icon-gears"><a class="e-link" href="#"
  217. onclick="open1('messager')">messager</a></li>
  218. </ul></li>
  219. <li iconCls="icon-datagrid"><span>DataGrid and Tree</span>
  220. <ul>
  221. <li iconCls="icon-gears"><a class="e-link" href="#"
  222. onclick="open1('datagrid')">datagrid</a></li>
  223. <li iconCls="icon-gears"><a class="e-link" href="#"
  224. onclick="open1('datalist')">datalist</a></li>
  225. <li iconCls="icon-gears"><a class="e-link" href="#"
  226. onclick="open1('propertygrid')">propertygrid</a></li>
  227. <li iconCls="icon-gears"><a class="e-link" href="#"
  228. onclick="open1('tree')">tree</a></li>
  229. <li iconCls="icon-gears"><a class="e-link" href="#"
  230. onclick="open1('treegrid')">treegrid</a></li>
  231. </ul></li> -->
  232. </ul>
  233. </div>
  234. <div region="center">
  235. <div id="tt" class="easyui-tabs" fit="true" border="false"
  236. plain="true">
  237. <div title="welcome" href="www.baidu.com"></div>
  238. </div>
  239. </div>
  240. </body>
  241. </html>