2
submit.php doesn't has a template, but add this to submit.php to avoid quirksmode:
le="color: #000000"><?php $xoopsOption['template_main'] = '';
place doesn't matter that much, but what about this:
le="color: #000000"><?php if (!defined('XOOPS_ROOT_PATH')) { include_once '../../mainfile.php'; } $xoopsOption['template_main'] = '';