layout change

This commit is contained in:
Roland Gruber 2009-11-06 18:52:25 +00:00
parent 5969c5a544
commit c2b0745ce6
1 changed files with 3 additions and 2 deletions

View File

@ -138,19 +138,20 @@ class nisMailAlias extends baseModule {
$return[] = array(
array('kind' => 'text', 'text' => _('Alias name') . '*'),
array('kind' => 'input', 'name' => 'cn', 'type' => 'text', 'size' => '20', 'value' => $this->attributes['cn'][0]),
array('kind' => 'text', 'text' => ' '),
array('kind' => 'help', 'value' => 'alias'));
// list current recipients
for ($i = 0; $i < sizeof($this->attributes['rfc822MailMember']); $i++) {
$return[] = array(
array('kind' => 'text', 'text' => _('Recipient')),
array('kind' => 'input', 'name' => 'rfc822MailMember' . $i, 'type' => 'text', 'size' => '17', 'value' => $this->attributes['rfc822MailMember'][$i]),
array('kind' => 'input', 'name' => 'rfc822MailMember' . $i, 'type' => 'text', 'size' => '20', 'value' => $this->attributes['rfc822MailMember'][$i]),
array('kind' => 'input', 'type' => 'submit', 'name' => 'delRec' . $i, 'title' => _("Remove"), 'value' => ' ', 'image' => 'del.png'),
array('kind' => 'help', 'value' => 'recipient'));
}
// input box for new recipient
$return[] = array(
array('kind' => 'text', 'text' => _('New recipient')),
array('kind' => 'input', 'name' => 'rfc822MailMember', 'type' => 'text', 'size' => '17', 'value' => ''),
array('kind' => 'input', 'name' => 'rfc822MailMember', 'type' => 'text', 'size' => '20', 'value' => ''),
array('kind' => 'input', 'type' => 'submit', 'name' => 'addRec', 'title' => _("Add"), 'value' => ' ', 'image' => 'add.png'),
array('kind' => 'help', 'value' => 'recipient'),
array('kind' => 'input', 'type' => 'hidden', 'value' => sizeof($this->attributes['rfc822MailMember']), 'name' => 'rec_number'));