public static function get_index($id)
 {
     global $dbh;
     global $pmb_nomenclature_record_children_link;
     $query = "select linked_notice from notices_relations where relation_type='" . $pmb_nomenclature_record_children_link . "' and num_notice = " . $id;
     $result = pmb_mysql_query($query, $dbh);
     if (pmb_mysql_num_rows($result)) {
         return nomenclature_record_child_ui::get_index($id);
     } else {
         return nomenclature_record_formations_ui::get_index($id);
     }
 }