viewport布局

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"  lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录界面</title>
    <script typt="text/javascript" src="../ext/ext-all.js"></script>
    <link rel="stylesheet" href="../ext/resources/css/ext-all.css"/>
    <link rel="stylesheet" href="../css/工具和菜单条.css"/>
</head>
<body>
<div id=""></div>
<script typt="text/javascript">
    Ext.onReady(function () {
       var viewport=new Ext.Viewport({
           frame:true,
           layout:'border',

           renderTo:Ext.getBody(),
           items:[{/*元素集*/
               region:'north',
               height:120,
               bodyStyle:'background-image:url(../image/daohang.png); background-repeat:no-repeat; background-size:100% 100%;',
               items:[{
                   buttons:[{
                       text:'关于我们',
                       iconCls:'aboutUs'
                   },{
                       text:'推出系统',
                       iconCls:'loginout'
                   }]
               }]
           },{/*元素集*/

               region:'center',
               xtype:'tabpanel',
             items:[{
                 title:'首页',
                 iconCls:'openFile',
                 bodyStyle:'background-image:url(../image/cengter.jpg); background-repeat:no-repeat;background-size:100% 100%;'
             }]
           },{/*元素集*/
               title:'在线选课系统',
                region:'west',
                width:180,

               collapsible:true,/*展开收缩*/
               items:[{
                   items:[new Ext.tree.Panel({
                       border:false,/*去掉边框*/
                       root:{/*节点,对象*/
                           text:'系统菜单',
                           border:false,
                           expanded:true,/*展开状态*/
                           children:[{
                               text:'用户管理',
                               icon:'../image/tianjia.png',
                               children:[{
                                   text:'添加用户',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'修改用户',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'删除用户',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'查询用户',
                                   icon:'',
                                   leaf:true
                               }]
                           },{
                               text:'成绩管理',
                               icon:'../image/tianjia.png',
                               children:[{
                                   text:'查询成绩',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'修改成绩',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'删除成绩',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'查询成绩',
                                   icon:'',
                                   leaf:true
                               }]
                           },{
                               text:'课程管理',
                               icon:'../image/tianjia.png',
                               children:[{
                                   text:'添加课程',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'修改课程',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'删除课程',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'查询课程',
                                   icon:'',
                                   leaf:true
                               }]
                           },{
                               text:'报名管理',
                               icon:'../image/tianjia.png',
                               children:[{
                                   text:'我要报名',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'修改报名',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'删除报名',
                                   icon:'',
                                   leaf:true
                               },{
                                   text:'查询报名',
                                   icon:'',
                                   leaf:true
                               }]
                           }]
                       }
                   })]
               }]
           },{/*元素集*/
               region:'south',
               border:false,
              height:30,
              tbar:['当前登陆用户:【admin】','->','地址:百度','版权所有,<a href="www.baidu.com">北方网</a>']

           }]
       });
    });
</script>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值