[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_massmail/ -> admin.massmail.html.php (source)

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


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1