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

<?if(!$this->iffirst){?>
<a href="<?=$_SERVER['PHP_SELF']?>?action=read-mail&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key-1?>">&laquo; previous</a>
<?}else{?>
<a class="disabled" disabled="disabled">&laquo; previous</a>
<?}?> 

&nbsp;
<?if(!$this->iflast){?>
<a href="<?=$_SERVER['PHP_SELF']?>?action=read-mail&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key+1?>">next &raquo; </a>
<?}else{?>
<a class="disabled" disabled="disabled">next &raquo; </a>
<?}?> 

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="<?=$_SERVER['PHP_SELF']?>?action=compose-reply&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>" class="standalone">reply</a>

&nbsp;&nbsp; 

<a href="<?=$_SERVER['PHP_SELF']?>?action=compose-reply-all&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>" class="standalone">reply all</a>

&nbsp;&nbsp;

<a href="<?=$_SERVER['PHP_SELF']?>?action=compose-forward&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>" class="standalone">forward</a>

&nbsp;&nbsp;

<a href="<?=$_SERVER['PHP_SELF']?>?action=delete<?=!$this->iflast?'&show-next=1':''?>&mailbox=<?=$this->mailbox_name?>&mailkey=<?=$this->key?>&key=<?=$this->key?>" class="confirm" title="Are you sure ?">delete</a>

&nbsp;&nbsp;

<form action="<?=$_SERVER['PHP_SELF']?>" method="post"/>
<input type="hidden" name="mailbox" value="<?=$this->mailbox_name?>"/>
<input type="hidden" name="key" value="<?=$this->key?>"/>
<?if(!$this->iflast){?>
<input type="hidden" name="mailkey" value="<?=$this->key?>"/>
<input type="hidden" name="show-next" value="1"/>
<?}?>
<input type="hidden" name="action" value="move"/>
<select name="newmailbox" onchange="if(this.options[this.selectedIndex].value){submit();}">
<option value="">Move to:</option>
<option value=""></option>
<?foreach($this->mailboxes_list as $k=>$m){?>
<option value="<?=$m?>"><?=$k?></option>
<?}?>
</select>
<input type="checkbox" name="copy" value="ok"/> copy
</form>

&nbsp;&nbsp;

<form action="<?=$_SERVER['PHP_SELF']?>" method="post" target="address_book_frame" id="address_book_form">
<input type="hidden" name="name" value="<?=htmlspecialchars($this->header->from_personal)?>"/>
<input type="hidden" name="email" value="<?=$this->header->from_mail_address?>"/>
<input type="hidden" name="action" value="addressbook-take"/>
<a onclick="small_window('','address_book_frame',450,280);document.getElementById('address_book_form').submit();">take address</a>
</form>

&nbsp;&nbsp;

<script type="text/javascript">
function action_block_confirm(){
  form = document.getElementById('block_email_form');
  if(confirm('Are you sure to block email'+"\nfrom: <?=$this->header->from_mail_address?> ?")){
    small_window('','block_frame',300,200)
    form.submit();
  }
}
</script>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post" target="block_frame" id="block_email_form">
<input type="hidden" name="email" value="<?=$this->header->from_mail_address?>"/>
<input type="hidden" name="action" value="filters-block"/>
<a onclick="action_block_confirm();">block e-mail</a>
</form>

Return current item: CsWebmail