I used the same code in the item file.  I placed it right after ->

     if(isset($Item["ID"]))
     {
          /*
          ** Output the item name and description.
          */

 Seems to work pretty good with a little format cleanup ->

/* display current dept and calc link to previous dept */
if($department)
{
     $Query = "SELECT Description, Parent, Name ";
     $Query .= "FROM department ";
     $Query .= "WHERE ID=$department ";
     $Query .= "ORDER BY DisplayPrecedence, Name ";
     $DatabaseResult = mysql_query($Query, $DatabaseLink);
     while($DatabaseRow = mysql_fetch_object($DatabaseResult))
     {
          print("<Font Size=+1><B>");
          print("$DatabaseRow->Name<BR>");
          print("</Font></B>");
          print("$DatabaseRow->Description<BR>");
          $deptprev = "<A HREF=\"";
          $deptprev .= ScreenURL("department");
          $deptprev .= "&department=$DatabaseRow->Parent\">";
          $deptprev .= "Back to previous Department</A><BR><BR>";

     }
     /* print link to prev dept */
     print($deptprev);

}
/* there you are */


Thanks.





"Bjarne Hansen" <[EMAIL PROTECTED]> on 04/10/2000 10:04:38 PM

Please respond to "FreeTrade" <[EMAIL PROTECTED]>


To:   "FreeTrade" <[EMAIL PROTECTED]>
cc:    (bcc: Kit Plummer/MIS/MARINE MWR)
bcc:  Kit Plummer/MIS/MARINE MWR

Subject:  [FreeTrade] Department header...





Hi!

Please note that .inc must be removed from
$deptprev .= ScreenURL("department.inc");
If you are using standard FreeTrade..

 Thanks! That was nice. Do you have same thing for item to?


Bjarne Hansen



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









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

Reply via email to