-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.asp
85 lines (82 loc) · 2.62 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="expires" content="-1" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="copyright" content="2013, Web Site Management" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<title>RQL Console</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<style type="text/css">
body
{
padding: 10px;
}
textarea
{
width: 95%;
height: 150px;
}
</style>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/handlebars-v2.0.0.js"></script>
<script type="text/javascript" src="rqlconnector/Rqlconnector.js"></script>
<script id="template-session-variables" type="text/x-handlebars-template" data-container="#session-variables .modal-body" data-action="replace">
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Content</th>
</tr>
</thead>
<tbody>
{{#each sessions}}
<tr>
<td>{{name}}</td>
<td>{{content}}</td>
</tr>
{{/each}}
</tbody>
</table>
</script>
<script id="template-rql-result" type="text/x-handlebars-template" data-container="#rql-result" data-action="replace">
<div class="label label-success">Results</div>
<textarea readonly="readonly">{{rql}}</textarea>
</script>
<script type="text/javascript" src="js/rql-console.js"></script>
<script type="text/javascript">
var LoginGuid = '<%= session("loginguid") %>';
var SessionKey = '<%= session("sessionkey") %>';
var RqlConnectorObj = new RqlConnector(LoginGuid, SessionKey);
$(document).ready(function() {
var RqlConsoleObj = new RqlConsole(RqlConnectorObj);
});
</script>
</head>
<body>
<div id="session-variables" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Session Variables</h3>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<span class="brand">RQL Console</span>
<div class="btn btn-info pull-right" id="sessions">Sessions</div>
</div>
</div>
<textarea id="rqltextarea"></textarea>
<div id="rql-result">
</div>
<div class="form-actions">
<button class="btn btn-success pull-right" id="run">Run</button>
</div>
</body>
</html>