root/dev/mods/known_members/settings.php @ 212

Revision 212, 2.6 KB (checked in by ralle030583, 13 years ago)

- replaced $config->getConfig with config::getconfig so we havent a mix in all files<br>
- added valing='top' to award boxes to make the awards nice in board with not many pilots<br>
- removed not needed includes<br>
- added event 'killmail_delete' which is called before real delete of a killmail<br>
- admin can see classified system in the killmaildetails

Line 
1<?php
2require_once("common/admin/admin_menu.php");
3
4if ($_POST['submit'])
5{
6if($_POST['known_members_own']){
7        $config->setConfig('known_members_own', '1');
8        }
9        else
10        {
11        $config->setConfig('known_members_own', '0');
12        }
13
14$clmn = "";
15if($_POST['img']) {$clmn .=",img";}
16if($_POST['kll_pnts']) {$clmn .=",kll_pnts";}   
17if($_POST['dmg_dn']) {$clmn .=",dmg_dn";}       
18if($_POST['dmg_rcd']) {$clmn .=",dmg_rcd";}     
19if($_POST['eff']) {$clmn .=",eff";}
20if($_POST['lst_sn']) {$clmn .=",lst_sn";}
21$config->setConfig('known_members_clmn', $clmn);       
22       
23        $html .= "Setting Saved";
24}
25
26$page = new Page("Settings - known members");
27
28$html .= "<div class=block-header2>Global options</div>";
29$html .= "<form id=options name=options method=post action=>";
30$html .= "<table class=kb-subtable>";
31$html .= "<tr><td><b>Remove Known Members page for board owner:</b></td><td><input type=checkbox name=known_members_own id=known_members_own";
32if ($config->getConfig('known_members_own'))
33{
34    $html .= " checked=\"checked\"";
35}
36$html .= "></td></tr></table>";
37
38
39$html .= "<div class=block-header2>Show Columns</div>";
40$html .= "<table class=kb-subtable>";
41$clmn = $config->getConfig('known_members_clmn');
42
43$html .= "<tr><td><b>Add Char. Portrait:</b></td><td><input type=checkbox name=img id=img";
44if (strpos($clmn,"img"))
45{
46    $html .= " checked=\"checked\"";
47}
48$html .= "></td></tr>";
49$html .= "<tr><td><b>Add Kill Points:</b></td><td><input type=checkbox name=kll_pnts id=kll_pnts";
50if (strpos($clmn,"kll_pnts"))
51{
52    $html .= " checked=\"checked\"";
53}
54$html .= "></td></tr>";
55$html .= "<tr><td><b>Add Damage Done(isk):</b></td><td><input type=checkbox name=dmg_dn id=dmg_dn";
56if (strpos($clmn,"dmg_dn"))
57{
58    $html .= " checked=\"checked\"";
59}
60$html .= "></td></tr>";
61$html .= "<tr><td><b>Add Damage Recived(isk):</b></td><td><input type=checkbox name=dmg_rcd id=dmg_rcd";
62if (strpos($clmn,"dmg_rcd"))
63{
64    $html .= " checked=\"checked\"";
65}
66$html .= "></td></tr>";
67$html .= "<tr><td><b>Add Efficency:</b></td><td><input type=checkbox name=eff id=eff";
68if (strpos($clmn,"eff"))
69{
70    $html .= " checked=\"checked\"";
71}
72$html .= "></td></tr>";
73$html .= "<tr><td><b>Add Last Seen In:</b></td><td><input type=checkbox name=lst_sn id=lst_sn";
74if (strpos($clmn,"lst_sn"))
75{
76    $html .= " checked=\"checked\"";
77}
78$html .= "></td></tr>";
79$html .= "<tr><td width=120></td><td colspan=3 ><input type=submit name=submit value=\"Save\"></td></tr>";
80$html .= "</table>";
81
82$html .= "</form>";
83
84$page->setContent($html);
85$page->addContext($menubox->generate());
86$page->generate();
87?>
Note: See TracBrowser for help on using the browser.