예제 #1
0
* @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::renderHelp('field', 'seblod-2-x-radio-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
	</ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
    $('#bool2').isVisibleWhen('bool','1',false);
});
</script>
예제 #2
0
echo JCckDev::renderForm('core_defaultvalue', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_options_path', @$options2['path'], $config, array('required' => 'required'));
echo JCckDev::renderBlank();
echo '<li><label>' . JText::_('COM_CCK_PATH_PER_CONTENT') . '</label>' . JCckDev::getForm('core_options_path_content', @$options2['path_content'], $config) . JCckDev::getForm('core_dev_text', @$options2['folder_permissions'], $config, array('defaultvalue' => '0755', 'size' => 4, 'storage_field' => 'json[options2][folder_permissions]')) . '</li>';
echo JCckDev::renderForm('core_options_path_user', @$options2['path_user'], $config);
echo '<li><label>' . JText::_('COM_CCK_LEGAL_EXTENSIONS') . '</label>' . JCckDev::getForm('core_options_media_extensions', $media_ext, $config, array('defaultvalue' => 'image', 'options' => 'image')) . JCckDev::getForm('core_options_legal_extensions_image', @$options2['legal_extensions'], $config, array('size' => 13, 'required' => 'required')) . '</li>';
echo '<li><label>' . JText::_('COM_CCK_MAXIMUM_SIZE') . '</label>' . JCckDev::getForm('core_options_max_size', @$options2['max_size'], $config) . JCckDev::getForm('core_options_size_unit', @$options2['size_unit'], $config) . '</li>';
echo JCckDev::renderForm('core_options_preview_image', @$options2['form_preview'], $config, array('label' => 'SHOW_PREVIEW', 'storage_field' => 'json[options2][form_preview]'));
echo JCckDev::renderForm('core_options_delete_box', @$options2['delete_box'], $config);
echo '<li><label>' . JText::_('COM_CCK_SHOW_CUSTOM_PATH') . '</label>' . JCckDev::getForm('core_bool', @$options2['custom_path'], $config, array('defaultvalue' => '0', 'options' => 'Hide=0||Show=1', 'storage_field' => 'json[options2][custom_path]')) . JCckDev::getForm('core_options_path', @$options2['path_label'], $config, array('defaultvalue' => 'Path', 'size' => 18, 'storage_field' => 'json[options2][path_label]')) . '</li>';
echo JCckDev::renderForm('core_size', $this->item->size, $config);
echo JCckDev::renderForm('core_options_multivalue_mode', @$options2['multivalue_mode'], $config, array('label' => 'MULTIVALUE_MODE'));
echo '<li><label>' . JText::_('COM_CCK_SHOW_TITLE') . '</label>' . JCckDev::getForm('core_bool', @$options2['title_image'], $config, array('defaultvalue' => '1', 'options' => 'Hide=0||Show=1', 'storage_field' => 'json[options2][title_image]')) . JCckDev::getForm('core_options_path', @$options2['title_label'], $config, array('defaultvalue' => 'Title', 'size' => 18, 'storage_field' => 'json[options2][title_label]')) . '</li>';
echo JCckDev::renderBlank('<input type="hidden" id="blank_li" value="" />');
echo '<li><label>' . JText::_('COM_CCK_SHOW_DESCRIPTION_ALT') . '</label>' . JCckDev::getForm('core_bool', @$options2['desc_image'], $config, array('defaultvalue' => '1', 'options' => 'Hide=0||Show=1', 'storage_field' => 'json[options2][desc_image]')) . JCckDev::getForm('core_options_path', @$options2['desc_label'], $config, array('defaultvalue' => 'Description alt', 'size' => 18, 'storage_field' => 'json[options2][desc_label]')) . '</li>';
echo JCckDev::renderHelp('field', '2440-upload-image.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_PROCESSING'), JText::_('COM_CCK_PROCESSING_DESC_UPLOAD_IMAGE'), 2);
echo JCckDev::renderForm('core_options_force_thumb_creation', @$options2['force_thumb_creation'], $config, array('label' => 'FORCE_THUMB_CREATION'));
echo JCckDev::renderForm('core_options_preview_image', @$options2['content_preview'], $config, array('defaultvalue' => '1', 'label' => 'DISPLAY_AS_DEFAULT', 'options' => 'Image=0||Thumb1=1||Thumb2=2||Thumb3=3||Thumb4=4||Thumb5=5||Thumb6=6||Thumb7=7||Thumb8=8||Thumb9=9||Thumb10=10', 'storage_field' => 'json[options2][content_preview]'));
echo JCckDev::renderForm('core_options_image_process', @$options2['image_process'], $config, array('label' => 'Image', 'defaultvalue' => '', 'storage_field' => 'json[options2][image_process]'));
echo '<li><label>' . JText::_('COM_CCK_WIDTH_HEIGHT') . '</label>' . JCckDev::getForm('core_options_image_width', @$options2['image_width'], $config) . '<span class="variation_value" style="margin-right: 5px;">x</span>' . JCckDev::getForm('core_options_image_height', @$options2['image_height'], $config) . '<span class="variation_value">px</span></li>';
// core_options_image_color (see later)
// core_options_image_watermark (see later)
// core_options_image_default (see later)
// core_options_image_box (see later)
echo JCckDev::renderForm('core_options_thumb_process', @$options2['thumb1_process'], $config, array('label' => 'Thumb1'));
echo '<li><label>' . JText::_('COM_CCK_WIDTH_HEIGHT') . '</label>' . JCckDev::getForm('core_options_thumb_width', @$options2['thumb1_width'], $config) . '<span class="variation_value" style="margin-right: 5px;">x</span>' . JCckDev::getForm('core_options_thumb_height', @$options2['thumb1_height'], $config) . '<span class="variation_value">px</span></li>';
$js = '';
for ($i = 2; $i < 11; $i++) {
    echo JCckDev::renderForm('core_options_thumb_process', @$options2['thumb' . $i . '_process'], $config, array('label' => 'Thumb' . $i, 'defaultvalue' => '', 'storage_field' => 'json[options2][thumb' . $i . '_process]'));
    echo '<li><label>' . JText::_('COM_CCK_WIDTH_HEIGHT') . '</label>' . JCckDev::getForm('core_options_thumb_width', @$options2['thumb' . $i . '_width'], $config, array('defaultvalue' => '', 'storage_field' => 'json[options2][thumb' . $i . '_width]')) . '<span class="variation_value" style="margin-right: 5px;">x</span>' . JCckDev::getForm('core_options_thumb_height', @$options2['thumb' . $i . '_height'], $config, array('defaultvalue' => '', 'storage_field' => 'json[options2][thumb' . $i . '_height]')) . '<span class="variation_value">px</span></li>';
예제 #3
0
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_options_format', @$options2['format'], $config);
echo JCckDev::renderForm('core_options_format_date', @$options2['storage_format'], $config, array('label' => 'STORAGE_FORMAT', 'storage_field' => 'json[options2][storage_format]'));
echo JCckDev::renderForm('core_options_dates', @$options2['dates'], $config);
echo JCckDev::renderForm('core_options_theme_calendar', @$options2['theme'], $config);
echo JCckDev::renderForm('core_options_week_numbers', @$options2['week_numbers'], $config);
echo JCckDev::renderForm('core_size', $this->item->size, $config, array('defaultvalue' => '27'));
echo '<li><label>' . JText::_('COM_CCK_SHOW_TIME') . '</label>' . JCckDev::getForm('core_options_time', @$options2['time'], $config, array('options' => 'Hide=0||Show=optgroup||12AM=12||24H=24')) . JCckDev::getForm('core_options_time_pos', @$options2['time_pos'], $config) . '</li>';
echo '<li><label>' . JText::_('COM_CCK_DEFAULT_TIME') . '</label>' . JCckDev::getForm('core_dev_select_numeric', @$options2['default_hour'], $config, array('defaultvalue' => '00', 'selectlabel' => '', 'storage_field' => 'json[options2][default_hour]', 'options2' => '{"math":"0","start":"0","first":"","step":"1","last":"","end":"23","force_digits":"2"}')) . JCckDev::getForm('core_dev_select_numeric', @$options2['default_min'], $config, array('defaultvalue' => '00', 'selectlabel' => '', 'storage_field' => 'json[options2][default_min]', 'options2' => '{"math":"0","start":"0","first":"","step":"1","last":"","end":"59","force_digits":"2"}')) . JCckDev::getForm('core_dev_select_numeric', @$options2['default_sec'], $config, array('defaultvalue' => '00', 'selectlabel' => '', 'storage_field' => 'json[options2][default_sec]', 'options2' => '{"math":"0","start":"0","first":"","step":"1","last":"","end":"59","force_digits":"2"}')) . '</li>';
echo JCckDev::renderForm('core_bool2', $this->item->bool2, $config, array('label' => 'Text Input', 'defaultvalue' => '0', 'options' => 'Enabled=1||Readonly=0'));
echo JCckDev::renderHelp('field', 'seblod-2-x-calendar-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'DATETIME'));
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_time_pos').isVisibleWhen('json_options2_time','12,24',false);
	$('#json_options2_default_hour').isVisibleWhen('json_options2_time','0');
	$('#json_options2_storage_format').live('change', function() {
		if ($j(this).val() == 1)  {
			/*
			$('#storage_alter_type').val('TIMESTAMP');
			if($('#storage_alter_type').val()!='') {
예제 #4
0
파일: edit.php 프로젝트: hamby/SEBLOD
echo JCckDev::renderForm('core_label', $this->item->label, $config);
echo JCckDev::renderForm('core_defaultvalue', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_options_path', @$options2['path'], $config, array('required' => 'required'));
echo JCckDev::renderForm('core_options_format_file', @$options2['storage_format'], $config);
echo '<li><label>' . JText::_('COM_CCK_PATH_PER_CONTENT') . '</label>' . JCckDev::getForm('core_options_path_content', @$options2['path_content'], $config) . JCckDev::getForm('core_dev_text', @$options2['folder_permissions'], $config, array('defaultvalue' => '0755', 'size' => 4, 'storage_field' => 'json[options2][folder_permissions]')) . '</li>';
echo JCckDev::renderForm('core_options_path_user', @$options2['path_user'], $config);
echo '<li><label>' . JText::_('COM_CCK_LEGAL_EXTENSIONS') . '</label>' . JCckDev::getForm('core_options_media_extensions', $media_ext, $config) . JCckDev::getForm('core_options_legal_extensions', @$options2['legal_extensions'], $config, array('size' => 13, 'required' => 'required')) . '</li>';
echo '<li><label>' . JText::_('COM_CCK_MAXIMUM_SIZE') . '</label>' . JCckDev::getForm('core_options_max_size', @$options2['max_size'], $config) . JCckDev::getForm('core_options_size_unit', @$options2['size_unit'], $config) . '</li>';
echo JCckDev::renderForm('core_options_preview', @$options2['preview'], $config);
echo JCckDev::renderForm('core_options_delete_box', @$options2['delete_box'], $config);
echo '<li><label>' . JText::_('COM_CCK_SHOW_CUSTOM_PATH') . '</label>' . JCckDev::getForm('core_bool', @$options2['custom_path'], $config, array('defaultvalue' => '0', 'options' => 'Hide=0||Show=1', 'storage_field' => 'json[options2][custom_path]')) . JCckDev::getForm('core_options_path', @$options2['path_label'], $config, array('defaultvalue' => 'Path', 'size' => 18, 'storage_field' => 'json[options2][path_label]')) . '</li>';
echo JCckDev::renderForm('core_size', $this->item->size, $config);
echo JCckDev::renderForm('core_options_multivalue_mode', @$options2['multivalue_mode'], $config, array('label' => 'MULTIVALUE_MODE'));
echo '<li><label>' . JText::_('COM_CCK_SHOW_TITLE') . '</label>' . JCckDev::getForm('core_bool', @$options2['title_file'], $config, array('defaultvalue' => '1', 'options' => 'Hide=0||Show=1', 'storage_field' => 'json[options2][title_file]')) . JCckDev::getForm('core_options_path', @$options2['title_label'], $config, array('defaultvalue' => 'Link Title', 'size' => 18, 'storage_field' => 'json[options2][title_label]')) . '</li>';
// core_options_path_box (useless)
echo JCckDev::renderHelp('field', 'seblod-2-x-upload-file-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_legal_extensions').isVisibleWhen('json_options2_media_extensions','custom',false);
	$('#json_options2_title_file').isVisibleWhen('json_options2_multivalue_mode','1');
	$('#json_options2_path_label').isVisibleWhen('json_options2_custom_path','1',false);
	$('#json_options2_title_label').isVisibleWhen('json_options2_title_file','1',false);
	if ( $('#json_options2_storage_format').val() == 1 ){
		$('#json_options2_path_user').val(0);
	}
예제 #5
0
파일: edit.php 프로젝트: pctechnikch/SEBLOD
* @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;
?>

<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_textarea', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_columns', $this->item->cols, $config);
echo JCckDev::renderForm('core_rows', $this->item->rows, $config, array('defaultvalue' => '3'));
echo JCckDev::renderForm('core_minlength', $this->item->minlength, $config);
echo JCckDev::renderForm('core_maxlength', $this->item->maxlength, $config);
echo JCckDev::renderHelp('field', '3146-textarea.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_PROCESSING'), JText::_('COM_CCK_PROCESSING_DESC_TEXTAREA'), 2);
echo JCckDev::renderForm('core_bool2', $this->item->bool2, $config, array('label' => 'New Lines', 'options' => 'tag_br=0||tag_br_in_p=2||tag_p=1'));
echo JCckDev::renderForm('core_bool3', $this->item->bool3, $config, array('label' => 'Clear Blank Lines'));
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'TEXT'));
?>
    </ul>
</div>
예제 #6
0
파일: edit.php 프로젝트: hamby/SEBLOD
* @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('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 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', 'seblod-2-x-select-multiple-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
	</ul>
</div>
예제 #7
0
echo '<li><label>' . JText::_('COM_CCK_LANGUAGE_CODES_DEFAULT') . '</label>' . JCckDev::getForm('core_options_language_codes', @$options2['language_codes'], $config, array('size' => 21)) . JCckDev::getForm('core_options_language_default', @$options2['language_default'], $config, array('size' => 5)) . '</li>';
// Static
echo JCckDev::renderForm('core_bool4', $this->item->bool4, $config, array('label' => 'Static Options', 'options' => 'No=0||Yes=optgroup||Above=1||Below=2'));
echo JCckDev::renderBlank();
echo JCckDev::renderForm('core_options', $options, $config);
if ($count) {
    for ($i = 0; $i < $count; $i++) {
        echo '<li class="w100 custom_attr_mapping"><label>' . JText::_('COM_CCK_OPTIONS_ATTR_COLUMN') . '</label>';
        echo JCckDev::getForm('core_dev_text', @$location[$i], $config, array('size' => 7, 'storage_field' => 'string[location][]'));
        $j = $i;
        $j++;
        echo JCckDev::getForm('core_dev_text', @$options2['attr' . $j], $config, array('size' => 7, 'storage_field' => 'json[options2][attr' . $j . ']'));
        echo '</li>';
    }
}
echo JCckDev::renderHelp('field', 'seblod-2-x-select-dynamic-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
	</ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_query').isVisibleWhen('bool2','1');
	$('#json_options2_table, #json_options2_name, #json_options2_value, #json_options2_where, #json_options2_orderby, #json_options2_limit, #json_options2_attr1, #blank_li').isVisibleWhen('bool2','0');
	$('#rows, #divider').isVisibleWhen('bool3','1');
	$('#sortable_core_options').isVisibleWhen('bool4','1,2');
	$('.custom_attr_mapping').toggle();
	$("#adminForm").on("click", "#custom_attr_toggle", function() {
		$('.custom_attr_mapping').toggle();
예제 #8
0
* @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 '<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::renderHelp('field', '2715-radio.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
	</ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
    $('#bool2').isVisibleWhen('bool','1',false);
});
</script>
예제 #9
0
* @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;
?>

<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_textarea', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_columns', $this->item->cols, $config);
echo JCckDev::renderForm('core_rows', $this->item->rows, $config, array('defaultvalue' => '3'));
echo JCckDev::renderForm('core_minlength', $this->item->minlength, $config);
echo JCckDev::renderForm('core_maxlength', $this->item->maxlength, $config);
echo JCckDev::renderHelp('field', 'seblod-2-x-textarea-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_PROCESSING'), JText::_('COM_CCK_PROCESSING_DESC_TEXTAREA'), 2);
echo JCckDev::renderForm('core_bool2', $this->item->bool2, $config, array('label' => 'New Lines', 'options' => 'tag_br=0||tag_br_in_p=2||tag_p=1'));
echo JCckDev::renderForm('core_bool3', $this->item->bool3, $config, array('label' => 'Clear Blank Lines'));
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'TEXT'));
?>
    </ul>
</div>
예제 #10
0
파일: edit.php 프로젝트: pctechnikch/SEBLOD
* @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;
$options2 = JCckDev::fromJSON($this->item->options2);
?>

<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_options_math', @$options2['math'], $config);
echo JCckDev::renderForm('core_selectlabel', $this->item->selectlabel, $config);
echo JCckDev::renderForm('core_options_start', @$options2['start'], $config);
echo JCckDev::renderForm('core_options_first', @$options2['first'], $config);
echo JCckDev::renderForm('core_options_step', @$options2['step'], $config);
echo JCckDev::renderForm('core_options_last', @$options2['last'], $config);
echo JCckDev::renderForm('core_options_end', @$options2['end'], $config);
echo JCckDev::renderForm('core_dev_select', @$options2['force_digits'], $config, array('label' => 'Force Digits', 'defaultvalue' => '0', 'selectlabel' => '', 'options' => 'No=0||2 Digits=2||3 Digits=3||4 Digits=4||5 Digits=5', 'storage_field' => 'json[options2][force_digits]'));
echo JCckDev::renderHelp('field', '2717-select-numeric.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'INT(11)'));
?>
	</ul>
</div>
예제 #11
0
echo JCckDev::renderForm('core_options_from', @$options2['from_name'], $config, array('label' => 'From Name', 'options' => 'Default=0||Name=1||Field=3', 'storage_field' => 'json[options2][from_name]'));
echo JCckDev::renderForm('core_options_from_param', @$options2['from_name_param'], $config, array('label' => 'From Name Field', 'storage_field' => 'json[options2][from_name_param]'));
echo JCckDev::renderForm('core_options_subject', @$options2['subject'], $config);
echo JCckDev::renderForm('core_options_to', @$options2['to'], $config);
echo JCckDev::renderForm('core_options_message', @$options2['message'], $config);
echo JCckDev::renderForm('core_options_to_field', @$options2['to_field'], $config);
echo JCckDev::renderForm('core_options_from_param', @$options2['message_field'], $config, array('label' => 'Message Field', 'defaultvalue' => '', 'storage_field' => 'json[options2][message_field]'));
echo JCckDev::renderForm('core_options_to_admin', $to_admin, $config);
echo JCckDev::renderForm('core_options_from_param', @$options2['send_attachment_field'], $config, array('label' => 'Send Attachment Field', 'defaultvalue' => '', 'storage_field' => 'json[options2][send_attachment_field]'));
echo JCckDev::renderForm('core_options_to', @$options2['attachment_field'], $config, array('label' => 'Attachment Field', 'defaultvalue' => '', 'storage_field' => 'json[options2][attachment_field]'));
echo JCckDev::renderForm('core_options_from', @$options2['cc'], $config, array('label' => 'CC', 'options' => 'None=0||Email=1||Field=3', 'storage_field' => 'json[options2][cc]'));
echo JCckDev::renderForm('core_options_to', @$options2['cc_param'], $config, array('label' => 'CC Email Field', 'storage_field' => 'json[options2][cc_param]'));
echo JCckDev::renderForm('core_options_from', @$options2['bcc'], $config, array('label' => 'BCC', 'options' => 'None=0||Email=1||Field=3', 'storage_field' => 'json[options2][bcc]'));
echo JCckDev::renderForm('core_options_to', @$options2['bcc_param'], $config, array('label' => 'BCC Email Field', 'storage_field' => 'json[options2][bcc_param]'));
echo JCckDev::renderForm('core_size', $this->item->size, $config);
echo JCckDev::renderForm('core_dev_select', @$options2['format'], $config, array('label' => 'Format', 'defaultvalue' => '1', 'selectlabel' => '', 'options' => 'HTML=1||HTML as Plain Text=2||Plain Text=0', 'storage_field' => 'json[options2][format]'));
echo JCckDev::renderHelp('field', '3023-email.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_from_param').isVisibleWhen('json_options2_from','1,3',true,'visibility');
	$('#json_options2_from_name_param').isVisibleWhen('json_options2_from_name','1,3',true,'visibility');
	$('#json_options2_cc_param').isVisibleWhen('json_options2_cc','1,3',true,'visibility');
	$('#json_options2_bcc_param').isVisibleWhen('json_options2_bcc','1,3',true,'visibility');
});
</script>
예제 #12
0
* @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::forceStorage('custom');
?>

<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_form', $this->item->extended, $config, array('label' => 'CONTENT_TYPE_FORM', 'selectlabel' => 'Select', 'options2' => '{"query":"","table":"#__cck_core_types","name":"title","where":"","value":"name","orderby":"title","orderby_direction":"ASC","limit":""}', 'required' => 'required', 'storage_field' => 'extended'));
echo JCckDev::renderForm('core_rows', $this->item->rows, $config, array('label' => 'DEFAULT', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_bool2', $this->item->bool2, $config, array('label' => 'ADD', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_maxlength', $this->item->maxlength, $config, array('label' => 'MAXIMUM', 'defaultvalue' => '10'));
echo JCckDev::renderForm('core_bool3', $this->item->bool3, $config, array('label' => 'DEL', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_minlength', $this->item->minlength, $config, array('label' => 'MINIMUM', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_bool4', $this->item->bool4, $config, array('label' => 'DRAG', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_orientation', $this->item->bool, $config, array('defaultvalue' => '1', 'options' => 'Horizontal=0||Vertical=1||Table=2'));
echo JCckDev::renderHelp('field', '2879-groupx.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'TEXT'));
?>
    </ul>
</div>
예제 #13
0
파일: edit.php 프로젝트: pctechnikch/SEBLOD
* @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::forceStorage('custom');
?>

<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_extended', $this->item->extended, $config);
echo JCckDev::renderForm('core_rows', $this->item->rows, $config, array('label' => 'DEFAULT', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_bool2', $this->item->bool2, $config, array('label' => 'ADD', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_maxlength', $this->item->maxlength, $config, array('label' => 'MAXIMUM', 'defaultvalue' => '10'));
echo JCckDev::renderForm('core_bool3', $this->item->bool3, $config, array('label' => 'DEL', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_minlength', $this->item->minlength, $config, array('label' => 'MINIMUM', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_bool4', $this->item->bool4, $config, array('label' => 'DRAG', 'defaultvalue' => '1'));
echo JCckDev::renderHelp('field', '1970-fieldx.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'TEXT'));
?>
    </ul>
</div>
예제 #14
0
파일: edit.php 프로젝트: hamby/SEBLOD
* @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;
$options2 = JCckDev::fromJSON($this->item->options2);
?>

<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_options_math', @$options2['math'], $config);
echo JCckDev::renderForm('core_selectlabel', $this->item->selectlabel, $config);
echo JCckDev::renderForm('core_options_start', @$options2['start'], $config);
echo JCckDev::renderForm('core_options_first', @$options2['first'], $config);
echo JCckDev::renderForm('core_options_step', @$options2['step'], $config);
echo JCckDev::renderForm('core_options_last', @$options2['last'], $config);
echo JCckDev::renderForm('core_options_end', @$options2['end'], $config);
echo JCckDev::renderForm('core_dev_select', @$options2['force_digits'], $config, array('label' => 'Force Digits', 'defaultvalue' => '0', 'selectlabel' => '', 'options' => 'No=0||2 Digits=2||3 Digits=3||4 Digits=4||5 Digits=5', 'storage_field' => 'json[options2][force_digits]'));
echo JCckDev::renderHelp('field', 'seblod-2-x-select-numeric-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'INT(11)'));
?>
	</ul>
</div>
예제 #15
0
파일: edit.php 프로젝트: pctechnikch/SEBLOD
* @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::renderHelp('field', '2693-checkbox.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
	</ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
    $('#bool2').isVisibleWhen('bool','1',false);
});
</script>
예제 #16
0
defined('_JEXEC') or die;
$class = JCck::on() ? '' : ' class="hide"';
$options2 = JCckDev::fromJSON($this->item->options2);
?>

<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::renderForm('core_options_editor', @$options2['editor'], $config);
echo '<li><label>' . JText::_('COM_CCK_WIDTH_HEIGHT') . '</label>' . JCckDev::getForm('core_options_width', @$options2['width'], $config, array('defaultvalue' => '100%')) . '<span class="variation_value" style="margin-right: 5px;">x</span>' . JCckDev::getForm('core_options_height', @$options2['height'], $config, array('defaultvalue' => '280')) . '<span class="variation_value">px</span></li>';
echo JCckDev::renderForm('core_place', $this->item->bool, $config, array('label' => 'DISPLAY_MODE'));
echo JCckDev::renderForm('core_selectlabel', $this->item->selectlabel, $config);
echo JCckDev::renderHelp('field', 'seblod-2-x-wysiwyg-editor-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_PROCESSING'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC_PROCESSING'), 2);
echo JCckDev::renderForm('core_options_import', @$options2['import'], $config);
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'), 3);
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'TEXT'));
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('selectlabel').isVisibleWhen('bool','0',true);
});
</script>
예제 #17
0
* @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);
?>
	</ul>
</div>
예제 #18
0
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_options_format', @$options2['format'], $config);
echo JCckDev::renderForm('core_options_format_date', @$options2['storage_format'], $config, array('label' => 'STORAGE_FORMAT', 'storage_field' => 'json[options2][storage_format]'));
echo JCckDev::renderForm('core_options_dates', @$options2['dates'], $config);
echo JCckDev::renderForm('core_options_theme_calendar', @$options2['theme'], $config);
echo JCckDev::renderForm('core_options_week_numbers', @$options2['week_numbers'], $config);
echo JCckDev::renderForm('core_size', $this->item->size, $config, array('defaultvalue' => '27'));
echo '<li><label>' . JText::_('COM_CCK_SHOW_TIME') . '</label>' . JCckDev::getForm('core_options_time', @$options2['time'], $config, array('options' => 'Hide=0||Show=optgroup||12AM=12||24H=24')) . JCckDev::getForm('core_options_time_pos', @$options2['time_pos'], $config) . '</li>';
echo '<li><label>' . JText::_('COM_CCK_DEFAULT_TIME') . '</label>' . JCckDev::getForm('core_dev_select_numeric', @$options2['default_hour'], $config, array('defaultvalue' => '00', 'selectlabel' => '', 'storage_field' => 'json[options2][default_hour]', 'options2' => '{"math":"0","start":"0","first":"","step":"1","last":"","end":"23","force_digits":"2"}')) . JCckDev::getForm('core_dev_select_numeric', @$options2['default_min'], $config, array('defaultvalue' => '00', 'selectlabel' => '', 'storage_field' => 'json[options2][default_min]', 'options2' => '{"math":"0","start":"0","first":"","step":"1","last":"","end":"59","force_digits":"2"}')) . JCckDev::getForm('core_dev_select_numeric', @$options2['default_sec'], $config, array('defaultvalue' => '00', 'selectlabel' => '', 'storage_field' => 'json[options2][default_sec]', 'options2' => '{"math":"0","start":"0","first":"","step":"1","last":"","end":"59","force_digits":"2"}')) . '</li>';
echo JCckDev::renderForm('core_bool2', $this->item->bool2, $config, array('label' => 'Text Input', 'defaultvalue' => '0', 'options' => 'Enabled=1||Readonly=0'));
echo JCckDev::renderHelp('field', '2516-calendar.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'DATETIME'));
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_time_pos').isVisibleWhen('json_options2_time','12,24',false);
	$('#json_options2_default_hour').isVisibleWhen('json_options2_time','0');
	$('#json_options2_storage_format').live('change', function() {
		if ($j(this).val() == 1)  {
			/*
			$('#storage_alter_type').val('TIMESTAMP');
			if($('#storage_alter_type').val()!='') {
예제 #19
0
echo JCckDev::renderForm('core_options_where', @$options2['where'], $config);
echo JCckDev::renderForm('core_options_value', @$options2['value'], $config);
echo '<li><label>' . JText::_('COM_CCK_ORDER_BY') . '</label>' . JCckDev::getForm('core_options_orderby', @$options2['orderby'], $config) . JCckDev::getForm('core_options_orderby_direction', @$options2['orderby_direction'], $config) . '</li>';
echo '<li><label>' . JText::_('COM_CCK_OPTIONS_ATTRIBUTES') . '</label>' . JCckDev::getForm('core_dev_text', @$options2['attr1'], $config, array('size' => 7, 'storage_field' => 'json[options2][attr1]')) . JCckDev::getForm('core_dev_text', @$options2['attr2'], $config, array('size' => 7, 'storage_field' => 'json[options2][attr2]')) . JCckDev::getForm('core_dev_text', @$options2['attr3'], $config, array('size' => 7, 'storage_field' => 'json[options2][attr3]')) . '</li>';
echo JCckDev::renderForm('core_options_limit', @$options2['limit'], $config);
// Multiple
echo JCckDev::renderForm('core_bool3', $this->item->bool3, $config, array('label' => 'Multiple'));
echo JCckDev::renderForm('core_rows', $this->item->rows, $config);
echo JCckDev::renderForm('core_separator', $this->item->divider, $config);
// Language
echo JCckDev::renderForm('core_options_language_detection', @$options2['language_detection'], $config);
echo '<li><label>' . JText::_('COM_CCK_LANGUAGE_CODES_DEFAULT') . '</label>' . JCckDev::getForm('core_options_language_codes', @$options2['language_codes'], $config, array('size' => 21)) . JCckDev::getForm('core_options_language_default', @$options2['language_default'], $config, array('size' => 5)) . '</li>';
// Static
echo JCckDev::renderForm('core_bool4', $this->item->bool4, $config, array('label' => 'Static Options', 'options' => 'No=0||Yes=optgroup||Above=1||Below=2'));
echo '<li><label>' . JText::_('COM_CCK_CUSTOM_ATTRIBUTES') . '</label>' . JCckDev::getForm('core_dev_text', @$location[0], $config, array('size' => 7, 'storage_field' => 'string[location][]')) . JCckDev::getForm('core_dev_text', @$location[1], $config, array('size' => 7, 'storage_field' => 'string[location][]')) . JCckDev::getForm('core_dev_text', @$location[2], $config, array('size' => 7, 'storage_field' => 'string[location][]')) . '</li>';
echo JCckDev::renderForm('core_options', $options, $config);
echo JCckDev::renderHelp('field', '1496-select-dynamic.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
	</ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_query').isVisibleWhen('bool2','1');
	$('#json_options2_table, #json_options2_name, #json_options2_value, #json_options2_where, #json_options2_orderby, #json_options2_limit, #json_options2_attr1, #blank_li').isVisibleWhen('bool2','0');
	$('#rows, #divider').isVisibleWhen('bool3','1');
	$('#sortable_core_options').isVisibleWhen('bool4','1,2');
});
</script>
예제 #20
0
defined('_JEXEC') or die;
$class = JCck::on() ? '' : ' class="hide"';
$options2 = JCckDev::fromJSON($this->item->options2);
?>

<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::renderForm('core_options_editor', @$options2['editor'], $config);
echo '<li><label>' . JText::_('COM_CCK_WIDTH_HEIGHT') . '</label>' . JCckDev::getForm('core_options_width', @$options2['width'], $config, array('defaultvalue' => '100%')) . '<span class="variation_value" style="margin-right: 5px;">x</span>' . JCckDev::getForm('core_options_height', @$options2['height'], $config, array('defaultvalue' => '280')) . '<span class="variation_value">px</span></li>';
echo JCckDev::renderForm('core_place', $this->item->bool, $config, array('label' => 'DISPLAY_MODE'));
echo JCckDev::renderForm('core_selectlabel', $this->item->selectlabel, $config);
echo JCckDev::renderHelp('field', '3147-wysiwyg-editor.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_PROCESSING'), JText::_('PLG_CCK_FIELD_' . $this->item->type . '_DESC_PROCESSING'), 2);
echo JCckDev::renderForm('core_options_import', @$options2['import'], $config);
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'), 3);
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'TEXT'));
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('selectlabel').isVisibleWhen('bool','0',true);
});
</script>
예제 #21
0
파일: edit.php 프로젝트: densem-2013/exikom
**/
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);
?>
	</ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
    $('#bool2').isVisibleWhen('bool','1',false);
});
</script>
예제 #22
0
파일: edit.php 프로젝트: pctechnikch/SEBLOD
<?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;
echo JCckDev::renderForm('core_validation_field', '', $config);
echo JCckDev::renderHelp('validation', '0000-soon.html');
예제 #23
0
파일: edit.php 프로젝트: hamby/SEBLOD
echo JCckDev::renderForm('core_options_from', @$options2['from_name'], $config, array('label' => 'From Name', 'options' => 'Default=0||Name=1||Field=3', 'storage_field' => 'json[options2][from_name]'));
echo JCckDev::renderForm('core_options_from_param', @$options2['from_name_param'], $config, array('label' => 'From Name Field', 'storage_field' => 'json[options2][from_name_param]'));
echo JCckDev::renderForm('core_options_subject', @$options2['subject'], $config);
echo JCckDev::renderForm('core_options_to', @$options2['to'], $config);
echo JCckDev::renderForm('core_options_message', @$options2['message'], $config);
echo JCckDev::renderForm('core_options_to_field', @$options2['to_field'], $config);
echo JCckDev::renderForm('core_options_from_param', @$options2['message_field'], $config, array('label' => 'Message Field', 'defaultvalue' => '', 'storage_field' => 'json[options2][message_field]'));
echo JCckDev::renderForm('core_options_to_admin', $to_admin, $config);
echo JCckDev::renderForm('core_options_from_param', @$options2['send_attachment_field'], $config, array('label' => 'Send Attachment Field', 'defaultvalue' => '', 'storage_field' => 'json[options2][send_attachment_field]'));
echo JCckDev::renderForm('core_options_to', @$options2['attachment_field'], $config, array('label' => 'Attachment Field', 'defaultvalue' => '', 'storage_field' => 'json[options2][attachment_field]'));
echo JCckDev::renderForm('core_options_from', @$options2['cc'], $config, array('label' => 'CC', 'options' => 'None=0||Email=1||Field=3', 'storage_field' => 'json[options2][cc]'));
echo JCckDev::renderForm('core_options_to', @$options2['cc_param'], $config, array('label' => 'CC Email Field', 'storage_field' => 'json[options2][cc_param]'));
echo JCckDev::renderForm('core_options_from', @$options2['bcc'], $config, array('label' => 'BCC', 'options' => 'None=0||Email=1||Field=3', 'storage_field' => 'json[options2][bcc]'));
echo JCckDev::renderForm('core_options_to', @$options2['bcc_param'], $config, array('label' => 'BCC Email Field', 'storage_field' => 'json[options2][bcc_param]'));
echo JCckDev::renderForm('core_size', $this->item->size, $config);
echo JCckDev::renderForm('core_dev_select', @$options2['format'], $config, array('label' => 'Format', 'defaultvalue' => '1', 'selectlabel' => '', 'options' => 'HTML=1||HTML as Plain Text=2||Plain Text=0', 'storage_field' => 'json[options2][format]'));
echo JCckDev::renderHelp('field', 'seblod-2-x-email-field');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_from_param').isVisibleWhen('json_options2_from','1,3',true,'visibility');
	$('#json_options2_from_name_param').isVisibleWhen('json_options2_from_name','1,3',true,'visibility');
	$('#json_options2_cc_param').isVisibleWhen('json_options2_cc','1,3',true,'visibility');
	$('#json_options2_bcc_param').isVisibleWhen('json_options2_bcc','1,3',true,'visibility');
});
</script>
예제 #24
0
echo JCckDev::renderForm('core_label', $this->item->label, $config);
echo JCckDev::renderForm('core_defaultvalue', $this->item->defaultvalue, $config);
echo JCckDev::renderForm('core_options_path', @$options2['path'], $config, array('required' => 'required'));
echo JCckDev::renderForm('core_options_format_file', @$options2['storage_format'], $config);
echo '<li><label>' . JText::_('COM_CCK_PATH_PER_CONTENT') . '</label>' . JCckDev::getForm('core_options_path_content', @$options2['path_content'], $config) . JCckDev::getForm('core_dev_text', @$options2['folder_permissions'], $config, array('defaultvalue' => '0755', 'size' => 4, 'storage_field' => 'json[options2][folder_permissions]')) . '</li>';
echo JCckDev::renderForm('core_options_path_user', @$options2['path_user'], $config);
echo '<li><label>' . JText::_('COM_CCK_LEGAL_EXTENSIONS') . '</label>' . JCckDev::getForm('core_options_media_extensions', $media_ext, $config) . JCckDev::getForm('core_options_legal_extensions', @$options2['legal_extensions'], $config, array('size' => 13, 'required' => 'required')) . '</li>';
echo '<li><label>' . JText::_('COM_CCK_MAXIMUM_SIZE') . '</label>' . JCckDev::getForm('core_options_max_size', @$options2['max_size'], $config) . JCckDev::getForm('core_options_size_unit', @$options2['size_unit'], $config) . '</li>';
echo JCckDev::renderForm('core_options_preview', @$options2['preview'], $config);
echo JCckDev::renderForm('core_options_delete_box', @$options2['delete_box'], $config);
echo '<li><label>' . JText::_('COM_CCK_SHOW_CUSTOM_PATH') . '</label>' . JCckDev::getForm('core_bool', @$options2['custom_path'], $config, array('defaultvalue' => '0', 'options' => 'Hide=0||Show=1', 'storage_field' => 'json[options2][custom_path]')) . JCckDev::getForm('core_options_path', @$options2['path_label'], $config, array('defaultvalue' => 'Path', 'size' => 18, 'storage_field' => 'json[options2][path_label]')) . '</li>';
echo JCckDev::renderForm('core_size', $this->item->size, $config);
echo JCckDev::renderForm('core_options_multivalue_mode', @$options2['multivalue_mode'], $config, array('label' => 'MULTIVALUE_MODE'));
echo '<li><label>' . JText::_('COM_CCK_SHOW_TITLE') . '</label>' . JCckDev::getForm('core_bool', @$options2['title_file'], $config, array('defaultvalue' => '1', 'options' => 'Hide=0||Show=1', 'storage_field' => 'json[options2][title_file]')) . JCckDev::getForm('core_options_path', @$options2['title_label'], $config, array('defaultvalue' => 'Link Title', 'size' => 18, 'storage_field' => 'json[options2][title_label]')) . '</li>';
// core_options_path_box (useless)
echo JCckDev::renderHelp('field', '2557-upload-file.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#json_options2_legal_extensions').isVisibleWhen('json_options2_media_extensions','custom',false);
	$('#json_options2_title_file').isVisibleWhen('json_options2_multivalue_mode','1');
	$('#json_options2_path_label').isVisibleWhen('json_options2_custom_path','1',false);
	$('#json_options2_title_label').isVisibleWhen('json_options2_title_file','1',false);
	if ( $('#json_options2_storage_format').val() == 1 ){
		$('#json_options2_path_user').val(0);
	}
예제 #25
0
파일: edit.php 프로젝트: hamby/SEBLOD
* @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::forceStorage('custom');
?>

<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_extended', $this->item->extended, $config);
echo JCckDev::renderForm('core_rows', $this->item->rows, $config, array('label' => 'DEFAULT', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_bool2', $this->item->bool2, $config, array('label' => 'ADD', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_maxlength', $this->item->maxlength, $config, array('label' => 'MAXIMUM', 'defaultvalue' => '10'));
echo JCckDev::renderForm('core_bool3', $this->item->bool3, $config, array('label' => 'DEL', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_minlength', $this->item->minlength, $config, array('label' => 'MINIMUM', 'defaultvalue' => '1'));
echo JCckDev::renderForm('core_bool4', $this->item->bool4, $config, array('label' => 'DRAG', 'defaultvalue' => '1'));
echo JCckDev::renderHelp('field', 'seblod-2-x-field-x');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config, array(), array('alter_type_value' => 'TEXT'));
?>
    </ul>
</div>
예제 #26
0
/**
* @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_selectlabel', $this->item->selectlabel, $config);
echo JCckDev::renderForm('core_options', $options, $config);
echo JCckDev::renderHelp('field', '3019-select-simple.html');
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
	</ul>
</div>