"Fossies" - the Fresh Open Source Software Archive

Member "openmailadmin-1.0.1/templates/shadow/mailboxes/list.tpl" (19 Aug 2006, 2685 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 count_same_cols($mailboxes, 'pate', 'n_paten');
    3 ?>
    4 <?php if($oma->authenticated_user->a_admin_user >= 1) { ?>
    5 	<form action="<?= mkSelfRef() ?>" method="post">
    6 <?php } ?>
    7 <?= caption(txt('79'), getPageList('<a href="'.mkSelfRef(array('mbox_page' => '%d')).'">%d</a>', $oma->current_user->n_mbox, $_SESSION['limit'], $_SESSION['offset']['mbox_page']), 580) ?>
    8 <?php outer_shadow_start(); ?>
    9 <table border="0" cellpadding="1" cellspacing="1" width="580">
   10 	<tr>
   11 		<td class="std"><b><?= txt('5') ?></b></td>
   12 		<td class="std"><b><?= txt('9') ?></b></td>
   13 		<td class="std" colspan="2"><b><?= txt('87') ?> <sub>[MiB]</sub></b></td>
   14 		<td class="std"><b><?= txt('17') ?></b></td>
   15 		<td class="std"><b><?= txt('82') ?></b></td>
   16 	</tr>
   17 	<?php foreach($mailboxes as $mailbox) { ?>
   18 		<?php if(time() - $mailbox['lastlogin'] < $cfg['mboxview_sec']) { ?>
   19 		<tr class="recent_login">
   20 		<?php } else { ?>
   21 		<tr>
   22 		<?php } ?>
   23 			<td class="std">
   24 				<?php if($mailbox['mbox'] == $oma->authenticated_user->mbox || $mailbox['mbox'] == $oma->current_user->mbox) { ?>
   25 					<?= $input->checkbox('user[]', $mailbox['mbox'], array('disabled' => '1')) ?>
   26 				<?php } else { ?>
   27 					<?= $input->checkbox('user[]', $mailbox['mbox']) ?>
   28 				<?php } ?>
   29 				<?php if($mailbox['active'] == 0) { ?>
   30 					<span class="deactivated">
   31 				<?php } else { ?>
   32 					<span class="active">
   33 				<?php } ?>
   34 					<?php if($cfg['mboxview_pers']) { ?>
   35 						<a href="<?= mkSelfRef(array('cuser' => $mailbox['mbox'])) ?>" title="<?= $mailbox['mbox'].' ('.$mailbox['canonical'].'); R='.$mailbox['a_super'].':'.$mailbox['a_admin_domains'].':'.$mailbox['a_admin_user'] ?>"><?= $mailbox['person'] ?></a>
   36 					<?php } else { ?>
   37 						<a href="<?= mkSelfRef(array('cuser' => $mailbox['mbox'])) ?>" title="<?= $mailbox['person'].' ('.$mailbox['canonical'].'); R='.$mailbox['a_super'].':'.$mailbox['a_admin_domains'].':'.$mailbox['a_admin_user'] ?>"><?= $mailbox['mbox'] ?></a>
   38 					<?php } ?>
   39 					</span>
   40 			</td>
   41 			<?php if(isset($mailbox['n_paten'])) { ?>
   42 				<td class="std" rowspan="<?= $mailbox['n_paten'] ?>"><?= $mailbox['pate'] ?></td>
   43 			<?php } ?>
   44 			<td class="std"><?= $imap->get_users_quota($mailbox['mbox'])->format('</td><td class="std">') ?></td>
   45 			<td class="std">
   46 				<?= $mailbox['num_alias'].'/'.$mailbox['max_alias'] ?><?= ($mailbox['num_regexp'] + $mailbox['max_regexp'] == 0) ? '' : ', '.$mailbox['num_regexp'].'/'.$mailbox['max_regexp'] ?>
   47 			</td>
   48 			<td class="std">
   49 				<?php if($mailbox['lastlogin'] < 3000) { ?>
   50 					<?= txt('132') ?>
   51 				<?php } else { ?>
   52 					<?= date($cfg['date_format'], $mailbox['lastlogin']) ?>
   53 				<?php } ?>
   54 			</td>
   55 		</tr>
   56 	<?php } ?>
   57 </table>
   58 <?php outer_shadow_stop(); ?>