$track ) { if ( $track['name'] == $trackname ) { $track['description_url'] = $post_track_description_url; $track['comment'] = $post_track_comment; $track['color'] = $post_track_color; $track['species_url'] = $post_track_species_url; } } $_SESSION['browser']['tracks'][$s][$r] = $tracks; } /////////////////////////////////////////////////////////////// // display ////////////////////////////////////////////////////////////// if ( isset($hDB_trackinformation) ) { $msg = ""; $tid = ""; $track_kind = ""; $track_comment = ""; $track_description_url = ""; $track_color_r = ""; $track_color_g = ""; $track_color_b = ""; $track_species_url = ""; $sql_5 = "SELECT * FROM TRACK t,USERS u WHERE t.UID=u.UID AND u.UID=$user_id AND t.NAME='$trackname' AND t.SPECIES='$s' AND t.REVISION='$r'"; $res_5 = pg_query($hDB_trackinformation, $sql_5); if ( pg_num_rows($res_5) == 0 ) { // new edit $sql_6 = "SELECT * FROM TRACK WHERE NAME='$trackname' AND SPECIES='$s' AND REVISION='$r' AND EXHIBIT='public'"; $res_6 = pg_query( $hDB_trackinformation, $sql_6 ); if ( pg_num_rows($res_6) == 1 ) { $tid = pg_fetch_result($res_6, 0, 'tid'); $track_kind = pg_fetch_result($res_6, 0, 'kind'); $track_data_location = pg_fetch_result($res_6, 0, 'data_location'); $track_description_url = pg_fetch_result($res_6, 0, 'description_url'); $track_comment = pg_fetch_result($res_6, 0, 'comment'); $track_color_r = pg_fetch_result($res_6, 0, 'color_r'); $track_color_g = pg_fetch_result($res_6, 0, 'color_g'); $track_color_b = pg_fetch_result($res_6, 0, 'color_b'); $track_species_url = pg_fetch_result($res_6, 0, 'species_url'); } } else if ( pg_num_rows($res_5) == 1 ) { // reedit $reedit = 1; $tid = pg_fetch_result($res_5, 0, 'tid'); $track_kind = pg_fetch_result($res_5, 0, 'kind'); $track_data_location = pg_fetch_result($res_5, 0, 'data_location'); $track_description_url = pg_fetch_result($res_5, 0, 'description_url'); $track_comment = pg_fetch_result($res_5, 0, 'comment'); $track_color_r = pg_fetch_result($res_5, 0, 'color_r'); $track_color_g = pg_fetch_result($res_5, 0, 'color_g'); $track_color_b = pg_fetch_result($res_5, 0, 'color_b'); $track_species_url = pg_fetch_result($res_5, 0, 'species_url'); } else { $row_no = pg_num_rows( $res_5 ); $msg = "$row_no record exists in trackinformation table. Must be just 1 record exists.You can't excute 'Apply'."; $f_disable_modify = 1; } } else { $msg = "Can not connect trackinformation DB..."; } ///////////////////////////////////////////////////////////////////////////// // add_history ///////////////////////////////////////////////////////////////////////////// function add_history ($tid,$uid,$operation,$comment) { global $trackinformation_connection_string; $hDB_trackinformation = pg_connect($trackinformation_connection_string); $date_now = date("Y-m-d H:i:s"); # 'NOW' $sql_7 = "INSERT INTO HISTORY (TID,UID,TIME,OPERATION,COMMENT) VALUES ($tid,$uid,'$date_now','$operation','$comment')"; $res_7 = pg_query( $hDB_trackinformation, $sql_7 ); if ( pg_result_status( $res_7 ) != PGSQL_COMMAND_OK ) { } } ?> Edit track information reloadParentWindow(); "; } ?>

Edit track information

Track nameSpeciesRevision

ParameterValue
Name
Comment
URL
Color
Species URL

> > "; } if ( $tid != "" ) { print "Comment "; print ""; } ?>