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
03cfff66
Commit
03cfff66
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: no form into table
parent
03691475
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/admin/contract.php
+20
-35
20 additions, 35 deletions
htdocs/admin/contract.php
with
20 additions
and
35 deletions
htdocs/admin/contract.php
+
20
−
35
View file @
03cfff66
...
...
@@ -182,30 +182,15 @@ else if ($action == 'setmod')
dolibarr_set_const
(
$db
,
"CONTRACT_ADDON"
,
$value
,
'chaine'
,
0
,
''
,
$conf
->
entity
);
}
else
if
(
$action
==
'set_
CONTRACT_FREE_TEXT
'
)
else
if
(
$action
==
'set_
other
'
)
{
$freetext
=
GETPOST
(
'CONTRACT_FREE_TEXT'
,
'alpha'
);
$res
=
dolibarr_set_const
(
$db
,
"CONTRACT_FREE_TEXT"
,
$freetext
,
'chaine'
,
0
,
''
,
$conf
->
entity
);
$res
1
=
dolibarr_set_const
(
$db
,
"CONTRACT_FREE_TEXT"
,
$freetext
,
'chaine'
,
0
,
''
,
$conf
->
entity
);
if
(
!
$res
>
0
)
$error
++
;
if
(
!
$error
)
{
setEventMessage
(
$langs
->
trans
(
"SetupSaved"
));
}
else
{
setEventMessage
(
$langs
->
trans
(
"Error"
),
'errors'
);
}
}
else
if
(
$action
==
'set_CONTRACT_DRAFT_WATERMARK'
)
{
$draft
=
GETPOST
(
'CONTRACT_DRAFT_WATERMARK'
,
'alpha'
);
$res2
=
dolibarr_set_const
(
$db
,
"CONTRACT_DRAFT_WATERMARK"
,
trim
(
$draft
),
'chaine'
,
0
,
''
,
$conf
->
entity
);
$res
=
dolibarr_set_const
(
$db
,
"CONTRACT_DRAFT_WATERMARK"
,
trim
(
$draft
),
'chaine'
,
0
,
''
,
$conf
->
entity
);
if
(
!
$res
>
0
)
$error
++
;
if
(
!
$res1
>
0
||
!
$res2
>
0
)
$error
++
;
if
(
!
$error
)
{
...
...
@@ -217,6 +202,7 @@ else if ($action == 'set_CONTRACT_DRAFT_WATERMARK')
}
}
/*
* View
*/
...
...
@@ -506,44 +492,43 @@ print "<br>";
*
*/
print
'<form action="'
.
$_SERVER
[
"PHP_SELF"
]
.
'" method="post">'
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="set_other">'
;
print_titre
(
$langs
->
trans
(
"OtherOptions"
));
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre">'
;
print
'<td>'
.
$langs
->
trans
(
"Parameter"
)
.
'</td>'
;
print
'<td align="center" width="60">'
.
$langs
->
trans
(
"Value"
)
.
'</td>'
;
print
"<td> </td>
\n
"
;
print
"</tr>
\n
"
;
$var
=
true
;
$var
=!
$var
;
print
'<form action="'
.
$_SERVER
[
"PHP_SELF"
]
.
'" method="post">'
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="set_CONTRACT_FREE_TEXT">'
;
print
'<tr '
.
$bc
[
$var
]
.
'><td colspan="2">'
;
print
$langs
->
trans
(
"FreeLegalTextOnContracts"
)
.
' ('
.
$langs
->
trans
(
"AddCRIfTooLong"
)
.
')<br>'
;
print
'<textarea name="CONTRACT_FREE_TEXT" class="flat" cols="120">'
.
$conf
->
global
->
CONTRACT_FREE_TEXT
.
'</textarea>'
;
print
'</td><td align="right">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'">'
;
print
"</td></tr>
\n
"
;
print
'</td></tr>'
.
"
\n
"
;
print
'</form>'
;
//Use draft Watermark
$var
=!
$var
;
print
"<form method=
\"
post
\"
action=
\"
"
.
$_SERVER
[
"PHP_SELF"
]
.
"
\"
>"
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
"<input type=
\"
hidden
\"
name=
\"
action
\"
value=
\"
set_CONTRACT_DRAFT_WATERMARK
\"
>"
;
print
'<tr '
.
$bc
[
$var
]
.
'><td colspan="2">'
;
print
$langs
->
trans
(
"WatermarkOnDraftContractCards"
)
.
'<br>'
;
print
'<input size="50" class="flat" type="text" name="CONTRACT_DRAFT_WATERMARK" value="'
.
$conf
->
global
->
CONTRACT_DRAFT_WATERMARK
.
'">'
;
print
'</td><td align="right">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'">'
;
print
"</td></tr>
\n
"
;
print
'</form>'
;
print
'</td></tr>'
.
"
\n
"
;
print
'</table>'
;
print
'<br>'
;
print
'<div class="center">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Save"
)
.
'">'
;
print
'</div>'
;
print
'</form>'
;
dol_fiche_end
();
$db
->
close
();
llxFooter
();
$db
->
close
();
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