root/dev/common/contracts.php @ 492

Revision 343, 1.0 KB (checked in by beans, 14 years ago)

A lot of updates done by Karbowiak (LaMaH).
See them here:  http://eve-id.net/forum/viewtopic.php?f=503&t=13204&p=15284#p15284

Highlights:
* Integrated feed fetcher & API Mod into the core
* memcached support in core

Line 
1<?php
2require_once('common/includes/class.contract.php');
3
4$page = new Page('Contracts');
5
6switch ($_GET['view'])
7{
8    case '':
9        $activelist = new ContractList();
10        $activelist->setCampaigns(false);
11        $activelist->setActive('yes');
12        $page->setTitle('Active contracts');
13        $table = new ContractListTable($activelist);
14        $html .= $table->generate();
15        break;
16    case 'past':
17        $pastlist = new ContractList();
18        $pastlist->setCampaigns(false);
19        $pastlist->setActive('no');
20        $page->setTitle('Past contracts');
21        $table = new ContractListTable($pastlist);
22        $html .= $table->generate();
23        break;
24}
25
26$menubox = new box('Menu');
27$menubox->setIcon('menu-item.gif');
28$menubox->addOption('link', 'Active contracts', '?a=contracts');
29$menubox->addOption('link', 'Past contracts', '?a=contracts&view=past');
30
31$page->addContext($menubox->generate());
32$page->setContent($html);
33$page->generate();
34?>
Note: See TracBrowser for help on using the browser.