<?php
/**
 * @package	AcyMailing for Joomla!
 * @version	4.8.1
 * @author	acyba.com
 * @copyright	(C) 2009-2014 ACYBA S.A.R.L. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><div id="acy_content">
<div id="iframedoc"></div>
<form action="index.php?option=com_acymailing&amp;ctrl=list" method="post" name="adminForm"  id="adminForm" autocomplete="off">
	<table class="adminform" cellspacing="1" width="100%">
		<tr>
			<td>
				<label for="name">
					<?php echo JText::_( 'LIST_NAME' ); ?>
				</label>
			</td>
			<td>
				<input type="text" name="data[list][name]" id="name" class="inputbox" style="width:200px" value="<?php echo $this->escape(@$this->list->name); ?>" />
			</td>
			<td>
				<label for="enabled">
					<?php echo JText::_( 'ENABLED' ); ?>
				</label>
			</td>
			<td>
				<?php echo JHTML::_('acyselect.booleanlist', "data[list][published]" , '',$this->list->published); ?>
			</td>
		</tr>
		<tr>
			<td>
				<label for="alias">
					<?php echo JText::_( 'JOOMEXT_ALIAS' ); ?>
				</label>
			</td>
			<td>
				<input type="text" name="data[list][alias]" id="alias" class="inputbox" style="width:200px" value="<?php echo $this->escape(@$this->list->alias); ?>" />
			</td>
			<td class="key">
				<label for="visible">
					<?php echo JText::_( 'JOOMEXT_VISIBLE' ); ?>
				</label>
			</td>
			<td>
				<?php echo JHTML::_('acyselect.booleanlist', "data[list][visible]" , '',$this->list->visible); ?>
			</td>
		</tr>
		<tr>
			<td>
				<label for="creator">
					<?php echo JText::_( 'CREATOR' ); ?>
				</label>
			</td>
			<td>
				<input type="hidden" id="listcreator" name="data[list][userid]" value="<?php echo @$this->list->userid; ?>" />
				<?php echo '<span id="creatorname">'.@$this->list->creatorname.'</span>';
				echo ' <a class="modal" title="'.JText::_('ACY_EDIT',true).'"  href="index.php?option=com_acymailing&amp;tmpl=component&amp;ctrl=subscriber&amp;task=choose&amp;onlyreg=1" rel="{handler: \'iframe\', size: {x: 800, y: 500}}"><img class="icon16" src="'.ACYMAILING_IMAGES.'icons/icon-16-edit.png" alt="'.JText::_('ACY_EDIT',true).'"/></a>';
				?>
			</td>
			<td>
				<?php echo JText::_('COLOUR'); ?>
			</td>
			<td>
				<?php echo $this->colorBox->displayAll('','data[list][color]',@$this->list->color); ?>
			</td>
		</tr>
		<tr>
			<td>
				<?php echo JText::_('MSG_UNSUB'); ?>
			</td>
			<td>
				<?php echo $this->unsubMsg->display(@$this->list->unsubmailid); ?>
			</td>
			<td>
				<?php echo JText::_( 'MSG_WELCOME' ); ?>
			</td>
			<td>
				<?php if(acymailing_level(1)) echo $this->welcomeMsg->display(@$this->list->welmailid);
				else{ echo acymailing_getUpgradeLink('essential'); } ?>
			</td>
		</tr>
	</table>

	<fieldset class="adminform">
		<legend><?php echo JText::_( 'ACY_DESCRIPTION' ); ?></legend>
		<?php echo $this->editor->display();?>
	</fieldset>
	<?php if(acymailing_level(1)){ ?>
		<table width="100%"><tr>
		<?php if($this->languages->multipleLang){ ?>
		<td width="30%" valign="top">
		<?php include(dirname(__FILE__).DS.'languages.php'); ?>
		</td>
	<?php }
	if(acymailing_level(3)){?>
		<td valign="top">
		<?php include(dirname(__FILE__).DS.'acl.php'); ?>
		</td>
	<?php } ?>
		</tr></table>
	<?php } ?>
	<div class="clr"></div>

	<input type="hidden" name="cid[]" value="<?php echo @$this->list->listid; ?>" />
	<input type="hidden" name="option" value="com_acymailing" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="ctrl" value="list" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>
</div>
