Changeset 167

Show
Ignore:
Timestamp:
01/03/07 09:30:17 (14 years ago)
Author:
Mitchman
Message:

The contract detail page will now show the alliance/corp/region as a clickable link that will go directly do the stat page

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/cc_detail.php

    r104 r167  
    6363            $summary->setView('combined'); 
    6464 
    65             $html .= "<br><div class=kb-contract-target-header>Target " . $target->getType() . " - " . $target->getName() . "</div>"; 
     65            $html .= "<br><div class=kb-contract-target-header>Target " . $target->getType() . " - "; 
     66            switch ($target->getType()) { 
     67                case "corp": 
     68                    $html .= "<a class=kb-contract href=\"?a=" . $target->getType() . "_detail&crp_id=" . $target->getID() . "\">" . $target->getName() . "</a>"; 
     69                    break; 
     70                case "alliance": 
     71                    $html .= "<a class=kb-contract href=\"?a=" . $target->getType() . "_detail&all_id=" . $target->getID() . "\">" . $target->getName() . "</a>"; 
     72                    break; 
     73                case "system": 
     74                    $html .= "<a class=kb-contract href=\"?a=" .$target->getType() . "_detail&sys_id=" . $target->getID() . "\">" . $target->getName() . "</a>"; 
     75                    break; 
     76                case "region": 
     77                    $html .= $target->getName(); 
     78                    break; 
     79            } 
     80            $html .= "</div>"; 
    6681            $html .= $summary->generate(); 
    6782