Location: PHPKode > projects > CsWebmail > cswebmail-3.10/cswebmail-3.10/templates/show_folders.php
<? if(VALID_DOCUMENT != 1) die('what?'); ?>

<table width="100%" cellpadding="1" cellspacing="0">
<tr><td class="checked small center italic">
<a href="<?=$_SERVER['PHP_SELF']?>?action=folders-refresh">refresh folders</a>
</td></tr>
<tr><td class="tiny">&nbsp;</td></tr>
<?
$mboxes = $_SESSION['mboxes'];
$box = $mboxes->find($mboxes->categories['inbox']);
$box->print_table_row();

if($mboxes->categories['special']){
?>
<tr><td class="tiny">&nbsp;</td></tr> 
<?
  foreach($mboxes->categories['special'] as $name){
    $box = $mboxes->find($name);
    if(is_object($box))
      $box->print_table_row();
  }
}

if($mboxes->categories['additional']){
  foreach($mboxes->categories['additional'] as $name){
    $box = $mboxes->find($name);
    if(is_object($box))
      $box->print_table_row();
  }
}

if($mboxes->categories['news']){
?>
<tr><td class="tiny">&nbsp;</td></tr> 
<?
  foreach($mboxes->categories['news'] as $name){
    $box = $mboxes->find($name);
    if(is_object($box))
      $box->print_table_row();
  }
}

?>

<tr><td class="bold checked"><img src="./images/triangle_down.gif"/> Labels</td></tr> 
<?
$lbl = get_var('label');
foreach($_SESSION['labels']->get_labels() as $k=>$v){?>
<tr><td class="nowrap <?=$k==$lbl?'checked':''?>">
   <a href="<?=$_SERVER['PHP_SELF']?>?action=show-folder&amp;label=<?=$k?>" style="color: <?=$v['color']?>">
   <?=$v['name']?>
   </a>
</td></tr>
<?}?>
<tr><td class="small center italic"><a href="<?=$_SERVER['PHP_SELF']?>?action=labels">edit labels</a></td></tr>

<tr><td class="bold checked">Quick Search</td></tr> 
<tr><td>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input type="hidden" name="action" value="show-folder"/>
<input name="query" type="text" value="<?=htmlspecialchars(get_var('query'))?>"/>
<input value="search" type="submit"/>
</form>
</td></tr>

</table>
Return current item: CsWebmail