function _getParameters()
 {
     $mainframe =& JFactory::getApplication();
     global $option;
     // search
     $this->param['search'] = $mainframe->getUserStateFromRequest("{$option}.search", 'search', '', 'string');
     $this->param['search'] = JString::strtolower($this->param['search']);
     // parent
     $this->param['parentid'] = $mainframe->getUserStateFromRequest("{$option}.filter_parentid", 'filter_parentid', 0, 'int');
     // get Tree
     list($this->parentArray, $this->parentKeys, $this->parentChilds) = CLMCategoryTree::getTree();
     $parentlist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
     foreach ($this->parentArray as $key => $value) {
         $parentlist[] = JHTML::_('select.option', $key, $value, 'id', 'name');
     }
     $this->form['parent'] = JHTML::_('select.genericlist', $parentlist, 'filter_parentid', 'class="inputbox" size="1" style="max-width: 250px;"' . CLMText::stringOnchange(TRUE), 'id', 'name', $this->param['parentid']);
     // Modus/Typ
     $this->param['modus'] = $mainframe->getUserStateFromRequest("{$option}.filter_modus", 'filter_modus', 0, 'int');
     // Bezirk
     $this->param['bezirk'] = $mainframe->getUserStateFromRequest("{$option}.filter_bezirk", 'filter_bezirk', 0, 'int');
     // Saison
     $this->param['sid'] = $mainframe->getUserStateFromRequest("{$option}.filter_sid", 'filter_sid', 0, 'int');
     // Statusfilter
     $this->param['state'] = $mainframe->getUserStateFromRequest("{$option}.filter_state", 'filter_state', '', 'word');
     // Order
     $this->param['order'] = $mainframe->getUserStateFromRequest("{$option}.filter_order", 'filter_order', 'a.id', 'cmd');
     // JRequest::getString('filter_order', 'a.id');
     $this->param['order_Dir'] = $mainframe->getUserStateFromRequest("{$option}.filter_order_Dir", 'filter_order_Dir', '', 'word');
 }
 public static function selectPriority($name, $value = 0, $filter = FALSE)
 {
     $list[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('SELECT_PRIORITY')), 'id', 'name');
     for ($p = 35; $p >= 5; $p -= 5) {
         $list[] = JHTML::_('select.option', $p, JText::_('TODO_PRIO_' . $p), 'id', 'name');
     }
     return JHTML::_('select.genericlist', $list, $name, 'class="inputbox" size="1"' . CLMText::stringOnchange($filter), 'id', 'name', intval($value));
 }
 function _getForms()
 {
     $ligalist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('SELECT_LEAGUE')), 'id', 'name');
     $query = 'SELECT DISTINCT(li.id), li.name' . ' FROM #__clm_log AS l' . ' LEFT JOIN #__clm_liga AS li on li.id = l.lid' . ' WHERE li.id > 0';
     $this->_db->setQuery($query);
     $ligalist = array_merge($ligalist, $this->_db->loadObjectList());
     $this->forms['lid'] = JHTML::_('select.genericlist', $ligalist, 'lid', 'class="inputbox" size="1"' . CLMText::stringOnchange(TRUE), 'id', 'name', intval($this->param['lid']));
     $turnierlist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('SELECT_TOURNAMENT')), 'id', 'name');
     $query = 'SELECT DISTINCT(tu.id), tu.name' . ' FROM #__clm_log AS l' . ' LEFT JOIN #__clm_turniere AS tu on tu.id = l.tid' . ' WHERE tu.id > 0';
     $this->_db->setQuery($query);
     $turnierlist = array_merge($turnierlist, $this->_db->loadObjectList());
     $this->forms['tid'] = JHTML::_('select.genericlist', $turnierlist, 'tid', 'class="inputbox" size="1"' . CLMText::stringOnchange(TRUE), 'id', 'name', intval($this->param['tid']));
 }