zoukankan      html  css  js  c++  java
  • easyUI框架之学习2--添加左侧导航栏

    <head>

    function addTab(title, url)
    {
    if ($('#tableContainer').tabs('exists', title))
    {
    $('#tableContainer').tabs('select', title);
    }
    else
    {
    var content = '<iframe scrolling="auto" frameborder="0" src="' + url + '" style="100%;height:100%;"></iframe>';
    $('#tableContainer').tabs('add', {
    title: title,
    content: content,
    closable: true
    });
    }
    }

    </head>

    <div data-options="region:'west',split:true" title="导航菜单" style="280px;padding1:1px;overflow:hidden;">
    <div class="easyui-accordion" data-options="fit:true,border:false" style="1024px;height:500px;padding-left:1px;">
    <div title="权限管理" style="padding:10px;overflow:auto;" data-options="iconCls:'icon-add'">
    <a href="#" onclick="addTab('百度','http://www.baidu.com')">添加用户</a>
    <p>
    <a href="#" onclick="addTab('百度','http://www.baidu.com')">编辑用户</a>
    </p>
    <a href="#" onclick="addTab('百度','http://www.baidu.com')">添加角色</a>
    <p></p>
    <a href="#" onclick="addTab('百度','http://www.baidu.com')">编辑角色</a>
    <p></p>
    <a href="#" onclick="addTab('百度','http://www.baidu.com')">添加权限</a>
    <p></p>
    <a href="#" onclick="addTab('百度','http://www.baidu.com')">编辑角色权限</a>
    <p></p>
    <a href="#" onclick="addTab('百度','http://www.baidu.com')">编辑用户权限</a>
    </div>
    <div title="日志管理" style="padding:10px;">
    content2
    </div>
    <div title="销售管理" data-options="selected:true" style="padding:10px">
    <a href="#" onclick="addTab('销售管理','/AddSaleOrder/Index')">AddTab</a>
    </div>

    </div>

    </div>

  • 相关阅读:
    Truck History(poj 1789)
    Highways poj 2485
    117. Populating Next Right Pointers in Each Node II
    116. Populating Next Right Pointers in Each Node
    115. Distinct Subsequences
    114. Flatten Binary Tree to Linked List
    113. Path Sum II
    109. Convert Sorted List to Binary Search Tree
    106. Construct Binary Tree from Inorder and Postorder Traversal
    105. Construct Binary Tree from Preorder and Inorder Traversal
  • 原文地址:https://www.cnblogs.com/zhshlimi/p/5000996.html
Copyright © 2011-2022 走看看