Put your sub-page conditionals in the php code, not in your template code.
videoadmin.php
PHP Code:
//... lots of stuff that you need for php files...
$globaltemplates = array(
// change the lines below to the list of actual templates used in the script
'test_mytesttemplate1',
'test_mytesttemplate2',
);
//... more stuff
if( $_REQUEST['do'] == 'addvideo' )
{
//PHP logic, set some variables for your templates.
//whatever else...
eval('print_output("' . fetch_template('test_mytesttemplate1') . '");');
}
Check out this page for more info:
https://vborg.vbsupport.ru/showthread.php?t=98009