Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-29-2003, 03:51 PM   PM User | #1
zuzupus
Regular Coder

 
Join Date: Jun 2003
Posts: 183
Thanks: 0
Thanked 0 Times in 0 Posts
zuzupus is an unknown quantity at this point
tables instead of frames

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;

--------------------------------------
zuzupus is offline   Reply With Quote
Old 09-29-2003, 04:24 PM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
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
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:32 AM.


Advertisement
Log in to turn off these ads.