本文整理汇总了PHP中SibdietHelper::chosen方法的典型用法代码示例。如果您正苦于以下问题:PHP SibdietHelper::chosen方法的具体用法?PHP SibdietHelper::chosen怎么用?PHP SibdietHelper::chosen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SibdietHelper
的用法示例。
在下文中一共展示了SibdietHelper::chosen方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* @package Sibdiet.Administrator
* @subpackage com_sibdiet
*
* @copyright Copyright (C) Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('behavior.formvalidation');
SibdietHelper::chosen();
// Import CSS
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_sibdiet/assets/css/sibdiet.css');
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'audio.cancel' || document.formvalidator.isValid(document.id('audio-form'))) {
Joomla.submitform(task, document.getElementById('audio-form'));
}
}
</script>
<form action="<?php
echo JRoute::_('index.php?option=com_sibdiet&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" name="adminForm" id="audio-form" class="form-validate">
<div class="form-horizontal">
示例2: defined
<?php
/**
* @package Sibdiet.Administrator
* @subpackage com_sibdiet
*
* @copyright Copyright (C) Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('behavior.formvalidation');
SibdietHelper::chosen('select');
// Import CSS
$document = JFactory::getDocument();
$document->addStyleSheet('components/com_sibdiet/assets/css/sibdiet.css');
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'nutrient.cancel' || document.formvalidator.isValid(document.id('nutrient-form')))
{
Joomla.submitform(task, document.getElementById('nutrient-form'));
}
}
</script>
<form action="<?php
echo JRoute::_('index.php?option=com_sibdiet&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" name="adminForm" id="nutrient-form" class="form-validate">