|
Revision 104, 1.0 kB
(checked in by d0nut, 6 years ago)
|
|
donation system changed
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | require_once(WCF_DIR.'lib/form/AbstractForm.class.php'); |
|---|
| 3 | |
|---|
| 4 | /** |
|---|
| 5 | * donation add form |
|---|
| 6 | * |
|---|
| 7 | * @author Torben Brodt |
|---|
| 8 | * @package de.easy-coding.wcf.donation |
|---|
| 9 | * @license GNU General Public License <http://opensource.org/licenses/gpl-3.0.html> |
|---|
| 10 | */ |
|---|
| 11 | class DonationAddForm extends AbstractForm { |
|---|
| 12 | public $templateName = 'donationEdit'; |
|---|
| 13 | public $system = ''; |
|---|
| 14 | public $step = 0; |
|---|
| 15 | |
|---|
| 16 | /** |
|---|
| 17 | * @see Page::readParameters() |
|---|
| 18 | */ |
|---|
| 19 | public function readParameters() { |
|---|
| 20 | parent::readParameters(); |
|---|
| 21 | |
|---|
| 22 | if(isset($_GET['system'])) $this->system = $_GET['system']; |
|---|
| 23 | if(isset($_GET['step'])) $this->step = intval($_GET['step']); |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | /** |
|---|
| 27 | * @see Page::assignVariables() |
|---|
| 28 | */ |
|---|
| 29 | public function assignVariables() { |
|---|
| 30 | parent::assignVariables(); |
|---|
| 31 | |
|---|
| 32 | WCF::getTPL()->assign('system', $this->system); |
|---|
| 33 | WCF::getTPL()->assign('step', $this->step); |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | /** |
|---|
| 37 | * @see Page::show() |
|---|
| 38 | */ |
|---|
| 39 | public function show() { |
|---|
| 40 | // set active header menu item |
|---|
| 41 | require_once(WCF_DIR.'lib/page/util/menu/HeaderMenu.class.php'); |
|---|
| 42 | HeaderMenu::setActiveMenuItem('wcf.header.menu.donation'); |
|---|
| 43 | |
|---|
| 44 | parent::show(); |
|---|
| 45 | } |
|---|
| 46 | } |
|---|
| 47 | ?> |
|---|