You could do this:

1) Put this code into include directory as "custom_functions"


<?php

function showNavigation($department, $itemName)
        {
        global $DatabaseLink;
        //show sub-departments
        $Query = "SELECT ID, Name, Parent ";
        $Query .= "FROM department ";
        $Query .= "WHERE department.ID=$department ";

        $DatabaseResult = mysql_query($Query, $DatabaseLink);
        while($DatabaseRow = mysql_fetch_object($DatabaseResult))
                {
                showNavigation($DatabaseRow->Parent, "");
                print("<b><i><A HREF=\"" . ScreenURL("department") .
"&department=$DatabaseRow->ID\">$DatabaseRow->Name</a> : </i></b>");
                }

        if(!empty($itemName))
                {
                print("<b><i>$itemName</i></b>");
                }
        }

function showNavigationPrint($department)
        {
        // Skip THIS department.

        global $DatabaseLink;
        if(!empty($department))
                {
                //print("<b><i><A HREF=\"" . ScreenURL("department") . "\">Home</a> :
</i></b> ");

                $Query = "SELECT ID, Name, Parent ";
                $Query .= "FROM department ";
                $Query .= "WHERE department.ID=$department ";

                $DatabaseResult = mysql_query($Query, $DatabaseLink);
                $DatabaseRow = mysql_fetch_object($DatabaseResult);
        
                showNavigation($DatabaseRow->Parent, "");
                print("<b><i>".$DatabaseRow->Name."</i></b><br>");
                }
        }       
?>
// end of "custom_functions"


2) ... then add this code to your "department"

// department
include(APPLICATION_ROOT . "/modules/include/custom_functions"); 
showNavigationPrint($department); 


3) ...and this to your "item"

//item
include(APPLICATION_ROOT . "/modules/include/custom_functions"); 
showNavigation($department, prepareText($Item["Name"])); 





> Bjarne Hansen wrote:
> 
> Hi!
> 
> Someone wrote that you could use a javascript to make a button to go
> back one step, and that sounds fine. Most of the time that will work.
> 
> But if a customer orders a product, that buton will not work. If you
> don't have a message: " Please press twice if one time does not do
> it!" Just kidding...
> (Becase the order process do generate a new page with order
> confirmation added)
> 
> Both the websites Leon gave url  to,
> http://www.restorationhardware.com/ and www.dantz.com had worked
> around it. Restorationhardware simply moved you back to the list and
> gave the confirmation on that page.
> Slick. They had a lay-out that makes that no problem. And Dantz don't
> use a detail page. So they forwarder you to express check out, and
> gave a confirmation on that page. Hm.
> 
> Maybe a combination? A gobackjava button and forwarding back to last
> page when clicking order?
> 
> If anyone consider this a valid problem and do write some code, I
> would be happy to recive it.
> 
> It would be nice if this was a part of the FreeTrade distribution.
> 
> Bjarne Hansen
> Oslo Norway
> 

-- 
Marek Stanczyk
Integration Specialist
[EMAIL PROTECTED]

Web++ Inc. "Dynamic Internet Solutions"
3415 Dixie Road, Suite 512  Mississauga, Ontario L4Y 2B1
Tel: 905-566-1215 Fax: 905-566-8543
Internet: www.webplusplus.com


------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to