peternameyakj
2024-10-24 7621191445c6f37f0d8253657560be6202778395
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
<%@ page language="java" pageEncoding="utf-8" isELIgnored="false" deferredSyntaxAllowedAsLiteral="true"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
 
<div class="">
 
    <%@ include file="include/alert.jsp"%>
 
    <div>
        <div class="col-md-3"></div>
        <div class="control-group col-md-3">
            <div class="controls">
                <input id="base_currency" name="base_currency" class="form-control "
                    placeholder="基础币种" value="${base_currency}" onblur="csPage('1')" />
            </div>
        </div>
    </div>
    <!-- END queryForm -->
 
    <div class="row">
        <div class="col-md-12">
        
            <div class="col-md-3">
                <div class="panel-body">
 
                    <table class="table table-bordered table-striped">
 
                        <thead>
                            <tr>
                                <td style="text-align: center;">报价币种</td>
                            </tr>
                        </thead>
 
                        <tbody>
                            <c:forEach items="${quoteList}" var="item" varStatus="stat">
                                <tr id="tr_${item}" class="tr_quote">
                                    <td style="padding: 5px; text-align: center;">
                                        <a href="javascript:csPage('1','${item}')">${item}</a>
                                    </td>
                                </tr>
                            </c:forEach>
                        </tbody>
                        
                    </table>
 
                    <!-- <nav> -->
                </div>
            </div>
            
            <div class="col-md-9">
                <div class="panel-body ">
                
                    <table class="table table-bordered table-striped">
                    
                        <thead>
                            <tr>
                                <td></td>
                                <td style="text-align: center;">基础币种</td>
                                <td style="text-align: center;">交易对</td>
                            </tr>
                        </thead>
                        
                        <tbody>
                            <!-- <s:iterator value="page.elements" status="stat"> -->
                            <c:forEach items="${page.getElements()}" var="item" varStatus="stat">
                                <tr>
                                    <td style="padding: 5px; text-align: center;">
                                        <!-- <div class="checkbox checkbox-success checkbox-circle"><input type="checkbox" name="choseSymbol" ></input></div> -->
                                        <div class="checkbox checkbox-success checkbox-circle"
                                            style="padding-left: 27px; height: 0px; margin-top: 3px;">
                                            <input id="checkbox${stat.index}" type="checkbox" class="symbolCheck"
                                                onClick="checkToRadio(this)" value="${item.symbol}"> 
                                                <label for="checkbox${stat.index}"> </label>
                                        </div>
                                    </td>
                                    <td style="padding: 5px; text-align: center;">${item.base_currency}</td>
                                    <td style="padding: 5px; text-align: center;">${item.symbol}</td>
                                </tr>
                            <!-- </s:iterator> -->
                            </c:forEach>
                        </tbody>
                        
                    </table>
 
                    <ul class="pager" style="text-align: right;">
                        <li><a href="javascript:csPage('${pageNo-1}')">上一页</a></li>
                        <li><a href="javascript:csPage('${pageNo+1}')">下一页</a></li>
                    </ul>
                </div>
 
            </div>
 
        </div>
    </div>
    
    <input type="hidden" value="${basePath}/normal/adminContractSymbolsAction!list.action" id='csUrl' />
        
</div>
 
<script>
    function checkToRadio(e) {
        className = $(e).attr("class");
        console.log();
        $("." + className).prop("checked", false);
        $(e).prop("checked", true);
    }
</script>