function install_navigation($name)
{
global $DOCUMENT_ROOT;
if(file_exists("view/".$name.".source.php" ))
{
ob_start();
echo"<?
";
include ("view/".$name.".source.php" );
echo"
?>";
$content=ob_get_contents();
ob_end_clean();
$myfile = fopen("view/".$name.".php","wb" );
$fp = fwrite($myfile,$content);
fclose($myfile);
}
echo "<table width=100% height=100%>
<tr>
<td align=center valign=middle>";
$navigation_array[]=array("page_id" => 1, "name" => "Navigation1", "selected" => 0);
$navigation_array[]=array("page_id" => 1, "name" => "Navigation2", "selected" => 1);
$navigation_array[]=array("page_id" => 1, "name" => "Navigation3", "selected" => 0);
$tree_navigation=array("page_id" => 1, "name" => "Home", "selected" => 0);
$tree_navigation["children"]=$navigation_array;
$tree_navigation["children"][1]["children"]=$navigation_array;
include_once("view/".$name.".php" );
echo "
</td>
</tr>
</table>"; |