Changeset 530 for trunk/cgi-bin/IPDB.pm
- Timestamp:
- 10/25/12 17:59:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r529 r530 31 31 &getParent &getRoutedCity 32 32 &allocateBlock &deleteBlock &getBlockData 33 &getNodeList 33 &getNodeList &getNodeName &getNodeInfo 34 34 &mailNotify 35 35 ); … … 45 45 &getParent &getRoutedCity 46 46 &allocateBlock &deleteBlock &getBlockData 47 &getNodeList 47 &getNodeList &getNodeName &getNodeInfo 48 48 &mailNotify 49 49 )] … … 1057 1057 1058 1058 1059 ## IPDB::getNodeName() 1060 # Get node name from the ID 1061 sub getNodeName { 1062 my $dbh = shift; 1063 my $nid = shift; 1064 1065 my ($nname) = $dbh->selectrow_array("SELECT node_name FROM nodes WHERE node_id = ?", undef, ($nid) ); 1066 return $nname; 1067 } # end getNodeName() 1068 1069 1070 ## IPDB::getNodeInfo() 1071 # Get node name and ID associated with a block 1072 sub getNodeInfo { 1073 my $dbh = shift; 1074 my $block = shift; 1075 1076 my ($nid, $nname) = $dbh->selectrow_array("SELECT nodes.node_id,node_name FROM nodes INNER JOIN noderef". 1077 " ON nodes.node_id=noderef.node_id WHERE noderef.block = ?", undef, ($block) ); 1078 return ($nid, $nname); 1079 } # end getNodeInfo() 1080 1081 1059 1082 ## IPDB::mailNotify() 1060 1083 # Sends notification mail to recipients regarding an IPDB operation
Note:
See TracChangeset
for help on using the changeset viewer.