• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Helper_Include类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: addDependencies

 public static function addDependencies($view, $layout, $tmpl = '')
 {
     $doc = JFactory::getDocument();
     $script = $tmpl == 'ajax' ? false : true;
     if ($script !== false) {
         if (JCck::on()) {
             JHtml::_('behavior.framework', false);
             JHtml::_('bootstrap.tooltip');
         }
         JCck::loadjQuery(true, true, true);
     }
     Helper_Include::addStyleSheets(true);
 }
开发者ID:kenyonjohnston,项目名称:hott_theater,代码行数:13,代码来源:include.php


示例2: display

 public function display($tpl = NULL)
 {
     $app = JFactory::getApplication();
     if ($this->getlayout() != 'select') {
         $preconfig = array();
         $preconfig['action'] = '';
         $preconfig['client'] = 'admin';
         $preconfig['formId'] = 'seblod_form';
         $preconfig['submit'] = 'JCck.Core.submit';
         $preconfig['task'] = $app->input->get('task', '');
         $preconfig['type'] = $app->input->get('type', '');
         $preconfig['url'] = JFactory::getURI()->toString();
         JCck::loadjQuery();
         Helper_Include::addStyleSheets(false);
         $this->prepareDisplay($preconfig);
     }
     parent::display($tpl);
 }
开发者ID:densem-2013,项目名称:exikom,代码行数:18,代码来源:view.html.php


示例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) 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


示例4: addDependencies

 public static function addDependencies($view, $layout, $tmpl = '')
 {
     $doc = JFactory::getDocument();
     $script = $tmpl == 'ajax' ? false : true;
     Helper_Include::addStyleSheets(true);
     // Additional
     switch ($view) {
         case 'box':
             JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.ui.effects.min.js', 'jquery.json.min.js'));
             Helper_Include::addSmoothScrool(500);
             break;
         case 'folder':
             JCck::loadjQuery(true, true, true);
             break;
         case 'template':
             JCck::loadjQuery(true, true, true);
             Helper_Include::addJSTree('cck_tree', $script);
             break;
         case 'site':
             JCck::loadjQuery(true, true, true);
             break;
         case 'field':
             if ($script === true) {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
                 JCck::loadjQueryUI();
             }
             Helper_Include::addTooltip('span[title].qtip_cck', 'left center', 'right center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', $script, $tmpl);
             Helper_Include::addTooltip('img[title].qtip_cck', 'right center', 'left center', 'ui-tooltip-cck-indigo_dye ui-tooltip-shadow', false, $tmpl);
             break;
         case 'type':
         case 'search':
             if ($script === true) {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js', 'jquery.biscuit.min.js'));
                 JCck::loadjQueryUI();
                 $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/ui-construction.css');
                 $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/styles/seblod/ui-construction.css');
             }
             Helper_Include::addColorbox_Live('930', '550', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
             Helper_Include::addColorpicker($script);
             Helper_Include::addTooltip('', '', '', '', $script);
             break;
         case 'version':
             JCck::loadjQuery(true, true, true);
             break;
             // --------
         // --------
         case 'templates':
         case 'types':
         case 'fields':
         case 'searchs':
         case 'folders':
         case 'sites':
         case 'variations':
         case 'versions':
             if ($view == 'folders') {
                 JCck::loadjQuery(true, true, array('cck.dev-3.3.0.min.js'));
             } else {
                 JCck::loadjQuery();
             }
             if (JCck::on()) {
                 JHtml::_('bootstrap.tooltip');
                 JHtml::_('formbehavior.chosen', 'select:not(.no-chosen)');
             }
             Helper_Include::addLavalamp('#submenu');
             Helper_Include::addSmoothScrool();
             if ($view == 'fields') {
                 Helper_Include::addColorbox('500', '300', $script, 'cbox', ', onLoad: function(){ $("#cboxClose").remove();}');
             } elseif ($view == 'templates') {
                 Helper_Include::addColorbox('850', '585', $script);
             } elseif ($view == 'types' || $view == 'searchs') {
                 Helper_Include::addColorbox('850', '430', true, 'cbox_button', ', scrolling:false');
             } elseif ($view == 'variations') {
                 JHtml::_('behavior.framework', false);
             }
             if ($view == 'searchs' || $view == 'sites') {
                 $doc->addStyleSheet(JROOT_MEDIA_CCK . '/css/jquery.sly.css');
                 $doc->addScript(JROOT_MEDIA_CCK . '/js/jquery.sly.min.js');
             }
             break;
         case 'cck':
             $doc->addStyleSheet(JROOT_CCK . '/administrator/components/com_' . CCK_NAME . '/assets/css/cpanel.css');
             JCck::loadjQuery();
             Helper_Include::addColorbox('930', '430', true, 'cbox_button');
             Helper_Include::addLavalamp('#submenu');
             break;
         default:
             break;
     }
 }
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:89,代码来源:helper_include.php


示例5: defined

<?php

/**
* @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) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
Helper_Include::addScriptDeclaration($this->config['javascript']);
if (JCck::getConfig_Param('validation', 2) > 1 && $this->config['validation'] != '') {
    Helper_Include::addValidation($this->config['validation'], $this->config['validation_options']);
    $js = 'if (task == "form.cancel") { Joomla.submitform(task, document.getElementById("seblod_form")); } else { if (jQuery("#seblod_form").validationEngine("validate",task) === true) { if (jQuery("#seblod_form").isStillReady() === true) { jQuery("#seblod_form input[name=\'config[unique]\']").val("seblod_form"); Joomla.submitform(task, document.getElementById("seblod_form")); } } }';
} else {
    $js = 'if (jQuery("#seblod_form").isStillReady() === true) { jQuery("#seblod_form input[name=\'config[unique]\']").val("seblod_form"); Joomla.submitform(task, document.getElementById("seblod_form")); }';
}
?>

<script type="text/javascript">
<?php 
echo $this->config['submit'];
?>
 = function(task) { <?php 
echo $js;
?>
 }
</script>
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:30,代码来源:default.php


示例6: trim

// Prepare
$field = JCckDatabase::loadObject('SELECT * FROM #__cck_core_fields WHERE name = "' . $this->item->name . '"');
$field->required_alert = '';
$field->selectlabel = trim($field->selectlabel) ? $field->selectlabel : '';
$field->variation = '';
$field->variation_override = '';
$field->restriction = '';
if ($field->type == 'checkbox' || $field->type == 'radio') {
    $field->bool = 1;
}
// Set
$doc = JFactory::getDocument();
$doc->addStyleSheet(JURI::root(true) . '/media/cck/css/cck.admin.css');
$doc->addStyleDeclaration('div.cck_forms.cck_admin div.cck_form {float:none;}');
$doc->addScriptDeclaration('jQuery(document).ready(function($){ $("#titlebox").html("' . JText::_('COM_CCK_PREVIEW') . '"); $("#submitBox,#resetBox").hide(); });');
Helper_Include::addDependencies('box', 'edit');
?>

<div class="seblod preview">
	<div align="center" style="text-align:center;">
		<div class="cck_forms cck_admin cck_<?php 
echo $field->type;
?>
">
			<div class="cck_form cck_form_<?php 
echo $field->type;
?>
">
				<?php 
echo JCckDevField::getForm($field, '', $config);
?>
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:31,代码来源:preview.php


示例7: defined

<?php

/**
* @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) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
if ((int) $config['error'] == 1) {
    return;
}
if (JCck::getConfig_Param('validation', 2) > 1 && $config['validation'] != '') {
    Helper_Include::addValidation($config['validation'], $config['validation_options'], $formId);
    $js = 'if (jQuery("#' . $formId . '").validationEngine("validate",task) === true) { if (jQuery("#' . $formId . '").isStillReady() === true) { jQuery("#' . $formId . ' input[name=\'config[unique]\']").val("' . $formId . '"); JCck.Core.submitForm("save", document.getElementById("' . $formId . '")); } }';
} else {
    $js = 'if (jQuery("#' . $formId . '").isStillReady() === true) { jQuery("#' . $formId . ' input[name=\'config[unique]\']").val("' . $formId . '"); JCck.Core.submitForm("save", document.getElementById("' . $formId . '")); }';
}
?>
<script type="text/javascript">
<?php 
echo $config['submit'];
?>
 = function(task) { <?php 
echo $js;
?>
 }
</script>
<?php 
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:31,代码来源:default.php


示例8: function

						var data = $("#adminForm").serializeObject();
						var encoded = $.toJSON(data);
						parent.jQuery("#"+elem).val(encoded);
						this.close();
						return;
					}
    			}
				$(document).ready(function(){
					var elem = "pos-' . $this->item->id . '_variation_options";
					var encoded = parent.jQuery("#"+elem).val();
					var data = (encoded != "") ? $.evalJSON(encoded) : "";
					$.each(data, function(k, v) {
						$("#"+k).val( v );
					});
				});
			})(jQuery);
			';
$doc->addScriptDeclaration($js);
require_once JPATH_ADMINISTRATOR . '/components/' . CCK_COM . '/helpers/helper_workshop.php';
Helper_Include::addTooltip('label[title]', 'top left', 'bottom left');
JFactory::getLanguage()->load('files_var_cck_' . $this->item->name . '.sys', JPATH_SITE);
JFactory::getLanguage()->load('files_var_cck_seb_css3.sys', JPATH_SITE);
$template = isset($this->item->type) && $this->item->type != '' ? $this->item->type : 'seb_one';
$path = JPATH_SITE . '/templates/' . $template . '/variations/' . $this->item->name . '/options.xml';
if (!file_exists($path)) {
    $path = JPATH_LIBRARIES_CCK . '/rendering/variations/' . $this->item->name . '/options.xml';
} else {
    JFactory::getLanguage()->load('tpl_' . $template, JPATH_SITE);
}
$xml = JPath::clean($path);
Helper_Workshop::getTemplateParams($xml, '//form');
开发者ID:densem-2013,项目名称:exikom,代码行数:31,代码来源:edit.php


示例9: function

	<input type="hidden" name="return_v" id="return_v" value="templates" />
    <input type="hidden" name="filter_order" value="<?php 
echo $listOrder;
?>
" />
    <input type="hidden" name="filter_order_Dir" value="<?php 
echo $listDir;
?>
" />
	<?php 
echo JHtml::_('form.token');
?>
</div>

<?php 
Helper_Include::addStyleDeclaration(implode('', $css));
Helper_Display::quickCopyright();
?>
</div>
</form>

<script type="text/javascript">
(function ($){
	Joomla.orderTable = function()
	{
		table = document.getElementById("sortTable");
		direction = document.getElementById("directionTable");
		order = table.options[table.selectedIndex].value;
		if (order != '<?php 
echo $listOrder;
?>
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:31,代码来源:default.php


示例10: defined

/**
* @version 			SEBLOD 3.x Core ~ $Id: match.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;
$name = $this->item->name;
$lang = JFactory::getLanguage();
$lang->load('plg_cck_field_field_x', JPATH_ADMINISTRATOR, null, false, true);
$lang->load('plg_cck_field_group_x', JPATH_ADMINISTRATOR, null, false, true);
Helper_Include::addDependencies('box', 'edit');
Helper_Include::addTooltip('span[title].qtip_cck', 'left center', 'right center');
$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');
$js = '
			(function ($){
				JCck.Dev = {
					reset: function() {
						parent.jQuery("#' . $name . '_match_collection").val("");
						parent.jQuery("#' . $name . '_match_value").val("");
						parent.jQuery("#' . $name . '_match_options").val("");
						this.close();
					},
					submit: function() {
						var data = $("#match_collection").val();
						parent.jQuery("#' . $name . '_match_collection").val(data);
开发者ID:codigoaberto,项目名称:SEBLOD,代码行数:30,代码来源:match.php


示例11: validate

 public static function validate($config, $id = 'adminForm')
 {
     $config['validation'] = count($config['validation']) ? implode(',', $config['validation']) : '"null":{}';
     $config['validation_options'] = new JRegistry(array('validation_background_color' => '#242424', 'validation_color' => '#ffffff', 'validation_position' => 'topRight', 'validation_scroll' => 0));
     Helper_Include::addValidation($config['validation'], $config['validation_options'], $id);
     if (isset($config['fields']) && count($config['fields'])) {
         JFactory::getDocument()->addScriptDeclaration('var cck_dev = ' . json_encode($config['fields']) . ';');
     }
 }
开发者ID:olafzieger,项目名称:joomla3.x-seblod-test,代码行数:9,代码来源:dev.php


示例12: defined

<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: default_toolbar.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;
$app = JFactory::getApplication();
if ($app->input->get('tmpl', '') == 'component') {
    // Add Toolbar (Html)
}
if (JCck::getConfig_Param('autosave', 0)) {
    Helper_Include::autoSave(JCck::getConfig_Param('autosave_interval', 2));
    ?>
	<div id="ajaxToolbar" style="float: right; text-align: right; padding-right: 8px; padding-bottom: 8px; font-weight: bold;">
		<div style="float: left; padding-right: 8px;" id="ajaxMessage"></div>
	</div>
<?php 
}
开发者ID:densem-2013,项目名称:exikom,代码行数:23,代码来源:default_toolbar.php


示例13: elseif

        $legacy = $options->get('add_alt', 2);
    }
}
if ($legacy == 1) {
    $legend = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>', '<span style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM')) . '</span>');
    $legend2 = '';
} elseif ($legacy == 2) {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = JText::sprintf('LIB_CCK_INTEGRATION_MODAL_BOX_LEGEND2', '<a id="standard-content" href="javascript:void(0);" style="color:#808080">' . JString::strtolower(JText::_('LIB_CCK_INTEGRATION_CLICK_HERE')) . '</a>');
} else {
    $legend = JText::_('LIB_CCK_INTEGRATION_SELECT_A_FORM');
    $legend2 = '';
}
// Set
JCck::loadjQuery();
Helper_Include::addStyleSheets(true);
if (JCck::on()) {
    JHtml::_('stylesheet', 'administrator/components/com_cck/assets/css/cpanel.css', array(), false);
}
$doc = JFactory::getDocument();
$js = 'jQuery(document).ready(function($){ $("#standard-content").attr("onclick","parent."+parent.jQuery("#toolbar-new a").attr("onclick2")); });';
$doc->addScriptDeclaration($js);
?>

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

<div class="seblod">
    <?php 
开发者ID:densem-2013,项目名称:exikom,代码行数:31,代码来源:select.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Helpers类代码示例发布时间:2022-05-23
下一篇:
PHP Helper_Config类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap