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
0d3c5bcf
Commit
0d3c5bcf
authored
8 years ago
by
Alexandre SPANGARO
Browse files
Options
Downloads
Patches
Plain Diff
Update documents & info page - better look & feel v6
parent
dad1abd5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/compta/salaries/card.php
+2
-2
2 additions, 2 deletions
htdocs/compta/salaries/card.php
htdocs/compta/salaries/document.php
+24
-19
24 additions, 19 deletions
htdocs/compta/salaries/document.php
htdocs/compta/salaries/info.php
+25
-6
25 additions, 6 deletions
htdocs/compta/salaries/info.php
with
51 additions
and
27 deletions
htdocs/compta/salaries/card.php
+
2
−
2
View file @
0d3c5bcf
This diff is collapsed.
Click to expand it.
htdocs/compta/salaries/document.php
+
24
−
19
View file @
0d3c5bcf
...
...
@@ -6,7 +6,7 @@
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com>
* Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2015-201
6
Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
* Copyright (C) 2015-201
7
Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -36,7 +36,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/salaries.lib.php';
require_once
DOL_DOCUMENT_ROOT
.
'/compta/salaries/class/paymentsalary.class.php'
;
$langs
->
load
(
"other"
);
$langs
->
load
(
"users"
);
$langs
->
load
(
"salaries"
);
$langs
->
load
(
'hrm'
);
$langs
->
load
(
"companies"
);
$id
=
GETPOST
(
'id'
,
'int'
);
...
...
@@ -83,7 +85,6 @@ $form = new Form($db);
llxHeader
(
""
,
$langs
->
trans
(
"SalaryPayment"
));
if
(
$object
->
id
)
{
$object
->
fetch_thirdparty
();
...
...
@@ -92,7 +93,6 @@ if ($object->id)
dol_fiche_head
(
$head
,
'documents'
,
$langs
->
trans
(
"SalaryPayment"
),
0
,
'payment'
);
// Construit liste des fichiers
$filearray
=
dol_dir_list
(
$upload_dir
,
"files"
,
0
,
''
,
'(\.meta|_preview.*\.png)$'
,
$sortfield
,(
strtolower
(
$sortorder
)
==
'desc'
?
SORT_DESC
:
SORT_ASC
),
1
);
$totalsize
=
0
;
...
...
@@ -101,25 +101,30 @@ if ($object->id)
$totalsize
+=
$file
[
'size'
];
}
$linkback
=
'<a href="'
.
DOL_URL_ROOT
.
'/compta/salaries/index.php'
.
(
!
empty
(
$socid
)
?
'?socid='
.
$socid
:
''
)
.
'">'
.
$langs
->
trans
(
"BackToList"
)
.
'</a>'
;
print
'<table class="border" width="100%
">'
;
$morehtmlref
=
'<div class="refidno
">'
;
$linkback
=
'<a href="'
.
DOL_URL_ROOT
.
'/compta/salaries/index.php'
.
(
!
empty
(
$socid
)
?
'?socid='
.
$socid
:
''
)
.
'">'
.
$langs
->
trans
(
"BackToList"
)
.
'</a>'
;
$userstatic
=
new
User
(
$db
);
$userstatic
->
fetch
(
$object
->
fk_user
);
$morehtmlref
.
=
$langs
->
trans
(
'Employee'
)
.
' : '
.
$userstatic
->
getNomUrl
(
1
);
$morehtmlref
.
=
'</div>'
;
// Ref
print
'<tr><td class="titlefield">'
.
$langs
->
trans
(
"Ref"
)
.
'</td><td>'
;
print
$form
->
showrefnav
(
$object
,
'id'
,
$linkback
,
1
,
'rowid'
,
'ref'
,
''
);
print
'</td></tr>'
;
dol_banner_tab
(
$object
,
'id'
,
$linkback
,
1
,
'rowid'
,
'ref'
,
$morehtmlref
,
''
,
0
,
''
,
''
);
// Societe
//
print
"<tr><td>".$langs->trans("Company")."</td><td>".$object->client->getNomUrl(1)."</td></tr>"
;
print
'<div class="fichecenter">'
;
print
'<div class="underbanner clearboth"></div>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"NbOfAttachedFiles"
)
.
'</td><td colspan="3">'
.
count
(
$filearray
)
.
'</td></tr>'
;
print
'<table class="border" width="100%">'
;
print
'<tr><td class="titlefield">'
.
$langs
->
trans
(
"NbOfAttachedFiles"
)
.
'</td><td colspan="3">'
.
count
(
$filearray
)
.
'</td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"TotalSizeOfAttachedFiles"
)
.
'</td><td colspan="3">'
.
$totalsize
.
' '
.
$langs
->
trans
(
"bytes"
)
.
'</td></tr>'
;
print
'</table>'
;
print
'</div>'
;
dol_fiche_end
();
$modulepart
=
'salaries'
;
$permission
=
$user
->
rights
->
salaries
->
write
;
$param
=
'&id='
.
$object
->
id
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/salaries/info.php
+
25
−
6
View file @
0d3c5bcf
<?php
/* Copyright (C) 2005-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Charlie BENKE <charlie@patas-monkey.com>
* Copyright (C) 2017 Alexandre Spangaro <aspangaro@zendsi.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -29,7 +30,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
$langs
->
load
(
"compta"
);
$langs
->
load
(
"bills"
);
$langs
->
load
(
"users"
);
$langs
->
load
(
"salaries"
);
$langs
->
load
(
'hrm'
);
$id
=
GETPOST
(
'id'
,
'int'
);
$action
=
GETPOST
(
'action'
,
'aZ09'
);
...
...
@@ -46,21 +49,37 @@ $result = restrictedArea($user, 'salaries', '', '', '');
llxHeader
(
""
,
$langs
->
trans
(
"SalaryPayment"
));
$
salpaymen
t
=
new
PaymentSalary
(
$db
);
$
result
=
$salpaymen
t
->
fetch
(
$id
);
$
salpaymen
t
->
info
(
$id
);
$
objec
t
=
new
PaymentSalary
(
$db
);
$
objec
t
->
fetch
(
$id
);
$
objec
t
->
info
(
$id
);
$head
=
salaries_prepare_head
(
$
salpaymen
t
);
$head
=
salaries_prepare_head
(
$
objec
t
);
dol_fiche_head
(
$head
,
'info'
,
$langs
->
trans
(
"SalaryPayment"
),
0
,
'payment'
);
$linkback
=
'<a href="'
.
DOL_URL_ROOT
.
'/compta/salaries/index.php'
.
(
!
empty
(
$socid
)
?
'?socid='
.
$socid
:
''
)
.
'">'
.
$langs
->
trans
(
"BackToList"
)
.
'</a>'
;
$morehtmlref
=
'<div class="refidno">'
;
$userstatic
=
new
User
(
$db
);
$userstatic
->
fetch
(
$object
->
fk_user
);
$morehtmlref
.
=
$langs
->
trans
(
'Employee'
)
.
' : '
.
$userstatic
->
getNomUrl
(
1
);
$morehtmlref
.
=
'</div>'
;
dol_banner_tab
(
$object
,
'id'
,
$linkback
,
1
,
'rowid'
,
'ref'
,
$morehtmlref
,
''
,
0
,
''
,
''
);
print
'<div class="fichecenter">'
;
print
'<div class="underbanner clearboth"></div>'
;
print
'<table width="100%"><tr><td>'
;
dol_print_object_info
(
$
salpaymen
t
);
dol_print_object_info
(
$
objec
t
);
print
'</td></tr></table>'
;
print
'</div>'
;
dol_fiche_end
();
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