madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 1 | <!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.com | 2e1e54c | 2013-03-31 02:31:10 +0000 | [diff] [blame] | 7 | <script src="/webui/static/js/jquery.min.js"></script> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 8 | |
genia.likes.science@gmail.com | bcd0ea1 | 2013-05-13 01:34:31 -0700 | [diff] [blame] | 9 | <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.com | 2e1e54c | 2013-03-31 02:31:10 +0000 | [diff] [blame] | 12 | <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.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 18 | |
| 19 | <script type="text/javascript"> |
| 20 | $(document).ready(function(){ |
genia.likes.science@gmail.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 21 | |
| 22 | $('#checkboxes-on').click(function() { |
| 23 | $('#queryform :input').prop('checked', true); |
genia.likes.science@gmail.com | 83fb065 | 2013-05-20 22:03:49 -0700 | [diff] [blame] | 24 | return false; |
genia.likes.science@gmail.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 25 | }); |
| 26 | |
| 27 | $('#checkboxes-off').click(function() { |
| 28 | $('form#queryform :input').removeAttr('checked'); |
genia.likes.science@gmail.com | 83fb065 | 2013-05-20 22:03:49 -0700 | [diff] [blame] | 29 | return false; |
genia.likes.science@gmail.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 30 | }); |
| 31 | |
genia.likes.science@gmail.com | 83fb065 | 2013-05-20 22:03:49 -0700 | [diff] [blame] | 32 | $('#clear-query-button').click(function() { |
| 33 | $("#qry").val(''); |
| 34 | return false; |
| 35 | }); |
| 36 | |
genia.likes.science@gmail.com | 811c3cb | 2013-05-20 22:16:39 -0700 | [diff] [blame] | 37 | $("form#queryform").submit(function() { |
madhusudancs@gmail.com | f56d21d | 2013-04-04 22:54:51 +0000 | [diff] [blame] | 38 | $('#output-message').html(""); |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 39 | $.post("/", $("form#queryform").serialize(), function(data) { |
genia.likes.science@gmail.com | c69cb70 | 2013-05-22 12:50:52 -0700 | [diff] [blame^] | 40 | |
| 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.com | 99f019d | 2013-05-13 04:14:46 -0700 | [diff] [blame] | 81 | |
| 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.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 89 | }); |
| 90 | return false; |
| 91 | }); |
| 92 | }); |
| 93 | </script> |
| 94 | |
| 95 | <meta charset=utf-8 /> |
genia.likes.science@gmail.com | 12946c4 | 2013-05-12 12:12:15 -0700 | [diff] [blame] | 96 | <title>AsterixDB Web Interface</title> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 97 | </head> |
| 98 | |
| 99 | <body> |
genia.likes.science@gmail.com | bcd0ea1 | 2013-05-13 01:34:31 -0700 | [diff] [blame] | 100 | <div class="navbar navbar-fixed-top"> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 101 | <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.com | bcd0ea1 | 2013-05-13 01:34:31 -0700 | [diff] [blame] | 108 | |
| 109 | <!-- Temporary logo placeholder --> |
genia.likes.science@gmail.com | 6995caf | 2013-05-20 18:05:02 -0700 | [diff] [blame] | 110 | <!-- <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.com | bcd0ea1 | 2013-05-13 01:34:31 -0700 | [diff] [blame] | 112 | |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 113 | <div class="nav-collapse collapse"> |
| 114 | <ul class="nav"> |
genia.likes.science@gmail.com | f77005c | 2013-05-13 01:42:24 -0700 | [diff] [blame] | 115 | <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.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 118 | </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.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 127 | |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 128 | <div class="span6"> |
genia.likes.science@gmail.com | 83fb065 | 2013-05-20 22:03:49 -0700 | [diff] [blame] | 129 | |
| 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.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 137 | <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.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 142 | <div> |
genia.likes.science@gmail.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 143 | <label class="checkbox"><input type="checkbox" class="btn" checked="checked" name="print-expr-tree" value="true" /> Print parsed expressions</label> |
madhusudancs@gmail.com | 833aea7 | 2013-04-04 22:38:29 +0000 | [diff] [blame] | 144 | <label class="checkbox"><input type="checkbox" checked="checked" name="print-rewritten-expr-tree" value="true" /> Print rewritten expressions</label> |
madhusudancs@gmail.com | 833aea7 | 2013-04-04 22:38:29 +0000 | [diff] [blame] | 145 | <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.com | 7e03f87 | 2013-05-12 12:15:06 -0700 | [diff] [blame] | 147 | <label class="checkbox"><input type="checkbox" |
| 148 | checked="checked" name="print-job" value="true" /> Print Hyracks job</label> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 149 | </div> |
genia.likes.science@gmail.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 150 | <button type="submit" id="run-btn" class="btn btn-custom-darken">Run</button> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 151 | </form> |
genia.likes.science@gmail.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 152 | </div> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 153 | |
genia.likes.science@gmail.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 154 | <div class="span6"> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 155 | <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.com | 024749d | 2013-05-20 21:33:08 -0700 | [diff] [blame] | 161 | |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 162 | </div> |
| 163 | </div> |
genia.likes.science@gmail.com | bcd0ea1 | 2013-05-13 01:34:31 -0700 | [diff] [blame] | 164 | </div> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 165 | <div class="footer"> |
| 166 | <section class="line"><hr></section> |
| 167 | <section class="content"> |
| 168 | <section class="left"> |
madhusudancs@gmail.com | 99e82c6 | 2013-03-31 00:26:34 +0000 | [diff] [blame] | 169 | </section> |
| 170 | <section class="right"> |
| 171 | © Copyright 2013 University of California, Irvine |
| 172 | </section> |
| 173 | </section> |
| 174 | </div> |
| 175 | </body> |
| 176 | </html> |
| 177 | |