Changeset 107 for dev/mods/item_values

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

Changed menu boxes over to use new class/smarty

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/item_values/kill_detail.php

    r98 r107  
    276276$html .= "</td></tr></table>"; 
    277277 
    278 $menubox = new MenuBox(); 
    279 $menubox->addCaption("View"); 
    280 $menubox->addOption("Killmail", "javascript:openWindow( '?a=kill_mail&kll_id=" . $kill->getID() . "', null, 355, 430, '' );"); 
     278$menubox = new box("Menu"); 
     279$menubox->setIcon("menu-item.gif"); 
     280$menubox->addOption("Caption","View"); 
     281$menubox->addOption("link","Killmail", "javascript:openWindow( '?a=kill_mail&kll_id=".$kill->getID()."', null, 355, 430, '' );"); 
    281282if ($kill->relatedKillCount() > 1 || $kill->relatedLossCount() > 1) 
    282283{ 
    283     $menubox->addOption("Related kills (" . $kill->relatedKillCount() . "/" . $kill->relatedLossCount() . ")", "?a=kill_related&kll_id=" . $kill->getID()); 
     284    $menubox->addOption("link","Related kills (".$kill->relatedKillCount()."/".$kill->relatedLossCount().")", "?a=kill_related&kll_id=".$kill->getID()); 
    284285} 
    285286if ($page->isAdmin()) 
    286287{ 
    287     $menubox->addCaption("Admin"); 
    288     $menubox->addOption("Delete", "javascript:openWindow('?a=kill_delete&kll_id=".$kill->getID()."', null, 420, 300, '' );"); 
     288    $menubox->addOption("caption","Admin"); 
     289    $menubox->addOption("link","Delete", "javascript:openWindow('?a=kill_delete&kll_id=".$kill->getID()."', null, 420, 300, '' );"); 
    289290} 
    290291$page->addContext($menubox->generate()); 
     
    293294{ 
    294295    $scorebox = new Box("Points awarded"); 
    295     $scorebox->setHeight(64); 
    296     $scorebox->setContent("<div class=kill-points>" . $kill->getKillPoints() . "</div>"); 
     296    $scorebox->addOption("points",$kill->getKillPoints()); 
    297297    $page->addContext($scorebox->generate()); 
    298298} 
    299299 
    300300$mapbox = new Box("Map"); 
    301 $maphtml = "<img src=\"?a=mapview&sys_id=" . $system->getID() . "&mode=map&size=145\" border=0><br>"; 
    302 $maphtml .= "<img src=\"?a=mapview&sys_id=" . $system->getID() . "&mode=region&size=145\" border=0><br>"; 
    303 $maphtml .= "<img src=\"?a=mapview&sys_id=" . $system->getID() . "&mode=cons&size=145\" border=0>"; 
    304 $mapbox->setContent($maphtml); 
     301$mapbox->addOption("img","?a=mapview&sys_id=".$system->getID()."&mode=map&size=145"); 
     302$mapbox->addOption("img","?a=mapview&sys_id=".$system->getID()."&mode=region&size=145"); 
     303$mapbox->addOption("img","?a=mapview&sys_id=".$system->getID()."&mode=cons&size=145"); 
     304 
    305305$page->addContext($mapbox->generate()); 
    306306