Location: PHPKode > projects > AcyMailing > back/views/newsletter/tmpl/param.form.php
<?php
/**
 * @copyright	Copyright (C) 2009-2011 ACYBA SARL - All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
 */
defined('_JEXEC') or die('Restricted access');
?>
   <div id="newsletterparams">
  <?php echo $this->tabs->startPane( 'mail_tab');?>
    <?php echo $this->tabs->startPanel(JText::_( 'LISTS' ), 'mail_receivers');?>
		<br style="font-size:1px"/>
		<?php if(empty($this->lists)){
				echo JText::_('LIST_CREATE');
			}else{
				echo JText::_('LIST_RECEIVERS');
		?>
		<table id="receiverstable" class="adminlist" cellpadding="1" width="100%">
			<thead>
				<tr>
					<th class="title">
						<?php echo JText::_('LIST_NAME'); ?>
					</th>
					<th class="title">
						<?php echo JText::_('RECEIVE'); ?>
					</th>
				</tr>
			</thead>
			<tbody>
		<?php
				$k = 0;
				$filter_list = JRequest::getInt( 'filter_list');
				if(empty($filter_list)) $filter_list=JRequest::getInt('listid');
				$i = 0;
				$selectedLists = explode(',',JRequest::getString('listids'));
				foreach($this->lists as $row){
		?>
				<tr class="<?php echo "row$k"; ?>">
					<td>
						<?php echo '<div class="roundsubscrib rounddisp" style="background-color:'.$row->color.'"></div>'; ?>
						<?php
						$text = '<b>'.JText::_('ACY_ID').' : </b>'.$row->listid;
						$text .= '<br/>'.$row->description;
						echo acymailing::tooltip($text, $row->name, 'tooltip.png', $row->name);
						?>
					</td>
					<td align="center" nowrap="nowrap">
						<?php echo JHTML::_('select.booleanlist', "data[listmail][".$row->listid."]" , '',(bool) ($row->mailid OR (empty($row->mailid) AND empty($this->mail->mailid) AND $filter_list == $row->listid) OR (empty($this->mail->mailid) AND count($this->lists) == 1) OR (in_array($row->listid,$selectedLists))),JText::_('JOOMEXT_YES'),JText::_('JOOMEXT_NO')); ?>
					</td>
				</tr>
		<?php
					$k = 1-$k;
					$i++;
				}
				if(count($this->lists)>3){
			?>
			<tr><td></td><td align="center" nowrap="nowrap">
						<script language="javascript" type="text/javascript">
							function updateStatus(statusval){
								<?php foreach($this->lists as $row){?>
								window.document.getElementById('data[listmail][<?php echo $row->listid; ?>]'+statusval).checked = true;
								<?php } ?>
							}
						</script>
						<input type="radio" onclick="updateStatus(0);" name="selectalllists" id="selectalllists0" value="0" />
						<label for="selectalllists0"><?php echo JText::_('NONE'); ?></label>
						<input type="radio" onclick="updateStatus(1);" name="selectalllists" id="selectalllists1" value="1" />
						<label for="selectalllists1"><?php echo JText::_('ALL'); ?></label>
					</td></tr>
			<?php } ?>
			</tbody>
		</table>
    <?php } echo $this->tabs->endPanel(); ?>
 	<?php echo $this->tabs->startPanel(JText::_( 'ATTACHMENTS' ), 'mail_attachments');?>
		<br style="font-size:1px"/>
    <?php if(!empty($this->mail->attach)){?>
		<fieldset class="adminform" id="attachmentfieldset">
		<legend><?php echo JText::_( 'ATTACHED_FILES' ); ?></legend>
      <?php
	      	foreach($this->mail->attach as $idAttach => $oneAttach){
	      		$idDiv = 'attach_'.$idAttach;
	      		echo '<div id="'.$idDiv.'">'.$oneAttach->filename.' ('.(round($oneAttach->size/1000,1)).' Ko)';
	      		echo $this->toggleClass->delete($idDiv,$this->mail->mailid.'_'.$idAttach,'mail');
				echo '</div>';
	      	}
		?>
		</fieldset>
    <?php } ?>
    <div id="loadfile">
    	<input type="file" size="30" name="attachments[]" />
    </div>
    <a href="javascript:void(0);" onclick='addFileLoader()'><?php echo JText::_('ADD_ATTACHMENT'); ?></a>
    	<?php echo JText::sprintf('MAX_UPLOAD',$this->values->maxupload);?>
    <?php echo $this->tabs->endPanel(); echo $this->tabs->startPanel(JText::_( 'SENDER_INFORMATIONS' ), 'mail_sender');?>
		<br style="font-size:1px"/>
		<table width="100%" class="paramlist admintable" id="senderinformationfieldset">
			<tr>
		    	<td class="paramlist_key">
		    		<label for="fromname"><?php echo JText::_( 'FROM_NAME' ); ?></label>
		    	</td>
		    	<td class="paramlist_value">
		    		<input class="inputbox" id="fromname" type="text" name="data[mail][fromname]" size="40" value="<?php echo $this->escape(@$this->mail->fromname); ?>" />
		    	</td>
		    </tr>
			<tr>
		    	<td class="paramlist_key">
		    		<label for="fromemail"><?php echo JText::_( 'FROM_ADDRESS' ); ?></label>
		    	</td>
		    	<td class="paramlist_value">
		    		<input class="inputbox" id="fromemail" type="text" name="data[mail][fromemail]" size="40" value="<?php echo $this->escape(@$this->mail->fromemail); ?>" />
		    	</td>
		    </tr>
		    <tr>
				<td class="paramlist_key">
					<label for="replyname"><?php echo JText::_( 'REPLYTO_NAME' ); ?></label>
		    	</td>
		    	<td class="paramlist_value">
		    		<input class="inputbox" id="replyname" type="text" name="data[mail][replyname]" size="40" value="<?php echo $this->escape(@$this->mail->replyname); ?>" />
		    	</td>
		    </tr>
		    <tr>
				<td class="paramlist_key">
					<label for="replyemail"><?php echo JText::_( 'REPLYTO_ADDRESS' ); ?></label>
		    	</td>
		    	<td class="paramlist_value">
		    		<input class="inputbox" id="replyemail" type="text" name="data[mail][replyemail]" size="40" value="<?php echo $this->escape(@$this->mail->replyemail); ?>" />
		    	</td>
			</tr>
		</table>
<?php echo $this->tabs->endPanel(); echo $this->tabs->endPane(); ?>
  </div>
Return current item: AcyMailing