0 ) { ?>
University of Tokyo Genome Browser
species: 'reloadRevisionSelect(this,this.form.setrevision);') ); ?> revision: target:
start: end: width:
', $error ); ?>
keyword: species: 'reloadRevisionSelect(this,this.form._revision);') ); ?> revision:
    "; print ""; } else { print ""; $htmlSID = htmlspecialchars(SID); print ""; } ?>
bwd2 bwd zoomin zoom 10/1 zoom 1/1 zoom 1/10 zoom 1/100 zoom 1/1000 zoomout fwd fwd2
(rev) (top) (clear) (track) (fasta) (png)
$track ) { $name = $track['name']; $description_url = $track['description_url']; $comment = $track['comment']; $optattr = $track['optattr']; $query4thistrack_str = query2string( gen_track_query( $track, $dispparam ) ); // printing title print "\n"; // processing Operation Layer $oper_flags = array(); if( array_key_exists('operation',$track['layers']) && $track['layers']['operation'] ) { //$operation_layer_url = $track['layers']['operation']['url'].'?'.$query4thistrack_str; $operation_layer_url = $track['layers']['operation']['url']; if (preg_match("/\?fileurl=/", $operation_layer_url)) { $operation_layer_url .= "&"; } else if (preg_match("/\?tid=/", $operation_layer_url)) { $operation_layer_url .= "&"; } else { $operation_layer_url .= "?"; } $operation_layer_url .= $query4thistrack_str; $operation_layer_xmlstr = http_get( $operation_layer_url, 30 ); $operation = parse_operation_xml( $operation_layer_xmlstr ); $picked_menus_list[] = pick_menuoper( $operation, $name ); if( $operation ) { assert( $operation['type'] == 'operation_layer' ); if( count($operation['areas']) > 0 ) { print ""; foreach( $operation['areas'] as $area ) { if( $area['type'] == 'rect_area' ) { $rect = substr( $area['rect'], 1, -1); foreach( $area['events'] as $event ) { foreach( $event['operations'] as $oper ) { if( $event['type'] == 'mouseclick_event' && $oper['type'] == 'link_operation' ) { $url = $oper['url']; $target = $oper['target']; if( strlen($target) > 0 ) { print ""; } else { print ""; } $oper_flags['mouseclick_link'] = TRUE; } elseif( $event['type'] == 'mouseclick_event' && $oper['type'] == 'frame_operation' ) { $url = 'browser_frameoper_proxy.php?' . htmlspecialchars(SID) . '&' . framecommand_2_querystr($oper['commands']); print ""; $oper_flags['mouseclick_link'] = TRUE; } elseif( $event['type'] == 'mouseclick_event' && $oper['type'] == 'menu_operation' ) { $id = $oper['__id']; print ""; $oper_flags['mouseclick_link'] = TRUE; } elseif( $event['type'] == 'mouseclick_event' && $oper['type'] == 'suboperation' ) { $oper_flags['mouseclick_subop'] = TRUE; $oper_flags['mouseclick_subop_url'] = $oper['url']; } } } } } print ""; } } } // processing Index Operation Layer $indexoper_flags = array(); if( array_key_exists('indexoperation',$track['layers']) && $track['layers']['indexoperation'] ) { //$operation_layer_url = $track['layers']['indexoperation']['url'].'?'.$query4thistrack_str; $operation_layer_url = $track['layers']['indexoperation']['url']; if (preg_match("/\?fileurl=/", $operation_layer_url)) { $operation_layer_url .= "&"; } else if (preg_match("/\?tid=/", $operation_layer_url)) { $operation_layer_url .= "&"; } else { $operation_layer_url .= "?"; } $operation_layer_url .= $query4thistrack_str; $operation_layer_xmlstr = http_get( $operation_layer_url, 30 ); $operation = parse_operation_xml( $operation_layer_xmlstr ); $picked_menus_list[] = pick_menuoper( $operation, $name.'i' ); if( $operation ) { assert( $operation['type'] == 'operation_layer' ); if( count($operation['areas']) > 0 ) { print ""; foreach( $operation['areas'] as $area ) { if( $area['type'] == 'rect_area' ) { $rect = substr( $area['rect'], 1, -1); foreach( $area['events'] as $event ) { foreach( $event['operations'] as $oper ) { if( $event['type'] == 'mouseclick_event' && $oper['type'] == 'link_operation' ) { $url = $oper['url']; $target = $oper['target']; if( strlen($target) > 0 ) { print ""; } else { print ""; } $indexoper_flags['mouseclick_link'] = TRUE; } elseif( $event['type'] == 'mouseclick_event' && $oper['type'] == 'frame_operation' ) { $url = 'browser_frameoper_proxy.php?' . htmlspecialchars(SID) . '&' . framecommand_2_querystr($oper['commands']); print ""; $indexoper_flags['mouseclick_link'] = TRUE; } elseif( $event['type'] == 'mouseclick_event' && $oper['type'] == 'menu_operation' ) { $id = $oper['__id']; print ""; $indexoper_flags['mouseclick_link'] = TRUE; } elseif( $event['type'] == 'mouseclick_event' && $oper['type'] == 'suboperation' ) { $indexoper_flags['mouseclick_subop'] = TRUE; $indexoper_flags['mouseclick_subop_url'] = $oper['url']; } } } } } print ""; } } } // printing images $ismap_oper = array_key_exists('mouseclick_subop',$oper_flags) && $oper_flags['mouseclick_subop'] ? ' ismap' : ''; $ismap_index = array_key_exists('mouseclick_subop',$indexoper_flags) && $indexoper_flags['mouseclick_subop'] ? ' ismap' : ''; if( array_key_exists('index',$track['layers']) && $track['layers']['index'] ) { $index_layer_url = $track['layers']['index']['url']; if (preg_match("/\?fileurl=/", $index_layer_url)) { $index_layer_url .= "&"; } else if (preg_match("/\?tid=/", $index_layer_url)) { $index_layer_url .= "&"; } else { $index_layer_url .= "?"; } print ""; } else { print ""; } $graphic_layer_url = $track['layers']['graphic']['url']; if (preg_match("/\?fileurl=/", $graphic_layer_url)) { $graphic_layer_url .= "&"; } else if (preg_match("/\?tid=/", $graphic_layer_url)) { $graphic_layer_url .= "&"; } else { $graphic_layer_url .= "?"; } print ""; } if( array_key_exists('mouseclick_subop',$oper_flags) && $oper_flags['mouseclick_subop'] ) { print ""; } print "\n"; } ?>
 
"; if( strlen($description_url) > 0 ) { print ""; } print "\"$name\""; if( strlen($description_url) > 0 ) { print ""; } if( $optattr ) { $tnm = urlencode( $name ); print "\"config\""; } if( $tracknum - 1 >= 0 ) { print 'up this track'; } if( $tracknum + 1 < count($tracks) ) { print 'down this track'; } print ""; if( array_key_exists('mouseclick_subop',$indexoper_flags) && $indexoper_flags['mouseclick_subop'] ) { ; } // not implemented if( array_key_exists('mouseclick_link',$indexoper_flags) && $indexoper_flags['mouseclick_link'] ) { print "\"$name"; } else { print "\"$name"; } if( array_key_exists('mouseclick_subop',$indexoper_flags) && $indexoper_flags['mouseclick_subop'] ) { ; } // not implemented print ""; if( array_key_exists('mouseclick_subop',$oper_flags) && $oper_flags['mouseclick_subop'] ) { print ""; } if( array_key_exists('mouseclick_link',$oper_flags) && $oper_flags['mouseclick_link']) { print "\"$name\""; } else { print "\"$name\""; print "