本文整理汇总了PHP中JCckDev::initScript方法的典型用法代码示例。如果您正苦于以下问题:PHP JCckDev::initScript方法的具体用法?PHP JCckDev::initScript怎么用?PHP JCckDev::initScript使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JCckDev
的用法示例。
在下文中一共展示了JCckDev::initScript方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* @version SEBLOD 3.x Core
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::initScript('typo', $this->item);
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_TYPO_' . $this->item->name . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
echo JCckDev::renderForm('core_dev_select', '', $config, array('label' => 'Heading', 'defaultvalue' => 3, 'options' => 'H1=1||H2=2||H3=3||H4=4||H5=5||H6=6', 'selectlabel' => '', 'storage_field' => 'rank'));
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Class', 'size' => 24, 'storage_field' => 'class'));
echo JCckDev::renderForm('core_dev_bool', '', $config, array('label' => 'Enable Anchor', 'defaultvalue' => 0, 'storage_field' => 'anchor'));
echo JCckDev::renderSpacer(JText::_('COM_CCK_CONSTRUCTION') . '<span class="mini">(' . JText::_('COM_CCK_GENERIC') . ')</span>');
echo JCckDev::renderForm('core_dev_textarea', '', $config, array('label' => 'Custom Attributes', 'cols' => 92, 'rows' => 1, 'storage_field' => 'custom'), array(), 'w100');
echo JCckDev::renderForm('core_dev_bool', '', $config, array('label' => 'Behavior', 'selectlabel' => '', 'defaultvalue' => '0', 'options' => 'Auto=0||Typo Label=1', 'storage_field' => 'typo_label'));
echo JCckDev::renderBlank();
?>
</ul>
</div>
示例2: defined
<?php
/**
* @version SEBLOD 3.x Core
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::initScript('link', $this->item);
$hide = $this->item->alt ? 'hide' : '';
if ($this->item->alt) {
$hide = 'hide';
$required = '';
} else {
$hide = '';
$required = 'required';
}
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_LINK_' . $this->item->name . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
echo JCckDev::renderForm('core_list', '', $config, array(), array(), $hide);
echo JCckDev::renderForm('core_menuitem', '', $config, array('required' => $required));
echo JCckDev::renderForm('core_dev_select', '', $config, array('defaultvalue' => 0, 'label' => 'Field', 'options' => 'None=-1||Field=optgroup||Inherited=0||Custom=1', 'selectlabel' => '', 'storage_field' => 'search_field'), array(), $hide);
示例3: defined
<?php
/**
* @version SEBLOD 3.x Core
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::initScript('field', $this->item, array('hasOptions' => true, 'doTranslation' => 1, 'customAttr' => JCck::getConfig_Param('development_attr', 6)));
$options = JCckDev::fromSTRING($this->item->options);
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
echo JCckDev::renderForm('core_label', $this->item->label, $config);
echo JCckDev::renderForm('core_defaultvalue', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_sorting', $this->item->sorting, $config);
echo '<li><label>' . JText::_('COM_CCK_ORIENTATION') . '</label>' . JCckDev::getForm('core_orientation', $this->item->bool, $config) . JCckDev::getForm('core_orientation_vertical', $this->item->bool2, $config) . '</li>';
echo JCckDev::renderForm('core_options', $options, $config);
echo JCckDev::renderForm('core_separator', $this->item->divider, $config);
echo JCckDev::renderForm('core_bool', $this->item->bool7, $config, array('label' => 'Check All Toggle', 'defaultvalue' => '0', 'options' => 'Hide=0||Show=optgroup||Above=1||Below=2', 'storage_field' => 'bool7'));
echo JCckDev::renderHelp('field', 'seblod-2-x-checkbox-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
示例4: defined
<?php
/**
* @version SEBLOD 3.x Core
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::initScript('field', $this->item, array('hasOptions' => true, 'doTranslation' => 1, 'customAttr' => 6));
$options = JCckDev::fromSTRING($this->item->options);
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
echo JCckDev::renderForm('core_label', $this->item->label, $config);
echo JCckDev::renderForm('core_defaultvalue', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_sorting', $this->item->sorting, $config);
echo JCckDev::renderForm('core_rows', $this->item->rows, $config);
echo JCckDev::renderForm('core_options', $options, $config);
echo JCckDev::renderForm('core_separator', $this->item->divider, $config);
echo JCckDev::renderHelp('field', '3011-select-multiple.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
示例5: defined
<?php
/**
* @version SEBLOD 3.x More
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::initScript('restriction', $this->item);
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_RESTRICTION_' . $this->item->name . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
//
?>
</ul>
</div>
示例6: defined
<?php
/**
* @version SEBLOD 3.x Core
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::initScript('field', $this->item, array('doTranslation' => array('id' => 'defaultvalue', 'value' => 1)));
JCckDev::forceStorage();
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
echo JCckDev::renderForm('core_label', $this->item->label, $config);
echo JCckDev::renderForm('core_description', $this->item->defaultvalue, $config, array('label' => 'Default Value', 'storage_field' => 'defaultvalue'));
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
</ul>
</div>
示例7: defined
<?php
/**
* @version SEBLOD 3.x More
* @package SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url http://www.seblod.com
* @editor Octopoos - www.octopoos.com
* @copyright Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::initScript('field', $this->item, array('hasOptions' => true, 'customAttr' => array('type'), 'customAttrLabel' => JText::_('COM_CCK_VARIABLE_TYPE_FORMATS')));
JCckDev::forceStorage();
$options = JCckDev::fromSTRING($this->item->options);
?>
<div class="seblod">
<?php
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC'));
?>
<ul class="adminformlist adminformlist-2cols">
<?php
echo JCckDev::renderForm('core_options', $options, $config, array('label' => 'Variables'));
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
</ul>
</div>