-
Notifications
You must be signed in to change notification settings - Fork 0
/
exprBM.html
executable file
·61 lines (57 loc) · 1.95 KB
/
exprBM.html
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CREW benchmarking framework</title>
<link rel="shortcut icon" href="figures/CREW_favicon.ico" type="image/x-icon">
<script type="text/javascript" charset="utf-8" src="jquery_script/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="jquery_script/jquery.form.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$(this).find('#solForm').ajaxForm
({
success: function(result)
{
if(result == "success")
$(document).find("#solStatus").html("<a href='#' id='startBM'>Start Analysis</a>");
}
});
$(this).on('change','#solConfig',function(){$(document).find("#solStatus").html("");});
$(this).on('change','#solDB',function(){$(document).find("#solStatus").html("");});
$(this).on('click','#startBM', startBM);
});
function startBM(event)
{
var solConfigFileName = $(document).find("#solConfig").val().split('\\').pop();
var solDBFileName = $(document).find("#solDB").val().split('\\').pop();
window.location = "benchmark.html?solConfigFileName=" + solConfigFileName + "&solDBFileName=" + solDBFileName;
}
</script>
</head>
<body>
<h3 align="center">Benchmarking and Result Analysis Section</h3>
<table align="center">
<tr>
<td style='border:1px solid black;' align="center">
<h4>Load/Analyze Experiment Result</h4>
<form enctype="multipart/form-data" id="solForm" action="event_handler.php?event='loading'" method="POST">
<table>
<tr>
<td><b>Meta Data</b></td>
<td><input type="file" name="solConfig" id="solConfig" accept="text/xml"/></td>
</tr>
<tr>
<td><b>DB package</b></td>
<td><input type="file" name="solDB" id="solDB" accept="application/x-tar" /></td>
</tr>
<tr>
<td><input type="submit" value="Load"/></td>
<td id="solStatus" align="right"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>