{if $DOMAINS}<table class="tblbgcolor" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF" width="90%">
<tr>
	<td colspan="3">{$TEXTS.you_have}</td>
</tr>
{if $showform}<form action="maillist.php" method="POST" name="addform">
<INPUT type="hidden" name="edit" value="0">
<tr>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg">{$TEXTS.maillist}</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg" width="1%">{$TEXTS.domain}</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg" width="1%">&nbsp;</td>
</tr>
<tr> 
	<td><input type="text" name="maillist" style="width: 100%"></td>
	<td width="1%"><select name="domain">{html_options options=$DOMAINS}</select></td>
	<td width="1%">{include file="button.tpl" ACTION="document.forms['addform'].submit();" TITLE=$TEXTS.add}</td>

</tr>
</form>{/if}
</table>
<br>{/if}
{literal}<SCRIPT>
dels = new Array();

function askDelete(confirm_msg)
{
	di = false;
	for(i in dels)
	{
		if(dels[i])
		{
			di = true;
		}
	}
	if(di)
	{	
		if(confirm(confirm_msg))
		{
			javascript:document.forms['deleteform'].submit();
		}
	}
	return false;
}
</SCRIPT>{/literal}

{if $showsearch}
<table class="tblbgcolor" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF" width="90%">
<form action="maillist.php" method="POST" name="searchform">
<tr>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg">{$TEXTS.search}</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg" width="1%">&nbsp;</td>
</tr>
<tr> 
	<td><INPUT type="text" name="search" value="{$search|escape}" style="width: 100%"></td>
	<td width="1%">{include file="button.tpl" ACTION="document.forms['searchform'].submit();" TITLE=$TEXTS.search}</td>
</tr>
</form>
</table>

<br>

<table class="tblbgcolor" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF" width="90%">
<form action="maillist.php" method="POST" name="deleteform">
<tr>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg">{$TEXTS.maillist}</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg" width="1%">&nbsp;</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg">{$TEXTS.domain}</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg">&nbsp;</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg">&nbsp;</td>
	<td class="titel-3" background="{$STR_SKIN_NAME}/pics/bg_tbl_header.jpg" width="1%">&nbsp;</td>
</tr>
{foreach item=item from=$LISTS}
<tr>
	<td align="right">{$item.mlname}</td>
	<td width="1%">@</td>
	<td>{$item.mldomain}</td>
	<td><a class="data" href="majordomo.php?maillist={$item.id}" target="_blank">{$TEXTS.majordomo}</a></td>
	<td><a class="data" href="maillist.php?edit={$item.id}">{$TEXTS.changepass}</a></td>
	<td width="1%"><input type="checkbox" name="ids[{$item.id}]" value="1" onclick="dels[{$item.id}] = !dels[{$item.id}]"></td>
<tr>
{/foreach}
{if $prev > -1 || $next > -1}<tr><td colspan="6">
{if $prev > -1}<a class="data" href="maillist.php?page={$prev}{if $search}&search={$search|urlencode}{/if}">{$TEXTS.prev}</a>{/if} 
{if $next > -1}<a class="data" href="maillist.php?page={$next}{if $search}&search={$search|urlencode}{/if}">{$TEXTS.next}</a>{/if}
</td></tr>{/if}
<tr>
	<td colspan="6" align="right">	
		<table cellpadding="0" cellspacing="0" border="0">
			<tr>
			<td><input type=image border=0 src="{$STR_SKIN_NAME}/pics/buttons/bt_img_left.gif" onclick="return askDelete('{$TEXTS.delquest}'); return false"></td>
			<td background="{$STR_SKIN_NAME}/pics/buttons/bt_img_middle.jpg"><a href="#" onclick="return askDelete('{$TEXTS.delquest}');" class="button-1">{$TEXTS.delete}</a></td>
			<td><input type=image border=0 src="{$STR_SKIN_NAME}/pics/buttons/bt_changepass.gif" onclick="return askDelete('{$TEXTS.delquest}'); return false"></td>
			</tr>
		</table>	
	</td>
</tr>
</form>
</table>
{/if}

{*debug*}
