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
4660bc58
Commit
4660bc58
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix nostop option
parent
223e1b1c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/core/class/CSMSFile.class.php
+1
-0
1 addition, 0 deletions
htdocs/core/class/CSMSFile.class.php
htdocs/core/class/html.formsms.class.php
+12
-6
12 additions, 6 deletions
htdocs/core/class/html.formsms.class.php
htdocs/langs/en_US/sms.lang
+1
-1
1 addition, 1 deletion
htdocs/langs/en_US/sms.lang
with
14 additions
and
7 deletions
htdocs/core/class/CSMSFile.class.php
+
1
−
0
View file @
4660bc58
...
@@ -212,6 +212,7 @@ class CSMSFile
...
@@ -212,6 +212,7 @@ class CSMSFile
fputs
(
$fp
,
"Priority: "
.
$this
->
priority
.
"
\n
"
);
fputs
(
$fp
,
"Priority: "
.
$this
->
priority
.
"
\n
"
);
fputs
(
$fp
,
"Class: "
.
$this
->
class
.
"
\n
"
);
fputs
(
$fp
,
"Class: "
.
$this
->
class
.
"
\n
"
);
fputs
(
$fp
,
"Deferred: "
.
$this
->
deferred
.
"
\n
"
);
fputs
(
$fp
,
"Deferred: "
.
$this
->
deferred
.
"
\n
"
);
fputs
(
$fp
,
"DisableStop: "
.
$this
->
nostop
.
"
\n
"
);
fputs
(
$fp
,
"Message:
\n
"
.
$this
->
message
);
fputs
(
$fp
,
"Message:
\n
"
.
$this
->
message
);
fclose
(
$fp
);
fclose
(
$fp
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/class/html.formsms.class.php
+
12
−
6
View file @
4660bc58
...
@@ -147,7 +147,7 @@ function limitChars(textarea, limit, infodiv)
...
@@ -147,7 +147,7 @@ function limitChars(textarea, limit, infodiv)
{
{
if
(
$this
->
withfromreadonly
)
if
(
$this
->
withfromreadonly
)
{
{
print
'<tr><td class="'
.
$morecss
.
'">'
.
$langs
->
trans
(
"SmsFrom"
);
print
'<tr><td class="
titlefield
'
.
$morecss
.
'">'
.
$langs
->
trans
(
"SmsFrom"
);
print
'<input type="hidden" name="fromsms" value="'
.
$this
->
fromsms
.
'">'
;
print
'<input type="hidden" name="fromsms" value="'
.
$this
->
fromsms
.
'">'
;
print
"</td><td>"
;
print
"</td><td>"
;
if
(
$this
->
fromtype
==
'user'
)
if
(
$this
->
fromtype
==
'user'
)
...
@@ -223,7 +223,7 @@ function limitChars(textarea, limit, infodiv)
...
@@ -223,7 +223,7 @@ function limitChars(textarea, limit, infodiv)
if
(
is_array
(
$resultsender
)
&&
count
(
$resultsender
)
>
0
)
if
(
is_array
(
$resultsender
)
&&
count
(
$resultsender
)
>
0
)
{
{
print
'<select name="fromsms" id="
valid
" class="flat">'
;
print
'<select name="fromsms" id="
fromsms
" class="flat">'
;
foreach
(
$resultsender
as
$obj
)
foreach
(
$resultsender
as
$obj
)
{
{
print
'<option value="'
.
$obj
->
number
.
'">'
.
$obj
->
number
.
'</option>'
;
print
'<option value="'
.
$obj
->
number
.
'">'
.
$obj
->
number
.
'</option>'
;
...
@@ -244,7 +244,7 @@ function limitChars(textarea, limit, infodiv)
...
@@ -244,7 +244,7 @@ function limitChars(textarea, limit, infodiv)
// To (target)
// To (target)
if
(
$this
->
withto
||
is_array
(
$this
->
withto
))
if
(
$this
->
withto
||
is_array
(
$this
->
withto
))
{
{
print
'<tr><td
width="180"
>'
;
print
'<tr><td>'
;
//$moretext=$langs->trans("YouCanUseCommaSeparatorForSeveralRecipients");
//$moretext=$langs->trans("YouCanUseCommaSeparatorForSeveralRecipients");
$moretext
=
''
;
$moretext
=
''
;
print
$form
->
textwithpicto
(
$langs
->
trans
(
"SmsTo"
),
$moretext
);
print
$form
->
textwithpicto
(
$langs
->
trans
(
"SmsTo"
),
$moretext
);
...
@@ -285,7 +285,7 @@ function limitChars(textarea, limit, infodiv)
...
@@ -285,7 +285,7 @@ function limitChars(textarea, limit, infodiv)
$defaultmessage
=
str_replace
(
'\n'
,
"
\n
"
,
$defaultmessage
);
$defaultmessage
=
str_replace
(
'\n'
,
"
\n
"
,
$defaultmessage
);
print
"<tr>"
;
print
"<tr>"
;
print
"
<td
width=
\"
180
\"
valign=
\"
top
\
"
>
"
.
$langs
->
trans
(
"SmsText"
)
.
"</td>"
;
print
'
<td
class="td
top">
'
.
$langs
->
trans
(
"SmsText"
)
.
"</td>"
;
print
"<td>"
;
print
"<td>"
;
if
(
$this
->
withbodyreadonly
)
if
(
$this
->
withbodyreadonly
)
{
{
...
@@ -306,7 +306,7 @@ function limitChars(textarea, limit, infodiv)
...
@@ -306,7 +306,7 @@ function limitChars(textarea, limit, infodiv)
<td> <input name="deferred" id="deferred" size="4" value="0"></td></tr>
<td> <input name="deferred" id="deferred" size="4" value="0"></td></tr>
<tr><td>'
.
$langs
->
trans
(
"Priority"
)
.
' :</td><td>
<tr><td>'
.
$langs
->
trans
(
"Priority"
)
.
' :</td><td>
<select name="priority" id="
valid
" class="flat">
<select name="priority" id="
priority
" class="flat">
<option value="0">high</option>
<option value="0">high</option>
<option value="1">medium</option>
<option value="1">medium</option>
<option value="2" selected>low</option>
<option value="2" selected>low</option>
...
@@ -314,11 +314,17 @@ function limitChars(textarea, limit, infodiv)
...
@@ -314,11 +314,17 @@ function limitChars(textarea, limit, infodiv)
</select></td></tr>
</select></td></tr>
<tr><td>'
.
$langs
->
trans
(
"Type"
)
.
' :</td><td>
<tr><td>'
.
$langs
->
trans
(
"Type"
)
.
' :</td><td>
<select name="class" id="
valid
" class="flat">
<select name="class" id="
class
" class="flat">
<option value="0">Flash</option>
<option value="0">Flash</option>
<option value="1" selected>Standard</option>
<option value="1" selected>Standard</option>
<option value="2">SIM</option>
<option value="2">SIM</option>
<option value="3">ToolKit</option>
<option value="3">ToolKit</option>
</select></td></tr>
<tr><td>'
.
$langs
->
trans
(
"DisableStopIfSupported"
)
.
' :</td><td>
<select name="disablestop" id="disablestop" class="flat">
<option value="0" selected>No</option>
<option value="1" selected>Yes</option>
</select></td></tr>'
;
</select></td></tr>'
;
print
"</table>
\n
"
;
print
"</table>
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/sms.lang
+
1
−
1
View file @
4660bc58
...
@@ -48,4 +48,4 @@ SmsInfoNumero= (format international ie : +33899701761)
...
@@ -48,4 +48,4 @@ SmsInfoNumero= (format international ie : +33899701761)
DelayBeforeSending=Delay before sending (minutes)
DelayBeforeSending=Delay before sending (minutes)
SmsNoPossibleSenderFound=No sender available. Check setup of your SMS provider.
SmsNoPossibleSenderFound=No sender available. Check setup of your SMS provider.
SmsNoPossibleRecipientFound=No target available. Check setup of your SMS provider.
SmsNoPossibleRecipientFound=No target available. Check setup of your SMS provider.
DisableStopIfSupported=Disable STOP message (if supported)
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