perlist
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <title>权限管理</title>
7 <#include "../common/link.ftl">
8 <script>
9 function permissionreset(){
10 $.post('/permission/reload.do',function (data){
11 if (data.flag){
12 //刷新页面即可
13 window.location.reload();
14 }else {
15 $.messager.popup(data.msg);
16 }
17
18 });
19 }
20 </script>
21 </head>
22 <body class="hold-transition skin-blue sidebar-mini">
23 <div class="wrapper">
24 <#include "../common/navbar.ftl">
25 <!--菜单回显-->
26 <#assign currentMenu="permission">
27 <#include "../common/menu.ftl">
28 <div class="content-wrapper">
29 <section class="content-header">
30 <h1>权限管理</h1>
31 </section>
32 <section class="content">
33 <div class="box" >
34 <!--高级查询--->
35 <form class="form-inline" id="searchForm" action="/permission/list.do" method="post">
36 <input type="hidden" name="currentPage" id="currentPage" value="1">
37 <a href="javascript:permissionreset();" class="btn btn-success btn_reload" style="margin: 10px;">
38 <span class="glyphicon glyphicon-repeat"></span> 重新加载
39 </a>
40 </form>
41
42 <table class="table table-striped table-hover" >
43 <thead>
44 <tr>
45 <th>编号</th>
46 <th>权限名称</th>
47 <th>权限表达式</th>
48 <th>操作</th>
49 </tr>
50 </thead>
51 <#list pageInfo.list as permission>
52 <tr>
53 <td>${permission?counter}</td>
54 <td>${permission.name}</td>
55 <td>${permission.expression}</td>
56 <td>
57 <@shiro.hasPermission name="permission:delete">
58 <a href="/permission/delete.do?id=${permission.id}" class="btn btn-danger btn-xs btn_delete" >
59 <span class="glyphicon glyphicon-trash"></span> 删除
60 </a>
61 </@shiro.hasPermission>
62 </td>
63 </tr>
64 </#list>
65 </table>
66 <!--分页-->
67 <#include "../common/page.ftl">
68 </div>
69 </section>
70 </div>
71 <#include "../common/footer.ftl">
72 </div>
73 </body>
74 </html>
perlist的更多相关文章
- XML的解析和保存
1.XML(extensible markup language;XML ) 定义:,可以用来标记数据.定义数据类型,是一种允许用户对自己的标记语言进行定义的源语言. XML语法规范: 标 ...
- 使用Gson送解析Json格式
Java bean: package com.jingle.a; public class Person { public String name; public int age; public Pe ...
- SpringMVC+Shiro权限管理
什么是权限呢?举个简单的例子: 我有一个论坛,注册的用户分为normal用户,manager用户.对论坛的帖子的操作有这些:添加,删除,更新,查看,回复我们规定:normal用户只能:添加,查看,回复 ...
- SpringMVC下的Shiro权限框架的使用
SpringMVC+Shiro权限管理 博文目录 权限的简单描述 实例表结构及内容及POJO Shiro-pom.xml Shiro-web.xml Shiro-MyShiro-权限认证,登录认证层 ...
- Maven+Spring+Hibernate+Shiro+Mysql简单的demo框架(一)
相关的maven的 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="ht ...
- 初识--Ajax & Json
1,AJAX是一种进行页面局部异步刷新技术. 用AJAX向服务器发送请求和获得服务器返回的数据并更新到页面中. 不是刷新整个页面,而是在HTML页面中使用JavaScript创建XMLHTTPRequ ...
- 『重构--改善既有代码的设计』读书笔记----Substitute Algorithm
重构可以把复杂的东西分解成一个个简单的小块.但有时候,你必须壮士断腕删掉整个算法,用简单的算法来取代,如果你发现做一件事情可以有更清晰的方式,那你完全有理由用更清晰的方式来解决问题.如果你开始使用程序 ...
- c#操作word文档之简历导出
前言 1.写这个功能之前,我得说说微软的这个类库,用着真苦逼!是他让我有程序猿,攻城尸的感觉了.首先这个类库,从没接触过,方法与属性都不懂,还没有提示.神啊,我做这功能真是一步一卡,很潇洒啊. 2.这 ...
- shiro权限框架
权限的组成部分:用户 资源 角色 权限 数据库关系表设计是根据自己项目需求设计的 account表role表(id,rolename)account_role(id,aid,rid)permissio ...
- C#基本功之泛型
一.没有泛型之前 在没有泛型之前,我们是怎么处理不同类型的相同操作的: 示例1 //下面是一个处理string类型的集合类型 public class MyStringList { string[] ...
随机推荐
- 【博学谷学习记录】超强总结,用心分享|前端CSS总结(一)
CSS总结(一) shift+alt,选中多行 外链式 <link rel="stylesheet" href="./my.css"> 1 选择器 ...
- [随笔所想] UBC学习生活经验分享
当时受到了很多人的帮助,在网上也查到了很多经验帖子,比如如何办理签证,如何填写表格,要准备哪些材料以及生活上要带哪些物品,等等.当时就想到等我办理好这些,也一定和大家分享,为更多的人提供一些参考. 1 ...
- [常用工具] OpenCV获取网络摄像头实时视频流
所需要硬件及软件环境: python 3/OpenCV3.4 or C++11/OpenCV3.4 1 RTSP协议 RTSP (Real Time Streaming Protocol),是一种语法 ...
- Java线程诊断
1.诊断CPU占用过高 [root@master ~]# nohup java -jar JvmProject.jar & // 有问题的java程序 [1] 1627 [root@maste ...
- 1.5万字总结 Redis 常见面试题&知识点
以下内容来源于于我开源的 JavaGuide (Java学习&&面试指南,Github 130k star,370人共同参与爱完善), 万字总结,质量有保障! 这篇文章最早写于2019 ...
- [Leetcode]环形链表 II
题目 代码 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * Li ...
- Xcode找不到.h或者.m文件解决办法 .h file not found
Xcode找不到.h或者.m文件解决办法 .h file not found 开篇唠叨 小黑最经又开始干iOS接入微信SDK了,目前刚开始就遇到了困难,于是总结一下分享给大家,要是大家看完了还解决 ...
- 【Azure Cache for Redis】Python Djange-Redis连接Azure Redis服务遇上(104, 'Connection reset by peer')
问题描述 使用Python连接Azure Redis服务,因为在代码中使用的是Djange-redis组件,所以通过如下的配置连接到Azure Redis服务: CACHES = { "de ...
- 2023年 .NET Monorepo 来了
Monorepo(monolithic repository)是一种项目架构,简单来说就是,将多个项目或包文件放到一个git仓库来管理,很多前端项目vue3.element都是采用的这种架构模式. 之 ...
- 一键部署nfs、rsync、sersync
一键部署nfs.rsync.sersync 项目代码: 链接:https://pan.baidu.com/s/13I0BBAYsdK-KmPekZ5VpdA 提取码:u2tw --来自百度网盘超级会员 ...