blob: f0d63ece7393fa71709625910db4cdf278c3ee51 [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.com99f019d2013-05-13 04:14:46 -070040
genia.likes.science@gmail.com007c5a92013-05-13 03:13:20 -070041 $('#output-message').html(data);
genia.likes.science@gmail.com99f019d2013-05-13 04:14:46 -070042
43 var contentString = data.toString();
44 if (contentString.indexOf("<PRE>Duration") !== -1) {
45 $("<div/>")
46 .addClass("alert alert-success")
47 .html("Success: Query Complete")
48 .appendTo('#output-message');
49 }
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000050 });
51 return false;
52 });
53});
54</script>
55
56<meta charset=utf-8 />
genia.likes.science@gmail.com12946c42013-05-12 12:12:15 -070057<title>AsterixDB Web Interface</title>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000058</head>
59
60<body>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -070061 <div class="navbar navbar-fixed-top">
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000062 <div class="navbar-inner">
63 <div class="container">
64 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
65 <span class="icon-bar"></span>
66 <span class="icon-bar"></span>
67 <span class="icon-bar"></span>
68 </a>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -070069
70 <!-- Temporary logo placeholder -->
genia.likes.science@gmail.com6995caf2013-05-20 18:05:02 -070071 <!-- <a class="brand" href="#"><img src="/webui/static/img/finalasterixlogo.png"></a> -->
72 <a class="brand" href="#"><img src="http://db.tt/J1MTCdKs"></a>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -070073
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000074 <div class="nav-collapse collapse">
75 <ul class="nav">
genia.likes.science@gmail.comf77005c2013-05-13 01:42:24 -070076 <li><a href="http://code.google.com/p/asterixdb/source/browse/" target="_blank">Open source<i class="icon-external-link"></i></a></li>
77 <li><a href="http://code.google.com/p/asterixdb/issues/list" target="_blank">File issues<i class="icon-external-link"></i></a></li>
78 <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 +000079 </ul>
80 </div><!--/.nav-collapse -->
81 </div>
82 </div>
83 </div>
84
85 <div class="content">
86 <div class="container">
87 <div class="row-fluid">
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -070088
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +000089 <div class="span6">
genia.likes.science@gmail.com83fb0652013-05-20 22:03:49 -070090
91 <form id="queryform" class="form-horizontal" method="post">
92 <div style="margin-bottom: 1em;">
93 <label class="query">Query</label>
94 <textarea rows="10" id="qry" name="query" class="query" value="%s" placeholder="Type your AQL query ..."></textarea>
95 <button id="clear-query-button" style="float:right;" class="btn">Clear Query</button>
96 </div>
97
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -070098 <div class="btn-group">
99 <button id="checkboxes-on" class="btn">Select All Options</button>
100 <button id="checkboxes-off" class="btn">Clear All Options</button>
101 </div>
102
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000103 <div>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700104 <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 +0000105 <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 +0000106 <label class="checkbox"><input type="checkbox" checked="checked" name="print-logical-plan" value="true" /> Print logical plan</label>
107 <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 -0700108 <label class="checkbox"><input type="checkbox"
109 checked="checked" name="print-job" value="true" /> Print Hyracks job</label>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000110 </div>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700111 <button type="submit" id="run-btn" class="btn btn-custom-darken">Run</button>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000112 </form>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700113 </div>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000114
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700115 <div class="span6">
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000116 <div class="output">
117 <label class="heading">Output</label>
118 <div id="output-message" class="message">
119 </div>
120 </div>
121 </div>
genia.likes.science@gmail.com024749d2013-05-20 21:33:08 -0700122
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000123 </div>
124 </div>
genia.likes.science@gmail.combcd0ea12013-05-13 01:34:31 -0700125</div>
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000126 <div class="footer">
127 <section class="line"><hr></section>
128 <section class="content">
129 <section class="left">
madhusudancs@gmail.com99e82c62013-03-31 00:26:34 +0000130 </section>
131 <section class="right">
132 &copy; Copyright 2013 University of California, Irvine
133 </section>
134 </section>
135 </div>
136</body>
137</html>
138