-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.asp
182 lines (170 loc) · 6.23 KB
/
index.asp
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
<%@ language="JavaScript" %>
<!DOCTYPE html>
<!--
///////////////////////////////////////////////////////////////////////////////
// Product : Online Tools(tm)
//
// Series : Dovetail Software Development Series(tm)
//
// Name : index.asp
//
// Description : Selection page for Database objects (app default)
//
// Author : Dovetail Software, Inc.
// 4807 Spicewood Springs Rd, Bldg 4 Suite 200
// Austin, TX 78759
// (512) 610-5400
// EMAIL: [email protected]
// www.dovetailsoftware.com
//
// Platforms : This version supports Clarify 9.0 and later
//
// Copyright (C) 2001-2012 Dovetail Software, Inc.
// All Rights Reserved.
///////////////////////////////////////////////////////////////////////////////
-->
<html>
<head>
<meta http-equiv="expires" content="0">
<meta name="KeyWords" content="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="Shortcut Icon" href="favicon.ico">
<link href="css/<%=Request.Cookies("boltTheme")%>bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<!--#include file="inc/config.inc"-->
<!--#include file="inc/adojavas.inc"-->
<%
var sPageTitle = "Schema";
var sPageType = "Schema";
var FSO = Server.CreateObject("Scripting.FileSystemObject");
var udl_file = FSO.GetFile(dbConnect.replace("File Name=","").replace(/\\/g,"\\\\"));
%>
<!--#include file="inc/ddonline.inc"-->
<!--#include file="inc/quicklinks.inc"-->
</head>
<body>
<!--#include file="inc/navbar.inc"-->
<!--#include file="inc/notifications.inc"-->
<div class="container-fluid">
<div class="row-fluid mb-3">
<div id="homeContainer" class="col-8 offset-2 mt-1">
<h3 class="mb-3 text-center">Schema Search</h3>
<center>
<table>
<tr>
<td>Tables/Views whose name starts with</td>
<td>
<div class="input-group input-group-sm ml-2 mt-1">
<input type="text" class="form-control" id="type_name" />
<span class="btn btn-primary input-group-addon" id="ddonline"><i class="fa fa-search"></i></span>
</div>
</td>
</tr>
<tr>
<td>Tables/Views whose ID equals</td>
<td>
<div class="input-group input-group-sm ml-2 mt-1">
<input type="text" class="form-control" id="type_id" />
<span class="btn btn-primary input-group-addon" id="ddonline2"><i class="fa fa-search"></i></span>
</div>
</td>
</tr>
<tr>
<td>Tables/Views that contain a field named</td>
<td>
<div class="input-group input-group-sm ml-2 mt-1">
<input type="text" class="form-control" id="field_name" />
<span class="btn btn-primary input-group-addon" id="fieldButton"><i class="fa fa-search"></i></span>
<input type="hidden" value="search_by_field_name" id="search_type" />
</div>
</td>
</tr>
<tr>
<td>Tables that contain a relation name starting with</td>
<td>
<div class="input-group input-group-sm ml-2 mt-1">
<input type="text" class="form-control" id="rel_name" />
<span class="btn btn-primary input-group-addon" id="relationButton"><i class="fa fa-search"></i></span>
</div>
</td>
</tr>
<tr>
<td>User-Defined Tables/Views whose name starts with</td>
<td>
<div class="input-group input-group-sm ml-2 mt-1">
<input type="text" class="form-control" id="type_custom" />
<span class="btn btn-primary input-group-addon" id="customButton"><i class="fa fa-search"></i></span>
</div>
</td>
</tr>
</table>
<h5 class="mt-3 mb-5 text-center"><a href="schema_id_info.asp">More information about User-Defined Table/View IDs</a></h5>
</div>
</div>
<!--#include file="inc/recent_objects.asp"-->
<!--#include file="inc/quick_links.asp"-->
</div>
</body>
<script type="text/javascript" src="js/jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="js/tether.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/notifications.js"></script>
<script type="text/javascript" src="js/schemaValidate.js"></script>
<script type="text/javascript">
function submitFormByName(strUrl, fieldName) {
if(!validate_filter(fieldName)) return;
window.location = strUrl + "?" + fieldName + "=" + $("#" + fieldName).val() + "&custom=0";
}
function submitFormById(strUrl, fieldName) {
if(!validate_id(fieldName)) return;
window.location = strUrl + "?" + fieldName + "=" + $("#" + fieldName).val() + "&custom=0";
}
function submitCustom() {
if(!validate_filter("type_custom")) return;
window.location = "tables.asp?type_name=" + $("#type_custom").val() + "&custom=1";
submitFormByName("", "");
}
$(document).ready(function() {
var path = window.location.pathname;
var page = path.substr(path.lastIndexOf("/")+1);
$("ul.navbar-nav li a[href$='" + page + "']").parent().addClass("active");
$(".navbar").find(".connected").text("<%=connect_info%>");
document.title = "Bolt: <%=sPageTitle%>";
$("#type_name").keypress(function(event) {
if(event.keyCode == 13) $("#ddonline").click();
});
$("#ddonline").click(function() {
submitFormByName("tables.asp", "type_name");
});
$("#type_id").keypress(function(event) {
if(event.keyCode == 13) $("#ddonline2").click();
});
$("#ddonline2").click(function() {
submitFormById("tables.asp", "type_id");
});
$("#field_name").keypress(function(event) {
if(event.keyCode == 13) $("#fieldButton").click();
});
$("#fieldButton").click(function() {
submitFormByName("search_fields.asp", "field_name");
});
$("#rel_name").keypress(function(event) {
if(event.keyCode == 13) $("#relationButton").click();
});
$("#relationButton").click(function() {
submitFormByName("search_rels.asp", "rel_name");
});
$("#type_custom").keypress(function(event) {
if(event.keyCode == 13) $("#customButton").click();
});
$("#customButton").click(submitCustom);
$("#type_name").focus();
});
</script>
</html>
<%
FSO = null;
udl_file = null;
%>