Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
15cf15f4
Commit
15cf15f4
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Look and feel v6
parent
f106ff7e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/admin/mails.php
+3
-1
3 additions, 1 deletion
htdocs/admin/mails.php
htdocs/core/class/html.formmail.class.php
+35
-35
35 additions, 35 deletions
htdocs/core/class/html.formmail.class.php
with
38 additions
and
36 deletions
htdocs/admin/mails.php
+
3
−
1
View file @
15cf15f4
...
...
@@ -676,6 +676,8 @@ else
print
'<div id="formmailbeforetitle" name="formmailbeforetitle"></div>'
;
print
load_fiche_titre
(
$action
==
'testhtml'
?
$langs
->
trans
(
"DoTestSendHTML"
)
:
$langs
->
trans
(
"DoTestSend"
));
dol_fiche_head
(
''
);
// Cree l'objet formulaire mail
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/html.formmail.class.php'
;
$formmail
=
new
FormMail
(
$db
);
...
...
@@ -714,7 +716,7 @@ else
print
$formmail
->
get_form
(
'addfile'
,
'removefile'
);
print
'<br>'
;
dol_fiche_end
()
;
}
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/class/html.formmail.class.php
+
35
−
35
View file @
15cf15f4
...
...
@@ -433,7 +433,7 @@ class FormMail extends Form
}
else
{
$out
.
=
"
<tr><td
>"
.
$langs
->
trans
(
"MailFrom"
)
.
"</td><td>"
;
$out
.
=
'
<tr><td
class="fieldrequired">'
.
$langs
->
trans
(
"MailFrom"
)
.
"</td><td>"
;
$out
.
=
$langs
->
trans
(
"Name"
)
.
':<input type="text" id="fromname" name="fromname" size="32" value="'
.
$this
->
fromname
.
'" />'
;
$out
.
=
' '
;
$out
.
=
$langs
->
trans
(
"EMail"
)
.
':<<input type="text" id="frommail" name="frommail" size="32" value="'
.
$this
->
frommail
.
'" />>'
;
...
...
@@ -441,42 +441,10 @@ class FormMail extends Form
}
}
// Replyto
if
(
!
empty
(
$this
->
withreplyto
))
{
if
(
$this
->
withreplytoreadonly
)
{
$out
.
=
'<input type="hidden" id="replyname" name="replyname" value="'
.
$this
->
replytoname
.
'" />'
;
$out
.
=
'<input type="hidden" id="replymail" name="replymail" value="'
.
$this
->
replytomail
.
'" />'
;
$out
.
=
"<tr><td>"
.
$langs
->
trans
(
"MailReply"
)
.
"</td><td>"
.
$this
->
replytoname
.
(
$this
->
replytomail
?
(
" <"
.
$this
->
replytomail
.
">"
)
:
""
);
$out
.
=
"</td></tr>
\n
"
;
}
}
// Errorsto
if
(
!
empty
(
$this
->
witherrorsto
))
{
//if (! $this->errorstomail) $this->errorstomail=$this->frommail;
$errorstomail
=
(
!
empty
(
$conf
->
global
->
MAIN_MAIL_ERRORS_TO
)
?
$conf
->
global
->
MAIN_MAIL_ERRORS_TO
:
$this
->
errorstomail
);
if
(
$this
->
witherrorstoreadonly
)
{
$out
.
=
'<input type="hidden" id="errorstomail" name="errorstomail" value="'
.
$errorstomail
.
'" />'
;
$out
.
=
'<tr><td>'
.
$langs
->
trans
(
"MailErrorsTo"
)
.
'</td><td>'
;
$out
.
=
$errorstomail
;
$out
.
=
"</td></tr>
\n
"
;
}
else
{
$out
.
=
'<tr><td>'
.
$langs
->
trans
(
"MailErrorsTo"
)
.
'</td><td>'
;
$out
.
=
'<input size="30" id="errorstomail" name="errorstomail" value="'
.
$errorstomail
.
'" />'
;
$out
.
=
"</td></tr>
\n
"
;
}
}
// To
if
(
!
empty
(
$this
->
withto
)
||
is_array
(
$this
->
withto
))
{
$out
.
=
'<tr><td width="180">'
;
$out
.
=
'<tr><td
class="fieldrequired"
width="180">'
;
if
(
$this
->
withtofree
)
$out
.
=
$form
->
textwithpicto
(
$langs
->
trans
(
"MailTo"
),
$langs
->
trans
(
"YouCanUseCommaSeparatorForSeveralRecipients"
));
else
$out
.
=
$langs
->
trans
(
"MailTo"
);
$out
.
=
'</td><td>'
;
...
...
@@ -604,6 +572,38 @@ class FormMail extends Form
$out
.
=
"</td></tr>
\n
"
;
}
// Replyto
if
(
!
empty
(
$this
->
withreplyto
))
{
if
(
$this
->
withreplytoreadonly
)
{
$out
.
=
'<input type="hidden" id="replyname" name="replyname" value="'
.
$this
->
replytoname
.
'" />'
;
$out
.
=
'<input type="hidden" id="replymail" name="replymail" value="'
.
$this
->
replytomail
.
'" />'
;
$out
.
=
"<tr><td>"
.
$langs
->
trans
(
"MailReply"
)
.
"</td><td>"
.
$this
->
replytoname
.
(
$this
->
replytomail
?
(
" <"
.
$this
->
replytomail
.
">"
)
:
""
);
$out
.
=
"</td></tr>
\n
"
;
}
}
// Errorsto
if
(
!
empty
(
$this
->
witherrorsto
))
{
//if (! $this->errorstomail) $this->errorstomail=$this->frommail;
$errorstomail
=
(
!
empty
(
$conf
->
global
->
MAIN_MAIL_ERRORS_TO
)
?
$conf
->
global
->
MAIN_MAIL_ERRORS_TO
:
$this
->
errorstomail
);
if
(
$this
->
witherrorstoreadonly
)
{
$out
.
=
'<input type="hidden" id="errorstomail" name="errorstomail" value="'
.
$errorstomail
.
'" />'
;
$out
.
=
'<tr><td>'
.
$langs
->
trans
(
"MailErrorsTo"
)
.
'</td><td>'
;
$out
.
=
$errorstomail
;
$out
.
=
"</td></tr>
\n
"
;
}
else
{
$out
.
=
'<tr><td>'
.
$langs
->
trans
(
"MailErrorsTo"
)
.
'</td><td>'
;
$out
.
=
'<input size="30" id="errorstomail" name="errorstomail" value="'
.
$errorstomail
.
'" />'
;
$out
.
=
"</td></tr>
\n
"
;
}
}
// Ask delivery receipt
if
(
!
empty
(
$this
->
withdeliveryreceipt
))
{
...
...
@@ -636,7 +636,7 @@ class FormMail extends Form
$defaulttopic
=
make_substitutions
(
$defaulttopic
,
$this
->
substit
);
$out
.
=
'<tr>'
;
$out
.
=
'<td width="180">'
.
$langs
->
trans
(
"MailTopic"
)
.
'</td>'
;
$out
.
=
'<td
class="fieldrequired"
width="180">'
.
$langs
->
trans
(
"MailTopic"
)
.
'</td>'
;
$out
.
=
'<td>'
;
if
(
$this
->
withtopicreadonly
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment