当前位置: 首页>>代码示例>>PHP>>正文


PHP nnHtml::selectlistsimple方法代码示例

本文整理汇总了PHP中nnHtml::selectlistsimple方法的典型用法代码示例。如果您正苦于以下问题:PHP nnHtml::selectlistsimple方法的具体用法?PHP nnHtml::selectlistsimple怎么用?PHP nnHtml::selectlistsimple使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在nnHtml的用法示例。


在下文中一共展示了nnHtml::selectlistsimple方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getInput

 protected function getInput()
 {
     $this->params = $this->element->attributes();
     if (!is_array($this->value)) {
         $this->value = explode(',', $this->value);
     }
     $group = $this->get('group', 'countries');
     $options = array();
     foreach ($this->{$group} as $key => $val) {
         if (!$val) {
             $options[] = JHtml::_('select.option', '-', ' ', 'value', 'text', true);
         } else {
             if ($key['0'] == '-') {
                 $options[] = JHtml::_('select.option', '-', $val, 'value', 'text', true);
             } else {
                 $val = nnText::prepareSelectItem($val);
                 $options[] = JHtml::_('select.option', $key, $val);
             }
         }
     }
     $size = (int) $this->get('size');
     $multiple = $this->get('multiple');
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, $multiple);
 }
开发者ID:naka211,项目名称:studiekorrektur,代码行数:25,代码来源:geo.php

示例2: getInput

 protected function getInput()
 {
     if (!nnFrameworkFunctions::extensionInstalled('akeebasubs')) {
         return '<fieldset class="alert alert-danger">' . JText::_('ERROR') . ': ' . JText::sprintf('NN_FILES_NOT_FOUND', JText::_('NN_AKEEBASUBS')) . '</fieldset>';
     }
     $this->params = $this->element->attributes();
     $this->db = JFactory::getDBO();
     $group = $this->get('group', 'categories');
     $tables = $this->db->getTableList();
     if (!in_array($this->db->getPrefix() . 'akeebasubs_' . $group, $tables)) {
         return '<fieldset class="alert alert-danger">' . JText::_('ERROR') . ': ' . JText::sprintf('NN_TABLE_NOT_FOUND', JText::_('NN_AKEEBASUBS')) . '</fieldset>';
     }
     if (!is_array($this->value)) {
         $this->value = explode(',', $this->value);
     }
     $options = $this->{'get' . $group}();
     $size = (int) $this->get('size');
     $multiple = $this->get('multiple');
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     switch ($group) {
         case 'categories':
             return nnHtml::selectlist($options, $this->name, $this->value, $this->id, $size, $multiple);
         default:
             return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, $multiple);
     }
 }
开发者ID:educakanchay,项目名称:kanchay,代码行数:26,代码来源:akeebasubs.php

示例3: getInput

 protected function getInput()
 {
     if (!NNFrameworkFunctions::extensionInstalled('mijoshop')) {
         return '<fieldset class="alert alert-danger">' . JText::_('ERROR') . ': ' . JText::sprintf('NN_FILES_NOT_FOUND', JText::_('NN_MIJOSHOP')) . '</fieldset>';
     }
     $this->params = $this->element->attributes();
     $this->db = JFactory::getDBO();
     $group = $this->get('group', 'categories');
     $tables = $this->db->getTableList();
     if (!in_array($this->db->getPrefix() . 'mijoshop_' . ($group == 'products' ? 'product' : 'category'), $tables)) {
         return '<fieldset class="alert alert-danger">' . JText::_('ERROR') . ': ' . JText::sprintf('NN_TABLE_NOT_FOUND', JText::_('NN_MIJOSHOP')) . '</fieldset>';
     }
     $parameters = NNParameters::getInstance();
     $params = $parameters->getPluginParams('nnframework');
     $this->max_list_count = $params->max_list_count;
     require_once JPATH_ROOT . '/components/com_mijoshop/mijoshop/mijoshop.php';
     $this->store_id = (int) MijoShop::get('opencart')->get('config')->get('config_store_id');
     $this->language_id = (int) MijoShop::get('opencart')->get('config')->get('config_language_id');
     if (!is_array($this->value)) {
         $this->value = explode(',', $this->value);
     }
     $options = $this->{'get' . $group}();
     $size = (int) $this->get('size');
     $multiple = $this->get('multiple');
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     switch ($group) {
         case 'categories':
             return nnHtml::selectlist($options, $this->name, $this->value, $this->id, $size, $multiple);
         default:
             return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, $multiple);
     }
 }
开发者ID:WineWorld,项目名称:joomlatrialcmbg,代码行数:32,代码来源:mijoshop.php

示例4: getInput

 protected function getInput()
 {
     $this->params = $this->element->attributes();
     $options = $this->getComponents();
     if (empty($options)) {
         return '';
     }
     $size = (int) $this->get('size');
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, 1);
 }
开发者ID:Raul-mz,项目名称:web-erpcya,代码行数:11,代码来源:components.php

示例5: getInput

 protected function getInput()
 {
     $this->params = $this->element->attributes();
     if (!is_array($this->value)) {
         $this->value = explode(',', $this->value);
     }
     $options = $this->getUsers();
     $size = (int) $this->get('size');
     $multiple = $this->get('multiple');
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, $multiple);
 }
开发者ID:Raul-mz,项目名称:web-erpcya,代码行数:12,代码来源:users.php

示例6: getSelectList

 public function getSelectList($group = '')
 {
     if (!is_array($this->value)) {
         $this->value = explode(',', $this->value);
     }
     $size = (int) $this->get('size');
     $multiple = $this->get('multiple');
     $group = $group ?: $this->getGroup();
     $options = $this->getOptions();
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     switch ($group) {
         case 'categories':
             return nnHtml::selectlist($options, $this->name, $this->value, $this->id, $size, $multiple);
         default:
             return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, $multiple);
     }
 }
开发者ID:01J,项目名称:bealtine,代码行数:17,代码来源:groupfield.php

示例7: getInput

 protected function getInput()
 {
     $this->params = $this->element->attributes();
     $this->db = JFactory::getDBO();
     $frontend = $this->get('frontend', 1);
     $admin = $this->get('admin', 1);
     $size = (int) $this->get('size');
     if (!$frontend && !$admin) {
         return '';
     }
     $components = $this->getComponents($frontend, $admin);
     $options = array();
     foreach ($components as $component) {
         $options[] = JHtml::_('select.option', $component->element, $component->name);
     }
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, 1);
 }
开发者ID:A-Bush,项目名称:pprod,代码行数:18,代码来源:components.php

示例8: getInput

 protected function getInput()
 {
     $this->params = $this->element->attributes();
     $size = (int) $this->get('size');
     $multiple = $this->get('multiple');
     $client = $this->get('client', 'SITE');
     jimport('joomla.language.helper');
     $langs = JLanguageHelper::createLanguageList($this->value, constant('JPATH_' . strtoupper($client)), true);
     $options = array();
     foreach ($langs as $lang) {
         if ($lang['value']) {
             $option = new stdClass();
             $option->value = $lang['value'];
             $option->text = $lang['text'] . ' [' . $lang['value'] . ']';
             $options[] = $option;
         }
     }
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, $multiple);
 }
开发者ID:shamusdougan,项目名称:Sapient_Web,代码行数:20,代码来源:languages.php

示例9: getInput

 protected function getInput()
 {
     $this->params = $this->element->attributes();
     $this->db = JFactory::getDbo();
     $parameters = nnParameters::getInstance();
     $params = $parameters->getPluginParams('nnframework');
     $this->max_list_count = $params->max_list_count;
     if (!is_array($this->value)) {
         $this->value = explode(',', $this->value);
     }
     $group = $this->get('group', 'categories');
     $options = $this->{'get' . $group}();
     $size = (int) $this->get('size');
     $multiple = $this->get('multiple');
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     switch ($group) {
         case 'categories':
             return nnHtml::selectlist($options, $this->name, $this->value, $this->id, $size, $multiple);
         default:
             return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, $multiple);
     }
 }
开发者ID:educakanchay,项目名称:kanchay,代码行数:22,代码来源:content.php

示例10: getInput


//.........这里部分代码省略.........
         case 'os':
             $agents[] = array('Windows (' . JText::_('JALL') . ')', 'Windows');
             $agents[] = array('Windows 8', 'Windows nt 6.2');
             $agents[] = array('Windows 7', 'Windows nt 6.1');
             $agents[] = array('Windows Vista', 'Windows nt 6.0');
             $agents[] = array('Windows Server 2003', 'Windows nt 5.2');
             $agents[] = array('Windows XP', 'Windows nt 5.1');
             $agents[] = array('Windows 2000 sp1', 'Windows nt 5.01');
             $agents[] = array('Windows 2000', 'Windows nt 5.0');
             $agents[] = array('Windows NT 4.0', 'Windows nt 4.0');
             $agents[] = array('Windows Me', 'Win 9x 4.9');
             $agents[] = array('Windows 98', 'Windows 98');
             $agents[] = array('Windows 95', 'Windows 95');
             $agents[] = array('Windows CE', 'Windows ce');
             $agents[] = array('Mac OS (' . JText::_('JALL') . ')', '#(Mac OS|Mac_PowerPC|Macintosh)#');
             $agents[] = array('Mac OSX (' . JText::_('JALL') . ')', 'Mac OS X');
             $agents[] = array('Mac OSX Mountain Lion', 'Mac OS X 10.8');
             $agents[] = array('Mac OSX Lion', 'Mac OS X 10.7');
             $agents[] = array('Mac OSX Snow Leopard', 'Mac OS X 10.6');
             $agents[] = array('Mac OSX Leopard', 'Mac OS X 10.5');
             $agents[] = array('Mac OSX Tiger', 'Mac OS X 10.4');
             $agents[] = array('Mac OSX Panther', 'Mac OS X 10.3');
             $agents[] = array('Mac OSX Jaguar', 'Mac OS X 10.2');
             $agents[] = array('Mac OSX Puma', 'Mac OS X 10.1');
             $agents[] = array('Mac OSX Cheetah', 'Mac OS X 10.0');
             $agents[] = array('Mac OS (classic)', '#(Mac_PowerPC|Macintosh)#');
             $agents[] = array('Linux', '#(Linux|X11)#');
             $agents[] = array('Open BSD', 'OpenBSD');
             $agents[] = array('Sun OS', 'SunOS');
             $agents[] = array('QNX', 'QNX');
             $agents[] = array('BeOS', 'BeOS');
             $agents[] = array('OS/2', 'OS/2');
             break;
             /* Browsers */
         /* Browsers */
         case 'browsers':
             $agents[] = array('Chrome (' . JText::_('JALL') . ')', 'Chrome');
             $agents[] = array('Chrome 41-50', '#Chrome/(4[1-9]|50)\\.#');
             $agents[] = array('Chrome 31-40', '#Chrome/(3[1-9]|40)\\.#');
             $agents[] = array('Chrome 21-30', '#Chrome/(2[1-9]|30)\\.#');
             $agents[] = array('Chrome 11-20', '#Chrome/(1[1-9]|20)\\.#');
             $agents[] = array('Chrome 1-10', '#Chrome/([1-9]|10)\\.#');
             $agents[] = array('Firefox (' . JText::_('JALL') . ')', 'Firefox');
             $agents[] = array('Firefox 31-40', '#Firefox/(3[1-9]|40)\\.#');
             $agents[] = array('Firefox 21-30', '#Firefox/(2[1-9]|30)\\.#');
             $agents[] = array('Firefox 11-20', '#Firefox/(1[1-9]|20)\\.#');
             $agents[] = array('Firefox 1-10', '#Firefox/([1-9]|10)\\.#');
             $agents[] = array('Internet Explorer (' . JText::_('JALL') . ')', 'MSIE');
             $agents[] = array('Internet Explorer 11', 'MSIE 11');
             // missing MSIE is added to agent string in assingnments/agents.php
             $agents[] = array('Internet Explorer 10.6', 'MSIE 10.6');
             $agents[] = array('Internet Explorer 10.0', 'MSIE 10.0');
             $agents[] = array('Internet Explorer 10', 'MSIE 10.');
             $agents[] = array('Internet Explorer 9', 'MSIE 9.');
             $agents[] = array('Internet Explorer 8', 'MSIE 8.');
             $agents[] = array('Internet Explorer 7', 'MSIE 7.');
             $agents[] = array('Internet Explorer 1-6', '#MSIE [1-6]\\.#');
             $agents[] = array('Opera (' . JText::_('JALL') . ')', 'Opera');
             $agents[] = array('Opera 26', 'Opera/26.');
             $agents[] = array('Opera 25', 'Opera/25.');
             $agents[] = array('Opera 24', 'Opera/24.');
             $agents[] = array('Opera 23', 'Opera/23.');
             $agents[] = array('Opera 22', 'Opera/22.');
             $agents[] = array('Opera 21', 'Opera/21.');
             $agents[] = array('Opera 11-20', '#Opera/(1[1-9]|20)\\.#');
             $agents[] = array('Opera 1-10', '#Opera/([1-9]|10)\\.#');
             $agents[] = array('Safari (' . JText::_('JALL') . ')', 'Safari');
             //$agents[] = array('Safari 8', '#Version/8\..*Safari/#');
             //$agents[] = array('Safari 7', '#Version/7\..*Safari/#');
             $agents[] = array('Safari 6', '#Version/6\\..*Safari/#');
             $agents[] = array('Safari 5', '#Version/5\\..*Safari/#');
             $agents[] = array('Safari 4', '#Version/4\\..*Safari/#');
             $agents[] = array('Safari 1-3', '#Version/[1-3]\\..*Safari/#');
             break;
             /* Mobile browsers */
         /* Mobile browsers */
         case 'mobile':
             $agents[] = array(JText::_('JALL'), 'mobile');
             $agents[] = array('Android', 'Android');
             $agents[] = array('Blackberry', 'Blackberry');
             $agents[] = array('IE Mobile', 'IEMobile');
             $agents[] = array('iPad', 'iPad');
             $agents[] = array('iPhone', 'iPhone');
             $agents[] = array('iPod Touch', 'iPod');
             $agents[] = array('NetFront', 'NetFront');
             $agents[] = array('Nokia', 'NokiaBrowser');
             $agents[] = array('Opera Mini', 'Opera Mini');
             $agents[] = array('Opera Mobile', 'Opera Mobi');
             $agents[] = array('UC Browser', 'UC Browser');
             break;
     }
     $options = array();
     foreach ($agents as $agent) {
         $option = JHtml::_('select.option', $agent['1'], $agent['0']);
         $options[] = $option;
     }
     $size = (int) $this->get('size');
     require_once JPATH_PLUGINS . '/system/nnframework/helpers/html.php';
     return nnHtml::selectlistsimple($options, $this->name, $this->value, $this->id, $size, 1);
 }
开发者ID:01J,项目名称:bealtine,代码行数:101,代码来源:agents.php


注:本文中的nnHtml::selectlistsimple方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。