Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Posts
    183
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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;

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

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •