25
25
-->
26
26
<html >
27
27
<head >
28
- <title ></title >
29
28
<meta http-equiv =" expires" content =" 0" >
30
29
<meta name =" KeyWords" content =" " >
31
30
<meta http-equiv =" Content-Type" content =" text/html; charset=UTF-8" >
32
31
<link rel =" Shortcut Icon" href =" favicon.ico" >
32
+ <link href =" css/bootstrap.min.css" rel =" stylesheet" >
33
33
<link href =" css/<%=Request.Cookies(" boltTheme " )%>bootstrap.min.css" rel =" stylesheet" >
34
34
<link href =" css/style.css" rel =" stylesheet" >
35
- <link href =" css/bootstrap-responsive.min.css" rel =" stylesheet" >
36
35
<!-- #include file="inc/config.inc"-->
37
36
<!-- #include file="inc/adojavas.inc"-->
38
37
<%
@@ -50,107 +49,110 @@ var read_only_udl = udl_file.Attributes & 1;
50
49
FSO = null ;
51
50
udl_file = null ;
52
51
53
- if (read_only_udl) Response .Redirect (" index.asp" );
54
-
52
+ if (read_only_udl) Response .Redirect (" index.asp" );
55
53
%>
56
54
<!-- #include file="inc/ddonline.inc"-->
57
55
<!-- #include file="inc/quicklinks.inc"-->
58
-
59
56
</head >
60
57
<body >
61
58
<!-- #include file="inc/navbar.inc"-->
62
-
63
59
<div class =" container-fluid" >
64
- <div class =" row-fluid topMargin" >
65
- <div class =" span2" ></div >
66
- <div id =" headerContainer" class =" span8" >
60
+ <div class =" row" >
61
+ <div class =" col-8 offset-2" >
67
62
68
- <h2 >Set BOLT Database</h2 >
69
- <p ><b >Warning!</b > Please keep in mind that this sets the database for everyone using this BOLT Web Application.
63
+ <h2 >Connect to BOLT Database</h2 >
64
+ <p class = " mt-3 " ><b >Warning!</b > Please keep in mind that this sets the database for everyone using this BOLT Web Application.
70
65
<br />This is a global, not an individual setting.</p >
71
66
72
- <label class =" fixedWidth" >Provider:</label >
73
- <select id =" Provider" name =" Provider" >
74
- <option selected value =" SQLOLEDB.1" >SQL Server</option >
75
- <option value =" OraOLEDB.Oracle" >Oracle Provider</option >
76
- <option value =" MSDAORA.1" >Microsoft Provider for Oracle</option >
77
- </select >
78
-
79
- <label class =" fixedWidth" >User ID:</label >
80
- <input type =" text" id =" UserID" name =" UserID" />
81
-
82
- <label class =" fixedWidth" >Password:</label >
83
- <input type =" password" id =" Password" name =" Password" />
84
-
85
- <label class =" fixedWidth" >Server:</label >
86
- <input type =" text" id =" DBServer" name =" DBServer" />
87
-
88
- <div id =" server" >
89
- <label class =" fixedWidth" >Database (SQL Server): </label >
90
- <input type =" text" id =" Database" name =" Database" />
91
- </div >
92
-
93
- <div id =" buttonArea" >
94
- <button class =" btn " id =" submitButton" >Submit</button >
95
- <button class =" btn" id =" resetButton" >Reset</button >
96
- </div >
97
-
67
+ <div class =" form-group row mb-1 mt-4" >
68
+ <label class =" form-label col-3" >Provider</label >
69
+ <select class =" form-control col-3" id =" Provider" name =" Provider" >
70
+ <option selected value =" SQLNCLI11.1" >SQL Native Client</option >
71
+ <option value =" SQLOLEDB.1" >SQL Server</option >
72
+ <option value =" OraOLEDB.Oracle" >Oracle Provider</option >
73
+ <option value =" MSDAORA.1" >Microsoft Provider for Oracle</option >
74
+ </select >
75
+ </div >
76
+
77
+ <div class =" form-group row my-1" >
78
+ <label class =" form-label col-3" >User ID</label >
79
+ <input class =" form-control col-3" type =" text" id =" UserID" name =" UserID" />
80
+ </div >
81
+
82
+ <div class =" form-group row my-1" >
83
+ <label class =" form-label col-3" >Password:</label >
84
+ <input class =" form-control col-3" type =" password" id =" Password" name =" Password" />
85
+ </div >
86
+
87
+ <div class =" form-group row my-1" >
88
+ <label class =" form-label col-3" >Server:</label >
89
+ <input class =" form-control col-3" type =" text" id =" DBServer" name =" DBServer" />
90
+ </div >
91
+
92
+ <div id =" server" class =" form-group row my-1" >
93
+ <label class =" form-label col-3" >Database (SQL Server): </label >
94
+ <input class =" form-control col-3" type =" text" id =" Database" name =" Database" />
95
+ </div >
96
+
97
+ <div class =" form-group row mt-3" >
98
+ <div class =" col-3 offset-3 px-0" >
99
+ <button class =" btn btn-sm btn-primary col-5" id =" submitButton" >Submit</button >
100
+ <button class =" btn btn-sm btn-primary col-5" id =" resetButton" >Reset</button >
101
+ </div >
102
+ </div >
98
103
</div >
99
- <div class =" span2" ></div >
100
104
</div >
101
-
102
105
</div >
103
106
</body >
104
- <script type =" text/javascript" src =" js/jquery/1.7/jquery .min.js" ></script >
105
- <script type =" text/javascript" src =" js/bootstrap.js" ></script >
107
+ <script type =" text/javascript" src =" js/jquery-3.0.0 .min.js" ></script >
108
+ <script type =" text/javascript" src =" js/bootstrap.min. js" ></script >
106
109
<script type =" text/javascript" >
107
110
// ////////////////////////////////////////////////////////////////////
108
111
// Validate Form - make sure the correct data is filled in
109
112
// ////////////////////////////////////////////////////////////////////
110
113
function validate_form () {
111
114
var searchfield = $ (" #UserID" );
112
115
var filter = searchfield .val ();
113
- if (filter .length == 0 ) {
114
- alert (" You must specify a User ID." );
116
+ if (filter .length == 0 ) {
117
+ alert (" You must specify a User ID." );
115
118
searchfield .focus ();
116
- return false ;
117
- }
119
+ return false ;
120
+ }
118
121
119
122
var searchfield = $ (" #Password" );
120
123
var filter = searchfield .val ();
121
- if (filter .length == 0 ) {
122
- alert (" You must specify a Password." );
123
- searchfield .focus ();
124
- return false ;
125
- }
124
+ if (filter .length == 0 ) {
125
+ alert (" You must specify a Password." );
126
+ searchfield .focus ();
127
+ return false ;
128
+ }
126
129
127
130
var searchfield = $ (" #DBServer" );
128
131
var filter = searchfield .val ();
129
- if (filter .length == 0 ) {
130
- alert (" You must specify a Server." );
132
+ if (filter .length == 0 ) {
133
+ alert (" You must specify a Server." );
131
134
searchfield .focus ();
132
- return false ;
133
- }
135
+ return false ;
136
+ }
134
137
135
138
var searchfield = $ (" #Provider" );
136
- var TheProvider = searchfield .val ();
139
+ var TheProvider = searchfield .val ();
137
140
138
- // Database is required for non-Oracle providers
139
- if (TheProvider != " MSDAORA.1" && TheProvider != " OraOLEDB.Oracle" ) {
140
- var searchfield = $ (" #Database" );
141
+ // Database is required for non-Oracle providers
142
+ if (TheProvider != " MSDAORA.1" && TheProvider != " OraOLEDB.Oracle" ) {
143
+ var searchfield = $ (" #Database" );
141
144
var filter = searchfield .val ();
142
- if (filter .length == 0 ) {
143
- alert (" You must specify a Database." );
145
+ if (filter .length == 0 ) {
146
+ alert (" You must specify a Database." );
144
147
searchfield .focus ();
145
- return false ;
146
- }
147
- }
148
+ return false ;
149
+ }
150
+ }
148
151
149
- return true ;
152
+ return true ;
150
153
}
151
154
152
155
function changeDatabase () {
153
-
154
156
if (! validate_form ()) return ;
155
157
156
158
var databaseData = {
@@ -175,13 +177,13 @@ function changeDatabase() {
175
177
}
176
178
},
177
179
error : function (xhr ) {
178
- alert (" An error occurred while updating database in admin2.asp" );
180
+ alert (" An error occurred while updating database in admin2.asp" );
179
181
}
180
182
});
181
183
}
182
184
183
185
$ (document ).ready (function () {
184
- $ (" ul.nav li a[href$='index.asp']" ).parent ().addClass (" active" );
186
+ $ (" ul.navbar- nav li a[href$='index.asp']" ).parent ().addClass (" active" );
185
187
$ (" .navbar" ).find (" .connected" ).text (" <%=connect_info%>" );
186
188
document .title = " Bolt: <%=sPageTitle%>" ;
187
189
@@ -200,7 +202,7 @@ $(document).ready(function() {
200
202
if (event .keyCode == 13 ) $ (" #submitButton" ).click ();
201
203
});
202
204
203
- $ (" #Provider " ).focus ();
205
+ $ (" #UserID " ).focus ();
204
206
});
205
207
</script >
206
208
</html >
0 commit comments