Location: PHPKode > projects > CsWebmail > cswebmail-3.10/cswebmail-3.10/templates/MailHeader_thread_table_row.php
<?
if(VALID_DOCUMENT != 1) die('what?');
$class = '';
if($this->is_deleted){
  $class .= 'checked ';
}
if($this->is_unseen){
  $class .= 'new ';
}
$chk_onclick = $papa?
  "checkbox_toggle(this,event,'".$this->mbox_name."')":
  "checkbox_thread_toggle(this,'".$this->key."',event,'".$this->mbox_name."')";
?>
<tr class="<?=$class?>" <?=($papa?'style="display: none" id="tr_'.$papa.'"':'')?>>

<td class="center">
<input type="checkbox" class="checkbox" name="key[]" value="<?=$this->key?>" onclick="<?=$chk_onclick?>;"<?=$this->is_deleted?' checked="checked"':''?>/>
</td>

<td class="nowrap">
<?if($papa){?>
<img src="./images/next_level.gif"/>
<?}?>
<?=$this->key?>&nbsp;
<?if(!$papa){?>
<a onclick="thread_toggle('<?=$this->key?>');" title="expand thread"><img src="./images/plus.gif" id="img_toggle_<?=$this->key?>" alt="+"/></a>
<span class="gray">(<?=$sons_count?>)</span>
<?}?> 
</td>

<td class="nowrap" title="<?=$this->date_print(true)?>">
<?=$this->date_print()?>
</td>

<td>
<div class="cut">
<a href="<?=$_SERVER['PHP_SELF']?>?action=read-mail&mailbox=<?=$this->mbox_name?>&mailkey=<?=$this->key?>" title="<?=$this->from_print(true,false)?>"><?=$this->from_print()?></a>
</div>
</td>

<td class="nowrap">
<?
$src = 'no_attach';
if($this->is_encrypted()) $src = 'encrypted';
else if($this->is_signed()) $src = 'signed';
else if($this->has_attachment()) $src = 'attachment';
?>
<img src="./images/<?=$src?>.gif" alt="<?=$src?>" title="<?=$src?>" height="15"/>&nbsp;<?=bytes2string($this->size)?>&nbsp;
</td>

<td>
<div class="cut">
<a onclick="show_message('<?=$this->mbox_name?>',<?=$this->key?>,this)" title="show preview"><img src="./images/preview.gif"/></a>
<?=$this->labels_print()?>
<a href="<?=$_SERVER['PHP_SELF']?>?action=read-mail&mailbox=<?=$this->mbox_name?>&mailkey=<?=$this->key?>"><?=$this->subject_print()?></a>
</div>
</td>

</tr>
Return current item: CsWebmail