"Fossies" - the Fresh Open Source Software Archive

Member "openmailadmin-1.0.1/templates/shadow/addresses/list.tpl" (17 Jul 2006, 1667 Bytes) of package /linux/privat/old/openmailadmin-1.0.1.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 for($i = 0; isset($alias[$i]); $i++) {
    3 	if($alias[$i]['active'] == 1) {
    4 		$alias[$i]['alias']	= $input->checkbox('address[]', $alias[$i]['address']).$alias[$i]['alias'];
    5 	}
    6 	else {
    7 		$alias[$i]['alias']	= $input->checkbox('address[]', $alias[$i]['address']).'<span class="deactivated">'.$alias[$i]['alias'].'</span>';
    8 	}
    9 }
   10 $alias = array_densify($alias, array('domain', 'dest'));
   11 for($i = 0; isset($alias[$i]); $i++) {
   12 	if(count($alias[$i]['dest'][0]) < $cfg['address']['hide_threshold'])
   13 		$alias[$i]['dest'][0] = implode('<br />', $alias[$i]['dest'][0]);
   14 	else
   15 		$alias[$i]['dest'][0] = '<span class="quasi_btn">'.sprintf(txt('96'), count($alias[$i]['dest'][0])).' &raquo;</span><div><span class="quasi_btn">&laquo; '.sprintf(txt('96'), count($alias[$i]['dest'][0])).'</span><br />'.implode('<br />', $alias[$i]['dest'][0]).'</div>';
   16 }
   17 ?>
   18 <form action="<?= mkSelfRef() ?>" method="post">
   19 <?= caption(txt('17').'&nbsp;'.$oma->current_user->used_alias.'/'.$oma->current_user->max_alias, getPageList('<a href="'.mkSelfRef(array('addr_page' => '%d')).'">%d</a>', $oma->current_user->used_alias, $_SESSION['limit'], $_SESSION['offset']['addr_page']), 580) ?>
   20 <?php outer_shadow_start(); ?>
   21 <table border="0" cellpadding="1" cellspacing="1">
   22 	<tr>
   23 		<td class="std" colspan="2" width="320"><b><?= txt('18') ?></b></td>
   24 		<td class="std" width="260"><b><?= txt('19') ?></b></td>
   25 	</tr>
   26 	<?php foreach($alias as $entry) { ?>
   27 		<tr>
   28 			<td class="std"><?= implode('<br />', $entry['alias']) ?></td>
   29 			<td class="std">@<?= $entry['domain'][0] ?></td>
   30 			<td class="std addr_dest"><?= $entry['dest'][0] ?></td>
   31 		</tr>
   32 	<?php } ?>
   33 </table>
   34 <?php outer_shadow_stop(); ?>