houzhongjian
2024-07-23 a6de490948278991e47952e90671ddba4555e9a2
提交 | 用户 | 时间
e7c126 1 <#macro commonStyle>
H 2
3     <#-- favicon -->
4     <link rel="icon" href="${request.contextPath}/static/favicon.ico" />
5
6     <meta charset="utf-8">
7     <meta http-equiv="X-UA-Compatible" content="IE=edge">
8     <!-- Tell the browser to be responsive to screen width -->
9     <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
10     <!-- Bootstrap -->
11     <link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/bootstrap/css/bootstrap.min.css">
12     <!-- Font Awesome -->
13     <link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/font-awesome/css/font-awesome.min.css">
14     <!-- Ionicons -->
15     <link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/Ionicons/css/ionicons.min.css">
16     <!-- Theme style -->
17     <link rel="stylesheet" href="${request.contextPath}/static/adminlte/dist/css/AdminLTE.min.css">
18     <!-- AdminLTE Skins. Choose a skin from the css/skins folder instead of downloading all of them to reduce the load. -->
19     <link rel="stylesheet" href="${request.contextPath}/static/adminlte/dist/css/skins/_all-skins.min.css">
20       
21     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
22     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
23     <!--[if lt IE 9]>
24     <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
25     <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
26     <![endif]-->
27
28     <!-- pace -->
29     <link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/PACE/themes/blue/pace-theme-flash.css">
30
31     <#-- i18n -->
32     <#global I18n = I18nUtil.getMultString()?eval />
33
34 </#macro>
35
36 <#macro commonScript>
37     <!-- jQuery -->
38     <script src="${request.contextPath}/static/adminlte/bower_components/jquery/jquery.min.js"></script>
39     <!-- Bootstrap -->
40     <script src="${request.contextPath}/static/adminlte/bower_components/bootstrap/js/bootstrap.min.js"></script>
41     <!-- FastClick -->
42     <script src="${request.contextPath}/static/adminlte/bower_components/fastclick/fastclick.js"></script>
43     <!-- AdminLTE App -->
44     <script src="${request.contextPath}/static/adminlte/dist/js/adminlte.min.js"></script>
45     <!-- jquery.slimscroll -->
46     <script src="${request.contextPath}/static/adminlte/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
47
48     <!-- pace -->
49     <script src="${request.contextPath}/static/adminlte/bower_components/PACE/pace.min.js"></script>
50     <#-- jquery cookie -->
51     <script src="${request.contextPath}/static/plugins/jquery/jquery.cookie.js"></script>
52     <#-- jquery.validate -->
53     <script src="${request.contextPath}/static/plugins/jquery/jquery.validate.min.js"></script>
54
55     <#-- layer -->
56     <script src="${request.contextPath}/static/plugins/layer/layer.js"></script>
57
58     <#-- common -->
59     <script src="${request.contextPath}/static/js/common.1.js"></script>
60     <script>
61         var base_url = '${request.contextPath}';
62         var I18n = ${I18nUtil.getMultString()};
63     </script>
64
65 </#macro>
66
67 <#macro commonHeader>
68     <header class="main-header">
69         <a href="${request.contextPath}/" class="logo">
70             <span class="logo-mini"><b>XXL</b></span>
71             <span class="logo-lg"><b>${I18n.admin_name}</b></span>
72         </a>
73         <nav class="navbar navbar-static-top" role="navigation">
74
75             <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
76                 <span class="sr-only">Toggle navigation</span>
77                 <span class="icon-bar"></span>
78                 <span class="icon-bar"></span>
79                 <span class="icon-bar"></span>
80             </a>
81
82               <div class="navbar-custom-menu">
83                 <ul class="nav navbar-nav">
84                     <#-- login user -->
85                     <li class="dropdown">
86                         <a href="javascript:" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
87                             ${I18n.system_welcome} ${Request["XXL_JOB_LOGIN_IDENTITY"].username}
88                             <span class="caret"></span>
89                         </a>
90                         <ul class="dropdown-menu" role="menu">
91                             <li id="updatePwd" ><a href="javascript:">${I18n.change_pwd}</a></li>
92                             <li id="logoutBtn" ><a href="javascript:">${I18n.logout_btn}</a></li>
93                         </ul>
94                     </li>
95                 </ul>
96             </div>
97
98         </nav>
99     </header>
100
101     <!-- 修改密码.模态框 -->
102     <div class="modal fade" id="updatePwdModal" tabindex="-1" role="dialog"  aria-hidden="true">
103         <div class="modal-dialog ">
104             <div class="modal-content">
105                 <div class="modal-header">
106                     <h4 class="modal-title" >${I18n.change_pwd}</h4>
107                 </div>
108                 <div class="modal-body">
109                     <form class="form-horizontal form" role="form" >
110                         <div class="form-group">
111                             <label for="lastname" class="col-sm-2 control-label">${I18n.change_pwd_field_newpwd}<font color="red">*</font></label>
112                             <div class="col-sm-10"><input type="text" class="form-control" name="password" placeholder="${I18n.system_please_input} ${I18n.change_pwd_field_newpwd}" maxlength="18" ></div>
113                         </div>
114                         <hr>
115                         <div class="form-group">
116                             <div class="col-sm-offset-3 col-sm-6">
117                                 <button type="submit" class="btn btn-primary"  >${I18n.system_save}</button>
118                                 <button type="button" class="btn btn-default" data-dismiss="modal">${I18n.system_cancel}</button>
119                             </div>
120                         </div>
121                     </form>
122                 </div>
123             </div>
124         </div>
125     </div>
126
127 </#macro>
128
129 <#macro commonLeft pageName >
130     <!-- Left side column. contains the logo and sidebar -->
131     <aside class="main-sidebar">
132         <!-- sidebar: style can be found in sidebar.less -->
133         <section class="sidebar">
134             <!-- sidebar menu: : style can be found in sidebar.less -->
135             <ul class="sidebar-menu">
136                 <li class="header">${I18n.system_nav}</li>
137                 <li class="nav-click <#if pageName == "index">active</#if>" ><a href="${request.contextPath}/"><i class="fa fa-circle-o text-aqua"></i><span>${I18n.job_dashboard_name}</span></a></li>
138                 <li class="nav-click <#if pageName == "jobinfo">active</#if>" ><a href="${request.contextPath}/jobinfo"><i class="fa fa-circle-o text-yellow"></i><span>${I18n.jobinfo_name}</span></a></li>
139                 <li class="nav-click <#if pageName == "joblog">active</#if>" ><a href="${request.contextPath}/joblog"><i class="fa fa-circle-o text-green"></i><span>${I18n.joblog_name}</span></a></li>
140                 <#if Request["XXL_JOB_LOGIN_IDENTITY"].role == 1>
141                     <li class="nav-click <#if pageName == "jobgroup">active</#if>" ><a href="${request.contextPath}/jobgroup"><i class="fa fa-circle-o text-red"></i><span>${I18n.jobgroup_name}</span></a></li>
142                     <li class="nav-click <#if pageName == "user">active</#if>" ><a href="${request.contextPath}/user"><i class="fa fa-circle-o text-purple"></i><span>${I18n.user_manage}</span></a></li>
143                 </#if>
a6de49 144 <#--                <li class="nav-click <#if pageName == "help">active</#if>" ><a href="${request.contextPath}/help"><i class="fa fa-circle-o text-gray"></i><span>${I18n.job_help}</span></a></li>-->
e7c126 145             </ul>
H 146         </section>
147         <!-- /.sidebar -->
148     </aside>
149 </#macro>
150
151 <#macro commonControl >
152     <!-- Control Sidebar -->
153     <aside class="control-sidebar control-sidebar-dark">
154         <!-- Create the tabs -->
155         <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
156             <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
157             <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
158         </ul>
159         <!-- Tab panes -->
160         <div class="tab-content">
161             <!-- Home tab content -->
162             <div class="tab-pane active" id="control-sidebar-home-tab">
163                 <h3 class="control-sidebar-heading">近期活动</h3>
164                 <ul class="control-sidebar-menu">
165                     <li>
166                         <a href="javascript::;">
167                             <i class="menu-icon fa fa-birthday-cake bg-red"></i>
168                             <div class="menu-info">
169                                 <h4 class="control-sidebar-subheading">张三今天过生日</h4>
170                                 <p>2015-09-10</p>
171                             </div>
172                         </a>
173                     </li>
174                     <li>
175                         <a href="javascript::;"> 
176                             <i class="menu-icon fa fa-user bg-yellow"></i>
177                             <div class="menu-info">
178                                 <h4 class="control-sidebar-subheading">Frodo 更新了资料</h4>
179                                 <p>更新手机号码 +1(800)555-1234</p>
180                             </div>
181                         </a>
182                     </li>
183                     <li>
184                         <a href="javascript::;"> 
185                             <i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
186                             <div class="menu-info">
187                                 <h4 class="control-sidebar-subheading">Nora 加入邮件列表</h4>
188                                 <p>nora@example.com</p>
189                             </div>
190                         </a>
191                     </li>
192                     <li>
193                         <a href="javascript::;">
194                         <i class="menu-icon fa fa-file-code-o bg-green"></i>
195                         <div class="menu-info">
196                             <h4 class="control-sidebar-subheading">001号定时作业调度</h4>
197                             <p>5秒前执行</p>
198                         </div>
199                         </a>
200                     </li>
201                 </ul>
202                 <!-- /.control-sidebar-menu -->
203             </div>
204             <!-- /.tab-pane -->
205
206             <!-- Settings tab content -->
207             <div class="tab-pane" id="control-sidebar-settings-tab">
208                 <form method="post">
209                     <h3 class="control-sidebar-heading">个人设置</h3>
210                     <div class="form-group">
211                         <label class="control-sidebar-subheading"> 左侧菜单自适应
212                             <input type="checkbox" class="pull-right" checked>
213                         </label>
214                         <p>左侧菜单栏样式自适应</p>
215                     </div>
216                     <!-- /.form-group -->
217
218                 </form>
219             </div>
220             <!-- /.tab-pane -->
221         </div>
222     </aside>
223     <!-- /.control-sidebar -->
224     <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar -->
225     <div class="control-sidebar-bg"></div>
226 </#macro>
227
228 <#macro commonFooter >
229     <footer class="main-footer">
230         Powered by <b>XXL-JOB</b> ${I18n.admin_version}
231         <div class="pull-right hidden-xs">
232             <strong>Copyright &copy; 2019-${.now?string('yyyy')} &nbsp;
233                  Iailab
234             </strong><!-- All rights reserved. -->
235         </div>
236     </footer>
237 </#macro>