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/contracts.php

    r2 r104  
    2525  } 
    2626 
    27   $menubox = new MenuBox(); 
    28   $menubox->addOption( "Active contracts", "?a=contracts" ); 
    29   $menubox->addOption( "Past contracts", "?a=contracts&view=past" ); 
     27$menubox = new box("Menu"); 
     28$menubox->setIcon("menu-item.gif"); 
     29  $menubox->addOption("link", "Active contracts", "?a=contracts" ); 
     30  $menubox->addOption("link", "Past contracts", "?a=contracts&view=past" ); 
    3031 
    3132  $page->addContext( $menubox->generate() );