portal.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>Portal - jQuery EasyUI</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="portal.css">
  9. <style type="text/css">
  10. .title{
  11. font-size:16px;
  12. font-weight:bold;
  13. padding:20px 10px;
  14. background:#eee;
  15. overflow:hidden;
  16. border-bottom:1px solid #ccc;
  17. }
  18. .t-list{
  19. padding:5px;
  20. }
  21. </style>
  22. <script type="text/javascript" src="../../jquery-1.7.1.min.js"></script>
  23. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  24. <script type="text/javascript" src="jquery.portal.js"></script>
  25. <script>
  26. $(function(){
  27. $('#pp').portal({
  28. border:false,
  29. fit:true
  30. });
  31. add();
  32. });
  33. function add(){
  34. for(var i=0; i<3; i++){
  35. var p = $('<div/>').appendTo('body');
  36. p.panel({
  37. title:'Title'+i,
  38. content:'<div style="padding:5px;">Content'+(i+1)+'</div>',
  39. height:100,
  40. closable:true,
  41. collapsible:true
  42. });
  43. $('#pp').portal('add', {
  44. panel:p,
  45. columnIndex:i
  46. });
  47. }
  48. $('#pp').portal('resize');
  49. }
  50. function remove(){
  51. $('#pp').portal('remove',$('#pgrid'));
  52. $('#pp').portal('resize');
  53. }
  54. </script>
  55. </head>
  56. <body class="easyui-layout">
  57. <div region="north" class="title" border="false" style="height:60px;">
  58. jQuery EasyUI Portal
  59. </div>
  60. <div region="center" border="false">
  61. <div id="pp" style="position:relative">
  62. <div style="width:30%;">
  63. <div title="Clock" style="text-align:center;background:#f3eeaf;height:150px;padding:5px;">
  64. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100" height="100">
  65. <param name="movie" value="http://www.respectsoft.com/onlineclock/analog.swf">
  66. <param name=quality value=high>
  67. <param name="wmode" value="transparent">
  68. <embed src="http://www.respectsoft.com/onlineclock/analog.swf" width="100" height="100" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed>
  69. </object>
  70. </div>
  71. <div title="Tutorials" collapsible="true" closable="true" style="height:200px;padding:5px;">
  72. <div class="t-list"><a href="http://www.jeasyui.com/tutorial/datagrid/datagrid1.php">Build border layout for Web Pages</a></div>
  73. <div class="t-list"><a href="http://www.jeasyui.com/tutorial/layout/panel.php">Complex layout on Panel</a></div>
  74. <div class="t-list"><a href="http://www.jeasyui.com/tutorial/layout/accordion.php">Create Accordion</a></div>
  75. <div class="t-list"><a href="http://www.jeasyui.com/tutorial/layout/tabs.php">Create Tabs</a></div>
  76. <div class="t-list"><a href="http://www.jeasyui.com/tutorial/layout/tabs2.php">Dynamically add tabs</a></div>
  77. <div class="t-list"><a href="http://www.jeasyui.com/tutorial/layout/panel2.php">Create XP style left panel</a></div>
  78. </div>
  79. </div>
  80. <div style="width:40%;">
  81. <div id="pgrid" title="DataGrid" closable="true" style="height:200px;">
  82. <table class="easyui-datagrid" style="width:650px;height:auto"
  83. fit="true" border="false"
  84. singleSelect="true"
  85. idField="itemid" url="datagrid_data.json">
  86. <thead>
  87. <tr>
  88. <th field="itemid" width="60">Item ID</th>
  89. <th field="productid" width="60">Product ID</th>
  90. <th field="listprice" width="80" align="right">List Price</th>
  91. <th field="unitcost" width="80" align="right">Unit Cost</th>
  92. <th field="attr1" width="120">Attribute</th>
  93. <th field="status" width="50" align="center">Status</th>
  94. </tr>
  95. </thead>
  96. </table>
  97. </div>
  98. </div>
  99. <div style="width:30%;">
  100. <div title="Searching" iconCls="icon-search" closable="true" style="height:80px;padding:10px;">
  101. <input class="easyui-searchbox">
  102. </div>
  103. <div title="Graph" closable="true" style="height:200px;text-align:center;">
  104. <img height="160" src="http://knol.google.com/k/-/-/3mudqpof935ww/ip4n5y/web-graph.png"></img>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </body>
  110. </html>