Changeset 108 for dev/mods/known_members

Show
Ignore:
Timestamp:
11/29/06 00:16:29 (14 years ago)
Author:
knifee
Message:

Changed menu boxes over to use new class/smarty

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/known_members/corp_detail.php

    r67 r108  
    433433} 
    434434 
    435 $menubox = new MenuBox(); 
    436 $menubox->addCaption("Kills & losses"); 
    437 $menubox->addOption("Recent activity", "?a=corp_detail&crp_id=" . $corp->getID()); 
    438 $menubox->addOption("Kills", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=kills"); 
    439 $menubox->addOption("Losses", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=losses"); 
    440 $menubox->addCaption("Pilot statistics"); 
    441 $menubox->addOption("Top killers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_kills"); 
     435$menubox = new Box("Menu"); 
     436$menubox->setIcon("menu-item.gif"); 
     437$menubox->addOption("caption","Kills & losses"); 
     438$menubox->addOption("link","Recent activity", "?a=corp_detail&crp_id=" . $corp->getID()); 
     439$menubox->addOption("link","Kills", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=kills"); 
     440$menubox->addOption("link","Losses", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=losses"); 
     441$menubox->addOption("caption","Pilot statistics"); 
     442$menubox->addOption("link","Top killers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_kills"); 
    442443 
    443444$killboard = $page->killboard_; 
    444445$config = $killboard->getConfig(); 
    445446if ($config->getKillPoints()) 
    446     $menubox->addOption("Top scorers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_scores"); 
    447 $menubox->addOption("Top solokillers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_solo"); 
    448 $menubox->addOption("Top damagedealers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_damage"); 
    449 $menubox->addOption("Top griefers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_griefer"); 
    450 $menubox->addOption("Top losers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_losses"); 
    451 $menubox->addCaption("Global statistics"); 
    452 $menubox->addOption("Ships & weapons", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=ships_weapons"); 
    453 $menubox->addOption("Known Members", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=known_members"); 
     447    $menubox->addOption("link","Top scorers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_scores"); 
     448$menubox->addOption("link","Top solokillers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_solo"); 
     449$menubox->addOption("link","Top damagedealers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_damage"); 
     450$menubox->addOption("link","Top griefers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_griefer"); 
     451$menubox->addOption("link","Top losers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_losses"); 
     452$menubox->addOption("caption","Global statistics"); 
     453$menubox->addOption("link","Ships & weapons", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=ships_weapons"); 
     454$menubox->addOption("link","Known Members", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=known_members"); 
    454455$page->addContext($menubox->generate()); 
    455456$page->setContent($html);