Ejemplo n.º 1
0
    $hide = '';
    $required = 'required';
}
?>

<div class="seblod">
	<?php 
echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_LINK_' . $this->item->name . '_DESC'));
?>
    <ul class="adminformlist adminformlist-2cols">
        <?php 
echo JCckDev::renderForm('core_list', '', $config, array(), array(), $hide);
echo JCckDev::renderForm('core_menuitem', '', $config, array('required' => $required));
echo JCckDev::renderForm('core_dev_select', '', $config, array('defaultvalue' => 0, 'label' => 'Field', 'options' => 'None=-1||Field=optgroup||Inherited=0||Custom=1', 'selectlabel' => '', 'storage_field' => 'search_field'), array(), $hide);
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Field name', 'required' => 'required', 'storage_field' => 'search_fieldname'), array(), $hide);
echo JCckDev::renderSpacer(JText::_('COM_CCK_CONSTRUCTION') . '<span class="mini">(' . JText::_('COM_CCK_GENERIC') . ')</span>');
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Class', 'size' => 24, 'storage_field' => 'class'));
echo JCckDev::renderForm('core_options_target', '', $config, array('defaultvalue' => '', 'selectlabel' => 'Inherited', 'storage_field' => 'target'));
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Rel', 'size' => 32, 'storage_field' => 'rel'));
echo JCckDev::renderForm('core_tmpl', '', $config);
echo JCckDev::renderForm('core_dev_textarea', '', $config, array('label' => 'Custom variables', 'cols' => 92, 'rows' => 1, 'storage_field' => 'custom'), array(), 'w100');
echo JCckDev::renderForm('core_dev_select', '', $config, array('label' => 'Status', 'selectlabel' => '', 'defaultvalue' => '1', 'options' => 'Apply=1||Prepare=0', 'storage_field' => 'state'));
echo JCckDev::renderBlank();
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#search_fieldname').isVisibleWhen('search_field','1');
});
Ejemplo n.º 2
0
<?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) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
JCckDev::forceStorage();
?>

<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_pane_behavior', $this->item->bool, $config, array('options' => 'Markup Start=0||Markup In Between=1||Markup End=2', 'required' => 'required'));
echo JCckDev::renderBlank();
echo JCckDev::renderSpacer(JText::_('COM_CCK_STORAGE'), JText::_('COM_CCK_STORAGE_DESC'));
echo JCckDev::getForm('core_storage', $this->item->storage, $config);
?>
    </ul>
</div>
Ejemplo n.º 3
0
        <?php 
echo JCckDev::renderForm('core_form', '', $config, array('selectlabel' => 'Inherited', 'options' => 'Use Value=optgroup||Field=-2||Forms=optgroup', 'bool4' => 1, 'required' => ''));
echo JCckDev::renderForm('core_menuitem', '', $config, array('selectlabel' => 'Inherited'));
echo '<li><label>' . JText::_('COM_CCK_EDITION') . '</label>' . JCckDev::getForm('core_dev_bool', '', $config, array('label' => 'Edition', 'storage_field' => 'form_edition')) . JCckDev::getForm('core_dev_select', '', $config, array('selectlabel' => 'Auto', 'defaultvalue' => '', 'options' => '1=1||2=2||3=3||4=4||Final=0', 'bool8' => 0, 'storage_field' => 'form_edition_stage')) . '</li>';
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Field Name', 'storage_field' => 'form_fieldname'));
echo JCckDev::renderForm('core_dev_select', '', $config, array('label' => 'Redirection', 'selectlabel' => 'Auto', 'options' => 'Inherited=-1', 'storage_field' => 'redirection'));
echo JCckDev::renderBlank('<input type="hidden" id="blank_li" value="" />');
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Redirection Custom Variables', 'storage_field' => 'redirection_custom'));
echo JCckDev::renderSpacer(JText::_('COM_CCK_CONSTRUCTION') . '<span class="mini">(' . JText::_('COM_CCK_GENERIC') . ')</span>');
echo JCckDev::renderForm('core_attributes', '', $config, array('label' => 'Custom Attributes', 'storage_field' => 'attributes'), array(), 'w100');
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Class', 'size' => 24, 'storage_field' => 'class'));
echo JCckDev::renderForm('core_options_target', '', $config, array('defaultvalue' => '', 'selectlabel' => 'Inherited', 'storage_field' => 'target'));
echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Rel', 'size' => 24, 'storage_field' => 'rel'));
echo '<li><label>' . JText::_('COM_CCK_TITLE') . '</label>' . JCckDev::getForm('core_dev_select', '', $config, array('selectlabel' => 'None', 'options' => 'Custom=2', 'storage_field' => 'title')) . JCckDev::getForm('core_dev_text', '', $config, array('label' => 'Title', 'size' => 16, 'css' => 'input-medium', 'storage_field' => 'title_custom')) . '</li>';
echo JCckDev::renderForm('core_dev_select', '', $config, array('label' => 'Behavior', 'selectlabel' => '', 'defaultvalue' => '1', 'options' => 'Apply=1||Prepare=0', 'storage_field' => 'state'));
echo JCckDev::renderForm('core_tmpl', '', $config);
echo JCckDev::renderForm('core_dev_textarea', '', $config, array('label' => 'Custom variables', 'cols' => 92, 'rows' => 1, 'storage_field' => 'custom'), array(), 'w100');
echo JCckDev::renderSpacer(JText::_('COM_CCK_CONFIG_NO_ACCESS'));
echo JCckDev::renderForm('core_dev_select', '', $config, array('defaultvalue' => '0', 'label' => 'Show Value', 'selectlabel' => '', 'options' => 'Hide=0||Show=1', 'storage_field' => 'no_access'));
?>
    </ul>
</div>

<script type="text/javascript">
jQuery(document).ready(function($) {
	$('#form_edition,#blank_li').isVisibleWhen('form','');
	$('#form_fieldname').isVisibleWhen('form','-2');
	$('#title_custom').isVisibleWhen('title','2',false);
	$('#redirection_custom,#blank_li').isVisibleWhen('redirection','');
});
</script>