I assume the 2 transformers are not the same part, so pins 1 and 2 are the primary winding on the top one. Pins 6 and 7 are the feedback winding, and pin 6 is the other side of the feedback winding for regulation. Pin 7 is a common on the secondary, and it is part tapped at pin 8 for voltage sense and pin 3 is the high voltage winding.
Bottom one pins 1 and 2 are primary again, pin 5 is the common for the secondaries, and feedback is from pins 4 and 3. Secondary is pin 5 and 6, with voltage there used to regulate the oscillation on the transformer.
Bottom one i guess supplies 5V at around 1A, top is 160v at 10mA or so.