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


<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input type="hidden" name="action" value="compose-send"/>
<input type="hidden" name="mime-type" value="text/plain"/>
<input type="hidden" name="charset" value="utf-8"/>
<?if(isset($reply_message_id)){?>
  <input type="hidden" name="reply-message-id" value="<?=htmlspecialchars($reply_message_id)?>"/>
<?}?>
<table style="<?=HEADER_STYLE?>">
<tr><td><b>To:</b></td><td><input name="to" value="<?=htmlspecialchars($to)?>" type="text"/></td></tr>
<tr><td><b>Subj:</b></td><td><input name="subject" value="<?=htmlspecialchars($subject)?>" type="text"/></td></tr>
<tr><td><b>CC:</b></td><td><input name="cc" value="<?=htmlspecialchars($cc)?>" type="text"/></td></tr>
<tr><td><b>BCC:</b></td><td><input name="bcc" value="<?=htmlspecialchars($bcc)?>" type="text"/></td></tr>
</table>
<textarea name="text" rows="8" wrap="virtual"><?=htmlspecialchars($text)?></textarea>
<?if(isset($attachmailbox) && isset($attachmailkey)){?>
<br/> 
<input name="attachmailbox" value="<?=$attachmailbox; ?>" type="hidden"/>
<input name="attachmailkey" value="<?=$attachmailkey; ?>" type="hidden"/>
Attachments of mail &#8470;<?=$attachmailkey; ?> from <?=$attachmailbox; ?>:<br/>
<?
foreach($mail->parts as $k=>$p){
  if($p->if_attachment() || ($p->if_printable())){?>
<input type="checkbox" name="attach-parts[]" value="<?=$k?>" checked="checked"/>
<?=$p->filename?'<b>'.$p->filename.'</b>, ':''?> <?=strtolower($p->mime_type)?> [<?=bytes2string($p->size)?>]<br/>
<?}}?>
<?}?>
<br/>
<input value="send" type="submit"/>
<input value="clear" type="reset"/>
&nbsp;
<input value="postpone" type="button" onclick="this.form.target='_self';action.value='compose-postpone';this.form.submit();"/>
<br/>
<input value="cancel"  type="button" onclick="history.back();"/>
</form>
Return current item: CsWebmail