66 lines
2.8 KiB
PHP
66 lines
2.8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of the Froxlor project.
|
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
*
|
|
* For the full copyright and license information, please view the COPYING
|
|
* file that was distributed with this source code. You can also view the
|
|
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
|
*
|
|
* @copyright (c) the authors
|
|
* @author Froxlor team <team@froxlor.org> (2010-)
|
|
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
|
* @package Formfields
|
|
*
|
|
*/
|
|
|
|
return array(
|
|
'emails_edit' => array(
|
|
'title' => $lng['emails']['emails_edit'],
|
|
'image' => 'icons/email_edit.png',
|
|
'sections' => array(
|
|
'section_a' => array(
|
|
'title' => $lng['emails']['emails_edit'],
|
|
'image' => 'icons/email_edit.png',
|
|
'nobuttons' => true,
|
|
'fields' => array(
|
|
'email_full' => array(
|
|
'label' => $lng['emails']['emailaddress'],
|
|
'type' => 'label',
|
|
'value' => $result['email_full']
|
|
),
|
|
'account_yes' => array(
|
|
'visible' => ($result['popaccountid'] != 0 ? true : false),
|
|
'label' => $lng['emails']['account'],
|
|
'type' => 'label',
|
|
'value' => $lng['panel']['yes'].' [<a href="'.$filename.'?page=accounts&action=changepw&id='.$result['id'].'&s='.$s.'">'.$lng['menue']['main']['changepassword'].'</a>] [<a href="'.$filename.'?page=accounts&action=delete&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['account_delete'].'</a>]'
|
|
),
|
|
'account_no' => array(
|
|
'visible' => ($result['popaccountid'] == 0 ? true : false),
|
|
'label' => $lng['emails']['account'],
|
|
'type' => 'label',
|
|
'value' => $lng['panel']['no'].' [<a href="'.$filename.'?page=accounts&action=add&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['account_add'].'</a>]'
|
|
),
|
|
'mail_quota' => array(
|
|
'visible' => ($result['popaccountid'] != 0 && Settings::Get('system.mail_quota_enabled')),
|
|
'label' => $lng['customer']['email_quota'],
|
|
'type' => 'label',
|
|
'value' => $result['quota'].' MiB [<a href="'.$filename.'?page=accounts&action=changequota&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['quota_edit'].'</a>]'
|
|
),
|
|
'mail_catchall' => array(
|
|
'label' => $lng['emails']['catchall'],
|
|
'type' => 'label',
|
|
'value' => ($result['iscatchall'] == 0 ? $lng['panel']['no'] : $lng['panel']['yes']).' [<a href="'.$filename.'?page='.$page.'&action=togglecatchall&id='.$result['id'].'&s='.$s.'">'.$lng['panel']['toggle'].'</a>]'
|
|
),
|
|
'mail_fwds' => array(
|
|
'label' => $lng['emails']['forwarders'].' ('.$forwarders_count.')',
|
|
'type' => 'label',
|
|
'value' => $forwarders.' <a href="'.$filename.'?page=forwarders&action=add&id='.$result['id'].'&s='.$s.'">'.$lng['emails']['forwarder_add'].'</a>'
|
|
)
|
|
)
|
|
)
|
|
)
|
|
)
|
|
);
|