about summary refs log tree commit diff
path: root/sourcecodes/violin.php
blob: 2e9c6c49c5e8c8ca9749b57cef39f69c943322b6 (plain)
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
<?php 
include("header_new.inc");
include("input_validate.php");
if($_GET["My_key"]!="")
  $keyval=valid_keyval($_GET["My_key"]);
if($_POST["My_key"]!="")
  $keyval=valid_keyval($_POST["My_key"]);

$plotly_file_data="./data/".$keyval."violin_plotly.html";
$plotly_ev_file_data="./data/".$keyval."violin_plotly_evidence.html";
$plotly_file_tmp="/tmp/bnw/".$keyval."violin_plotly.html";
$plotly_ev_file_tmp="/tmp/bnw/".$keyval."violin_plotly_evidence.html";


?>



<!-- Site navigation menu -->
<ul class="navbar2">
  <li class="noHover"><p>Network ID:<br><?php print($keyval);?></p></li>
  <li><a href="help.php">Help</a>
  <li><a href="home.php">Home</a>


</ul>




<div id="violin_div">
<!-- Main content -->
<?php
  if(file_exists($plotly_file_tmp))
    {?>
 <object type="text/html" data=<?php print($plotly_file_data);?> width="100%" height="500">
 </object>
<?php
    }
  if(file_exists($plotly_ev_file_tmp))
    {?>
 <object type="text/html" data=<?php print($plotly_ev_file_data);?> width="100%" height="500">
 </object>
<?php
    }
?>

</div>
</body>