0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: edit.php.tar
home/academiac/www/administrator/templates/hathor/html/com_modules/module/edit.php 0000644 00000012101 15137171334 0024547 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage Templates.hathor * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @since 1.6 */ // No direct access. defined('_JEXEC') or die; JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); JHtml::_('behavior.combobox'); $hasContent = empty($this->item->module) || $this->item->module == 'custom' || $this->item->module == 'mod_custom'; $script = "Joomla.submitbutton = function(task) { if (task == 'module.cancel' || document.formvalidator.isValid(document.id('module-form'))) {"; if ($hasContent) { $script .= $this->form->getField('content')->save(); } $script .= " Joomla.submitform(task, document.getElementById('module-form')); if (self != top) { window.top.setTimeout('window.parent.SqueezeBox.close()', 1000); } } else { alert('".$this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'))."'); } }"; JFactory::getDocument()->addScriptDeclaration($script); ?> <div class="module-edit"> <form action="<?php echo JRoute::_('index.php?option=com_modules&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="module-form" class="form-validate"> <div class="col main-section"> <fieldset class="adminform"> <legend><?php echo JText::_('JDETAILS'); ?></legend> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('title'); ?> <?php echo $this->form->getInput('title'); ?></li> <li><?php echo $this->form->getLabel('showtitle'); ?> <?php echo $this->form->getInput('showtitle'); ?></li> <li><?php echo $this->form->getLabel('position'); ?> <?php echo $this->form->getInput('custom_position'); ?> <label id="jform_custom_position-lbl" for="jform_custom_position" class="element-invisible"><?php echo JText::_('TPL_HATHOR_COM_MODULES_CUSTOM_POSITION_LABEL');?></label> <?php echo $this->form->getInput('position'); ?></li> <?php if ((string) $this->item->xml->name != 'Login Form'): ?> <li><?php echo $this->form->getLabel('published'); ?> <?php echo $this->form->getInput('published'); ?></li> <?php endif; ?> <li><?php echo $this->form->getLabel('access'); ?> <?php echo $this->form->getInput('access'); ?></li> <li><?php echo $this->form->getLabel('ordering'); ?> <?php echo $this->form->getInput('ordering'); ?></li> <?php if ((string) $this->item->xml->name != 'Login Form'): ?> <li><?php echo $this->form->getLabel('publish_up'); ?> <?php echo $this->form->getInput('publish_up'); ?></li> <li><?php echo $this->form->getLabel('publish_down'); ?> <?php echo $this->form->getInput('publish_down'); ?></li> <?php endif; ?> <li><?php echo $this->form->getLabel('language'); ?> <?php echo $this->form->getInput('language'); ?></li> <li><?php echo $this->form->getLabel('note'); ?> <?php echo $this->form->getInput('note'); ?></li> <?php if ($this->item->id) : ?> <li><?php echo $this->form->getLabel('id'); ?> <?php echo $this->form->getInput('id'); ?></li> <?php endif; ?> <li><?php echo $this->form->getLabel('module'); ?> <?php echo $this->form->getInput('module'); ?> <span class="faux-input"><?php if ($this->item->xml) echo ($text = (string) $this->item->xml->name) ? JText::_($text) : $this->item->module;else echo JText::_(COM_MODULES_ERR_XML);?></span></li> <li><?php echo $this->form->getLabel('client_id'); ?> <input type="text" size="35" id="jform_client_id" value="<?php echo $this->item->client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?> " class="readonly" readonly="readonly" /> <?php echo $this->form->getInput('client_id'); ?></li> </ul> <div class="clr"></div> <?php if ($this->item->xml) : ?> <?php if ($text = trim($this->item->xml->description)) : ?> <span class="faux-label"> <?php echo JText::_('COM_MODULES_MODULE_DESCRIPTION'); ?> </span> <div class="clr"></div> <div class="readonly mod-desc extdescript"> <?php echo JText::_($text); ?> </div> <?php endif; ?> <?php else : ?> <?php echo JText::_('COM_MODULES_ERR_XML'); ?> <?php endif; ?> <div class="clr"></div> </fieldset> </div> <div class="col options-section"> <?php echo JHtml::_('sliders.start', 'module-sliders'); ?> <?php echo $this->loadTemplate('options'); ?> <?php echo JHtml::_('sliders.end'); ?> </div> <?php if ($hasContent) : ?> <div class="col main-section"> <fieldset class="adminform"> <legend><?php echo JText::_('COM_MODULES_CUSTOM_OUTPUT'); ?></legend> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('content'); ?> <div class="clr"></div> <?php echo $this->form->getInput('content'); ?></li> </ul> </fieldset> </div> <?php endif; ?> <?php if ($this->item->client_id == 0) :?> <div class="col main-section"> <?php echo $this->loadTemplate('assignment'); ?> </div> <?php endif; ?> <div> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </div> </form> </div> home/academiac/www/administrator/templates/hathor/html/com_menus/item/edit.php 0000644 00000012050 15137171544 0023705 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage Templates.hathor * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @since 1.6 */ defined('_JEXEC') or die; // Include the component HTML helpers. JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); // Load the tooltip behavior. JHtml::_('behavior.framework'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); JHtml::_('behavior.modal'); $canDo = MenusHelper::getActions(); ?> <script type="text/javascript"> Joomla.submitbutton = function(task, type) { if (task == 'item.setType' || task == 'item.setMenuType') { if(task == 'item.setType') { document.id('item-form').elements['jform[type]'].value = type; document.id('fieldtype').value = 'type'; } else { document.id('item-form').elements['jform[menutype]'].value = type; } Joomla.submitform('item.setType', document.id('item-form')); } else if (task == 'item.cancel' || document.formvalidator.isValid(document.id('item-form'))) { Joomla.submitform(task, document.id('item-form')); } else { // special case for modal popups validation response $$('#item-form .modal-value.invalid').each(function(field){ var idReversed = field.id.split("").reverse().join(""); var separatorLocation = idReversed.indexOf('_'); var name = idReversed.substr(separatorLocation).split("").reverse().join("")+'name'; document.id(name).addClass('invalid'); }); } } </script> <div class="menuitem-edit"> <form action="<?php echo JRoute::_('index.php?option=com_menus&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="item-form" class="form-validate"> <div class="col main-section"> <fieldset class="adminform"> <legend><?php echo JText::_('COM_MENUS_ITEM_DETAILS');?></legend> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('type'); ?> <?php echo $this->form->getInput('type'); ?></li> <li><?php echo $this->form->getLabel('title'); ?> <?php echo $this->form->getInput('title'); ?></li> <?php if ($this->item->type =='url'): ?> <?php $this->form->setFieldAttribute('link', 'readonly', 'false');?> <li><?php echo $this->form->getLabel('link'); ?> <?php echo $this->form->getInput('link'); ?></li> <?php endif; ?> <?php if ($this->item->type == 'alias'): ?> <li> <?php echo $this->form->getLabel('aliastip'); ?></li> <?php endif; ?> <?php if ($this->item->type !='url'): ?> <li><?php echo $this->form->getLabel('alias'); ?> <?php echo $this->form->getInput('alias'); ?></li> <?php endif; ?> <li><?php echo $this->form->getLabel('note'); ?> <?php echo $this->form->getInput('note'); ?></li> <?php if ($this->item->type !=='url'): ?> <li><?php echo $this->form->getLabel('link'); ?> <?php echo $this->form->getInput('link'); ?></li> <?php endif ?> <?php if ($canDo->get('core.edit.state')) : ?> <li><?php echo $this->form->getLabel('published'); ?> <?php echo $this->form->getInput('published'); ?></li> <?php endif ?> <li><?php echo $this->form->getLabel('access'); ?> <?php echo $this->form->getInput('access'); ?></li> <li><?php echo $this->form->getLabel('menutype'); ?> <?php echo $this->form->getInput('menutype'); ?></li> <li><?php echo $this->form->getLabel('parent_id'); ?> <?php echo $this->form->getInput('parent_id'); ?></li> <li><?php echo $this->form->getLabel('menuordering'); ?> <?php echo $this->form->getInput('menuordering'); ?></li> <li><?php echo $this->form->getLabel('browserNav'); ?> <?php echo $this->form->getInput('browserNav'); ?></li> <?php if ($canDo->get('core.edit.state')) : ?> <?php if ($this->item->type == 'component') : ?> <li><?php echo $this->form->getLabel('home'); ?> <?php echo $this->form->getInput('home'); ?></li> <?php endif; ?> <?php endif; ?> <li><?php echo $this->form->getLabel('language'); ?> <?php echo $this->form->getInput('language'); ?></li> <li><?php echo $this->form->getLabel('template_style_id'); ?> <?php echo $this->form->getInput('template_style_id'); ?></li> <li><?php echo $this->form->getLabel('id'); ?> <?php echo $this->form->getInput('id'); ?></li> </ul> </fieldset> </div> <div class="col options-section"> <?php echo JHtml::_('sliders.start', 'menu-sliders-'.$this->item->id); ?> <?php //Load parameters. echo $this->loadTemplate('options'); ?> <div class="clr"></div> <?php if (!empty($this->modules)) : ?> <?php echo JHtml::_('sliders.panel', JText::_('COM_MENUS_ITEM_MODULE_ASSIGNMENT'), 'module-options'); ?> <fieldset> <?php echo $this->loadTemplate('modules'); ?> </fieldset> <?php endif; ?> <?php echo JHtml::_('sliders.end'); ?> <input type="hidden" name="task" value="" /> <?php echo $this->form->getInput('component_id'); ?> <?php echo JHtml::_('form.token'); ?> <input type="hidden" id="fieldtype" name="fieldtype" value="" /> </div> </form> <div class="clr"></div> </div> home/academiac/www/administrator/templates/hathor/html/com_newsfeeds/newsfeed/edit.php 0000644 00000010500 15137203432 0025371 0 ustar 00 <?php /** * @package Joomla.Administrator * @subpackage Templates.hathor * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @since 1.6 */ // No direct access. defined('_JEXEC') or die; // Include the HTML helpers. JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html'); JHtml::_('behavior.tooltip'); JHtml::_('behavior.formvalidation'); JHtml::_('behavior.keepalive'); ?> <script type="text/javascript"> Joomla.submitbutton = function(task) { if (task == 'newsfeed.cancel' || document.formvalidator.isValid(document.id('newsfeed-form'))) { Joomla.submitform(task, document.getElementById('newsfeed-form')); } else { alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>'); } } </script> <form action="<?php echo JRoute::_('index.php?option=com_newsfeeds&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="newsfeed-form" class="form-validate"> <div class="col main-section"> <fieldset class="adminform"> <legend><?php echo empty($this->item->id) ? JText::_('COM_NEWSFEEDS_NEW_NEWSFEED') : JText::sprintf('COM_NEWSFEEDS_EDIT_NEWSFEED', $this->item->id); ?></legend> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('name'); ?> <?php echo $this->form->getInput('name'); ?></li> <li><?php echo $this->form->getLabel('alias'); ?> <?php echo $this->form->getInput('alias'); ?></li> <li><?php echo $this->form->getLabel('link'); ?> <?php echo $this->form->getInput('link'); ?></li> <li><?php echo $this->form->getLabel('catid'); ?> <?php echo $this->form->getInput('catid'); ?></li> <li><?php echo $this->form->getLabel('published'); ?> <?php echo $this->form->getInput('published'); ?></li> <li><?php echo $this->form->getLabel('access'); ?> <?php echo $this->form->getInput('access'); ?></li> <li><?php echo $this->form->getLabel('ordering'); ?> <?php echo $this->form->getInput('ordering'); ?></li> <li><?php echo $this->form->getLabel('language'); ?> <?php echo $this->form->getInput('language'); ?></li> <li><?php echo $this->form->getLabel('id'); ?> <?php echo $this->form->getInput('id'); ?></li> </ul> </fieldset> </div> <div class="col options-section"> <?php echo JHtml::_('sliders.start', 'newsfeed-sliders-'.$this->item->id, array('useCookie'=>1)); ?> <?php echo JHtml::_('sliders.panel', JText::_('JGLOBAL_FIELDSET_PUBLISHING'), 'publishing-details'); ?> <fieldset class="panelform"> <legend class="element-invisible"><?php echo JText::_('JGLOBAL_FIELDSET_PUBLISHING'); ?></legend> <ul class="adminformlist"> <li><?php echo $this->form->getLabel('created_by'); ?> <?php echo $this->form->getInput('created_by'); ?></li> <li><?php echo $this->form->getLabel('created_by_alias'); ?> <?php echo $this->form->getInput('created_by_alias'); ?></li> <li><?php echo $this->form->getLabel('created'); ?> <?php echo $this->form->getInput('created'); ?></li> <li><?php echo $this->form->getLabel('publish_up'); ?> <?php echo $this->form->getInput('publish_up'); ?></li> <li><?php echo $this->form->getLabel('publish_down'); ?> <?php echo $this->form->getInput('publish_down'); ?></li> <?php if ($this->item->modified_by) : ?> <li><?php echo $this->form->getLabel('modified_by'); ?> <?php echo $this->form->getInput('modified_by'); ?></li> <li><?php echo $this->form->getLabel('modified'); ?> <?php echo $this->form->getInput('modified'); ?></li> <?php endif; ?> <li><?php echo $this->form->getLabel('numarticles'); ?> <?php echo $this->form->getInput('numarticles'); ?></li> <li><?php echo $this->form->getLabel('cache_time'); ?> <?php echo $this->form->getInput('cache_time'); ?></li> <li><?php echo $this->form->getLabel('rtl'); ?> <?php echo $this->form->getInput('rtl'); ?></li> <li><?php //echo $this->form->getLabel('xreference'); // Missing from schema! ?> <?php //echo $this->form->getInput('xreference'); ?></li> </ul> </fieldset> <?php echo $this->loadTemplate('params'); ?> <?php echo $this->loadTemplate('metadata'); ?> <?php echo JHtml::_('sliders.end'); ?> <input type="hidden" name="task" value="" /> <?php echo JHtml::_('form.token'); ?> </div> <div class="clr"></div> </form> home/academiac/www/administrator/components/com_virtuemart/views/user/tmpl/edit.php 0000604 00000005005 15137215444 0025043 0 ustar 00 <?php /** * * Modify user form view * * @package VirtueMart * @subpackage User * @author Oscar van Eijk * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: edit.php 6285 2012-07-16 16:11:17Z alatak $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); AdminUIHelper::startAdminArea($this); // Implement Joomla's form validation JHTML::_('behavior.formvalidation') ?> <style type="text/css"> .invalid { border-color: #f00; background-color: #ffd; color: #000; } label.invalid { background-color: #fff; color: #f00; } </style> <form method="post" id="adminForm" name="adminForm" action="index.php" enctype="multipart/form-data" class="form-validate" onSubmit="return myValidator(this);"> <?php $tabarray = array(); if($this->userDetails->user_is_vendor){ $tabarray['vendor'] = 'COM_VIRTUEMART_VENDOR'; $tabarray['vendorletter'] = 'COM_VIRTUEMART_VENDORLETTER'; } $tabarray['shopper'] = 'COM_VIRTUEMART_SHOPPER_FORM_LBL'; //$tabarray['user'] = 'COM_VIRTUEMART_USER_FORM_TAB_GENERALINFO'; if ($this->shipToId != 0 || $this->new) { $tabarray['shipto'] = 'COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'; } if (($_ordcnt = count($this->orderlist)) > 0) { $tabarray['orderlist'] = 'COM_VIRTUEMART_ORDER_LIST_LBL'; } AdminUIHelper::buildTabs ( $this, $tabarray,'vm-user'); ?> <?php echo $this->addStandardHiddenToForm(); ?> </form> <script language="javascript"> function myValidator(f) { if (f.task.value=='cancel') { return true; } if (document.formvalidator.isValid(f)) { f.submit(); return true; } else { var msg = '<div><dl id="system-message" style="display: block;"><dt class="message">Message</dt><dd class="message message"><ul><li>'; msg += "<?php echo JText::sprintf("COM_VIRTUEMART_USER_FORM_MISSING_REQUIRED_OTHER_TAB",JText::_("COM_VIRTUEMART_SHOPPER_FORM_LBL") ) ?>"; msg += '</li></ul></dd></dl><div>'; jQuery('#element-box').before(msg); } //Funny, works for chrome etc, but throws error on FF, but the error stops the script, so the effect is the same jQuery().event.preventDefault(); return false; } </script> <?php AdminUIHelper::endAdminArea(); ?> home/academiac/www/administrator/components/com_chronoforms/views/edit.php 0000604 00000037526 15137230723 0023260 0 ustar 00 <?php /** * CHRONOFORMS version 4.0 * Copyright (c) 2006 - 2011 Chrono_Man, ChronoEngine.com. All rights reserved. * Author: Chrono_Man (ChronoEngine.com) * @license GNU/GPL * Visit http://www.ChronoEngine.com for regular updates and information. **/ defined('_JEXEC') or die('Restricted access'); ?> <?php require_once(JPATH_SITE.DS."administrator".DS."components".DS."com_chronoforms".DS."helpers".DS."html_helper.php"); $HtmlHelper = new HtmlHelper(); $HtmlHelper->data = $form; $params = new JParameter(''); if(!empty($form)){ $params = new JParameter($form->params); } $mainframe = JFactory::getApplication(); $database = JFactory::getDBO(); require_once(JPATH_SITE.DS."administrator".DS."components".DS."com_chronoforms".DS."helpers".DS."tabs_helper.php"); $TabsHelper = new TabsHelper(); $jversion = new JVersion(); ?> <script type="text/javascript" src="<?php echo JURI::Base(); ?>components/com_chronoforms/js/tabs.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo JURI::Base(); ?>components/com_chronoforms/css/frontforms.css"> <link rel="stylesheet" type="text/css" href="<?php echo JURI::Base(); ?>components/com_chronoforms/css/tabs_style.css"> <script language="javascript" type="text/javascript"> <?php if($jversion->RELEASE > 1.5): ?> Joomla.submitbutton = function(pressbutton) { var form = document.adminForm; if(pressbutton == "cancel"){ submitform(pressbutton); return; } var patt1 = new RegExp(/^[a-zA-Z0-9_-]+$/); if(!patt1.test($('chronoform_name').get('value').trim())){ alert("Please enter a valid form name with alphanumeric characters, underscore_ or a dash -."); return false; }else{ submitform(pressbutton); } } <?php else: ?> function submitbutton(pressbutton) { var form = document.adminForm; if(pressbutton == "cancel"){ submitform(pressbutton); return; } var patt1 = new RegExp(/^[a-zA-Z0-9_-]+$/); if(!patt1.test($('chronoform_name').get('value').trim())){ alert("Please enter a valid form name with alphanumeric characters, underscore_ or a dash -."); return false; }else{ submitform(pressbutton); } } <?php endif; ?> </script> <form action="index.php?option=com_chronoforms" method="post" name="adminForm" id="adminForm"> <h2 style='margin: 3px 0;'> <?php if(!empty($form)){ echo $form->name; }else{ echo 'New Form...'; } ?> </h2> <?php echo $TabsHelper->Header(array('general' => 'General', 'code' => 'Code', 'jsval' => 'JS Validation', 'admin_actions' => 'Admin actions', 'apps' => 'Form Applications', 'data_view' => 'Data View')); ?> <?php echo $TabsHelper->tabStart('general'); ?> <?php echo $HtmlHelper->input('name', array('type' => 'text', 'id' => 'chronoform_name', 'label' => 'Form name', 'class' => 'medium_input', 'smalldesc' => 'Unique form name without spaces or any special characters, underscores _ or dashes -')); ?> <?php echo $HtmlHelper->input('published', array('type' => 'select', 'label' => 'Published', 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 1)); ?> <?php echo $HtmlHelper->input('params[form_mode]', array('type' => 'select', 'label' => 'Form Wizard Mode', 'value' => $params->get('form_mode', 'advanced'), 'options' => array('advanced' => 'Advanced (Default)', 'easy' => 'Easy'), 'default' => 'advanced', 'smalldesc' => 'Choose your form wizard mode, the advanced mode is the default one, you will have all the Chronoforms V4 tools enabled in the wizard, the Easy mode is easier to use though and is enough to build strong simple forms.')); ?> <?php echo $HtmlHelper->input('params[form_method]', array('type' => 'select', 'label' => 'Form method', 'value' => $params->get('form_method', 'post'), 'options' => array('post' => 'Post', 'get' => 'Get', 'file' => 'File'), 'default' => 'post', 'smalldesc' => 'Choose your form method, File is ncessary to get file uploads working.')); ?> <?php echo $HtmlHelper->input('params[auto_detect_settings]', array('type' => 'select', 'label' => 'Auto Detect Settings', 'value' => $params->get('auto_detect_settings', 1), 'options' => array(0 => 'No', 1 => 'Yes (Advised)'), 'default' => 1, 'smalldesc' => 'Should the form detect some settings and apply them automatically ? settings like validtaion and files uploading will be detected based on your form code.')); ?> <?php echo $HtmlHelper->input('params[load_files]', array('type' => 'select', 'label' => 'Load Chronoforms files', 'value' => $params->get('load_files', 1), 'options' => array(0 => 'Disable completely', 1 => 'Load necessary files', 2 => 'Load ALL files!'), 'default' => 1)); ?> <?php echo $HtmlHelper->input('params[tight_layout]', array('type' => 'select', 'label' => 'Tight Layout', 'value' => $params->get('tight_layout', 0), 'options' => array(0 => 'Normal', 1 => 'Tight'), 'default' => 0, 'smalldesc' => 'Should the form load the regular CSS or load a tight CSS (less spaced out, smaller fields and less padding..etc) ?')); ?> <?php echo $HtmlHelper->input('params[action_url]', array('type' => 'text', 'label' => 'Submit URL', 'class' => 'big_input', 'value' => $params->get('action_url', ''), 'smalldesc' => 'Adding a submit URL will disable all the form "on submit" event functions.')); ?> <?php echo $HtmlHelper->input('params[form_tag_attach]', array('type' => 'text', 'label' => 'Form tag attachment', 'class' => 'big_input', 'value' => htmlspecialchars($params->get('form_tag_attach', '')), 'smalldesc' => 'Some data you may like to include into the < form .... > tag, e.g: onsubmit="someJSFunction();".')); ?> <?php //echo $HtmlHelper->input('params[submit_action]', array('type' => 'select', 'label' => 'Submit action', 'value' => $params->get('submit_action', 'submit'), 'options' => array('submit' => 'Submit', 'self' => 'Self'), 'default' => 'submit', 'smalldesc' => 'Select wheather the form should be submitted to usual onSubmit event or to the same loading event.')); ?> <?php echo $HtmlHelper->input('params[add_form_tags]', array('type' => 'select', 'label' => 'Add form tags', 'value' => $params->get('add_form_tags', 1), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 1, 'smalldesc' => 'You may have a good reason to disable the form tags, but in this case your form will not be submittable.')); ?> <?php echo $HtmlHelper->input('params[relative_url]', array('type' => 'select', 'label' => 'Relative URL', 'value' => $params->get('relative_url', 1), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 1, 'smalldesc' => 'do you want the action url to be relative to the current loaded form url ? useful to make your form submit to the same page its currently loaded at, when its inside a content page or a module.')); ?> <?php echo $HtmlHelper->input('params[dynamic_files]', array('type' => 'select', 'label' => 'Dynamic Files', 'value' => $params->get('dynamic_files', 0), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 0, 'smalldesc' => 'Load the form JS/CSS code inside a dynamic file instead of the page head, useful in few situations and to tidy up the page header.')); ?> <?php //echo $HtmlHelper->input('params[handle_arrays]', array('type' => 'select', 'label' => 'Handle arrays', 'value' => $params->get('handle_arrays', 1), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 1, 'smalldesc' => 'Submitted values of type arrays (like checkboxes groups) will be concatenated into 1 string.')); ?> <?php //echo $HtmlHelper->input('params[handle_arrays_skipped]', array('type' => 'text', 'label' => 'Skipped array fields', 'class' => 'big_input', 'smalldesc' => 'List of fields names which may hold arrays and should be skipped of being handled, e.g: field1,field2,..etc')); ?> <?php //echo $HtmlHelper->input('params[debug]', array('type' => 'select', 'label' => 'Debug', 'value' => $params->get('debug', 0), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 0, 'smalldesc' => 'The debug should show some useful info about the form data and flow when loaded and/or submitted.')); ?> <?php //echo $HtmlHelper->input('params[enable_plugins]', array('type' => 'select', 'label' => 'Enable Joomla plugins', 'value' => $params->get('enable_plugins', 0), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 0, 'smalldesc' => 'You can enable Joomla plugins inside your form, may cause unexpected results sometimes.')); ?> <?php echo $HtmlHelper->input('params[show_top_errors]', array('type' => 'select', 'label' => 'Show Top Errors', 'value' => $params->get('show_top_errors', 1), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 1, 'smalldesc' => 'Do you want any form errors to be listed above the form ?')); ?> <fieldset> <legend>DatePicker Settings</legend> <?php echo $HtmlHelper->input('params[datepicker_config]', array('type' => 'text', 'label' => 'DateTime Picker config', 'class' => 'big_input', 'style' => 'width:700px;', 'maxlength' => 500, 'value' => $params->get('datepicker_config', ''), 'smalldesc' => "Enter any extension config to the default datepicker classes loaded, this will affect all the default date fields in the form, custom ones will not be affected, e.g:<br />days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], startView: 'decades'")); ?> <?php echo $HtmlHelper->input('params[datepicker_type]', array('type' => 'select', 'label' => 'DatePicker Type', 'value' => $params->get('datepicker_type', 0), 'options' => array(0 => 'Default (by MonkeyPhysics)', 1 => 'Mootools DatePicker'), 'default' => 0, 'smalldesc' => 'Select the date/time picker type you want to load, the "Mootools" picker is available for J1.6 and later only, selecting this option in J1.5 will simply load the default picker.')); ?> <?php echo $HtmlHelper->input('params[datepicker_moo_style]', array('type' => 'select', 'label' => 'Moo DatePicker Style', 'value' => $params->get('datepicker_moo_style', 'datepicker_dashboard'), 'options' => array('datepicker_dashboard' => 'DashBoard', 'datepicker_jqui' => 'JQUI', 'datepicker_vista' => 'Vista'), 'default' => 'datepicker_dashboard', 'smalldesc' => 'Select the Mootools datepicker style, this is available for Joomla 1.6 and above ONLY.')); ?> </fieldset> <?php echo $TabsHelper->tabEnd(); ?> <?php echo $TabsHelper->tabStart('code'); ?> <?php echo $HtmlHelper->input('form_type', array('type' => 'select', 'label' => 'Form type', 'options' => array(0 => 'Custom', 1 => 'Wizard'), 'default' => 0, 'smalldesc' => 'Custom forms HTML code will not be affected when using it in the wizard, Wizard forms code will be overwritten though.')); ?> <?php echo $HtmlHelper->input('content', array('type' => 'textarea', 'label' => 'HTML code', 'rows' => 30, 'cols' => 100, 'smalldesc' => 'May contain PHP code with tags', 'value' => ($form ? htmlspecialchars($form->content) : ''))); ?> <?php echo $TabsHelper->tabEnd(); ?> <?php echo $TabsHelper->tabStart('jsval'); ?> <?php echo $HtmlHelper->input('params[enable_jsvalidation]', array('type' => 'select', 'label' => 'Enable JS Validation', 'value' => $params->get('enable_jsvalidation', 0), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 0)); ?> <?php echo $HtmlHelper->input('params[jsvalidation_errors]', array('type' => 'select', 'label' => 'Validation Errors', 'value' => $params->get('jsvalidation_errors', 1), 'options' => array(0 => 'Default', 1 => 'Fields Titles'), 'default' => 1, 'smalldesc' => 'Should the library use the field title as the error message if exists ? the Default option will ignore the fields titles and use the error messages in the language files.')); ?> <?php echo $HtmlHelper->input('params[jsvalidation_theme]', array('type' => 'select', 'label' => 'JS Validation Theme', 'value' => $params->get('jsvalidation_theme', 'classic'), 'options' => array('classic' => 'Classic', 'blue' => 'Blue', 'green' => 'Green', 'red' => 'Red', 'grey' => 'Grey', 'white' => 'White'), 'default' => 'classic')); ?> <?php echo $HtmlHelper->input('params[jsvalidation_lang]', array('type' => 'select', 'label' => 'JS Validation Language', 'value' => $params->get('jsvalidation_lang', 'en'), 'options' => array('en' => 'English', 'fr' => 'French', 'de' => 'Deutsch', 'nl' => 'Dutch', 'es' => 'Spanish', 'da' => 'Danish', 'it' => 'Italian', 'jp' => 'Japanese', 'cn' => 'Chinese', 'ru' => 'Russain', 'pt' => 'Portugese', 'gr' => 'Greek', 'tr' => 'Turkish', 'pl' => 'Polish', 'ro' => 'Romanian', 'no' => 'Norwegian bokmål', 'fa' => 'Farsi', 'lv' => 'Latvian', 'sl' => 'Slovenščina', 'cz' => 'Čeština'), 'default' => 'en')); ?> <?php echo $HtmlHelper->input('params[jsvalidation_showErrors]', array('type' => 'select', 'label' => 'Errors event', 'value' => $params->get('jsvalidation_showErrors', 0), 'options' => array(0 => 'onSubmit', 1 => 'onSubmit & onBlur'), 'default' => 0)); ?> <?php echo $HtmlHelper->input('params[jsvalidation_errorsLocation]', array('type' => 'select', 'label' => 'Errors location', 'value' => $params->get('jsvalidation_errorsLocation', 1), 'options' => array(1 => 'Tips (default)', 3 => 'After element'), 'default' => 1, 'smalldesc' => 'Requires the fields titles errors setting enabled!')); ?> <?php echo $TabsHelper->tabEnd(); ?> <?php echo $TabsHelper->tabStart('admin_actions'); ?> <?php echo $HtmlHelper->input('params[adminview_actions]', array('type' => 'text', 'label' => 'Admin View Functions', 'class' => 'big_input', 'value' => $params->get('adminview_actions', ''), 'smalldesc' => 'list of form events to be listed in the index page for this form, please use this format:<br />form_event:Function Title')); ?> <?php echo $HtmlHelper->input('params[dataview_actions]', array('type' => 'text', 'label' => 'Data View Functions', 'class' => 'big_input', 'value' => $params->get('dataview_actions', ''), 'smalldesc' => 'list of form events to be listed in the data view page for this form, please use this format:<br />form_event:Function Title')); ?> <?php echo $TabsHelper->tabEnd(); ?> <?php echo $TabsHelper->tabStart('apps'); ?> <?php echo $HtmlHelper->input('app', array('type' => 'text', 'id' => 'app', 'label' => 'Form App', 'class' => 'medium_input', 'smalldesc' => 'The app name under which this form will be listed, leave empty to list under "Default" app.')); ?> <?php echo $HtmlHelper->input('params[app_exclusive]', array('type' => 'select', 'label' => 'App Exclusive', 'value' => $params->get('app_exclusive', 0), 'options' => array(0 => 'No', 1 => 'Yes'), 'default' => 0, 'smalldesc' => "Enable this if you want to stop the form events from beind processed if the form not loaded through the parent App (Extension).")); ?> <?php echo $TabsHelper->tabEnd(); ?> <?php echo $TabsHelper->tabStart('data_view'); ?> <?php $tables = array(); if(!empty($form->form_actions)){ foreach($form->form_actions as $action){ if($action->type == 'db_save' || $action->type == 'db_record_loader' || $action->type == 'db_multi_record_loader'){ $action_params = new JParameter($action->params); $table_name = $action_params->get('table_name', ''); if(!empty($table_name)){ $tables[] = $table_name; } } } } $tables = array_unique($tables); $tables_data = $database->getTableFields($tables, false); foreach($tables as $table){ $table_fields = array_keys($tables_data[$table]); foreach($table_fields as $k => $v){ unset($table_fields[$k]); $table_fields[$v] = $v; } echo $HtmlHelper->input('params[dataview_fields_'.$table.']', array('type' => 'select', 'multiple' => true, 'size' => 8, 'label' => 'Data View ('.$table.')', 'value' => explode(",", $params->get('dataview_fields_'.$table, '')), 'options' => $table_fields, 'smalldesc' => 'Select the table fields to appear in the data view for this table.')); } if(empty($tables)){ echo "There are no DB tables connected to this form to configure."; } ?> <?php echo $TabsHelper->tabEnd(); ?> <?php echo $HtmlHelper->input('id', array('type' => 'hidden')); ?> <input type="hidden" name="task" value="" /> <input type="hidden" name="option" value="com_chronoforms" /> </form>