sorry its me thats wrong...just checked and infact i did it slightly different way....use the same way as said above but instead of using the pages feature just create a file with just the html code you want....call it say links.txt

example links.txt
Code:
test
then change your php file to point to it and it should work.
example:

Code:
<?php
session_start();
include("include/config.php");
include("include/function.php");
STemplate::display('header.tpl');
include("links.txt");
STemplate::display('footer.tpl');
?>