养身动作好处
平时只要花很少的时间去做做,好过生病后吃药。
页面
养生动作列表,全部数据在“数据库表”中。
数据库表
CREATE TABLE `action` (
`action_id` int NOT NULL AUTO_INCREMENT COMMENT '编号',
`action_content` text COMMENT '养生动作',
PRIMARY KEY (`action_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='养生小动作';
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('发常梳,可在办公桌上摆放一只梳子。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('目常运。两眼睁开,眼珠慢慢地向左右,上下,远近各活动18次。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('面常浴。两眼轻闭,先将两手搓热,然后按摩面部。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('鼻常揉。用中指揉按迎香穴。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('齿常叩。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('舌常搅。按顺时针和逆时针方向慢慢地转动。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('津常咽。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('耳常弹。手掌捂住耳朵,食指压在中指指背上,滑弹后脑勺。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('头常抬。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('胸常撸。手掌上下撸胸。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('腹常摩。双掌掌心叠放在肚脐上,顺时针和逆时针摩擦腹部。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('腰常转。掌心放在肾俞穴,指尖朝下,顺时针和逆时针旋转。随后左右转腰。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('丹常养。掌心放在肚脐下方小腹处静坐。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('肛常提。吸气时收腹提肛,呼气时鼓腹松肛。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('肩常摇。手臂前后摆动。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('膝常蹲。屈膝再伸直。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('腿常跷。一只腿伸直上跷。');
INSERT INTO `jeesite`.`action` (`action_content`) VALUES ('跟常颠。脚跟踮起后落下。');
页面代码
<% layout('/layouts/default.html', {title: '养生小动作管理', libs: ['dataGrid']}){ %>
<div class="main-content">
<div class="box box-main">
<div class="box-header">
<div class="box-title">
<i class="fa icon-notebook"></i> ${text('养生小动作管理')}
</div>
<div class="box-tools pull-right">
<a href="#" class="btn btn-default" id="btnSearch" title="${text('查询')}"><i class="fa fa-filter"></i> ${text('查询')}</a>
<% if(hasPermi('action:action:edit')){ %>
<a href="${ctx}/action/action/form" class="btn btn-default btnTool" title="${text('新增养生小动作')}"><i class="fa fa-plus"></i> ${text('新增')}</a>
<% } %>
<a href="#" class="btn btn-default" id="btnSetting" title="${text('设置')}"><i class="fa fa-navicon"></i></a>
</div>
</div>
<div class="box-body">
<#form:form id="searchForm" model="${action}" action="${ctx}/action/action/listData" method="post" class="form-inline hide"
data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
<div class="form-group">
<label class="control-label">${text('养生动作')}:</label>
<div class="control-inline">
<#form:input path="actionContent" class="form-control width-120"/>
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary btn-sm"><i class="glyphicon glyphicon-search"></i> ${text('查询')}</button>
<button type="reset" class="btn btn-default btn-sm isQuick"><i class="glyphicon glyphicon-repeat"></i> ${text('重置')}</button>
</div>
</#form:form>
<table id="dataGrid"></table>
<div id="dataGridPage"></div>
</div>
</div>
</div>
<% } %>
<script>
//# // 初始化DataGrid对象
$('#dataGrid').dataGrid({
searchForm: $('#searchForm'),
columnModel: [
{header:'${text("养生动作")}', name:'actionContent', index:'a.action_content', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){
return '<a href="${ctx}/action/action/form?actionId='+row.actionId+'" class="btnList" data-title="${text("编辑养生小动作")}">'+(val||row.id)+'</a>';
}},
{header:'${text("操作")}', name:'actions', width:120, formatter: function(val, obj, row, act){
var actions = [];
//# if(hasPermi('action:action:edit')){
actions.push('<a href="${ctx}/action/action/form?actionId='+row.actionId+'" class="btnList" title="${text("编辑养生小动作")}"><i class="fa fa-pencil"></i></a> ');
actions.push('<a href="${ctx}/action/action/delete?actionId='+row.actionId+'" class="btnList" title="${text("删除养生小动作")}" data-confirm="${text("确认要删除该养生小动作吗?")}"><i class="fa fa-trash-o"></i></a> ');
//# }
return actions.join('');
}}
],
//# // 加载成功后执行事件
ajaxSuccess: function(data){
}
});
</script>