2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
<style>
    .btn_arrow {
        width: 19px;
        height: 25px;
        float: left;
        background: url('/image/arrow.png') no-repeat 0px 0px;
        margin-left: 15px;
        margin-bottom: 10px;
        cursor: pointer;
    }
</style>
<form class="form-horizontal" id="ZYformSort" shiro:hasPermission="res:catalog:edit"
      xmlns:shiro="http://www.w3.org/1999/xhtml">
    <div class="row">
        <div style="float: left;width: 350px;height: 303px;overflow-y: auto;">
            <div class="controls" style="margin-left: 35px;">
                <!--<select class="m-wrap" multiple="multiple" name="selNode" size="18" id="ZyOrderTree" style="width:90%;">-->
 
                <!--</select>-->
                <ul id="ZyOrderTree" class="tabbable">
 
                </ul>
            </div>
        </div>
        <div style="float: left;width: 50px; padding: 50px 0 0 15px;">
            <!--<div>&nbsp;</div>-->
            <!--<div class="UpClass">-->
                <!--<a href="javascript:;" class="fa fa-arrow-up" style="text-decoration:none;" title="上移"><i></i></a>-->
            <!--</div>-->
            <!--<div>&nbsp;</div>-->
            <!--<div>&nbsp;</div>-->
            <!--<div class="DownClass">-->
                <!--<a href="javascript:;" class="fa fa-arrow-down" style="text-decoration:none;" title="下移"><i></i></a>-->
            <!--</div>-->
            <!--<div>&nbsp;</div>-->
            <!--<div>&nbsp;</div>-->
            <div class="btn_arrow TopClass" title="置顶"></div>
            <div class="btn_arrow UpClass" title="上移" style="background-position: 0px -85px; margin-bottom: 25px;"></div>
            <div class="btn_arrow DownClass" title="下移" style="background-position: 0px -49px"></div>
            <div class="btn_arrow BottomClass" title="置底"  style="background-position: 0px -125px"></div>
            <div>
 
        </div>
            <div>
            <button shiro:hasPermission="res:catalog:edit" type="button" class="btn btn-primary" onclick="ZySort();">
                <i class="icon-save"></i> 确定排序
            </button>
        </div>
    </div>
    <script>
        //资源排序--资源选中
        function SetSelect(obj) {
            $("#ZyOrderTree li").removeClass("active");
            obj.className = "active";
        }
 
        //资源排序--资源上移
        $('.UpClass').click(function () {
            $('#ZyOrderTree li.active').insertBefore($('#ZyOrderTree li.active').prev());
        });
 
        //资源排序--资源下移
        $('.DownClass').click(function () {
            $('#ZyOrderTree li.active').insertAfter($('#ZyOrderTree li.active').next());
        });
 
        //资源排序--资源顶置
        $('.TopClass').click(function () {
            $('#ZyOrderTree li.active').insertBefore($('#ZyOrderTree li').first());
        });
 
        //资源排序--资源底置
        $('.BottomClass').click(function () {
            $('#ZyOrderTree li.active').insertAfter($('#ZyOrderTree li').last());
        });
    </script>
</form>