本文整理汇总了PHP中JCckDev::preload方法的典型用法代码示例。如果您正苦于以下问题:PHP JCckDev::preload方法的具体用法?PHP JCckDev::preload怎么用?PHP JCckDev::preload使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JCckDev
的用法示例。
在下文中一共展示了JCckDev::preload方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
* @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;
$css = array();
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$userId = $user->id;
$listOrder = $this->state->get('list.ordering');
$listDir = $this->state->get('list.direction');
$title2 = JText::_('COM_CCK_PREVIEW_THIS_TEMPLATE');
$top = !JCck::on() ? 'border-top' : 'content';
$config = JCckDev::init(array('42', 'button_submit', 'select_simple', 'text'), true, array('vName' => $this->vName));
$cck = JCckDev::preload(array('core_filter_input', 'core_filter_go', 'core_filter_search', 'core_filter_clear', 'core_location_filter', 'core_type_filter_template', 'core_folder_filter', 'core_state_filter', 'core_folder'));
jimport('joomla.filesystem.folder');
JText::script('COM_CCK_CONFIRM_DELETE');
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName());
?>
" method="post" id="adminForm" name="adminForm">
<?php
if (!empty($this->sidebar)) {
?>
<div id="j-sidebar-container" class="span2">
<?php
echo $this->sidebar;
示例2: defined
* @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;
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$userId = $user->id;
$listOrder = $this->state->get('list.ordering');
$listDir = $this->state->get('list.direction');
$title2 = JText::_('COM_CCK_DOWNLOAD_THIS_VARIATION');
$top = !JCck::on() ? 'border-top' : 'content';
$config = JCckDev::init(array('42', 'button_submit', 'select_simple', 'text'), true, array('vName' => $this->vName));
$cck = JCckDev::preload(array('core_filter_input', 'core_filter_go', 'core_filter_search', 'core_filter_clear', 'core_location_filter'));
JText::script('COM_CCK_CONFIRM_DELETE');
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName());
?>
" method="post" id="adminForm" name="adminForm">
<?php
if (!empty($this->sidebar)) {
?>
<div id="j-sidebar-container" class="span2">
<?php
echo $this->sidebar;
?>
示例3: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @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;
$config = JCckDev::init(array('42', 'radio', 'select_dynamic', 'select_simple', 'text', 'wysiwyg_editor'), true, array('item' => $this->item, 'vName' => $this->vName));
$cck = JCckDev::preload(array('core_title_template', 'core_folder', 'core_description', 'core_state', 'core_name_template', 'core_type_template', 'core_featured'));
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">
<div class="<?php
echo $this->css['wrapper'];
?>
">
<div class="seblod first">
<ul class="spe spe_title">
<?php
echo JCckDev::renderForm($cck['core_title_template'], $this->item->title, $config);
?>
</ul>
示例4: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: _debug.php sebastienheraud $
* @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;
// Init
jimport('joomla.error.profiler');
$db = JFactory::getDbo();
$config = JCckDev::init();
$cck = JCckDev::preload(array(''));
$doc = JFactory::getDocument();
$profiler = new JProfiler();
// -- DEBUG:START -- //
$js = '';
$js2 = '';
$js_script = '';
$js_script = JURI::root(true) . $js_script;
echo '<br /><div style="color: #999999; font-size: 10px; font-weight: bold;">-------- Debug --------<br />';
// -------- -------- -------- -------- -------- -------- -------- -------- //
$n = 10000;
$profiler = new JProfiler();
for ($i = 0; $i < $n; $i++) {
//
}
$profiler_res = $profiler->mark('afterDebug');
示例5: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit2.php sebastienheraud $
* @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;
$config = JCckDev::init(array(), true, array('item' => $this->item, 'tmpl' => 'ajax'));
if ($this->item->master == 'content') {
$cck = JCckDev::preload(array('core_title', 'core_typo', 'core_sef', 'core_linkage', 'core_template'));
} else {
$cck = JCckDev::preload(array('core_message_style', 'core_redirection', 'core_dev_select', 'core_message', 'core_redirection_url', 'core_menuitem', 'core_dev_text', 'core_show_hide', 'core_tag_title', 'core_class_title', 'core_show_hide2', 'core_action_no_access', 'core_redirection_url_no_access', 'core_stages', 'core_validation_position', 'core_validation_scroll', 'core_validation_color', 'core_validation_background_color', 'core_linkage', 'core_template'));
}
Helper_Include::addDependencies($this->getName(), $this->getLayout(), 'ajax');
?>
<div class="layers" id="layer_fields" <?php
echo $this->item->layer == 'fields' ? '' : 'style="display: none;"';
?>
><?php
include_once dirname(__FILE__) . '/edit_fields_' . $this->uix . '.php';
?>
</div>
<div class="layers" id="layer_configuration" <?php
echo $this->item->layer == 'configuration' ? '' : 'style="display: none;"';
?>
><?php
示例6: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit2.php sebastienheraud $
* @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;
$config = JCckDev::init(array(), true, array('item' => $this->item));
$cck = JCckDev::preload(array('core_pagination', 'core_cache', 'core_cache2', 'core_dev_text', 'core_limit', 'core_sef', 'core_prepare_content', 'core_debug', 'core_auto_redirection', 'core_ordering', 'core_tag_title', 'core_class_title', 'core_show_hide2', 'core_action_no_access', 'core_redirection_url_no_access', 'core_label_total', 'core_class_total', 'core_show_pagination', 'core_class_pagination', 'core_message_style', 'core_action', 'core_message', 'core_template'));
Helper_Include::addDependencies($this->getName(), $this->getLayout(), 'ajax');
if ($this->item->client == 'list') {
$block_item = strpos(@$this->style->params, '"cck_client_item":"1"') !== false || strpos(@$this->style->params, '"cck_client_item":"2"') !== false ? 0 : 1;
} else {
if ($this->item->template_list) {
$params = JCckDatabase::loadResult('SELECT params FROM #__template_styles WHERE id = ' . (int) $this->item->template_list);
$block_item = strpos($params, '"cck_client_item":"1"') !== false || strpos($params, '"cck_client_item":"2"') !== false ? 0 : 1;
} else {
$block_item = 1;
}
}
?>
<div class="layers" id="layer_fields" <?php
echo $this->item->layer == 'fields' ? '' : 'style="display: none;"';
?>
><?php
include_once dirname(__FILE__) . '/edit_fields_' . $this->uix . '.php';
示例7: str_replace
$("#storage_field").val(custom);
}
}
}
' . $js . '
});
';
$app = JFactory::getApplication();
$prefix = $app->getCfg('dbprefix');
if (strpos($config['item']->storage_table, '#__cck_store_form_') !== false) {
$linked = str_replace('#__cck_store_form_', '', $config['item']->storage_table);
} else {
$linked = '';
}
$table = str_replace('#__', $prefix, $config['item']->storage_table);
$cck = JCckDev::preload(array('core_storage_mode', 'core_storage_location', 'core_storage_table', 'core_storage_field', 'core_storage_alter', 'core_storage_alter_type', 'core_storage_alter_table', 'core_required', 'core_script', 'core_attributes', 'core_dev_text'));
?>
<li class="w100">
<?php
echo '<label>' . JText::_('COM_CCK_STORAGE_LABEL') . '</label>';
echo JCckDev::getForm($cck['core_storage_mode'], $value, $config);
echo JCckDev::getForm($cck['core_storage_location'], $config['item']->storage_location, $config);
// echo JCckDev::getForm( $cck['core_storage_table'], $table, $config );
if ($config['item']->storage_field2) {
$config['item']->storage_field .= '[' . $config['item']->storage_field2 . ']';
}
echo JCckDev::getForm($cck['core_storage_field'], $config['item']->storage_field, $config);
echo '<span id="storage_field_pick" name="storage_field_pick">«</span>';
echo JCckDev::getForm($cck['core_storage_alter'], '', $config);
echo JCckDev::getForm($cck['core_storage_alter_type'], $alter_type_value, $config);
echo JCckDev::getForm($cck['core_storage_alter_table'], '', $config, array('attributes' => 'style="width:45px;"'));
示例8: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @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;
$config = JCckDev::init(array('42', 'checkbox', 'field_x', 'jform_menuitem', 'password', 'radio', 'select_dynamic', 'select_numeric', 'select_simple', 'text', 'textarea', 'wysiwyg_editor'), true, array('item' => $this->item, 'vName' => $this->vName));
$cck = JCckDev::preload(array('core_title_site', 'core_name_site', 'core_description', 'core_state', 'core_site_name', 'core_site_pagetitles', 'core_site_metadesc', 'core_site_metakeys', 'core_site_homepage', 'core_site_offline', 'core_site_language', 'core_site_template_style', 'core_guest', 'core_guest_only_group', 'core_guest_only_viewlevel', 'core_groups', 'core_viewlevels'));
$hasOpts = false;
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">
<div class="<?php
echo $this->css['wrapper'];
?>
">
<div class="seblod first">
<ul class="spe spe_title">
<?php
echo JCckDev::renderForm($cck['core_title_site'], $this->item->title, $config);
?>
示例9: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @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;
$ajax_load = 'components/com_cck/assets/styles/seblod/images/ajax.gif';
$config = JCckDev::init(array('42', 'jform_accesslevel', 'radio', 'select_simple', 'text', 'wysiwyg_editor'), true, array('item' => $this->item, 'vName' => $this->vName));
$cck = JCckDev::preload(array('core_title_search', 'core_folder', 'core_description', 'core_state', 'core_client_search', 'core_layer', 'core_storage_location2', 'core_location2', 'core_alias', 'core_access'));
$lang = JFactory::getLanguage();
$key = 'COM_CCK_TRANSLITERATE_CHARACTERS';
$style = 'seblod';
if ($lang->hasKey($key) == 1) {
$transliterate = JText::_($key);
$transliterate = '{"' . str_replace(array(':', '||'), array('":"', '","'), $transliterate) . '"}';
} else {
$transliterate = '{}';
}
if (JCck::on()) {
JHtml::_('bootstrap.tooltip');
$sidebar_inner = 288;
$sidebar_top = 88;
$tooltipJS = '';
} else {
$sidebar_inner = 0;
$sidebar_top = 0;
示例10: defined
**/
defined('_JEXEC') or die;
$css = array();
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$userId = $user->id;
$label = JText::_('COM_CCK_FIELDS');
$listOrder = $this->state->get('list.ordering');
$listDir = $this->state->get('list.direction');
$template_name = Helper_Admin::getDefaultTemplate();
$title2 = JText::_('COM_CCK_LIST_RESULTS_OF_THIS_SEARCH');
$top = !JCck::on() ? 'border-top' : 'content';
$templates = JCckDatabase::loadObjectList('SELECT name, title FROM #__cck_core_templates WHERE mode = 2 AND published = 1 ORDER BY name', 'name');
$scroll = count($templates) >= 3 ? 1 : 0;
$config = JCckDev::init(array('42', 'button_submit', 'select_simple', 'text'), true, array('vName' => $this->vName));
$cck = JCckDev::preload(array('core_filter_input', 'core_filter_go', 'core_filter_search', 'core_filter_clear', 'core_location_filter', 'core_folder_filter', 'core_state_filter', 'core_folder', 'core_dev_text', 'core_storage_location2', 'core_client_filter'));
JText::script('COM_CCK_CONFIRM_DELETE');
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName());
?>
" method="post" id="adminForm" name="adminForm">
<?php
if (!empty($this->sidebar)) {
?>
<div id="j-sidebar-container" class="span2">
<?php
echo $this->sidebar;
?>
示例11: defined
/**
* @version SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @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;
$app = JFactory::getApplication();
$lang = JFactory::getLanguage();
$my = JFactory::getUser();
$tmpl = $app->input->getString('tmpl', '');
$wrap = $tmpl ? $this->css['wrapper_tmpl'] : $this->css['wrapper'];
$ajax_load = 'components/com_cck/assets/styles/seblod/images/ajax.gif';
$cck = JCckDev::preload(array('core_title_field', 'core_folder', 'core_name_field', 'core_state', 'core_type', 'core_description'));
$config = JCckDev::init(array(), true, array('item' => $this->item, 'vName' => $this->vName, 'tmpl' => ''));
$key = 'COM_CCK_TRANSLITERATE_CHARACTERS';
if ($lang->hasKey($key) == 1) {
$transliterate = JText::_($key);
$transliterate = '{"' . str_replace(array(':', '||'), array('":"', '","'), $transliterate) . '"}';
} else {
$transliterate = '{}';
}
Helper_Include::addDependencies($this->getName(), $this->getLayout(), $tmpl);
if (JCck::on()) {
JHtml::_('bootstrap.tooltip');
}
?>
<form action="<?php
示例12: defined
* @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;
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$userId = $user->id;
$listOrder = $this->state->get('list.ordering');
$listDir = $this->state->get('list.direction');
$title2 = JText::_('COM_CCK_REVERT_TO_THIS_VERSION');
$top = !JCck::on() ? 'border-top' : 'content';
$config = JCckDev::init(array('42', 'button_submit', 'select_simple', 'text'), true, array('vName' => $this->vName));
$cck = JCckDev::preload(array('core_filter_input', 'core_filter_go', 'core_filter_search', 'core_filter_clear', 'core_version_location_filter', 'core_state_filter', 'core_version_e_type_filter'));
JText::script('COM_CCK_CONFIRM_DELETE');
JText::script('COM_CCK_CONFIRM_RESTORE_VERSION');
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName());
?>
" method="post" id="adminForm" name="adminForm">
<?php
if (!empty($this->sidebar)) {
?>
<div id="j-sidebar-container" class="span2">
<?php
echo $this->sidebar;
示例13: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @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;
$ajax_load = 'components/com_cck/assets/styles/seblod/images/ajax.gif';
$config = JCckDev::init(array('42', 'jform_accesslevel', 'jform_rules', 'radio', 'select_dynamic', 'select_simple', 'text', 'wysiwyg_editor'), true, array('item' => $this->item, 'vName' => $this->vName));
$cck = JCckDev::preload(array('core_title_type', 'core_folder', 'core_description', 'core_state', 'core_client_type', 'core_layer', 'core_storage_location2', 'core_location', 'core_rules_type', 'core_parent_type', 'core_indexing', 'core_alias', 'core_access'));
$doc = JFactory::getDocument();
$lang = JFactory::getLanguage();
$key = 'COM_CCK_TRANSLITERATE_CHARACTERS';
$style = 'seblod';
if ($lang->hasKey($key) == 1) {
$transliterate = JText::_($key);
$transliterate = '{"' . str_replace(array(':', '||'), array('":"', '","'), $transliterate) . '"}';
} else {
$transliterate = '{}';
}
if (JCck::on()) {
JHtml::_('bootstrap.tooltip');
$sidebar_inner = 288;
$sidebar_top = 88;
$tooltipJS = '';
} else {
$sidebar_inner = 0;
示例14: defined
<?php
/**
* @version SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @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;
$extension_short_name = Helper_Session::getExtensionShortName($this->item->extension);
$config = JCckDev::init(array('42', 'radio', 'select_dynamic', 'select_simple', 'text', 'wysiwyg_editor'), true, array('item' => $this->item, 'vName' => $this->vName));
$cck = JCckDev::preload(array('core_title_field', 'core_folder', 'core_session_extension', 'more_' . $extension_short_name . '_storage_location'));
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">
<div class="<?php
echo $this->css['wrapper'];
?>
">
<div class="seblod first">
<ul class="spe spe_title">
<?php
echo JCckDev::renderForm($cck['core_title_field'], $this->item->title, $config);
?>
示例15: defined
* @license GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$uix = JCck::getUIX();
$css = array();
$doc = JFactory::getDocument();
$images = array('0' => '16/icon-16-download.png', '1' => '24/icon-24-download.png');
$user = JFactory::getUser();
$userId = $user->id;
$listOrder = $this->state->get('list.ordering');
$listDir = $this->state->get('list.direction');
$link2 = 'index.php?option=' . $this->option . '&task=folder.export&id=';
$title2 = JText::_('COM_CCK_DOWNLOAD_THIS_APP');
$top = !JCck::on() ? 'border-top' : 'content';
$config = JCckDev::init(array('42', 'button_submit', 'checkbox', 'radio', 'select_dynamic', 'select_numeric', 'select_simple', 'text'), true, array('vName' => ''));
$cck = JCckDev::preload(array('core_filter_input', 'core_filter_go', 'core_filter_search', 'core_filter_clear', 'core_location_filter', 'core_folder_filter', 'core_state_filter', 'core_depth_filter', 'core_app_stuff'));
JText::script('COM_CCK_CONFIRM_DELETE');
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>
<form action="<?php
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName());
?>
" method="post" id="adminForm" name="adminForm">
<?php
if (!empty($this->sidebar)) {
?>
<div id="j-sidebar-container" class="span2">
<?php
echo $this->sidebar;
?>