foreach ($linksArray as $key => $value) { if (!isDomainNode($value)) { $count++; } } array_push($tempList, $row); array_push($tempList, $count); array_push($list, $tempList); } return $list; } $nodeResult = getAllNodes(); $linkResult = getAllLinks(); $startNodeList = getAllNullDomainNodesOrderByNid(); $destinationNodeList = getAllNullDomainNodesOrderByNid(); $reActivateNodeList = getAllNodes(); ?> <!doctype html> <html> <head> <?php include_once "viewStructureHead.php"; ?> <script type="text/javascript"> $(document).ready(function() { $('#newDomain').multiselect(); $('#newDomain').multiselect("disable"); $('#nextNode').multiselect(); $('#domains').multiselect(); $('#domains').multiselect("disable"); $('#existingNodeConnectors').multiselect();
<?php /** * Created by PhpStorm. * User: Liu * Date: 2016/2/10 * Time: 18:30 */ include_once "../dao/getNode.php"; ignore_user_abort(true); set_time_limit(0); $activeNodes = getAllNodes(); ?> <!doctype html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <link rel="stylesheet" href="../css/bootstrap-multiselect.css" type="text/css"> <script type="text/javascript" src="../js/bootstrap-multiselect.js"></script> <?php include_once "viewStructureHead.php"; ?> <script type="text/javascript"> $(document).ready(function() { $('#activeNodeList').multiselect(); }); </script> </head>
} return "true"; } if ($method != "view") { if ($pid != null && $x != null && $isConnector != null && $y != null) { $returnMessage = checkAddNode($pid, $isConnector, $link1, $link2, $link3); if ($returnMessage == "true") { insertNodeAndLinks($pid, $x, $y, $isConnector, $link1, $link2, $link3); } else { header("location:Main.php?errorMessage=" . $returnMessage); } } else { header("location:Main.php?errorMessage=some value is empty"); } } $nodeResult = getAllNodes(); $linkResult = getAllLinks(); $linkPair = array(); while ($row = mysql_fetch_array($linkResult)) { $tempLinkPair = array(); $x1 = getNodeByNid($row['nid1'])['X']; $y1 = getNodeByNid($row['nid1'])['Y']; $x2 = getNodeByNid($row['nid2'])['X']; $y2 = getNodeByNid($row['nid2'])['Y']; $tempLinkPair[0] = $x1; $tempLinkPair[1] = $y1; $tempLinkPair[2] = $x2; $tempLinkPair[3] = $y2; array_push($linkPair, $tempLinkPair); } ?>
<?php /** * Created by PhpStorm. * User: Liu * Date: 2016/3/1 * Time: 20:06 */ include_once "../dao/getNode.php"; $result = getAllNodes(); $list = array(); while ($row = mysql_fetch_array($result)) { array_push($list, $row['nid']); } echo json_encode($list);