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
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
<!--
功能描述:后台管理 - 资源管理 - 资源发布 - 数据库表扩展信息 - 选择数据源(面板)
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org" layout:decorator="MasterPage/Layout.Empty">
<head>
    <meta charset="UTF-8" />
    <title>资源新增或修改</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" />
    <link rel="stylesheet" th:href="@{${pubzyWebRoot} + 'BootStrap4/expand/plugins/portlet/css/portlet.css'}" />
    <link th:href="@{${pubzyWebRoot} + 'ext-4.2.1.883/resources/css/ext-all-neptune.css'}" rel="stylesheet" type="text/css" />
    <script th:src="@{${pubzyWebRoot} + 'BootStrap4/expand/plugins/portlet/portlet.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/ext-all.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/locale/ext-lang-zh_CN.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'ext-4.2.1.883/PagingToolbar.js'}"></script>
    <script th:src="@{${pubzyWebRoot} + 'media/js/jquery.form-3.51.0.js'}"></script>
    <script src="/js/manage/datasource/panel_select.js"></script>
    <style>
        body {
            background-color: white;
            box-sizing: border-box;
            overflow-x: hidden;
        }
 
        .form-control {
            padding: 0.3rem 0.7rem;
            height: 34px;
            display: inline-block;
        }
 
        .control-label {
            padding-top: 0 !important;
            width: 94px;
            float: left;
            line-height: 30px;
            padding-right: 1em;
        }
 
        .control-group {
            margin-bottom: 1em;
        }
 
        .controls {
            margin-left: 94px;
        }
 
        .row {
            margin-left: 0;
            margin-right: 0;
        }
 
        .col-sm-3,
        .col-sm-6,
        .col-sm-12 {
            padding-left: 0;
            padding-right: 0;
        }
 
        .fade {
            display: none;
        }
 
        .in.fade {
            display: block;
        }
 
        .control-group error {
            border-color: #b94a48;
        }
 
        #button {
            color: #fff !important;
            background-color: #039cfd !important;
            border-color: #039cfd !important;
        }
 
        img {
            cursor: pointer;
        }
 
        .nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus {
            color: #555;
            cursor: default;
            background-color: #fff;
            border: 1px solid #ddd;
            border-bottom-color: transparent;
        }
 
        .x-grid-view {
            overflow: hidden !important;
        }
 
        .x-body{
            overflow-x: hidden;
        }
    </style>
 
    <script>
 
        function OpenShuJuYuan(id) {
            layer.open({
                type: 2,
                title: "修改数据源",
                shadeClose: true,
                area: ["700px", "500px"],
                content: "/res/manage/datasource/edit?datasourceid=" + id
            })
        }
 
        function addShuJuYuan() {
            layer.open({
                type: 2,
                title: "新增数据源",
                shadeClose: true,
                area: ["900px", "520px"],
                content: "../../manage/datasource/edit"
            })
        }
    </script>
</head>
<body layout:fragment="content">
<div class="portlet box ltblue" style="margin-bottom: 0px !important;border:none;width:100%;">
    <div class="portlet-title">
        <div class="caption">
            <i class="icon-reorder"></i>查询区
        </div>
        <div class="tools"></div>
    </div>
    <div class="portlet-body form">
        <div id="tabBase" class="row">
            <form id="SearchForm" style="width: 100%;">
                <div class="row">
                    <div class="col-sm-6">
                        <label class="control-label">数据库类型:</label>
                        <div class="controls">
                            <!--<input type="text" class="form-control col-sm-11" id="databasetype" name="databasetype" value="" />-->
                            <select id="databasetype" name="databasetype" class="form-control col-sm-11">
                                <option value="">--请选择--</option>
                                <option th:each="item:${databasetype}" th:value="${item.key}" th:text="${item.value}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <label class="control-label">数据库名称:</label>
                        <div class="controls">
                            <input type="text" class="form-control col-sm-11" id="databasename" name="databasename" value="" />
                        </div>
                    </div>
                </div>
                <div class="row" style="margin-top: 6px">
                    <div class="col-sm-6">
                        <a class="btn btn-primary-outline" onclick="addShuJuYuan();"><i class="fa fa-plus"></i>&nbsp;新增</a>
                    </div>
                    <div class="col-sm-6" style="text-align: right;">
                        <a class="btn btn-primary-outline" onclick="Search();"><i class="fa fa-search"></i>&nbsp;查询</a>
                        <a class="btn btn-primary-outline" onclick="Clear();"><i class="fa fa-trash-o"></i>&nbsp;清除</a>
                        <a class="btn btn-primary-outline" onclick="queding();" style="margin-right:32px;"><i class="fa fa-plus"></i>&nbsp;确定</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div id="grid" style="width: 100%;float: left"></div>
</body>
</html>