> >I noticed that when viewing an item in a department their is no way to get
> back
> >to the department listing.  In addition there is no header that displays the
> >department you are in.
> >
> >Has anyone written a hack to do this yet, or is it in the works?
> 
> try this. put it in screen/department
> 
> /* display current dept and calc link to previous dept */
> if($department)
> {
>         $Query = "SELECT Description, Parent ";
>         $Query .= "FROM department ";
>         $Query .= "WHERE ID=$department ";
>         $Query .= "ORDER BY DisplayPrecedence, Name ";
>         $DatabaseResult = mysql_query($Query, $DatabaseLink);
>         while($DatabaseRow = mysql_fetch_object($DatabaseResult))
>         {
>                 print("$DatabaseRow->Description<BR>");
>                 $deptprev = "<A HREF=\"";
>                 $deptprev .= ScreenURL("department.inc");
>                 $deptprev .= "&department=$DatabaseRow->Parent\">";
>                 $deptprev .= "Back to previous Department</A>";
>         }
>         /* print link to prev dept */
>         print($deptprev);
> }
> /* there you are */
I do believe it's easier than this.  I think the department variable is
set inside the $Item array from getItemInfo.  Sorry I don't have time to
look into this right now.  Please send a diff when you get it all
straightened out.

Thanks!
-jj

-- 
if (shannon - jj) * behrens == webEngineer["CLEAR INK�"]:
    print "<i>imagination is the only real medium(sm)</i><br>"



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

Reply via email to