"Fossies" - the Fresh Open Source Software Archive

Member "openmailadmin-1.0.1/templates/shadow/regexp/list.tpl" (17 Jul 2006, 1727 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($regexp[$i]); $i++) {
    3 	if($regexp[$i]['matching']) {
    4 		$regexp[$i]['reg_exp'] = '<span class="found">'.$regexp[$i]['reg_exp'].'</span>';
    5 	}
    6 	if($regexp[$i]['active'] == 1) {
    7 		$regexp[$i]['reg_exp']	= $input->checkbox('expr[]', $regexp[$i]['ID']).$regexp[$i]['reg_exp'];
    8 	}
    9 	else {
   10 		$regexp[$i]['reg_exp']	= $input->checkbox('expr[]', $regexp[$i]['ID']).'<span class="deactivated">'.$regexp[$i]['reg_exp'].'</span>';
   11 	}
   12 }
   13 $regexp = array_densify($regexp, array('dest'));
   14 for($i = 0; isset($regexp[$i]); $i++) {
   15 	if(count($regexp[$i]['dest'][0]) < $cfg['address']['hide_threshold'])
   16 		$regexp[$i]['dest'][0] = implode('<br />', $regexp[$i]['dest'][0]);
   17 	else
   18 		$regexp[$i]['dest'][0] = '<span class="quasi_btn">'.sprintf(txt('96'), count($regexp[$i]['dest'][0])).' &raquo;</span><div><span class="quasi_btn">&laquo; '.sprintf(txt('96'), count($regexp[$i]['dest'][0])).'</span><br />'.implode('<br />', $regexp[$i]['dest'][0]).'</div>';
   19 }
   20 ?>
   21 <form action="<?= mkSelfRef() ?>" method="post">
   22 <?= caption(txt('33').'&nbsp;'.$oma->current_user->used_regexp.'/'.$oma->current_user->max_regexp, getPageList('<a href="'.mkSelfRef(array('regx_page' => '%d')).'">%d</a>', $oma->current_user->used_regexp, $_SESSION['limit'], $_SESSION['offset']['regx_page']), 580) ?>
   23 <?php outer_shadow_start(); ?>
   24 <table border="0" cellpadding="1" cellspacing="1">
   25 	<tr>
   26 		<td class="std" width="430"><b><?= txt('18') ?></b></td>
   27 		<td class="std" width="150"><b><?= txt('19') ?></b></td>
   28 	</tr>
   29 	<?php foreach($regexp as $entry) { ?>
   30 		<tr>
   31 			<td class="std"><?= implode('<br />', $entry['reg_exp']) ?></td>
   32 			<td class="std addr_dest"><?= $entry['dest'][0] ?></td>
   33 		</tr>
   34 	<?php } ?>
   35 </table>
   36 <?php outer_shadow_stop(); ?>