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