- md5
- 59a2b8654bd9d5a495cc3325d590b5c7
- sha1
- c07bf0d150642b6001fdfe09773e713fe5c24038
- sha256
- c9813efdac16589c958a1a8d45a46376b46270f29c72f8804f6e6042b630fb34
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
<?php
/**
* @version $Id: default.php 21766 2011-07-08 12:20:23Z eddieajau $
* @package Joomla.Administrator
* @subpackage com_users
* @copyright Copyright (C) 2005 - 2011 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;
$script = "\t".'Joomla.submitbutton = function(pressbutton) {'."\n";
$script .= "\t\t".'var form = document.adminForm;'."\n";
$script .= "\t\t".'if (pressbutton == \'mail.cancel\') {'."\n";
$script .= "\t\t\t".'Joomla.submitform(pressbutton);'."\n";
$script .= "\t\t\t".'return;'."\n";
$script .= "\t\t".'}'."\n";
$script .= "\t\t".'// do field validation'."\n";
$script .= "\t\t".'if (form.jform_subject.value == ""){'."\n";
$script .= "\t\t\t".'alert("'.JText::_('COM_USERS_MAIL_PLEASE_FILL_IN_THE_SUBJECT', true).'");'."\n";
$script .= "\t\t".'} else if (getSelectedValue(\'adminForm\',\'jform[group]\') < 0){'."\n";
$script .= "\t\t\t".'alert("'.JText::_('COM_USERS_MAIL_PLEASE_SELECT_A_GROUP', true).'");'."\n";
$script .= "\t\t".'} else if (form.jform_message.value == ""){'."\n";
$script .= "\t\t\t".'alert("'.JText::_('COM_USERS_MAIL_PLEASE_FILL_IN_THE_MESSAGE', true).'");'."\n";
$script .= "\t\t".'} else {'."\n";
$script .= "\t\t\t".'Joomla.submitform(pressbutton);'."\n";
$script .= "\t\t".'}'."\n";
$script .= "\t\t".'}'."\n";
// Load the tooltip behavior.
JHtml::_('behavior.tooltip');
JFactory::getDocument()->addScriptDeclaration($script);
?>
<form action="<?php echo JRoute::_('index.php?option=com_users&view=mail'); ?>" name="adminForm" method="post" id="adminForm">
<div class="width-30 fltlft">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_USERS_MAIL_DETAILS'); ?></legend>
<ul class="adminformlist">
<li><?php echo $this->form->getLabel('recurse'); ?>
<?php echo $this->form->getInput('recurse'); ?></li>
<li><?php echo $this->form->getLabel('mode'); ?>
<?php echo $this->form->getInput('mode'); ?></li>
<li><?php echo $this->form->getLabel('disabled'); ?>
<?php echo $this->form->getInput('disabled'); ?></li>
<li><?php echo $this->form->getLabel('group'); ?>
<?php echo $this->form->getInput('group'); ?></li>
<li><?php echo $this->form->getLabel('bcc'); ?>
<?php echo $this->form->getInput('bcc'); ?></li>
</ul>
</fieldset>
</div>
<div class="width-70 fltrt">
<fieldset class="adminform">
<legend><?php echo JText::_('COM_USERS_MAIL_MESSAGE'); ?></legend>
<ul class="adminformlist">
<li><?php echo $this->form->getLabel('subject'); ?>
<?php echo $this->form->getInput('subject'); ?></li>
<li><?php echo $this->form->getLabel('message'); ?>
<?php echo $this->form->getInput('message'); ?></li>
</ul>
</fieldset>
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
</div>
<div class="clr"></div>
</form>
The same content is in 3 releases, Joomla 1.7.0 to 1.7.2. See them all, or every version of this file.