You've already forked joomla_test
first commit
This commit is contained in:
1
administrator/components/com_users/views/mail/index.html
Normal file
1
administrator/components/com_users/views/mail/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
|
||||
JFactory::getDocument()->addScriptDeclaration($script);
|
||||
?>
|
||||
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_users&view=mail'); ?>" name="adminForm" method="post" id="adminForm">
|
||||
<div class="row-fluid">
|
||||
<div class="span9">
|
||||
<fieldset class="adminform">
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('subject'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('subject'); ?></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('message'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('message'); ?></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
<div class="span3">
|
||||
<fieldset class="form-inline">
|
||||
<div class="control-group checkbox">
|
||||
<div class="controls"><?php echo $this->form->getInput('recurse'); ?> <?php echo $this->form->getLabel('recurse'); ?></div>
|
||||
</div>
|
||||
<div class="control-group checkbox">
|
||||
<div class="control-label"><?php echo $this->form->getInput('mode'); ?> <?php echo $this->form->getLabel('mode'); ?></div>
|
||||
</div>
|
||||
<div class="control-group checkbox">
|
||||
<div class="control-label"><?php echo $this->form->getInput('disabled'); ?> <?php echo $this->form->getLabel('disabled'); ?></div>
|
||||
</div>
|
||||
<div class="control-group checkbox">
|
||||
<div class="control-label"><?php echo $this->form->getInput('bcc'); ?> <?php echo $this->form->getLabel('bcc'); ?></div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="control-label"><?php echo $this->form->getLabel('group'); ?></div>
|
||||
<div class="controls"><?php echo $this->form->getInput('group'); ?></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
54
administrator/components/com_users/views/mail/view.html.php
Normal file
54
administrator/components/com_users/views/mail/view.html.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_users
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Users mail view.
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_users
|
||||
*/
|
||||
class UsersViewMail extends JViewLegacy
|
||||
{
|
||||
/**
|
||||
* @var object form object
|
||||
*/
|
||||
protected $form;
|
||||
|
||||
/**
|
||||
* Display the view
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
// Get data from the model
|
||||
$this->form = $this->get('Form');
|
||||
|
||||
$this->addToolbar();
|
||||
parent::display($tpl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the page title and toolbar.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function addToolbar()
|
||||
{
|
||||
JFactory::getApplication()->input->set('hidemainmenu', true);
|
||||
|
||||
JToolbarHelper::title(JText::_('COM_USERS_MASS_MAIL'), 'massmail.png');
|
||||
JToolbarHelper::custom('mail.send', 'envelope.png', 'send_f2.png', 'COM_USERS_TOOLBAR_MAIL_SEND_MAIL', false);
|
||||
JToolbarHelper::cancel('mail.cancel');
|
||||
JToolbarHelper::divider();
|
||||
JToolbarHelper::preferences('com_users');
|
||||
JToolbarHelper::divider();
|
||||
JToolbarHelper::help('JHELP_USERS_MASS_MAIL_USERS');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user