diff options
Diffstat (limited to 'sourcecodes/network_layout_inv.php')
| -rw-r--r-- | sourcecodes/network_layout_inv.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sourcecodes/network_layout_inv.php b/sourcecodes/network_layout_inv.php index f6856fe4..7442026f 100644 --- a/sourcecodes/network_layout_inv.php +++ b/sourcecodes/network_layout_inv.php @@ -23,7 +23,9 @@ foreach($leve_l as $l) ////////////////////////////////////Read data from net_figure file///////////////////////Graphp Display///////////////////////////////////////////// $keyval=valid_keyval($_GET["My_key"]); -$dir="./data/"; +//$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; $lfile=$dir.$keyval."nlevels.txt"; $levelmap=file_get_contents($lfile); @@ -102,7 +104,8 @@ $grv=$dir.$keyval."graphviz.txt"; $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); @@ -231,7 +234,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> @@ -244,7 +247,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; for($j=0;$j<$node;$j++) { @@ -567,10 +572,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> |
