| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Massmail 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 /** ensure this file is being included by a parent file */ 18 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 19 20 /** 21 * @package Mambo 22 * @subpackage Massmail 23 */ 24 class HTML_massmail { 25 function messageForm( &$lists, $option ) { 26 ?> 27 <script type="text/javascript"> 28 function submitbutton(pressbutton) { 29 var form = document.adminForm; 30 if (pressbutton == 'cancel') { 31 submitform( pressbutton ); 32 return; 33 } 34 // do field validation 35 if (form.mm_subject.value == ""){ 36 alert( '<?php echo T_('Please fill in the subject'); ?>' ); 37 } else if (getSelectedValue('adminForm','mm_group') < 0){ 38 alert( '<?php echo T_('Please select a group'); ?>' ); 39 } else if (form.mm_message.value == ""){ 40 alert( '<?php echo T_('Please fill in the message'); ?>' ); 41 } else { 42 submitform( pressbutton ); 43 } 44 } 45 </script> 46 47 <form action="index2.php" name="adminForm" method="post"> 48 <table class="adminheading"> 49 <tr> 50 <th class="massemail"> 51 <?php echo T_('Mass Mail'); ?> 52 </th> 53 </tr> 54 </table> 55 56 <table class="adminform"> 57 <tr> 58 <th colspan="2"> 59 <?php echo T_('Details'); ?> 60 </th> 61 </tr> 62 <tr> 63 <td width="150" valign="top"> 64 <?php echo T_('Group:'); ?> 65 </td> 66 <td width="85%"> 67 <?php echo $lists['gid']; ?> 68 </td> 69 </tr> 70 <tr> 71 <td> 72 <?php echo T_('Mail to Child Groups:'); ?> 73 </td> 74 <td> 75 <input type="checkbox" name="mm_recurse" value="RECURSE" /> 76 </td> 77 </tr> 78 <tr> 79 <td> 80 <?php echo T_('Send in HTML mode:'); ?> 81 </td> 82 <td> 83 <input type="checkbox" name="mm_mode" value="1" /> 84 </td> 85 </tr> 86 <tr> 87 <td> 88 <?php echo T_('Include blocked users:'); ?> 89 </td> 90 <td> 91 <input type="checkbox" name="inc_blocked" value="0" /> 92 </td> 93 </tr> 94 <tr> 95 <td> 96 <?php echo T_('Subject'); ?>: 97 </td> 98 <td> 99 <input class="inputbox" type="text" name="mm_subject" value="" size="50"/> 100 </td> 101 </tr> 102 <tr> 103 <td valign="top"> 104 <?php echo T_('Message:'); ?> 105 </td> 106 <td> 107 <textarea cols="80" rows="25" name="mm_message" class="inputbox"></textarea> 108 </td> 109 </tr> 110 </table> 111 112 <input type="hidden" name="option" value="<?php echo $option; ?>"/> 113 <input type="hidden" name="task" value=""/> 114 </form> 115 <?php 116 } 117 } 118 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |