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

<input type="hidden" name="is-list" value="true"/>
<input type="hidden" name="email" value="@"/>
<tr>
<td>Name</td>
<td><input type="text" name="name" value="<?=htmlspecialchars($this->name)?>" size="50"/></td>
</tr>

<tr>
<td>Nick name</td>
<td><input type="text" name="nick" value="<?=htmlspecialchars($this->nick)?>" size="50"/></td>
</tr>

<tr>
<td>
List members
</td>
<td>
<div style="height:350px;overflow:auto;">
<table class="w100">
<?
foreach($_SESSION['addressbook']->getEntries() as $a){
  $was=false;
  foreach($this->emails as $e){
    $pes = MailParser::parse_emails($e);
    if($pes[0]['email'])
      $email = $pes[0]['email'];
    else
      $email = trim($e);
    
    if($email == $a->get_email()){
      $was=true;
      break;
    }
  }
?>
<tr><td class="<?=$was?'checked':''?>">
<input type="checkbox" name="emails[]" value="<?=htmlspecialchars($a->getFullEmail())?>" onclick="toggle_checkbox_row(this)" <?=($was?'checked="checked"':'')?>/>
<?=htmlspecialchars($a->getFullEmail())?>
</td></tr>
<?}?>
</table>
</div>

</td>
</tr>

<tr>
<td>Comment</td>
<td><textarea name="comment" class="w100"><?=htmlspecialchars($this->comment)?></textarea></td>
</tr>
Return current item: CsWebmail