Files
@ c7d7e38b2269
Branch filter:
Location: hot67beta/administrator/components/com_massmail/admin.massmail.html.php
c7d7e38b2269
3.7 KiB
text/x-php
Initial import of the site.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | <?php
/**
* @version $Id: admin.massmail.html.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @subpackage Massmail
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! 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.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
/**
* @package Joomla
* @subpackage Massmail
*/
class HTML_massmail
{
function messageForm( &$lists, $option ) {
?>
<script language="javascript" type="text/javascript">
function submitbutton(pressbutton) {
var form = document.adminForm;
if (pressbutton == 'cancel') {
submitform( pressbutton );
return;
}
// do field validation
if (form.mm_subject.value == ""){
alert( "<?php echo JText::_( 'Please fill in the subject', true ); ?>" );
} else if (getSelectedValue('adminForm','mm_group') < 0){
alert( "<?php echo JText::_( 'Please select a group', true ); ?>" );
} else if (form.mm_message.value == ""){
alert( "<?php echo JText::_( 'Please fillin the message', true ); ?>" );
} else {
submitform( pressbutton );
}
}
</script>
<form action="index.php" name="adminForm" method="post">
<div class="col width-30">
<fieldset class="adminform">
<legend><?php echo JText::_( 'Details' ); ?></legend>
<table class="admintable">
<tr>
<td class="key">
<label for="mm_recurse">
<?php echo JText::_( 'Mail to Child Groups' ); ?>:
</label>
</td>
<td>
<input type="checkbox" name="mm_recurse" id="mm_recurse" value="RECURSE" />
</td>
</tr>
<tr>
<td class="key">
<label for="mm_mode">
<?php echo JText::_( 'Send in HTML mode' ); ?>:
</label>
</td>
<td>
<input type="checkbox" name="mm_mode" id="mm_mode" value="1" />
</td>
</tr>
<tr>
<td valign="top" class="key">
<label for="mm_group">
<?php echo JText::_( 'Group' ); ?>:
</label>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<?php echo $lists['gid']; ?>
</td>
</tr>
<tr>
<td class="key">
<label for="mm_bcc" title="<?php echo JText::_( 'Send as Blind Carbon Copy' ); ?>">
<?php echo JText::_( 'Recipients as BCC' ); ?>:
</label>
</td>
<td>
<input type="checkbox" name="mm_bcc" id="mm_bcc" value="1" checked="checked" />
</td>
</tr>
</table>
</fieldset>
</div>
<div class="col width-70">
<fieldset class="adminform">
<legend><?php echo JText::_( 'Message' ); ?></legend>
<table class="admintable">
<tr>
<td class="key">
<label for="mm_subject">
<?php echo JText::_( 'Subject' ); ?>:
</label>
</td>
<td>
<input class="inputbox" type="text" name="mm_subject" id="mm_subject" value="" size="150" />
</td>
</tr>
<tr>
<td valign="top" class="key">
<label for="mm_message">
<?php echo JText::_( 'Message' ); ?>:
</label>
</td>
<td id="mm_pane" >
<textarea rows="20" cols="150" name="mm_message" id="mm_message" class="inputbox"></textarea>
</td>
</tr>
</table>
</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="<?php echo $option; ?>" />
<input type="hidden" name="task" value="" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>
<?php
}
}
|