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

<a href="<?=$_SERVER['PHP_SELF']?>?action=folders-refresh" style="<?=SMALL_STYLE?>">refresh folders</a>
<br/>
<?
$mboxes = $_SESSION['mboxes'];
$box = $mboxes->find($mboxes->categories['inbox']);
$box->print_table_row();

if($mboxes->categories['special']){
?>
<br/>
<?
  foreach($mboxes->categories['special'] as $name){
    $box = $mboxes->find($name);
    if(is_object($box)){
      $box->print_row();
      print '<br/>';
    }
  }
}

if($mboxes->categories['additional']){
  foreach($mboxes->categories['additional'] as $name){
    $box = $mboxes->find($name);
    if(is_object($box)){
      $box->print_row();
      print '<br/>';
    }
  }
}
/*
if($mboxes->categories['news']){
?>
News:<br/>
<?
  foreach($mboxes->categories['news'] as $name){
    $box = $mboxes->find($name);
    if(is_object($box)){
      $box->print_row();
      print '<br/>';
    }
  }
}
*/
?>
<img src="./images/triangle_down.gif"/> Labels<br/>
<?
$lbl = get_var('label');
foreach($_SESSION['labels']->get_labels() as $k=>$v){?>
<a href="<?=$_SERVER['PHP_SELF']?>?action=show-folder&amp;label=<?=$k?>" style="color: <?=$v['color']?>"><?=$v['name']?></a>
<br/>
<?}?>

Return current item: CsWebmail