Show
Ignore:
Timestamp:
11/28/06 22:32:11 (16 years ago)
Author:
knifee
Message:

Changed the class.box.php to use smarty, and changed all pages that use the class to use the options. Menu Boxes can now be created as follows:
$menubox = new box("Menu");
$menubox->setIcon("menu-item.gif"); // only needed if adding a Menu (ie u want the little icon)
$menubox->addOption("caption","View"); // Add a Caption
$menubox->addOption("link","Name","URL"); // Add a Link
$menubox->addOption("points","Points Value"); // Add points to a Points Box
$menubox->addOption("img","/path to img"); // Add an Image

changed the AwardBox? Class to use smarty, that is called in the same way as before so no need to change anything.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/alliance_detail.php

    r92 r104  
    268268} 
    269269 
    270 $menubox = new MenuBox(); 
    271 $menubox->addCaption("Kills & losses"); 
    272 $menubox->addOption("Recent activity", "?a=alliance_detail&all_id=" . $alliance->getID()); 
    273 $menubox->addOption("Kills", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=kills"); 
    274 $menubox->addOption("Losses", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=losses"); 
    275 $menubox->addCaption("Corp statistics"); 
    276 $menubox->addOption("Top killers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=corp_kills"); 
    277 $menubox->addOption("Top losers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=corp_losses"); 
    278  
    279 $menubox->addCaption("Pilot statistics"); 
    280 $menubox->addOption("Top killers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=pilot_kills"); 
     270$menubox = new Box("Menu"); 
     271$menubox->setIcon("menu-item.gif"); 
     272$menubox->addOption("caption","Kills & losses"); 
     273$menubox->addOption("link","Recent activity", "?a=alliance_detail&all_id=" . $alliance->getID()); 
     274$menubox->addOption("link","Kills", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=kills"); 
     275$menubox->addOption("link","Losses", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=losses"); 
     276$menubox->addOption("caption","Corp statistics"); 
     277$menubox->addOption("link","Top killers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=corp_kills"); 
     278$menubox->addOption("link","Top losers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=corp_losses"); 
     279 
     280$menubox->addOption("caption","Pilot statistics"); 
     281$menubox->addOption("link","Top killers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=pilot_kills"); 
    281282 
    282283$killboard = $page->killboard_; 
     
    284285if ($config->getKillPoints()) 
    285286    $menubox->addOption("Top scorers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=pilot_scores"); 
    286 $menubox->addOption("Top losers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=pilot_losses"); 
    287 $menubox->addCaption("Global statistics"); 
    288 $menubox->addOption("Ships & weapons", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=ships_weapons"); 
     287$menubox->addOption("link","Top losers", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=pilot_losses"); 
     288$menubox->addOption("caption","Global statistics"); 
     289$menubox->addOption("link","Ships & weapons", "?a=alliance_detail&all_id=" . $alliance->getID() . "&view=ships_weapons"); 
    289290$page->addContext($menubox->generate()); 
    290291