本文整理汇总了PHP中CLMText::selectOpener方法的典型用法代码示例。如果您正苦于以下问题:PHP CLMText::selectOpener方法的具体用法?PHP CLMText::selectOpener怎么用?PHP CLMText::selectOpener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CLMText
的用法示例。
在下文中一共展示了CLMText::selectOpener方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _getParameters
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');
}
示例2: _getForms
function _getForms()
{
// category
list($this->parentArray, $this->parentKeys) = CLMCategoryTree::getTree();
if (count($this->parentArray) > 0) {
// nur, wenn Kategorien existieren
$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['catidAlltime'] = JHtml::_('select.genericlist', $parentlist, 'catidAlltime', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->turnier->catidAlltime));
$this->form['catidEdition'] = JHtml::_('select.genericlist', $parentlist, 'catidEdition', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->turnier->catidEdition));
}
// Saison
$this->form['sid'] = CLMForm::selectSeason('sid', $this->turnier->sid);
// Modus
$this->form['modus'] = CLMForm::selectModus('typ', $this->turnier->typ, false, ' onChange="showFormRoundscount()";');
// Tiebreakers
$this->form['tiebr1'] = CLMForm::selectTiebreakers('tiebr1', $this->turnier->tiebr1);
$this->form['tiebr2'] = CLMForm::selectTiebreakers('tiebr2', $this->turnier->tiebr2);
$this->form['tiebr3'] = CLMForm::selectTiebreakers('tiebr3', $this->turnier->tiebr3);
// stages/dg
$this->form['dg'] = CLMForm::selectStages('dg', $this->turnier->dg);
// director/tl
$this->form['tl'] = CLMForm::selectDirector('tl', $this->turnier->tl);
// bezirksveranstaltung?
$this->form['bezirkTur'] = JHtml::_('select.booleanlist', 'bezirkTur', 'class="inputbox"', $this->turnier->bezirkTur);
// vereinZPS
// $this->form['vereinZPS']= CLMForm::selectVereinZPS('vereinZPS', $this->turnier->vereinZPS);
$this->form['vereinZPS'] = CLMForm::selectVereinZPSuVerband('vereinZPS', $this->turnier->vereinZPS);
// director/tl
$this->form['tl'] = CLMForm::selectDirector('tl', $this->turnier->tl);
// published
$this->form['published'] = CLMForm::radioPublished('published', $this->turnier->published);
}
示例3: _getForms
function _getForms()
{
// get Tree
list($this->parentArray, $this->parentKeys) = CLMCategoryTree::getTree();
// parent
$parentlist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
foreach ($this->parentArray as $key => $value) {
// Einträge ausscheiden, die die Kategorie selbst sind, ODER der Kategorie untergeordent sind!
if ($key != $this->category->id) {
if (!isset($this->parentKeys[$key]) or isset($this->parentKeys[$key]) and !in_array($this->category->id, $this->parentKeys[$key])) {
$parentlist[] = JHTML::_('select.option', $key, $value, 'id', 'name');
}
}
}
$this->form['parent'] = JHTML::_('select.genericlist', $parentlist, 'parentid', 'class="inputbox" size="1"', 'id', 'name', intval($this->category->parentid));
// director/tl
// $this->form['tl'] = CLMForm::selectDirector('tl', $this->category->tl);
// published
$this->form['published'] = CLMForm::radioPublished('published', $this->category->published);
}
示例4: selectPriority
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));
}
示例5: list
</label>
</td>
<td colspan="2" >
<input class="inputbox" type="text" name="event_link" id="event_link" size="60" maxlength="500" value="<?php
echo $this->termine->event_link;
?>
" />
</td>
</tr>
<?php
// Kategorien
list($parentArray, $parentKeys) = CLMCategoryTree::getTree();
if (count($parentArray) > 0) {
// nur, wenn Kategorien existieren
$parentlist[] = JHtml::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
foreach ($parentArray as $key => $value) {
$parentlist[] = JHtml::_('select.option', $key, $value, 'id', 'name');
}
$catidAlltime = JHtml::_('select.genericlist', $parentlist, 'catidAlltime', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->termine->catidAlltime));
$catidEdition = JHtml::_('select.genericlist', $parentlist, 'catidEdition', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->termine->catidEdition));
}
if (isset($catidAlltime)) {
?>
<tr>
<td colspan="1" class="paramlist_key">
<label for="category">
<?php
echo JText::_('CATEGORY_ALLTIME');
?>
:
示例6: _getForms
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']));
}
示例7: liga
//.........这里部分代码省略.........
echo JText::_('LEAGUE_DATA');
?>
</legend>
<table class="paramlist admintable">
<tr>
<td width="20%" nowrap="nowrap">
<label for="name"><?php
echo JText::_('LEAGUE_NAME');
?>
</label>
</td><td colspan="2">
<input class="inputbox" type="text" name="name" id="name" size="20" maxlength="30" value="<?php
echo $row->name;
?>
" />
</td>
<td nowrap="nowrap">
<label for="sl"><?php
echo JText::_('LEAGUE_CHIEF');
?>
</label>
</td><td colspan="2">
<?php
echo $lists['sl'];
?>
</td>
</tr>
<?php
// Kategorien
list($parentArray, $parentKeys) = CLMCategoryTree::getTree();
if (count($parentArray) > 0) {
// nur, wenn Kategorien existieren
$parentlist[] = JHtml::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
foreach ($parentArray as $key => $value) {
$parentlist[] = JHtml::_('select.option', $key, $value, 'id', 'name');
}
$catidAlltime = JHtml::_('select.genericlist', $parentlist, 'catidAlltime', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($row->catidAlltime));
$catidEdition = JHtml::_('select.genericlist', $parentlist, 'catidEdition', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($row->catidEdition));
}
if (isset($catidAlltime)) {
?>
<tr>
<td colspan="1" class="paramlist_key">
<label for="category">
<?php
echo JText::_('CATEGORY_ALLTIME');
?>
:
</label>
</td>
<td colspan="2" class="paramlist_value">
<?php
echo $catidAlltime;
?>
</td>
<td colspan="1" class="paramlist_key">
<label for="category">
<?php
echo JText::_('CATEGORY_EDITION');
?>
:
</label>
</td>
<td colspan="2" class="paramlist_value">
<?php
示例8: mturnier
//.........这里部分代码省略.........
echo JText::_('MTURN_DATA');
?>
</legend>
<table class="paramlist admintable">
<tr>
<td width="20%" nowrap="nowrap">
<label for="name"><?php
echo JText::_('MTURN_NAME');
?>
</label>
</td><td colspan="2">
<input class="inputbox" type="text" name="name" id="name" size="30" maxlength="30" value="<?php
echo $row->name;
?>
" />
</td>
<td nowrap="nowrap">
<label for="sl"><?php
echo JText::_('MTURN_CHIEF');
?>
</label>
</td><td colspan="2">
<?php
echo $lists['sl'];
?>
</td>
</tr>
<?php
// Kategorien
list($parentArray, $parentKeys) = CLMCategoryTree::getTree();
if (count($parentArray) > 0) {
// nur, wenn Kategorien existieren
$parentlist[] = JHtml::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
foreach ($parentArray as $key => $value) {
$parentlist[] = JHtml::_('select.option', $key, $value, 'id', 'name');
}
$catidAlltime = JHtml::_('select.genericlist', $parentlist, 'catidAlltime', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($row->catidAlltime));
$catidEdition = JHtml::_('select.genericlist', $parentlist, 'catidEdition', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($row->catidEdition));
}
if (isset($catidAlltime)) {
?>
<tr>
<td colspan="1" class="paramlist_key">
<label for="category">
<?php
echo JText::_('CATEGORY_ALLTIME');
?>
:
</label>
</td>
<td colspan="2" class="paramlist_value">
<?php
echo $catidAlltime;
?>
</td>
<td colspan="1" class="paramlist_key">
<label for="category">
<?php
echo JText::_('CATEGORY_EDITION');
?>
:
</label>
</td>
<td colspan="2" class="paramlist_value">
<?php