How can I parse php code from another file during nodeapi function?
As i get you, you need to implement hook_theme and use it, instead parsing php code.

Please, see anwser here: https://stackoverflow.com/questions/12985689/how-to-implement-hook-theme-in-drupal-7