diff options
Diffstat (limited to 'sourcecodes/network_layout_evd_2.php')
| -rw-r--r-- | sourcecodes/network_layout_evd_2.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sourcecodes/network_layout_evd_2.php b/sourcecodes/network_layout_evd_2.php index 931cc0b8..ed9ce502 100644 --- a/sourcecodes/network_layout_evd_2.php +++ b/sourcecodes/network_layout_evd_2.php @@ -26,7 +26,9 @@ foreach($leve_l as $l) $keyval=valid_keyval($_GET["My_key"]); //////////////////////////Entered evidences////////////////////////////////////////// -$dir="./data/"; +//$dir="./data/"; +//$dir ="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; $lfile=$dir.$keyval."nlevels.txt"; $levelmap=file_get_contents($lfile); @@ -248,7 +250,8 @@ $line=shell_exec('/usr/bin/dot -Tplain -y '.$grv); $grviz_name_list=array(); -$g_file_name="./data/".$keyval."grviz_name_file.txt"; +//$g_file_name="./data/".$keyval."grviz_name_file.txt"; +$g_file_name=$dir.$keyval."grviz_name_file.txt"; $grviz_name=file_get_contents("$g_file_name"); $grviz_name_list=explode("\n",$grviz_name); @@ -375,7 +378,7 @@ $nedges=$ii; <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> -<script type="text/javascript" src="http://www.google.com/jsapi"></script> +<script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load('visualization', '1', {packages: ['corechart']}); </script> @@ -388,7 +391,9 @@ for($i=0;$i<$nnode;$i++) { ////////////////////////////select node ////////////////////////////////////// $name=$ID_data[$i][0]; - $fname="draw_".$name."()"; + $replaced_char = array("-","/",",",".","!","?"); + $name_replaced = str_replace($replaced_char,"_",$name); + $fname="draw_".$name_replaced."()"; $data_val.=$name; $flag=0; //evidence flag for($j=0;$j<$node;$j++) @@ -877,10 +882,12 @@ for($i=0;$i<$nnode;$i++) { $x=$ID_data[$i][1]-8; $y=$ID_data[$i][2]-20; $name=$ID_data[$i][0]; + $replaced_char = array("-","/",",",".","!","?"); + $name_replaced = str_replace($replaced_char,"_",$name); ?> <script type="text/javascript"> - google.setOnLoadCallback(draw_<?php print($name)?>); + google.setOnLoadCallback(draw_<?php print($name_replaced)?>); </script> <div id="<?php print($name)?>" style="left: <?php print($x)?>px; top: <?php print($y)?>px; width:<?php print($width);?>; height:<?php print($height);?>; position: absolute"></div> |
