Location: PHPKode > scripts > Create Your Own Directory > cms/index.php
<html>
<title>
</title>
<?php
include "header.php";
include"./functions/parentchild.php";
?>
<?php
$query="select layout from defaulttab";
$result=mysql_query($query);
if($row=@mysql_fetch_array($result, MYSQL_ASSOC))
{
  $layout=$row['layout'];
}
echo"<script language=javascript>";
echo" var layout=$layout;";
echo"</script>";
?>
<script language=javascript>
getparentchild(layout);
</script>

<?php
include "footer.php";
?>

Return current item: Create Your Own Directory