- md5
- 01cdc4db5bfe9c8d6191f1adbd8ff3db
- sha1
- 23cfb9e0db75a6c6f066dee0f226b9c02dc538b3
- sha256
- 231a9299fdf2412a957136475facba18db0718056dfb1697a89e6f989f240cf4
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
<?php
/**
* @package Joomla.Administrator
* @subpackage com_contact
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'contact.cancel' || document.formvalidator.isValid(document.id('contact-form'))) {
<?php echo $this->form->getField('misc')->save(); ?>
Joomla.submitform(task, document.getElementById('contact-form'));
}
else {
alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
}
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_contact&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="contact-form" class="form-validate">
<div class="width-60 fltlft">
<fieldset class="adminform">
<legend><?php echo empty($this->item->id) ? JText::_('COM_CONTACT_NEW_CONTACT') : JText::sprintf('COM_CONTACT_EDIT_CONTACT', $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('user_id'); ?>
<?php echo $this->form->getInput('user_id'); ?></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('featured'); ?>
<?php echo $this->form->getInput('featured'); ?></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>
<div class="clr"></div>
<?php echo $this->form->getLabel('misc'); ?>
<div class="clr"></div>
<?php echo $this->form->getInput('misc'); ?>
</fieldset>
</div>
<div class="width-40 fltrt">
<?php echo JHtml::_('sliders.start', 'contact-slider'); ?>
<?php echo JHtml::_('sliders.panel', JText::_('JGLOBAL_FIELDSET_PUBLISHING'), 'publishing-details'); ?>
<fieldset class="panelform">
<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; ?>
</ul>
</fieldset>
<?php echo JHtml::_('sliders.panel', JText::_('COM_CONTACT_CONTACT_DETAILS'), 'basic-options'); ?>
<fieldset class="panelform">
<p><?php echo empty($this->item->id) ? JText::_('COM_CONTACT_DETAILS') : JText::sprintf('COM_CONTACT_EDIT_DETAILS', $this->item->id); ?></p>
<ul class="adminformlist">
<li><?php echo $this->form->getLabel('image'); ?>
<?php echo $this->form->getInput('image'); ?></li>
<li><?php echo $this->form->getLabel('con_position'); ?>
<?php echo $this->form->getInput('con_position'); ?></li>
<li><?php echo $this->form->getLabel('email_to'); ?>
<?php echo $this->form->getInput('email_to'); ?></li>
<li><?php echo $this->form->getLabel('address'); ?>
<?php echo $this->form->getInput('address'); ?></li>
<li><?php echo $this->form->getLabel('suburb'); ?>
<?php echo $this->form->getInput('suburb'); ?></li>
<li><?php echo $this->form->getLabel('state'); ?>
<?php echo $this->form->getInput('state'); ?></li>
<li><?php echo $this->form->getLabel('postcode'); ?>
<?php echo $this->form->getInput('postcode'); ?></li>
<li><?php echo $this->form->getLabel('country'); ?>
<?php echo $this->form->getInput('country'); ?></li>
<li><?php echo $this->form->getLabel('telephone'); ?>
<?php echo $this->form->getInput('telephone'); ?></li>
<li><?php echo $this->form->getLabel('mobile'); ?>
<?php echo $this->form->getInput('mobile'); ?></li>
<li><?php echo $this->form->getLabel('fax'); ?>
<?php echo $this->form->getInput('fax'); ?></li>
<li><?php echo $this->form->getLabel('webpage'); ?>
<?php echo $this->form->getInput('webpage'); ?></li>
<li><?php echo $this->form->getLabel('sortname1'); ?>
<?php echo $this->form->getInput('sortname1'); ?></li>
<li><?php echo $this->form->getLabel('sortname2'); ?>
<?php echo $this->form->getInput('sortname2'); ?></li>
<li><?php echo $this->form->getLabel('sortname3'); ?>
<?php echo $this->form->getInput('sortname3'); ?></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>
</form>
<div class="clr"></div>
The same content is in 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.