prepare($query); if ($sth) { $res = $sth->execute(); $result = $sth->fetchrow_hash(); $name = $result[name]; $class = $result["class"]; $platform = $result["platform"]; } $sth->finish(); #$installations = Count_installations($ID); #$licenses = Count_licenses($ID); if ($force==1) { $query = "DELETE FROM software WHERE (ID = \"$ID\")"; $adb->dbh_do($query); $query = "DELETE FROM inst_software WHERE (sID = \"$ID\")"; $adb->dbh_do($query); $query = "DELETE FROM templ_inst_software WHERE (sID = \"$ID\")"; $adb->dbh_do($query); $query = "DELETE FROM software_bundles WHERE (sID = '$ID') OR (gID = '$ID')"; $adb->dbh_do($query); $query = "DELETE FROM software_licenses WHERE (sID = '$ID')"; $adb->dbh_do($query); header("Location: $USERPREFIX/software/"); } else { commonHeader("IRM Software - Deleted"); print "
Name$name
Class$class
Platform$platform
Installations$installations
Licenses$licenses
Bundles$bundles
"; print "

Deleting this package will result in the removal of all Associated Records. Are you sure you want to delete this package. Remember you will loose the following Information about this package:


No     Delete
"; } commonFooter(); ?>