<?if(VALID_DOCUMENT != 1) die('what?');?>
<col width="20px">
<col width="40px">
<col width="*">
<col width="20%">
<col width="*">
<col width="50%">
<input type="hidden" name="mailbox" value="<?=$this->name?>"/>
<input type="hidden" name="sort_order" value="<?=$this->sort_order?>"/>
<?if($this->is_pages){?>
<input type="hidden" name="start_order" value="<?=$this->current_page?>"/>
<?}?>
<tr><th class="title" colspan="6">Sent Mails</th></tr>
<?if($this->count > 0){
$this->print_pages_row();
if($this->count > 15)
$this->print_controls_row(false);
?>
<tr>
<th>
<input type="checkbox" onclick="setChecked(this.form,'key',this.checked);"/>
</th>
<th>
<a href="<?=$_SERVER['PHP_SELF']?>?action=show-folder&mailbox=<?=$this->name?>&sort_order=<?=SORT_BY_NUMBER?>&start_page=<?=$this->current_page?>" <?=$this->sort_order==SORT_BY_NUMBER?'class="disabled"':''?>>#</a>
</th>
<th>
<a href="<?=$_SERVER['PHP_SELF']?>?action=show-folder&mailbox=<?=$this->name?>&sort_order=<?=SORT_BY_DATE?>&start_page=<?=$this->current_page?>" <?=$this->sort_order==SORT_BY_DATE?'class="disabled"':''?>>Date</a>
</th>
<th>
<a href="<?=$_SERVER['PHP_SELF']?>?action=show-folder&mailbox=<?=$this->name?>&sort_order=<?=SORT_BY_TO?>&start_page=<?=$this->current_page?>" <?=$this->sort_order==SORT_BY_TO?'class="disabled"':''?>>To</a>
</th>
<th>
<a href="<?=$_SERVER['PHP_SELF']?>?action=show-folder&mailbox=<?=$this->name?>&sort_order=<?=SORT_BY_SIZE?>&start_page=<?=$this->current_page?>" <?=$this->sort_order==SORT_BY_SIZE?'class="disabled"':''?>>Size</a>
</th>
<th>
<a href="<?=$_SERVER['PHP_SELF']?>?action=show-folder&mailbox=<?=$this->name?>&sort_order=<?=SORT_BY_SUBJECT?>&start_page=<?=$this->current_page?>" <?=$this->sort_order==SORT_BY_SUBJECT?'class="disabled"':''?>>Subject</a>
</th>
</tr>
<?
if(is_array($this->headers)){
foreach($this->headers as $header)
$header->print_table_row();
}
$this->print_controls_row();
$this->print_pages_row();
}
else{?>
<tr><td class="center" colspan="6"><h2>Empty</h2></td></tr>
<?}?>