Beispiel #1
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$uix = JCck::getUIX();
$config = JCckDev::init(array('42', 'checkbox', 'colorpicker', 'jform_rules', 'radio', 'text', 'wysiwyg_editor'), true, array('item' => $this->item));
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>

<form action="<?php 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">

<div class="<?php 
echo $this->css['wrapper'];
?>
">
	<div class="seblod first">
        <ul class="spe spe_title">
            <?php 
echo JCckDev::renderForm('core_title_folder', $this->item->title, $config);
?>
        </ul>
Beispiel #2
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: edit2.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$config = JCckDev::init(array(), true, array('item' => $this->item, 'tmpl' => 'ajax'));
Helper_Include::addDependencies($this->getName(), $this->getLayout(), 'ajax');
$type = $this->item->type ? $this->item->type : 'text';
$layer = JPATH_PLUGINS . '/cck_field/' . $type . '/tmpl/edit.php';
$lang = JFactory::getLanguage();
$lang->load('plg_cck_field_' . $type, JPATH_ADMINISTRATOR, null, false, true);
if (is_file($layer)) {
    include_once $layer;
}
Beispiel #3
0
* @version 			SEBLOD 3.x Core ~ $Id: default.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$doc = JFactory::getDocument();
$user = JFactory::getUser();
$userId = $user->id;
$listOrder = $this->state->get('list.ordering');
$listDir = $this->state->get('list.direction');
$title2 = JText::_('COM_CCK_DOWNLOAD_THIS_VARIATION');
$top = !JCck::on() ? 'border-top' : 'content';
$config = JCckDev::init(array('42', 'button_submit', 'select_simple', 'text'), true, array('vName' => $this->vName));
$cck = JCckDev::preload(array('core_filter_input', 'core_filter_go', 'core_filter_search', 'core_filter_clear', 'core_location_filter'));
JText::script('COM_CCK_CONFIRM_DELETE');
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>

<form action="<?php 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName());
?>
" method="post" id="adminForm" name="adminForm">
<?php 
if (!empty($this->sidebar)) {
    ?>
	<div id="j-sidebar-container" class="span2">
		<?php 
    echo $this->sidebar;
Beispiel #4
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$config = JCckDev::init(array('42', 'radio', 'select_dynamic', 'select_simple', 'text', 'wysiwyg_editor'), true, array('item' => $this->item, 'vName' => $this->vName));
$cck = JCckDev::preload(array('core_title_template', 'core_folder', 'core_description', 'core_state', 'core_name_template', 'core_type_template', 'core_featured'));
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>

<form action="<?php 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">

<div class="<?php 
echo $this->css['wrapper'];
?>
">
	<div class="seblod first">       
        <ul class="spe spe_title">
            <?php 
echo JCckDev::renderForm($cck['core_title_template'], $this->item->title, $config);
?>
        </ul>
Beispiel #5
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: _debug.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
// Init
jimport('joomla.error.profiler');
$db = JFactory::getDbo();
$config = JCckDev::init();
$cck = JCckDev::preload(array(''));
$doc = JFactory::getDocument();
$profiler = new JProfiler();
// -- DEBUG:START -- //
$js = '';
$js2 = '';
$js_script = '';
$js_script = JURI::root(true) . $js_script;
echo '<br /><div style="color: #999999; font-size: 10px; font-weight: bold;">-------- Debug --------<br />';
// -------- -------- -------- -------- -------- -------- -------- -------- //
$n = 10000;
$profiler = new JProfiler();
for ($i = 0; $i < $n; $i++) {
    //
}
$profiler_res = $profiler->mark('afterDebug');
Beispiel #6
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$config = JCckDev::init(array('42', 'checkbox', 'field_x', 'jform_menuitem', 'password', 'radio', 'select_dynamic', 'select_numeric', 'select_simple', 'text', 'textarea', 'wysiwyg_editor'), true, array('item' => $this->item, 'vName' => $this->vName));
$cck = JCckDev::preload(array('core_title_site', 'core_name_site', 'core_description', 'core_state', 'core_site_name', 'core_site_pagetitles', 'core_site_metadesc', 'core_site_metakeys', 'core_site_homepage', 'core_site_offline', 'core_site_language', 'core_site_template_style', 'core_guest', 'core_guest_only_group', 'core_guest_only_viewlevel', 'core_groups', 'core_viewlevels'));
$hasOpts = false;
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>

<form action="<?php 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">

<div class="<?php 
echo $this->css['wrapper'];
?>
">
	<div class="seblod first">       
        <ul class="spe spe_title">
            <?php 
echo JCckDev::renderForm($cck['core_title_site'], $this->item->title, $config);
?>
Beispiel #7
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: edit2.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$config = JCckDev::init(array(), true, array('item' => $this->item));
$cck = JCckDev::preload(array('core_pagination', 'core_cache', 'core_cache2', 'core_dev_text', 'core_limit', 'core_sef', 'core_prepare_content', 'core_debug', 'core_auto_redirection', 'core_ordering', 'core_tag_title', 'core_class_title', 'core_show_hide2', 'core_action_no_access', 'core_redirection_url_no_access', 'core_label_total', 'core_class_total', 'core_show_pagination', 'core_class_pagination', 'core_message_style', 'core_action', 'core_message', 'core_template'));
Helper_Include::addDependencies($this->getName(), $this->getLayout(), 'ajax');
if ($this->item->client == 'list') {
    $block_item = strpos(@$this->style->params, '"cck_client_item":"1"') !== false || strpos(@$this->style->params, '"cck_client_item":"2"') !== false ? 0 : 1;
} else {
    if ($this->item->template_list) {
        $params = JCckDatabase::loadResult('SELECT params FROM #__template_styles WHERE id = ' . (int) $this->item->template_list);
        $block_item = strpos($params, '"cck_client_item":"1"') !== false || strpos($params, '"cck_client_item":"2"') !== false ? 0 : 1;
    } else {
        $block_item = 1;
    }
}
?>

<div class="layers" id="layer_fields" <?php 
echo $this->item->layer == 'fields' ? '' : 'style="display: none;"';
?>
><?php 
include_once dirname(__FILE__) . '/edit_fields_' . $this->uix . '.php';
Beispiel #8
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: computation.php sebastienheraud $
* @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;
Helper_Include::addDependencies('box', 'edit');
$config = JCckDev::init(array('select_simple', 'text', 'textarea'), true, array());
$doc = JFactory::getDocument();
$doc->addStyleSheet(JROOT_MEDIA_CCK . '/scripts/jquery-colorbox/css/colorbox.css');
$doc->addScript(JROOT_MEDIA_CCK . '/scripts/jquery-colorbox/js/jquery.colorbox-min.js');
$event = str_replace(array("\r", "\n", "\t"), '', JCckDev::getForm('core_computation_event', '', $config, array('attributes' => 'style="width:60px; padding:5px 2px;  text-transform:lowercase;"')));
$event = str_replace('events_', 'events__0', $event);
$event = '';
// next time..
$js = '
			(function ($){
				JCck.Dev = {
					reset: function() {
						var elem = "ffp_' . $this->item->name . '_computation";
						parent.jQuery("#"+elem).val("");
						var text = "' . JText::_('COM_CCK_ADD') . '";
						parent.jQuery("#"+elem).next("span").html(text);
						var elem = "ffp_' . $this->item->name . '_computation_options";
						parent.jQuery("#"+elem).val("");
						parent.jQuery("#"+elem).next("span").html("");
Beispiel #9
0
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
Helper_Include::addDependencies($this->getName(), $this->getLayout());
jimport('joomla.filesystem.file');
$config = JCckDev::init(array(), true);
$isImage = JFile::getExt($this->file) == 'png' || JFile::getExt($this->file) == 'jpg' ? 1 : 0;
$doc = JFactory::getDocument();
?>

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

<div id="titlebox" style="float:left; color:#eb8207; font-size:0.90em; font-weight:bold; text-transform:uppercase;"></div>
<div id="toolbarBox" style="float: right; text-align: right; padding-right: 8px; padding-bottom: 8px; font-weight: bold;">
    <div style="float: left; padding-right: 8px;" id="messageBox"></div>
    <?php 
if (JCck::on()) {
    ?>
		<?php 
    if ($isImage == 1) {
Beispiel #10
0
* @version 			SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2009 - 2016 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$lang = JFactory::getLanguage();
$my = JFactory::getUser();
$tmpl = $app->input->getString('tmpl', '');
$wrap = $tmpl ? $this->css['wrapper_tmpl'] : $this->css['wrapper'];
$ajax_load = 'components/com_cck/assets/styles/seblod/images/ajax.gif';
$cck = JCckDev::preload(array('core_title_field', 'core_folder', 'core_name_field', 'core_state', 'core_type', 'core_description'));
$config = JCckDev::init(array(), true, array('item' => $this->item, 'vName' => $this->vName, 'tmpl' => ''));
$key = 'COM_CCK_TRANSLITERATE_CHARACTERS';
if ($lang->hasKey($key) == 1) {
    $transliterate = JText::_($key);
    $transliterate = '{"' . str_replace(array(':', '||'), array('":"', '","'), $transliterate) . '"}';
} else {
    $transliterate = '{}';
}
Helper_Include::addDependencies($this->getName(), $this->getLayout(), $tmpl);
if (JCck::on()) {
    JHtml::_('bootstrap.tooltip');
}
?>

<form action="<?php 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
<?php

/**
* @version 			SEBLOD 3.x Core ~ $Id: edit.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				http://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2013 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/
defined('_JEXEC') or die;
$config = JCckDev::init(array('42', 'text'), false, array('item' => $this->item, 'vName' => $this->vName));
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>

<script type="text/javascript">
Joomla.submitbutton = function(task)
{
	Joomla.submitform(task, document.getElementById('adminForm'));
}
</script>

<form action="<?php 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&layout=edit&id=' . (int) $this->item->id);
?>
" method="post" id="adminForm" name="adminForm">

<div class="<?php 
echo $this->css['wrapper'];
?>
">
Beispiel #12
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;
$uix = JCck::getUIX();
$css = array();
$doc = JFactory::getDocument();
$images = array('0' => '16/icon-16-download.png', '1' => '24/icon-24-download.png');
$user = JFactory::getUser();
$userId = $user->id;
$listOrder = $this->state->get('list.ordering');
$listDir = $this->state->get('list.direction');
$link2 = 'index.php?option=' . $this->option . '&task=folder.export&id=';
$title2 = JText::_('COM_CCK_DOWNLOAD_THIS_APP');
$top = !JCck::on() ? 'border-top' : 'content';
$config = JCckDev::init(array('42', 'button_submit', 'checkbox', 'radio', 'select_dynamic', 'select_numeric', 'select_simple', 'text'), true, array('vName' => ''));
$cck = JCckDev::preload(array('core_filter_input', 'core_filter_go', 'core_filter_search', 'core_filter_clear', 'core_location_filter', 'core_folder_filter', 'core_state_filter', 'core_depth_filter', 'core_app_stuff'));
JText::script('COM_CCK_CONFIRM_DELETE');
Helper_Include::addDependencies($this->getName(), $this->getLayout());
?>

<form action="<?php 
echo JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName());
?>
" method="post" id="adminForm" name="adminForm">
<?php 
if (!empty($this->sidebar)) {
    ?>
	<div id="j-sidebar-container" class="span2">
		<?php 
    echo $this->sidebar;