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


PHP JCckDev::init方法代码示例

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


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

示例1: 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;
$uix = JCck::getUIX();
$config = JCckDev::init(array('42', 'checkbox', 'colorpicker', 'jform_rules', 'radio', 'text', 'wysiwyg_editor'), true, array('item' => $this->item));
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('core_title_folder', $this->item->title, $config);
?>
        </ul>
开发者ID:kenyonjohnston,项目名称:hott_theater,代码行数:31,代码来源:edit.php

示例2: 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'));
Helper_Include::addDependencies($this->getName(), $this->getLayout(), 'ajax');
$type = $this->item->type ? $this->item->type : 'text';
$layer = JPATH_PLUGINS . '/cck_field/' . $type . '/tmpl/edit.php';
$lang = JFactory::getLanguage();
$lang->load('plg_cck_field_' . $type, JPATH_ADMINISTRATOR, null, false, true);
if (is_file($layer)) {
    include_once $layer;
}
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:20,代码来源:edit2.php

示例3: defined

* @version 			SEBLOD 3.x Core ~ $Id: default.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;
$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;
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:default.php

示例4: 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>
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:edit.php

示例5: 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');
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:31,代码来源:_debug.php

示例6: 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);
?>
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:edit.php

示例7: 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';
开发者ID:pctechnikch,项目名称:SEBLOD,代码行数:31,代码来源:edit2.php

示例8: defined

<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: computation.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;
Helper_Include::addDependencies('box', 'edit');
$config = JCckDev::init(array('select_simple', 'text', 'textarea'), true, array());
$doc = JFactory::getDocument();
$doc->addStyleSheet(JROOT_MEDIA_CCK . '/scripts/jquery-colorbox/css/colorbox.css');
$doc->addScript(JROOT_MEDIA_CCK . '/scripts/jquery-colorbox/js/jquery.colorbox-min.js');
$event = str_replace(array("\r", "\n", "\t"), '', JCckDev::getForm('core_computation_event', '', $config, array('attributes' => 'style="width:60px; padding:5px 2px;  text-transform:lowercase;"')));
$event = str_replace('events_', 'events__0', $event);
$event = '';
// next time..
$js = '
			(function ($){
				JCck.Dev = {
					reset: function() {
						var elem = "ffp_' . $this->item->name . '_computation";
						parent.jQuery("#"+elem).val("");
						var text = "' . JText::_('COM_CCK_ADD') . '";
						parent.jQuery("#"+elem).next("span").html(text);
						var elem = "ffp_' . $this->item->name . '_computation_options";
						parent.jQuery("#"+elem).val("");
						parent.jQuery("#"+elem).next("span").html("");
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:computation.php

示例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;
Helper_Include::addDependencies($this->getName(), $this->getLayout());
jimport('joomla.filesystem.file');
$config = JCckDev::init(array(), true);
$isImage = JFile::getExt($this->file) == 'png' || JFile::getExt($this->file) == 'jpg' ? 1 : 0;
$doc = JFactory::getDocument();
?>

<form action="<?php 
echo JRoute::_('index.php');
?>
" method="post" id="adminForm" name="adminForm">

<div id="titlebox" style="float:left; color:#eb8207; font-size:0.90em; font-weight:bold; text-transform:uppercase;"></div>
<div id="toolbarBox" style="float: right; text-align: right; padding-right: 8px; padding-bottom: 8px; font-weight: bold;">
    <div style="float: left; padding-right: 8px;" id="messageBox"></div>
    <?php 
if (JCck::on()) {
    ?>
		<?php 
    if ($isImage == 1) {
开发者ID:densem-2013,项目名称:exikom,代码行数:31,代码来源:edit.php

示例10: 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 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:edit.php

示例11: 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;
$config = JCckDev::init(array('42', 'text'), false, array('item' => $this->item, 'vName' => $this->vName));
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>

<script type="text/javascript">
Joomla.submitbutton = function(task)
{
	Joomla.submitform(task, document.getElementById('adminForm'));
}
</script>

<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'];
?>
">
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:31,代码来源:edit.php

示例12: defined

* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @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;
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:31,代码来源:default.php


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