Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
bbfa9f34
Commit
bbfa9f34
authored
Aug 24, 2012
by
Benjamin Sonntag
Browse files
mail list ready for the mail editor
parent
30a2d3cb
Changes
1
Show whitespace changes
Inline
Side-by-side
bureau/admin/mail_list.php
View file @
bbfa9f34
...
...
@@ -27,6 +27,7 @@ require_once("../class/config.php");
include_once
(
"head.php"
);
$fields
=
array
(
"mail_arg"
=>
array
(
"request"
,
"integer"
,
""
),
// from mail_add.php in case of error
"domain_id"
=>
array
(
"request"
,
"integer"
,
""
),
"search"
=>
array
(
"request"
,
"string"
,
""
),
"offset"
=>
array
(
"request"
,
"integer"
,
0
),
...
...
@@ -61,7 +62,7 @@ if ($quota->cancreate("mail")) {
?>
<h3>
<?php
__
(
"Create a new mail account"
);
?>
</h3>
<form
method=
"post"
action=
"mail_doadd.php"
id=
"main"
name=
"mail_create"
>
<input
type=
"text"
class=
"int intleft"
style=
"text-align: right"
name=
"mail_arg"
value=
""
size=
"32"
id=
"mail_arg"
maxlength=
"255"
/><span
id=
"emaildom"
class=
"int intright"
>
<?php
echo
"@"
.
$domain
;
?>
</span>
<input
type=
"text"
class=
"int intleft"
style=
"text-align: right"
name=
"mail_arg"
value=
"
<?php
ehe
(
$mail_arg
);
?>
"
size=
"32"
id=
"mail_arg"
maxlength=
"255"
/><span
id=
"emaildom"
class=
"int intright"
>
<?php
echo
"@"
.
$domain
;
?>
</span>
<input
type=
"hidden"
name=
"domain_id"
value=
"
<?php
echo
$domain_id
;
?>
"
/>
<input
type=
"submit"
name=
"submit"
class=
"inb"
value=
"
<?php
__
(
"Create this email address"
);
?>
"
/>
</form>
...
...
@@ -73,20 +74,20 @@ if (empty($mails_list)){ // If there is no mail for this domain
}
else
{
?>
<br
/>
<hr
/>
<hr
id=
"topbar"
/>
<h3>
<?php
printf
(
_
(
"Email addresses of the domain %s"
),
$domain
);
?>
:
</h3>
<table
class=
"searchtable"
><tr><td>
<form
method=
"get"
name=
""
action=
"mail_list.php"
>
<form
method=
"get"
name=
"
formlist1"
id=
"formlist1
"
action=
"mail_list.php"
>
<input
type=
"hidden"
name=
"domain_id"
value=
"
<?php
echo
$domain_id
;
?>
"
/>
<input
type=
"hidden"
name=
"offset"
value=
"0"
/>
<span
class=
"int intleft"
><img
src=
"/images/search.png"
style=
"vertical-align: middle"
/>
</span><input
type=
"text"
name=
"search"
value=
"
<?php
ehe
(
$search
);
?>
"
size=
"20"
maxlength=
"64"
class=
"int intright"
/>
<span
class=
"int intleft"
><img
alt=
"
<?php
__
(
"Search"
);
?>
"
title=
"
<?php
__
(
"Search"
);
?>
"
src=
"/images/search.png"
style=
"vertical-align: middle"
/>
</span><input
type=
"text"
name=
"search"
value=
"
<?php
ehe
(
$search
);
?>
"
size=
"20"
maxlength=
"64"
class=
"int intright"
/>
</form>
</td><td>
<?php
pager
(
$offset
,
$count
,
$mail
->
total
,
"mail_list.php?domain_id="
.
$domain_id
.
"&count="
.
$count
.
"&search="
.
urlencode
(
$search
)
.
"&offset=%%offset%%"
);
?>
</td><td
style=
"text-align:right"
>
<form
method=
"get"
name=
""
action=
"mail_list.php"
>
<form
method=
"get"
name=
"
formlist2"
id=
"formlist2
"
action=
"mail_list.php"
>
<input
type=
"hidden"
name=
"domain_id"
value=
"
<?php
echo
$domain_id
;
?>
"
/>
<input
type=
"hidden"
name=
"offset"
value=
"0"
/>
<?php
__
(
"Items per page:"
);
?>
<select
name=
"count"
class=
"inl"
onchange=
"submit()"
>
<?php
eoption
(
$counts
,
$count
);
?>
</select>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment