GetTagTypes( $tag_type_filter , array( "tag_type_id", "tagname" ) ); foreach( $tag_types as $tag_type ) { $all_tags[$tag_type['tag_type_id']]= $tag_type['tagname']; } // get slice's tag types $slice_info= $api->GetSlices( array( $slice_id ), array( "slice_tag_ids" ) ); $tag_info= $api->GetSliceTags( $slice_info[0]['slice_tag_ids'], array( "tag_type_id", "tagname" ) ); foreach( $tag_info as $info ) { $slice_tag_types[$info['tag_type_id']]= $info['tagname']; } $tag_types= $all_tags; // start form echo "
\n"; echo "

Edit ". $slice_info[0]['name'] ." tag: ". $tag_type[0]['tagname'] ."

\n"; echo "\n"; echo "

Value: \n"; echo "

\n"; echo "\n"; echo "

\n"; } else { $tag_id= intval( $_GET['id'] ); // get tag $slice_tag= $api->GetSliceTags( array( $tag_id ), array( "slice_id", "slice_tag_id", "tag_type_id", "value", "description", "min_role_id" ) ); // get type info $tag_type= $api->GetTagTypes( array( $slice_tag[0]['tag_type_id'] ), array( "tag_type_id", "tagname", "description" ) ); // slice info $slice_info= $api->GetSlices( array( $slice_tag[0]['slice_id'] ), array( "name" ) ); // start form and put values in to be edited. echo "
\n"; echo "

Edit ". $slice_info[0]['name'] ." tag: ". $tag_type[0]['tagname'] ."

\n"; echo $slice_tag[0]['description'] ."
\n"; echo "Value:

\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; } // Print footer include 'plc_footer.php'; ?>