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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
c11c3897
Commit
c11c3897
authored
Sep 12, 2012
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Qual: Uniformize code
parent
b221b887
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/commissions/admin/commissions.php
+7
-1
7 additions, 1 deletion
htdocs/commissions/admin/commissions.php
htdocs/holiday/admin/holiday.php
+2
-1
2 additions, 1 deletion
htdocs/holiday/admin/holiday.php
htdocs/margin/admin/margin.php
+9
-3
9 additions, 3 deletions
htdocs/margin/admin/margin.php
with
18 additions
and
5 deletions
htdocs/commissions/admin/commissions.php
+
7
−
1
View file @
c11c3897
...
@@ -39,6 +39,7 @@ if (GETPOST('commissionBase'))
...
@@ -39,6 +39,7 @@ if (GETPOST('commissionBase'))
if
(
dolibarr_set_const
(
$db
,
'COMMISSION_BASE'
,
GETPOST
(
'commissionBase'
),
'string'
,
0
,
''
,
$conf
->
entity
)
>
0
)
if
(
dolibarr_set_const
(
$db
,
'COMMISSION_BASE'
,
GETPOST
(
'commissionBase'
),
'string'
,
0
,
''
,
$conf
->
entity
)
>
0
)
{
{
$conf
->
global
->
COMMISSION_BASE
=
GETPOST
(
'commissionBase'
);
$conf
->
global
->
COMMISSION_BASE
=
GETPOST
(
'commissionBase'
);
setEventMessage
(
$langs
->
trans
(
"RecordModifiedSuccessfully"
));
}
}
else
else
{
{
...
@@ -154,10 +155,15 @@ print '</tr>';
...
@@ -154,10 +155,15 @@ print '</tr>';
print
'</table>'
;
print
'</table>'
;
print
'<br>'
;
print
'</form>'
;
print
'</form>'
;
dol_fiche_end
();
dol_htmloutput_events
();
print
'<br>'
;
llxFooter
();
llxFooter
();
$db
->
close
();
$db
->
close
();
...
...
This diff is collapsed.
Click to expand it.
htdocs/holiday/admin/holiday.php
+
2
−
1
View file @
c11c3897
...
@@ -33,6 +33,7 @@ require_once DOL_DOCUMENT_ROOT. '/user/class/usergroup.class.php';
...
@@ -33,6 +33,7 @@ require_once DOL_DOCUMENT_ROOT. '/user/class/usergroup.class.php';
$action
=
GETPOST
(
'action'
);
$action
=
GETPOST
(
'action'
);
$langs
->
load
(
"admin"
);
$langs
->
load
(
"holiday"
);
$langs
->
load
(
"holiday"
);
// Si pas administrateur
// Si pas administrateur
...
...
This diff is collapsed.
Click to expand it.
htdocs/margin/admin/margin.php
+
9
−
3
View file @
c11c3897
...
@@ -70,6 +70,7 @@ if ($action == 'remises')
...
@@ -70,6 +70,7 @@ if ($action == 'remises')
if
(
dolibarr_set_const
(
$db
,
'MARGIN_METHODE_FOR_DISCOUNT'
,
$_POST
[
'MARGIN_METHODE_FOR_DISCOUNT'
],
'chaine'
,
0
,
''
,
$conf
->
entity
)
>
0
)
if
(
dolibarr_set_const
(
$db
,
'MARGIN_METHODE_FOR_DISCOUNT'
,
$_POST
[
'MARGIN_METHODE_FOR_DISCOUNT'
],
'chaine'
,
0
,
''
,
$conf
->
entity
)
>
0
)
{
{
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
=
$_POST
[
'MARGIN_METHODE_FOR_DISCOUNT'
];
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
=
$_POST
[
'MARGIN_METHODE_FOR_DISCOUNT'
];
setEventMessage
(
$langs
->
trans
(
"RecordModifiedSuccessfully"
));
}
}
else
else
{
{
...
@@ -82,6 +83,7 @@ if ($action == 'typemarges')
...
@@ -82,6 +83,7 @@ if ($action == 'typemarges')
if
(
dolibarr_set_const
(
$db
,
'MARGIN_TYPE'
,
$_POST
[
'MARGIN_TYPE'
],
'chaine'
,
0
,
''
,
$conf
->
entity
)
>
0
)
if
(
dolibarr_set_const
(
$db
,
'MARGIN_TYPE'
,
$_POST
[
'MARGIN_TYPE'
],
'chaine'
,
0
,
''
,
$conf
->
entity
)
>
0
)
{
{
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
=
$_POST
[
'MARGIN_TYPE'
];
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
=
$_POST
[
'MARGIN_TYPE'
];
setEventMessage
(
$langs
->
trans
(
"RecordModifiedSuccessfully"
));
}
}
else
else
{
{
...
@@ -134,7 +136,7 @@ if (isset($conf->global->MARGIN_TYPE) && $conf->global->MARGIN_TYPE == '2')
...
@@ -134,7 +136,7 @@ if (isset($conf->global->MARGIN_TYPE) && $conf->global->MARGIN_TYPE == '2')
print
'/>'
;
print
'/>'
;
print
'</td>'
;
print
'</td>'
;
print
'<td>'
;
print
'<td>'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'"
class="button"
>'
;
print
'</td>'
;
print
'</td>'
;
print
'<td>'
.
$langs
->
trans
(
'MARGIN_TYPE_DETAILS'
)
.
'</td>'
;
print
'<td>'
.
$langs
->
trans
(
'MARGIN_TYPE_DETAILS'
)
.
'</td>'
;
print
'</tr>'
;
print
'</tr>'
;
...
@@ -222,7 +224,7 @@ print "<input type=\"hidden\" name=\"action\" value=\"remises\">";
...
@@ -222,7 +224,7 @@ print "<input type=\"hidden\" name=\"action\" value=\"remises\">";
print
'<tr '
.
$bc
[
$var
]
.
'>'
;
print
'<tr '
.
$bc
[
$var
]
.
'>'
;
print
'<td>'
.
$langs
->
trans
(
"MARGIN_METHODE_FOR_DISCOUNT"
)
.
'</td>'
;
print
'<td>'
.
$langs
->
trans
(
"MARGIN_METHODE_FOR_DISCOUNT"
)
.
'</td>'
;
print
'<td align="left">'
;
print
'<td align="left">'
;
print
'<select name="MARGIN_METHODE_FOR_DISCOUNT" >'
;
print
'<select name="MARGIN_METHODE_FOR_DISCOUNT"
class="flat"
>'
;
print
'<option value="1" '
;
print
'<option value="1" '
;
if
(
isset
(
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
)
&&
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
==
'1'
)
if
(
isset
(
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
)
&&
$conf
->
global
->
MARGIN_METHODE_FOR_DISCOUNT
==
'1'
)
print
'selected '
;
print
'selected '
;
...
@@ -245,8 +247,12 @@ print '</tr>';
...
@@ -245,8 +247,12 @@ print '</tr>';
print
'</form>'
;
print
'</form>'
;
print
'</table>'
;
print
'</table>'
;
print
'<br>'
;
dol_fiche_end
();
dol_htmloutput_events
();
print
'<br>'
;
llxFooter
();
llxFooter
();
$db
->
close
();
$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