Esempio n. 1
0
function RelayRecipientsTable($echo=0){
	
	
$html="
<div style='text-align:right;margin:5px;margin-top:0px'>". button("{add_routing_relay_recipient_rule}","PostfixAddRelayRecipientTable()")."</div>
<table style='width:99%;padding:5px;border:2px solid #8E8785;' align='center' class=table_form>
	<tr style='background-color:#CCCCCC'>
		<th style='font-size:12px'>&nbsp;</th>
		<th style='font-size:12px'><strong>{recipient}</strong></th>
		<th style='font-size:12px'><strong>&nbsp;</strong></th>
		<th align='center' style='font-size:12px'><strong>-</strong></th>
		<th style='font-size:12px'><strong>-</strong></td>
		<th align='center' style='font-size:12px'><strong>-</strong></th>
		<th align='center' style='font-size:12px'><strong-</strong></th>
		<th style='font-size:12px'>&nbsp;</th>
	</tr>";	
	$ldap=new clladp();
	$hash=$ldap->hash_get_relay_recipients();	
if(is_array($hash)){
while (list ($domain, $ligne) = each ($hash) ){
		$delete=imgtootltip("delete-24.png",'{delete}',"PostfixDeleteRelayRecipient('$domain')");
		if($domain=="@localhost.localdomain"){$delete=null;}
		$html=$html . "
		<tr>
		<td width=1%><img src='img/internet.png'></td>
		<td style='font-size:13px'><code>$domain</a></strong></code></td>
		<td width=1%><img src='img/fw_bold.gif'></td>
		<td align='center' style='font-size:12px'>{relay}</td>
		<td ><code></td>
		<td align='center' style='font-size:13px'><code></code></td>
		<td align='center' style='font-size:13px'><code></code></td>
		<td align='center' style='font-size:13px' width=1%>$delete</td>
		</tr>";
	}
}
$html=$html . "</table>";
$html="<div style='width:99%;height:350px;overflow:auto' id='routing-table'>$html</div>".ArticaSyncTable($echo);

$tpl=new templates();
if($echo==1){echo $tpl->_ENGINE_parse_body($html);exit;}
return $tpl->_ENGINE_parse_body($html);
}
function RelayRecipientsTable($echo = 0)
{
    ArticaSyncTable($echo);
}