</div> <div class="modal-body"> <p><?php echo JText::_('COM_CCK_BATCH_PROCESS_' . $this->vName); ?> </p> <div class="control-group"> <div class="control-label"> <label for="batch_folder"><?php echo JText::_('COM_CCK_SET_APP_FOLDER'); ?> </label> </div> <div class="controls"> <?php echo JCckDev::getForm($cck['core_folder'], '', $config, array('label' => _C0_TEXT, 'storage_field' => 'batch_folder', 'css' => 'no-chosen')); ?> </div> </div> </div> <div class="modal-footer"> <button class="btn" type="button" onclick="" data-dismiss="modal"><?php echo JText::_('JCANCEL'); ?> </button> <button class="btn btn-primary" type="submit" onclick="Joomla.submitbutton('batch_folder');"><?php echo JText::_('COM_CCK_GO'); ?> </button> </div> </div>
?> <img id="toggle_acl" src="components/com_cck/assets/images/24/icon-24-acl.png" border="0" alt="" style="float: right; margin: 9px 9px 0px 0px; cursor: pointer;" /> <?php } ?> </div> <div class="seblod"> <div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_SITE_ALIASES'); ?> </div> <ul class="adminformlist adminformlist-2cols"> <?php $aliases = JCckDev::fromSTRING($this->item->aliases); echo '<li>' . JCckDev::getForm('core_options', $aliases, $config, array('storage_field' => 'aliases')) . '</li>'; ?> </ul> </div> <div class="seblod"> <div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_SITE_OPTIONS'); ?> </div> <?php if (count($this->item->fields)) { ?> <ul class="adminformlist adminformlist-2cols"> <?php $fieldnames = array();
<?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; // TODO: cache all tables, filter, and push. echo JCckDev::getForm('core_form', '', $config, array('label' => 'Content Type', 'selectlabel' => 'Generic', 'options' => 'Linked to Content Type=optgroup', 'bool4' => 1, 'required' => '', 'css' => 'storage-cck-more', 'storage_field' => 'storage_cck'));
protected static function _addSelect($id, $label, $suffix, $field, $value, $array = array()) { $form = '<div class="cck_forms cck_link_' . $suffix . '">'; $form .= '<div class="cck_label cck_label_link_' . $suffix . '"><label for="' . $id . '" >' . $label . '</label></div>'; $form .= '<div class="cck_form cck_form_link_' . $suffix . '">'; $form .= JCckDev::getForm($field, $value, $config, $array); $form .= '</div></div>'; return $form; }
?> <div class="modal-body"> <p><?php echo JText::_('COM_CCK_BATCH_PROCESS_' . $this->vName . '_2'); ?> </p> <div class="control-group"> <div class="control-label"> <label for="duplicate_title"><?php echo JText::_('COM_CCK_CHOOSE_A_TITLE'); ?> </label> </div> <div class="controls"> <?php echo JCckDev::getForm($cck['core_dev_text'], '', $config, array('label' => 'Title', 'storage_field' => 'duplicate_title')); ?> </div> </div> </div> <div class="modal-footer"> <button class="btn" type="button" onclick="" data-dismiss="modal"><?php echo JText::_('JCANCEL'); ?> </button> <button class="btn btn-primary" type="submit" onclick="Joomla.submitbutton('searchs.duplicate');"><?php echo JText::_('COM_CCK_GO'); ?> </button> </div> <?php
<?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::getForm($cck['core_storage_table'], $table, $config, array('selectlabel' => 'None'));
<?php echo JCckDev::renderForm($cck['core_state'], $this->item->published, $config, array('label' => 'clear')); ?> </ul> <ul class="spe spe_description"> <?php echo JCckDev::renderForm($cck['core_description'], $this->item->description, $config, array('label' => 'clear', 'selectlabel' => 'Description')); ?> </ul> </div> <div class="clr"></div> <div class="togglebar"> <div> <?php echo JCckDev::getForm($cck['core_client_search'], $this->item->client, $config); echo JCckDev::getForm($cck['core_layer'], $this->item->layer, $config); ?> </div> </div> <div id="toggle_more" class="toggle_more <?php echo $this->panel_class; ?> "></div> <input type="hidden" id="storage_location" name="storage_location" value="joomla_article" /> </div> <div class="seblod first" id="more" style="<?php echo $this->panel_style; ?> height:<?php echo $this->css['panel_height']; ?>
* @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>
$field = new stdClass(); $field->type = 'select_simple'; $form = JHtml::_('select.genericlist', $columns, 'map', 'size="1" class="inputbox select" style="max-width:175px;"', 'value', 'text', '', 'map'); } else { $desc = ''; $field = JCckDatabase::loadObject('SELECT * FROM #__cck_core_fields WHERE name = "' . $this->item->name . '"'); $field->required_alert = ''; $field->selectlabel = 'SELECT'; $field->variation = ''; $field->variation_override = ''; $field->restriction = ''; if (strpos($field->type, 'checkbox') !== false || strpos($field->type, 'radio') !== false) { $field->bool = 1; } if ($this->item->id == 'stage') { $form = JCckDev::getForm('core_dev_select', '', $config, array('selectlabel' => 'Select', 'options' => 'Stage 1st=1||Stage 2nd=2||Stage 3rd=3||Stage 4th=4||Stage 5th=5', 'storage_field' => $field->name)); } else { $form = JCckDevField::getForm($field, '', $config); } } $toggle = 0; $separator = ''; if ($this->item->title == 'search') { $isConvertible = JCck::callFunc('plgCCK_Field' . $field->type, 'isConvertible'); if ($isConvertible == 1) { $toggle = 1; if ($field->divider != '') { $toggle = 0; $separator = $field->divider; } else { $separator = ',';
<div class="controls"> <?php echo JCckDev::getForm('core_dev_radio', '', $config, array('defaultvalue' => $params->get('filename_date', '0'), 'options' => 'No=0||Yes=1', 'css' => 'btn-group btn-group-yesno app-options', 'storage_field' => 'filename_date')); ?> </div> </div> <div class="control-group"> <div class="control-label"> <label for="batch_folder"><?php echo JText::_('COM_CCK_APPEND_VERSION_NUMBER') . '<span class="star"> *</span>'; ?> </label> </div> <div class="controls"> <?php echo JCckDev::getForm('core_dev_radio', '', $config, array('defaultvalue' => $params->get('filename_version', '0'), 'options' => 'No=0||Yes=1', 'css' => 'btn-group btn-group-yesno app-options', 'storage_field' => 'filename_version')); ?> </div> </div> <?php echo '<small class="pull-right"> * ' . JText::_('COM_CCK_NOT_PERMANENTLY_STORED') . '</small>'; echo JCckDevTabs::end(); ?> </div> <div class="modal-footer"> <button class="btn btn-primary" type="button" onclick="" data-dismiss="modal"><?php echo JText::_('COM_CCK_CLOSE'); ?> </button> </div> </div>
/** * @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; require_once JPATH_SITE . '/plugins/cck_storage_location/joomla_article/classes/exporter.php'; $options = plgCCK_Storage_LocationJoomla_Article_Exporter::getColumnsToExport(); $options = implode('||', $options); ?> <div class="seblod cck-padding-top-0 cck-padding-bottom-0"> <?php echo JCckDev::renderLegend(JText::_('COM_CCK_FIELDS')); ?> <ul class="adminformlist adminformlist-2cols"> <?php echo JCckDev::renderForm('core_dev_select', '', $config, array('defaultvalue' => '0', 'label' => 'Core Table', 'selectlabel' => '', 'options' => 'All Fields=0||No Fields=-1||Only Selected Fields=1', 'storage_field' => 'columns[core]')); echo '<li><label></label>' . JCckDev::getForm('core_dev_select', '', $config, array('defaultvalue' => '', 'label' => '', 'selectlabel' => '', 'type' => 'select_multiple', 'options' => $options, 'bool8' => 0, 'size' => 0, 'storage_field' => 'columns[core_selected]')) . '</li>'; ?> </ul> </div> <script type="text/javascript"> jQuery(document).ready(function($) { //$('#columns_core_selected').isVisibleWhen('columns_core','1'); }); </script>
<div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_CONFIG_GLOBAL_LIST'); ?> </div> <ul class="adminformlist adminformlist-2cols"> <?php echo JCckDev::renderForm($cck['core_auto_redirection'], @$options['auto_redirect'], $config, array('defaultvalue' => 0, 'label' => 'CONFIG_AUTO_REDIRECTION', 'storage_field' => 'options[auto_redirect]')); echo JCckDev::renderForm($cck['core_ordering'], @$options['ordering'], $config, array('label' => 'CONFIG_ORDERING', 'selectlabel' => 'Inherited', 'storage_field' => 'options[ordering]')); echo JCckDev::renderForm('core_show_hide', @$options['show_list_title'], $config, array('defaultvalue' => 1, 'label' => 'CONFIG_SHOW_LIST_TITLE', 'storage_field' => 'options[show_list_title]')); echo '<li><label>' . JText::_('COM_CCK_CONFIG_TITLE_TAG_CLASS') . '</label>' . JCckDev::getForm($cck['core_tag_title'], @$options['tag_list_title'], $config, array('storage_field' => 'options[tag_list_title]')) . JCckDev::getForm($cck['core_class_title'], @$options['class_list_title'], $config, array('size' => 16, 'storage_field' => 'options[class_list_title]')) . '</li>'; echo JCckDev::renderForm($cck['core_show_hide2'], @$options['show_list_desc'], $config, array('defaultvalue' => 1, 'label' => 'CONFIG_SHOW_LIST_DESCRIPTION', 'storage_field' => 'options[show_list_desc]')); echo JCckDev::renderBlank(); echo JCckDev::renderForm('core_show_hide', @$options['show_list'], $config, array('defaultvalue' => 1, 'label' => 'CONFIG_SHOW_SEARCH_LIST', 'storage_field' => 'options[show_list]')); echo JCckDev::renderForm('core_show_hide2', @$options['show_form'], $config, array('defaultvalue' => 1, 'label' => 'CONFIG_SHOW_SEARCH_FORM', 'options' => 'Hide=0||Prepare=-1||Show=optgroup||Above=1||Below=2', 'storage_field' => 'options[show_form]')); echo JCckDev::renderForm('core_show_hide', @$options['show_items_number'], $config, array('defaultvalue' => 0, 'label' => 'CONFIG_SHOW_ITEMS_NUMBER', 'storage_field' => 'options[show_items_number]')); echo '<li><label>' . JText::_('COM_CCK_CONFIG_ITEMS_NUMBER_LABEL_CLASS') . '</label>' . JCckDev::getForm($cck['core_label_total'], @$options['label_items_number'], $config, array('storage_field' => 'options[label_items_number]')) . JCckDev::getForm($cck['core_class_total'], @$options['class_items_number'], $config, array('size' => 16, 'storage_field' => 'options[class_items_number]')) . '</li>'; echo JCckDev::renderForm('core_show_hide', @$options['show_pages_number'], $config, array('defaultvalue' => 1, 'label' => 'CONFIG_SHOW_PAGES_NUMBER', 'storage_field' => 'options[show_pages_number]')); echo JCckDev::renderForm($cck['core_show_pagination'], @$options['show_pagination'], $config, array('defaultvalue' => 0, 'label' => 'CONFIG_SHOW_PAGINATION', 'storage_field' => 'options[show_pagination]')); echo JCckDev::renderForm($cck['core_class_pagination'], @$options['class_pagination'], $config, array('label' => 'CONFIG_PAGINATION_CLASS', 'size' => 16, 'storage_field' => 'options[class_pagination]')); echo JCckDev::renderBlank('<input type="hidden" id="blank_li6" value="" />'); echo JCckDev::renderForm('core_dev_text', @$options['callback_pagination'], $config, array('label' => 'Config Pagination Callback', 'storage_field' => 'options[callback_pagination]')); ?> </ul> </div> <div class="seblod"> <div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_CONFIG_NO_ACCESS'); ?> </div> <ul class="adminformlist adminformlist-2cols"> <?php
$from_view = $this->item->master == 'content' ? $this->item->client == 'intro' ? 'CONTENT' : 'INTRO' : ($this->item->client == 'admin' ? 'SITE_FORM' : 'ADMIN_FORM'); $clone = $this->item->id ? JText::sprintf('COM_CCK_GET_FIELDS_FROM_VIEW', JText::_('COM_CCK_' . $from_view)) : ''; $positions = array(); ?> <div class="<?php echo $this->css['wrapper2'] . ' ' . $this->uix; ?> "> <div class="<?php echo $this->css['w70']; ?> " id="seblod-main"> <div class="seblod"> <div id="linkage_wrap"><?php echo JCckDev::getForm($cck['core_linkage'], 1, $config); ?> </div> <div class="legend top left"><?php echo JText::_('COM_CCK_CONSTRUCTION_' . $this->uix) . '<span class="mini">(' . JText::_('COM_CCK_FOR_VIEW_' . $this->item->client) . ')</span>'; ?> </div> <?php $style = array('1' => '', '2' => ' hide', '3' => ' hide', '4' => ' hide', '5' => ' hide', '6' => ' hide'); Helper_Workshop::displayHeader('type', $this->item->master); echo '<ul class="sortable connected" id="sortable1" myid="1">'; foreach ($this->positions as $pos) { if (isset($this->fields[$pos->name])) { $this->setPosition($pos->name); foreach ($this->fields[$pos->name] as $field) { $type_field = '';
defined('_JEXEC') or die; JCckDev::initScript('typo', $this->item); ?> <div class="seblod"> <?php echo JCckDev::renderLegend(JText::_('COM_CCK_CONSTRUCTION'), JText::_('PLG_CCK_FIELD_TYPO_' . $this->item->name . '_DESC')); ?> <ul class="adminformlist adminformlist-2cols"> <?php echo JCckDev::renderForm('core_bool', '', $config, array('label' => 'Display as Default', 'defaultvalue' => 'thumb1', 'options' => 'Image=value||Thumb1=thumb1||Thumb2=thumb2||Thumb3=thumb3||Thumb4=thumb4||Thumb5=thumb5||Thumb6=thumb6||Thumb7=thumb7||Thumb8=thumb8||Thumb9=thumb9||Thumb10=thumb10', 'storage_field' => 'thumb')); echo '<li><label>' . JText::_('COM_CCK_WIDTH_HEIGHT') . '</label>' . JCckDev::getForm('core_dev_select', '', $config, array('selectlabel' => 'Auto', 'options' => 'Fixed=1', 'storage_field' => 'thumb_custom')) . '<div id="thumb_width_custom">' . JCckDev::getForm('core_dev_text', '', $config, array('size' => 3, 'required' => 'required', 'storage_field' => 'thumb_width', 'attributes' => 'style="text-align:center"')) . '<span class="variation_value" style="margin-right: 5px;">x</span>' . JCckDev::getForm('core_dev_text', '', $config, array('size' => 3, 'required' => 'required', 'storage_field' => 'thumb_height', 'attributes' => 'style="text-align:center"')) . '<span class="variation_value">px</span>' . '</div></li>'; echo JCckDev::renderForm('core_bool', '', $config, array('label' => 'Display as Default 2x', 'defaultvalue' => '', 'selectlabel' => 'None', 'options' => 'Image=value||Thumb1=thumb1||Thumb2=thumb2||Thumb3=thumb3||Thumb4=thumb4||Thumb5=thumb5||Thumb6=thumb6||Thumb7=thumb7||Thumb8=thumb8||Thumb9=thumb9||Thumb10=thumb10', 'storage_field' => 'thumb_2x')); echo JCckDev::renderForm('core_bool', '', $config, array('label' => 'Display as Default 3x', 'defaultvalue' => '', 'selectlabel' => 'None', 'options' => 'Image=value||Thumb1=thumb1||Thumb2=thumb2||Thumb3=thumb3||Thumb4=thumb4||Thumb5=thumb5||Thumb6=thumb6||Thumb7=thumb7||Thumb8=thumb8||Thumb9=thumb9||Thumb10=thumb10', 'storage_field' => 'thumb_3x')); echo JCckDev::renderForm('core_bool', '', $config, array('label' => 'Modal Box', 'defaultvalue' => 'value', 'options' => 'Image=value||Thumb1=thumb1||Thumb2=thumb2||Thumb3=thumb3||Thumb4=thumb4||Thumb5=thumb5||Thumb6=thumb6||Thumb7=thumb7||Thumb8=thumb8||Thumb9=thumb9||Thumb10=thumb10||None=none', 'storage_field' => 'image')); echo '<li><label>' . JText::_('COM_CCK_WIDTH_HEIGHT') . '</label>' . JCckDev::getForm('core_dev_select', '', $config, array('selectlabel' => 'Auto', 'options' => 'Fixed=1||Inner=2||Max=3', 'storage_field' => 'image_custom')) . '<div id="image_width_custom">' . JCckDev::getForm('core_dev_text', '', $config, array('size' => 3, 'required' => 'required', 'storage_field' => 'image_width', 'attributes' => 'style="text-align:center"')) . '<span class="variation_value" style="margin-right: 5px;">x</span>' . JCckDev::getForm('core_dev_text', '', $config, array('size' => 3, 'required' => 'required', 'storage_field' => 'image_height', 'attributes' => 'style="text-align:center"')) . '<span class="variation_value">px</span>' . '</div></li>'; echo JCckDev::renderForm('core_dev_text', '', $config, array('label' => 'Image Alt Field', 'defaultvalue' => '', 'storage_field' => 'image_alt_fieldname')); echo JCckDev::renderForm('core_dev_select', '', $config, array('label' => 'Image Title', 'defaultvalue' => '1', 'selectlabel' => '', 'options' => 'None=0||Auto=1', 'storage_field' => 'image_title')); echo JCckDev::renderForm('core_dev_select', '', $config, array('label' => 'Path Paths', 'selectlabel' => '', 'defaultvalue' => 0, 'options' => 'Absolute=1||Relative=0', 'storage_field' => 'path_type')); 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')); ?> </ul> </div> <script type="text/javascript"> jQuery(document).ready(function($) { $('#thumb_width_custom').isVisibleWhen('thumb_custom','1',false); $('#image_width_custom').isVisibleWhen('image_custom','1,2,3',false); });
?> <div class="<?php echo $this->css['filter']; ?> " id="filter-bar"> <div class="<?php echo $this->css['filter_search']; ?> "> <?php echo JCckDev::getForm($cck['core_location_filter'], $this->state->get('filter.location'), $config, array('type' => 'select_simple', 'options' => 'Title=title||Templates=optgroup||Template Name=template_name')); echo JCckDev::getForm($cck['core_filter_input'], $this->escape($this->state->get('filter.search')), $config, array('attributes' => 'placeholder="' . JText::_('COM_CCK_ITEMS_SEARCH_FILTER') . '" style="text-align:center;"'), array('after' => "\n")); echo JCckDev::getForm($cck['core_filter_go'], '', $config, array('css' => $this->css['filter_search_button']), array('after' => "\n")); echo JCckDev::getForm($cck['core_filter_search'], '', $config, array('css' => $this->css['filter_search_button'], 'attributes' => 'onclick="' . $clear . 'this.form.submit();"'), array('after' => "\n")); echo JCckDev::getForm($cck['core_filter_clear'], '', $config, array('css' => $this->css['filter_search_button'], 'attributes' => 'onclick="document.getElementById(\'filter_search\').value=\'\';document.getElementById(\'filter_location\').value=\'title\';' . $clear . 'this.form.submit();"')); ?> </div> <?php if (JCck::on()) { ?> <!-- <div class="<?php echo $this->css['filter_search_list']; ?> "> <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC'); ?> </label> <?php
?> <ul class="adminformlist adminformlist-2cols"> <?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','');
$cck = JCckDev::preload(array('core_storage_mode', 'core_storage_location', 'core_storage_table', 'core_storage_field', 'core_storage_alter', 'core_storage_alter_type', 'core_storage_alter_table', 'core_required', 'core_script', 'core_attributes', 'core_dev_text')); ?> <li class="w100"> <?php echo '<label>' . JText::_('COM_CCK_STORAGE_LABEL') . '</label>'; echo JCckDev::getForm($cck['core_storage_mode'], $value, $config); echo JCckDev::getForm($cck['core_storage_location'], $config['item']->storage_location, $config); // echo JCckDev::getForm( $cck['core_storage_table'], $table, $config ); if ($config['item']->storage_field2) { $config['item']->storage_field .= '[' . $config['item']->storage_field2 . ']'; } echo JCckDev::getForm($cck['core_storage_field'], $config['item']->storage_field, $config); echo '<span id="storage_field_pick" name="storage_field_pick">«</span>'; echo JCckDev::getForm($cck['core_storage_alter'], '', $config); echo JCckDev::getForm($cck['core_storage_alter_type'], $alter_type_value, $config); echo JCckDev::getForm($cck['core_storage_alter_table'], '', $config, array('attributes' => 'style="width:45px;"')); echo '<img id="storage_alter_table_notice" class="hasTooltip qtip_cck" title="' . htmlspecialchars(JText::_('COM_CCK_ALTER_TABLE_NOTICE')) . '" src="components/com_cck/assets/images/16/icon-16-notice.png" alt="" />'; echo '<input type="hidden" id="storage_cck" name="storage_cck" value="' . $linked . '" />'; echo '<input type="hidden" id="force_storage" name="force_storage" value="0" />'; ?> </li> <?php $objects = JPluginHelper::getPlugin('cck_storage_location'); foreach ($objects as $o) { if (is_file(JPATH_SITE . '/plugins/cck_storage_location/' . $o->name . '/tmpl/edit.php')) { echo '<li id="op-' . $o->name . '" class="object-params"' . ($config['item']->storage_location == $o->name ? '' : ' style="display:none;"') . '><label>' . JText::_('COM_CCK_PARAMETERS') . '</label>'; include_once JPATH_SITE . '/plugins/cck_storage_location/' . $o->name . '/tmpl/edit.php'; echo '</li>'; } } ?>
<?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>
}); })(jQuery); '; $doc->addScriptDeclaration($js); $field = JCckDatabase::loadObject('SELECT id, title, name FROM #__cck_core_fields WHERE name = "' . $this->item->name . '"'); if ((int) $this->item->id > 0) { $fields = JCckDatabase::loadObjectList('SELECT DISTINCT a.title as text, a.name as value FROM #__cck_core_fields AS a' . ' LEFT JOIN #__cck_core_' . $this->item->type . '_field AS b ON b.fieldid = a.id' . ' WHERE b.' . $this->item->type . 'id = ' . $this->item->id . ' AND a.name != "' . $this->item->name . '" ORDER BY text'); $fields = is_array($fields) && count($fields) ? array_merge(array(JHtml::_('select.option', '', '- ' . JText::_('COM_CCK_ADD_A_FIELD') . ' -')), $fields) : array(); } else { $fields = array(); } $em = JCck::on() ? '31' : '33'; $css = 'div.collection-group-form{margin-right:0px;} ul.adminformlist-2cols li {width:' . $em . 'em!important; padding:0px 37px 0px 0px!important;} #custom{font-size:11px;}'; if (!$this->item->title) { $css .= '#collection-group-wrap-core_options__0{display:none;}'; } $doc->addStyleDeclaration($css); $selectors = explode(',', $this->item->title); ?> <?php echo '<div class="seblod"><div class="legend top center">' . $field->title . '</div></div>' . '<div class="seblod conditional">' . '<ul class="adminformlist adminformlist-2cols">' . '<li class="w100"><label>' . JText::_('COM_CCK_COMPUTATION') . '</label>' . JCckDev::getForm('core_dev_select', '', $config, array('defaultvalue' => 'sum', 'selectlabel' => 'Select', 'required' => 'required', 'storage_field' => 'math', 'options' => 'Custom=custom||Numeric=optgroup||Average=avg||Count=count||Format=format||Max=max||Min=min||Product=product||Sum=sum||String=optgroup||Concatenate=concatenate')) . JCckDev::getForm('core_computation_presets', '', $config, array('selectlabel' => 'Free')) . JCckDev::getForm('core_dev_text', '', $config, array('size' => 64, 'storage_field' => 'custom')) . '</li>' . '<li><label>' . JText::_('COM_CCK_FIELDS') . '</label>' . JCckDev::getForm('core_options', $selectors, $config, array('label' => 'Fields', 'rows' => 1, 'storage_field' => 'fields')) . JHtml::_('select.genericlist', $fields, 'fields_list', 'class="inputbox select" style="max-width:175px;"', 'value', 'text', '', 'fields_list') . '<input type="checkbox" id="toggle_attr" name="toggle_attr" value="1" /><label for="toggle_attr" class="toggle_attr">' . JText::_('COM_CCK_CUSTOM_ATTRIBUTE_AND_EVENT') . '</label>' . '</li>' . '<li><label>' . JText::_('COM_CCK_FORMAT_PRECISION') . '</label>' . JCckDev::getForm('core_computation_format', '', $config) . JCckDev::getForm('core_computation_precision', '', $config) . '</li>' . JCckDev::renderForm('core_computation_recalc', '', $config) . JCckDev::renderForm('core_computation_event', '', $config, array('defaultvalue' => 'change', 'options' => 'None=none||Event=optgroup||Event Change=change||Event Keyup=keyup', 'storage_field' => 'event'), array(), 'col2') . '</ul></div>'; ?> <div class="seblod inverted" style="display:none;"> <span class="star">¹ </span><span class="star2"><?php echo JText::_('COM_CCK_COMPUTATION_CUSTOM_ATTR'); ?> </span><?php echo ' ' . JText::_('COM_CCK_COMPUTATION_CUSTOM_ATTR_DESC'); ?> </div>
echo JCckDev::renderForm('core_elements', $this->item->elements, $config, array('bool' => 1)); echo JCckDev::renderForm('core_color', $this->item->color, $config); echo JCckDev::renderForm('core_introchar', $this->item->introchar, $config); echo JCckDev::renderForm('core_colorchar', $this->item->colorchar, $config); ?> </ul> <img id="toggle_acl" src="components/com_cck/assets/images/24/icon-24-acl.png" border="0" alt="" style="float: right; margin: 9px 9px 0px 0px; cursor: pointer;" /> </div> <div class="seblod" id="acl" style="display: none;"> <div class="legend top left"><?php echo JText::_('COM_CCK_PERMISSIONS'); ?> </div> <?php echo JCckDev::getForm('core_rules_folder', $this->item->asset_id, $config); ?> </div> </div> <div class="clr"></div> <div> <input type="hidden" name="task" value="" /> <input type="hidden" name="parent_db" value="<?php echo @$this->item->parent_db; ?> " /> <?php echo $this->form->getInput('id'); JCckDev::validate($config); echo JHtml::_('form.token');
echo JCckDev::renderForm($cck['core_dev_text'], @$options['data_integrity_excluded'], $config, array('label' => 'Exclude Fields', 'storage_field' => 'options[data_integrity_excluded]')); ?> </ul> </div> <?php if ($this->item->client == 'site') { ?> <div class="seblod"> <div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_CONFIG_GLOBAL_FORM'); ?> </div> <ul class="adminformlist adminformlist-2cols"> <?php echo JCckDev::renderForm($cck['core_show_hide'], @$options['show_form_title'], $config, array('defaultvalue' => 1, 'label' => 'CONFIG_SHOW_FORM_TITLE', 'storage_field' => 'options[show_form_title]')); echo '<li><label>' . JText::_('COM_CCK_CONFIG_TITLE_TAG_CLASS') . '</label>' . JCckDev::getForm($cck['core_tag_title'], @$options['tag_form_title'], $config, array('storage_field' => 'options[tag_form_title]')) . JCckDev::getForm($cck['core_class_title'], @$options['class_form_title'], $config, array('size' => 16, 'storage_field' => 'options[class_form_title]')) . '</li>'; echo JCckDev::renderForm($cck['core_show_hide2'], @$options['show_form_desc'], $config, array('defaultvalue' => 1, 'label' => 'CONFIG_SHOW_FORM_DESCRIPTION', 'storage_field' => 'options[show_form_desc]')); ?> </ul> </div> <?php } ?> <div class="seblod"> <div class="legend top left"><?php echo '⇒ ' . JText::_('COM_CCK_CONFIG_NO_ACCESS'); ?> </div> <ul class="adminformlist adminformlist-2cols"> <?php echo JCckDev::renderForm('core_message_style', @$options['message_style_no_access'], $config, array('defaultvalue' => 'error', 'storage_field' => 'options[message_style_no_access]'));
?> ><?php echo JText::_('JGLOBAL_ORDER_ASCENDING'); ?> </option> <option value="desc"<?php echo $selected_desc; ?> ><?php echo JText::_('JGLOBAL_ORDER_DESCENDING'); ?> </option> </select> <?php echo $this->pagination->getLimitBox(); ?> </div> <?php } ?> <div class="<?php echo $this->css['filter_select']; ?> "> <?php echo $this->html['filter_select_header']; echo JCckDev::getForm($cck['core_state_filter'], $this->state->get('filter.state'), $config, array('css' => 'small span12')); echo $this->html['filter_select_separator']; ?> </div> </div>
<?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::getForm($cck['core_storage_table'], $table, $config, array('required' => 'required'));