How to make tab panel in PHP

Discussion in 'PHP' started by chong2x, Jun 8, 2006.

  1. #1
    I want to make a tab panel so that i can chose which tab i want show. can any body help me?
     
    chong2x, Jun 8, 2006 IP
  2. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #2
    Your question isn't very clear to me. Can you reword it or show an example of what you mean?
     
    sketch, Jun 8, 2006 IP
  3. chong2x

    chong2x Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just want to put a tab panel the page. just like a control panel in win32. how do i make it?
     
    chong2x, Jun 9, 2006 IP
  4. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #4
    You mean tabs like the sample attached? Just make a tab with CSS or an image and use a link to open the corresponding page.
     

    Attached Files:

    • tabs.gif
      tabs.gif
      File size:
      831 bytes
      Views:
      5,755
    sketch, Jun 9, 2006 IP
  5. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can try this: homework.nwsnet.de/products/70

    Its in Javascript, sounds like what you want

    Sorry about the link, I apparently cant post live links :s lol
     
    decepti0n, Jun 9, 2006 IP
  6. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    1. Design your tab in html/css as you normally would including all links
    2. For each tab if the tab = REQUEST_URI then make the link InActive.
    something like
    
    echo $REQUEST_URI='phpinfo.php' ? "Active Tab"  : <a href=\"phpinfo.php\">InActive Tab</a>" ;
    
    Code (markup):
    The above is pseudo code and I use something like it in my tabs
     
    sadcox66, Jun 11, 2006 IP
  7. chong2x

    chong2x Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    as u attached ur picture is it. but it not to refresh the page just like a friendster design at your page when you browse u don't need to change the page... some page are hide and can be visible if it cals. thanks...
     
    chong2x, Jun 12, 2006 IP
  8. chong2x

    chong2x Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thanks for info but i can't download the sample becuase their s a fire wall of host. can u send it to my email? i can only download it through my email account. riecho24@yahoo.com

    sorry for a small demanding.

    thanks in advance.....
     
    chong2x, Jun 12, 2006 IP
  9. ClearVisionDesigns.co.uk

    ClearVisionDesigns.co.uk Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    have a look at the yahoo developers api on their site. they have some prety nice stuff to do things like making tabs etc.
     
  10. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0