root/dev/common/contracts.php @ 325

Revision 206, 1.0 KB (checked in by ralle030583, 15 years ago)

-bugfix in Known Member mod corp detail
-deleted includes(db.php/class.page.php/class.killboard.php) which arent needed anymore everywhere cause of the include in the common/index.php

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.