コード例 #1
0
ファイル: edit.php プロジェクト: densem-2013/exikom
						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');
コード例 #2
0
        <div class="legend top left"><?php 
echo JText::_('COM_CCK_RENDERING') . '<span class="mini">(' . JText::_('COM_CCK_FOR_VIEW_' . $this->item->client) . ')</span>';
?>
</div>
        <ul class="adminformlist adminformlist-2cols">
            <?php 
echo JCckDev::renderForm($cck['core_template'], $this->style->template, $config);
echo '<input type="hidden" name="template2" value="' . $this->style->template . '" />';
$style_title = strlen($this->style->title) > 32 ? substr($this->style->title, 0, 32) . '...' : $this->style->title;
echo '<li><label>' . JText::_('COM_CCK_STYLE') . '</label><span class="variation_value adminformlist-maxwidth" title="' . $this->style->title . '">' . $style_title . '</span>' . '<input class="inputbox" type="hidden" id="template_' . $this->item->client . '" name="template_' . $this->item->client . '" value="' . $this->style->id . '" /></li>';
?>
        </ul>
	</div>
	<div class="seblod">
		<div class="legend top left"><?php 
echo '&rArr; ' . JText::_('COM_CCK_CSS');
?>
</div>
        <ul class="adminformlist adminformlist-2cols">
            <?php 
echo JCckDev::renderForm('core_dev_text', @$this->style->params['rendering_css_class'], $config, array('label' => 'Root Class', 'size' => '16', 'storage_field' => 'params[rendering_css_class]'));
?>
        </ul>
	</div>
	<?php 
if (is_object($this->style)) {
    Helper_Workshop::getTemplateParams($this->style->xml, '//config', 'params', $this->style->params);
}
?>
</div>
<div class="clr"></div>