...

View Full Version : tables instead of frames



zuzupus
09-29-2003, 03:51 PM
hi,

i created various frames which is not a professional way later i came to know tables replaced frames if anybody change below frames to tableall together in one called index.phtml as i also want all 3 pages must be independent from each other

thanks



--------------index.phtml-----------------------------------
<? $dir = './'; require($dir.'lib.php'); get_session();
if ($HTTP_GET_VARS['mode'] == 'internal'){
?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">

<frameset rows="85%,15%"> _
<frame src="top.phtml" name="topframe" >
_ <frame src="log.phtml" name="bottomframe" >
</frameset>

</html>
<?
}

else {

?>
<frameset>
_ _ <frame src="top.phtml" name="topframe" >
_ </frameset>

<?
}
?>

-----------top.phtml------------------------------------
<?php $dir = './'; require($dir.'lib.php'); get_session();
$urlleft = "browsing.phtml?diradr=" . $HTTP_GET_VARS['diradr'] . "&dirname=". $HTTP_GET_VARS['dirname'] ;
if (isset($HTTP_GET_VARS["syspk"]))
{
$urlrigth = "filelist.phtml?tree=".$HTTP_GET_VARS['syspk']."";
} else
{
$urlrigth = "blank.phtml ";
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>TOp Frames</title>
</head>
<frameset cols="25%,75%">
_ <frame src="<?php echo $urlleft ; ?>" name="leftframe" >
_ <frame src="<?php echo $urlright ; ?>" name="rigthframe" >
</frameset>
</html>

---browsing.phtml-----------------(for folders)

echo ("<input type=\"hidden\" name=\"tree\" value=\"" . $dir['sys_pk'] ."\" />");
$print .= ("<a href=\"top.phtml?&syspk=" . $dir['sys_pk'] . "&diradr=" . $dir['diradress'] . "&dirname=". $dir['name'] ."\" title=\"Unfold folder ". $dir['name']. " and see permissions\" target=\"_parent\">" . $dir['name'] . " </a>");
echo $print;

--------------------------------------

Nightfire
09-29-2003, 04:24 PM
Although you're using php coding, this is nothing to do with php. It's html coding you're wanting help with :) Also, tables aren't replacing anything, div's and css are the latest standards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum