File indexing completed on 2024-12-22 05:33:28

0001 <?php
0002 /**
0003  *  ocs-webserver
0004  *
0005  *  Copyright 2016 by pling GmbH.
0006  *
0007  *    This file is part of ocs-webserver.
0008  *
0009  *    This program is free software: you can redistribute it and/or modify
0010  *    it under the terms of the GNU Affero General Public License as
0011  *    published by the Free Software Foundation, either version 3 of the
0012  *    License, or (at your option) any later version.
0013  *
0014  *    This program is distributed in the hope that it will be useful,
0015  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *    GNU Affero General Public License for more details.
0018  *
0019  *    You should have received a copy of the GNU Affero General Public License
0020  *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021  **/
0022 class Backend_Form_Ranking extends Zend_Form
0023 {
0024     public function init()
0025     {
0026         parent::init();
0027         $this->setMethod(Zend_Form::METHOD_POST);
0028 
0029         $weight_plings = new Zend_Form_Element_Text('weight_plings');
0030         $weight_plings->setLabel('Weight for Plings');
0031         $this->addElement($weight_plings);
0032 
0033         $weight_views = new Zend_Form_Element_Text('weight_views');
0034         $weight_views->setLabel('Weight for Views');
0035         $this->addElement($weight_views);
0036 
0037         $weight_updates = new Zend_Form_Element_Text('weight_updates');
0038         $weight_updates->setLabel('Weight for Updates');
0039         $this->addElement($weight_updates);
0040 
0041         $weight_comments = new Zend_Form_Element_Text('weight_comments');
0042         $weight_comments->setLabel('Weight for Comments');
0043         $this->addElement($weight_comments);
0044 
0045         $weight_followers = new Zend_Form_Element_Text('weight_followers');
0046         $weight_followers->setLabel('Weight for Followers');
0047         $this->addElement($weight_followers);
0048 
0049         $weight_supporters = new Zend_Form_Element_Text('weight_supporters');
0050         $weight_supporters->setLabel('Weight for Supporters');
0051         $this->addElement($weight_supporters);
0052 
0053         $weight_money = new Zend_Form_Element_Text('weight_money');
0054         $weight_money->setLabel('Weight for Money');
0055         $this->addElement($weight_money);
0056 
0057         $this->addElement('submit', 'send', array('label' => 'Speichern'));
0058 
0059     }
0060 
0061 }