At 16:31 10/04/00 +0900, you wrote:
>
>
>
>
>
>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 */
>
>Thanks.
>Kit
>
>------------------------------------------------------
>Kit Plummer
>Special Projects/ARTS, Manager
>Management Information Systems
>Marine Corps Community Services
>
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>Yahoo! KITPLUMMER
>(cellular) 090.9583.8027
>(office) 011.81.611.745.3292
>(fax) 011.81.611.745.0962
>
>
>
>
>
>------------------------------------------------------------
>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]