1
zj
2025-06-18 69d7ae376a58c399c97ee42e5ff7a13860cb2b7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<%@ page language="java" pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<jsp:useBean id="security" class="security.web.BaseSecurityAction" scope="page" />
 
<%@ include file="include/pagetop.jsp"%>
 
<!DOCTYPE html>
<html>
 
<head>
<%@ include file="include/head.jsp"%>
</head>
 
<body>
 
    <%@ include file="include/loading.jsp"%>
 
    <!-- //////////////////////////////////////////////////////////////////////////// -->
    <!-- START CONTENT -->
    <div class="ifr-dody">
 
        <!-- //////////////////////////////////////////////////////////////////////////// -->
        <!-- START CONTAINER -->
        <div class="ifr-con">
            <h3>交割场控设置</h3>
 
            <!-- //////////////////////////////////////////////////////////////////////////// -->
            <!-- START queryForm -->
 
            <%@ include file="include/alert.jsp"%>
 
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
 
                        <div class="panel-title">查询条件</div>
                        <div class="panel-body">
 
                            <form class="form-horizontal" action="<%=basePath%>normal/adminProfitAndLossConfigAction!list.action"
                                method="post" id="queryForm">
                                
                                <input type="hidden" name="pageNo" id="pageNo" value="${pageNo}" />
 
                                <div class="col-md-12 col-lg-4">
                                    <fieldset>
                                        <div class="control-group">
                                            <div class="controls">
                                                <!-- <s:textfield id="name_para" name="name_para"
                                                    cssClass="form-control " placeholder="用户名、UID" /> -->
                                                <input id="name_para" name="name_para"
                                                    class="form-control " placeholder="用户名、UID" value="${name_para}" />
                                            </div>
                                        </div>
                                    </fieldset>
                                </div>
 
                                <div class="col-md-12 col-lg-2">
                                    <button type="submit" class="btn btn-light btn-block">查询</button>
                                </div>
 
                            </form>
 
                        </div>
                         
                    </div>
                </div>
            </div>
            <!-- END queryForm -->
            <!-- //////////////////////////////////////////////////////////////////////////// -->
 
            <div class="row">
                <div class="col-md-12">
                    <!-- Start Panel -->
                    <div class="panel panel-default">
 
                        <div class="panel-title">查询结果</div>
                
                        <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')
                                     || security.isResourceAccessible('OP_PROFIT_AND_LOSS_CONFIG_OPERATE')}">
                        
                            <a href="<%=basePath%>normal/adminProfitAndLossConfigAction!toAdd.action"
                                class="btn btn-light" style="margin-bottom: 10px"><i class="fa fa-pencil"></i>新增</a>
                                            
                        </c:if>
                            
                        <div class="panel-body">
 
                            <table class="table table-bordered table-striped">
                            
                                <thead>
                                    <tr>
                                        <td>用户名</td>
                                        <td>UID</td>
                                        <td>账户类型</td>
                                        <td>类型</td>
                                        <td>备注</td>
                                        <td width="130px"></td>
                                    </tr>
                                </thead>
                                
                                <tbody>
                                    <!-- <s:iterator value="page.elements" status="stat"> -->
                                    <c:forEach items="${page.getElements()}" var="item" varStatus="stat">
                                        <tr>
                                            <td>${item.username}</td>
                                            <td>${item.usercode}</td>
                                            <td>
                                                <c:choose>
                                                    <c:when test="${item.rolename=='GUEST'}">
                                                        <span class="right label label-warning">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:when test="${item.rolename=='MEMBER'}">
                                                        <span class="right label label-success">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:when test="${item.rolename=='TEST'}">
                                                        <span class="right label label-default">${item.roleNameDesc}</span>
                                                    </c:when>
                                                    <c:otherwise>
                                                         ${item.roleNameDesc}
                                                    </c:otherwise>    
                                                </c:choose>
                                            </td>
                                            <td>${item.type}</td>
                                            <%-- <td><s:if test='type=="1"'>盈利</s:if>
                                            <s:if test='type=="2"'>亏损</s:if>
                                            <s:if test='type=="3"'>买多盈利</s:if>
                                            <s:if test='type=="4"'>买空盈利</s:if>
                                            </td> --%>
                                            <td>${item.remark}</td>
 
                                            <td>
                
                                                <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')
                                                             || security.isResourceAccessible('OP_PROFIT_AND_LOSS_CONFIG_OPERATE')}">
                                            
                                                    <div class="btn-group">
                                                        <button type="button" class="btn btn-light">操作</button>
                                                        <button type="button" class="btn btn-light dropdown-toggle"
                                                            data-toggle="dropdown" aria-expanded="false">
                                                            <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span>
                                                        </button>
                                                        <ul class="dropdown-menu" role="menu">
                                                        
                                                            <li><a href="<%=basePath%>normal/adminProfitAndLossConfigAction!toUpdate.action?id=${item.id}">修改</a></li>
                                                            <li><a href="<%=basePath%>normal/adminProfitAndLossConfigAction!toDelete.action?id=${item.id}">删除</a></li>
                                                        
                                                        </ul>
                                                    </div>
                                            
                                                </c:if>
                                                
                                            </td>
 
                                        </tr>
                                    <!-- </s:iterator> -->
                                    </c:forEach>
                                </tbody>
                                
                            </table>
                            
                            <%@ include file="include/page_simple.jsp"%>
                            
                            <!-- <nav> -->
                        </div>
 
                    </div>
                    <!-- End Panel -->
 
                </div>
            </div>
 
        </div>
        <!-- END CONTAINER -->
        <!-- //////////////////////////////////////////////////////////////////////////// -->
 
        <%@ include file="include/footer.jsp"%>
 
    </div>
    <!-- End Content -->
    <!-- //////////////////////////////////////////////////////////////////////////// -->
 
    <%@ include file="include/js.jsp"%>
    
    <script src="<%=basePath%>js/bootstrap/bootstrap-treeview.js"></script>
    
    <script>
        $(function() {
            var data = <s:property value="result" escape='false' />;
            console.log(data);
            $("#treeview4").treeview({
                color : "#428bca",
                enableLinks : true,
                nodeIcon : "glyphicon glyphicon-user",
                data : data,
                levels : 4,
            });
        });
    </script>
 
    <script type="text/javascript"></script>
    
</body>
 
</html>