blob: f655fc5942d28000ad5b6adee8f6b3ca0a57e20f [file] [log] [blame]
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +00001<!DOCTYPE html>
2<html lang="en">
3<head>
4<meta name="description" content="ASTERIX WEB PAGE" />
5<meta name="viewport" content="width=device-width, initial-scale=1.0">
6<link href='http://fonts.googleapis.com/css?family=Bitter|PT+Sans+Caption|Open+Sans' rel='stylesheet' type='text/css'>
madhusudancs@gmail.com2e1e54c2013-03-31 02:31:10 +00007<script src="/webui/static/js/jquery.min.js"></script>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +00008
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -07009<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
10<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">
11
madhusudancs@gmail.com2e1e54c2013-03-31 02:31:10 +000012<link href="/webui/static/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
13<link href="/webui/static/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
14
15<script src="/webui/static/js/bootstrap.min.js"></script>
16
17<link href="/webui/static/css/style.css" rel="stylesheet" type="text/css" />
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000018
19<script type="text/javascript">
20$(document).ready(function(){
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -070021
22 $('#checkboxes-on').click(function() {
23 $('#queryform :input').prop('checked', true);
genia.likes.science@gmail.com83fb0652013-05-20 22:03:49 -070024 return false;
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -070025 });
26
27 $('#checkboxes-off').click(function() {
28 $('form#queryform :input').removeAttr('checked');
genia.likes.science@gmail.com83fb0652013-05-20 22:03:49 -070029 return false;
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -070030 });
31
genia.likes.science@gmail.com83fb0652013-05-20 22:03:49 -070032 $('#clear-query-button').click(function() {
33 $("#qry").val('');
34 return false;
35 });
36
genia.likes.science@gmail.com811c3cb2013-05-20 22:16:39 -070037 $("form#queryform").submit(function() {
madhusudancs@gmail.comf56d21d2013-04-04 22:54:51 +000038 $('#output-message').html("");
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000039 $.post("/", $("form#queryform").serialize(), function(data) {
genia.likes.science@gmail.comc69cb702013-05-22 12:50:52 -070040
41 var resultCount = data.match(/<h3>Results:<\/h3>/g);
42 if (resultCount.length <= 1) {
43 $('#output-message').html(data);
44 } else {
45 var results = data.split('<h3>');
46 var components = results.slice(1,results.length);
47 var sections = components.length/resultCount.length;
48
49 $('#output-message').html('');
50 $('<div/>')
51 .attr("class", "accordion")
52 .attr("id", "output-organization")
53 .appendTo('#output-message');
54
55 for (var resSet = 0; resSet < resultCount.length; resSet++) {
56
57 $('<div/>')
58 .attr("class","accordion-group")
59 .attr("id", "agroup"+resSet)
60 .appendTo("#output-organization");
61
62 $('<div/>')
63 .attr("class","accordion-heading")
64 .html('<a class="accordion-toggle" data-toggle="collapse" data-parent="output-organization" href="#collapse' + resSet + '">Result #' + (resSet+1) + '</a>')
65 .appendTo("#agroup"+resSet);
66
67 $('<div/>')
68 .attr("class", "accordion-body collapse in")
69 .attr("id", "collapse"+resSet)
70 .html('<div class="accordion-inner">')
71 .appendTo("#agroup"+resSet);
72
73 for (var c = 0; c < sections; c++) {
74 var pos = resSet*sections + c;
75 $('#collapse' + resSet).append('<h3>' + components[pos]);
76 }
77
78 $('#collapse'+resSet).append('</div>');
79 }
80 }
genia.likes.science@gmail.com99f019d2013-05-13 04:14:46 -070081
82 var contentString = data.toString();
83 if (contentString.indexOf("<PRE>Duration") !== -1) {
84 $("<div/>")
85 .addClass("alert alert-success")
86 .html("Success: Query Complete")
87 .appendTo('#output-message');
88 }
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000089 });
90 return false;
91 });
92});
93</script>
94
95<meta charset=utf-8 />
genia.likes.science@gmail.com12946c42013-05-12 12:12:15 -070096<title>AsterixDB Web Interface</title>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000097</head>
98
99<body>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -0700100 <div class="navbar navbar-fixed-top">
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000101 <div class="navbar-inner">
102 <div class="container">
103 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
104 <span class="icon-bar"></span>
105 <span class="icon-bar"></span>
106 <span class="icon-bar"></span>
107 </a>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -0700108
109 <!-- Temporary logo placeholder -->
genia.likes.science@gmail.com6995caf2013-05-20 18:05:02 -0700110 <!-- <a class="brand" href="#"><img src="/webui/static/img/finalasterixlogo.png"></a> -->
111 <a class="brand" href="#"><img src="http://db.tt/J1MTCdKs"></a>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -0700112
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000113 <div class="nav-collapse collapse">
114 <ul class="nav">
genia.likes.science@gmail.comf77005c2013-05-13 01:42:24 -0700115 <li><a href="http://code.google.com/p/asterixdb/source/browse/" target="_blank">Open source<i class="icon-external-link"></i></a></li>
116 <li><a href="http://code.google.com/p/asterixdb/issues/list" target="_blank">File issues<i class="icon-external-link"></i></a></li>
117 <li><a href="https://groups.google.com/forum/?fromgroups#!forum/asterixdb-userst" target="_blank">Contact<i class="icon-external-link"></i></a></li>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000118 </ul>
119 </div><!--/.nav-collapse -->
120 </div>
121 </div>
122 </div>
123
124 <div class="content">
125 <div class="container">
126 <div class="row-fluid">
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700127
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000128 <div class="span6">
genia.likes.science@gmail.com83fb0652013-05-20 22:03:49 -0700129
130 <form id="queryform" class="form-horizontal" method="post">
131 <div style="margin-bottom: 1em;">
132 <label class="query">Query</label>
133 <textarea rows="10" id="qry" name="query" class="query" value="%s" placeholder="Type your AQL query ..."></textarea>
134 <button id="clear-query-button" style="float:right;" class="btn">Clear Query</button>
135 </div>
136
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700137 <div class="btn-group">
138 <button id="checkboxes-on" class="btn">Select All Options</button>
139 <button id="checkboxes-off" class="btn">Clear All Options</button>
140 </div>
141
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000142 <div>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700143 <label class="checkbox"><input type="checkbox" class="btn" checked="checked" name="print-expr-tree" value="true" /> Print parsed expressions</label>
madhusudancs@gmail.com833aea72013-04-04 22:38:29 +0000144 <label class="checkbox"><input type="checkbox" checked="checked" name="print-rewritten-expr-tree" value="true" /> Print rewritten expressions</label>
madhusudancs@gmail.com833aea72013-04-04 22:38:29 +0000145 <label class="checkbox"><input type="checkbox" checked="checked" name="print-logical-plan" value="true" /> Print logical plan</label>
146 <label class="checkbox"><input type="checkbox" checked="checked" name="print-optimized-logical-plan" value="true" /> Print optimized logical plan</label>
genia.likes.science@gmail.com7e03f872013-05-12 12:15:06 -0700147 <label class="checkbox"><input type="checkbox"
148 checked="checked" name="print-job" value="true" /> Print Hyracks job</label>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000149 </div>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700150 <button type="submit" id="run-btn" class="btn btn-custom-darken">Run</button>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000151 </form>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700152 </div>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000153
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700154 <div class="span6">
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000155 <div class="output">
156 <label class="heading">Output</label>
157 <div id="output-message" class="message">
158 </div>
159 </div>
160 </div>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700161
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000162 </div>
163 </div>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -0700164</div>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000165 <div class="footer">
166 <section class="line"><hr></section>
167 <section class="content">
168 <section class="left">
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000169 </section>
170 <section class="right">
171 &copy; Copyright 2013 University of California, Irvine
172 </section>
173 </section>
174 </div>
175</body>
176</html>
177