diff options
Diffstat (limited to 'sourcecodes/network_layout_inv.php')
| -rw-r--r-- | sourcecodes/network_layout_inv.php | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/sourcecodes/network_layout_inv.php b/sourcecodes/network_layout_inv.php index b9375e67..f6856fe4 100644 --- a/sourcecodes/network_layout_inv.php +++ b/sourcecodes/network_layout_inv.php @@ -1,5 +1,7 @@ <?php //include("structuremap.php"); +include("header_batchsearch.inc"); +include("input_validate.php"); function levelmap($inx,$name,$mapdata) { @@ -20,7 +22,7 @@ foreach($leve_l as $l) ////////////////////////////////////Read data from net_figure file///////////////////////Graphp Display///////////////////////////////////////////// -$keyval=$_GET["My_key"]; +$keyval=valid_keyval($_GET["My_key"]); $dir="./data/"; $lfile=$dir.$keyval."nlevels.txt"; @@ -315,8 +317,14 @@ for($i=0;$i<$nnode;$i++) var topping = data.getValue(selectedItem.row, 0); var s = window.prompt('Selected evidence ' + topping + ' for ' + cnode + '. Enter new evidence ', topping ); - - window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv; + if (input_check(s)) + { + window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv; + } + else + { + window.location.href = "input_error_no_menu.php"; + } } } chart.draw(data, @@ -378,8 +386,14 @@ for($i=0;$i<$nnode;$i++) var topping = data.getValue(selectedItem.row, 0); var s = window.prompt('Selected evidence ' + topping + ' for ' + cnode + '. Enter new evidence ', topping ); - window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv; - + if (input_check(s)) + { + window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv; + } + else + { + window.location.href = "input_error_no_menu.php"; + } } } chart.draw(data, {curveType: "function", |
