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
ce94eef9
Commit
ce94eef9
authored
Jan 19, 2011
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: bug #30386 : Visualisation pour impression incorrect pour rapport TVA
parent
b77879d9
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/tva/clients.php
+8
-3
8 additions, 3 deletions
htdocs/compta/tva/clients.php
htdocs/compta/tva/quadri_detail.php
+8
-1
8 additions, 1 deletion
htdocs/compta/tva/quadri_detail.php
htdocs/main.inc.php
+24
-21
24 additions, 21 deletions
htdocs/main.inc.php
with
40 additions
and
25 deletions
htdocs/compta/tva/clients.php
+
8
−
3
View file @
ce94eef9
...
...
@@ -89,11 +89,16 @@ $result = restrictedArea($user, 'tax', '', '', 'charges');
*/
$html
=
new
Form
(
$db
);
llxHeader
();
$company_static
=
new
Societe
(
$db
);
$morequerystring
=
''
;
$listofparams
=
array
(
'date_startmonth'
,
'date_startyear'
,
'date_startday'
,
'date_endmonth'
,
'date_endyear'
,
'date_endday'
);
foreach
(
$listofparams
as
$param
)
{
if
(
GETPOST
(
$param
)
!=
''
)
$morequerystring
.
=
(
$morequerystring
?
'&'
:
''
)
.
$param
.
'='
.
GETPOST
(
$param
);
}
llxHeader
(
''
,
''
,
''
,
''
,
0
,
0
,
''
,
''
,
$morequerystring
);
$fsearch
.
=
'<br>'
;
$fsearch
.
=
' <input type="hidden" name="year" value="'
.
$year
.
'">'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/tva/quadri_detail.php
+
8
−
1
View file @
ce94eef9
...
...
@@ -95,7 +95,14 @@ $result = restrictedArea($user, 'tax', '', '', 'charges');
* View
*/
llxHeader
();
$morequerystring
=
''
;
$listofparams
=
array
(
'date_startmonth'
,
'date_startyear'
,
'date_startday'
,
'date_endmonth'
,
'date_endyear'
,
'date_endday'
);
foreach
(
$listofparams
as
$param
)
{
if
(
GETPOST
(
$param
)
!=
''
)
$morequerystring
.
=
(
$morequerystring
?
'&'
:
''
)
.
$param
.
'='
.
GETPOST
(
$param
);
}
llxHeader
(
''
,
''
,
''
,
''
,
0
,
0
,
''
,
''
,
$morequerystring
);
$html
=
new
Form
(
$db
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/main.inc.php
+
24
−
21
View file @
ce94eef9
...
...
@@ -753,22 +753,23 @@ $heightforframes=48;
/**
* \brief Show HTML header HTML + BODY + Top menu + left menu + DIV
* \param head Add optionnal head lines
* \param title
* \param help_url
* \param target
* \param disablejs
* \param disablehead
* \param arrayofjs
* \param arrayofcss
* Show HTML header HTML + BODY + Top menu + left menu + DIV
* @param head Add optionnal head lines
* @param title Title of web page
* @param help_url Url links to help page
* @param target Target to use in menu links
* @param disablejs Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax)
* @param disablehead Do not output head section
* @param arrayofjs Array of js files to add in header
* @param arrayofcss Array of css files to add in header
* @param morequerystring Query string to add to the link "print" to get same parameters (use only if autodetect fails)
*/
if
(
!
function_exists
(
"llxHeader"
))
{
function
llxHeader
(
$head
=
''
,
$title
=
''
,
$help_url
=
''
,
$target
=
''
,
$disablejs
=
0
,
$disablehead
=
0
,
$arrayofjs
=
''
,
$arrayofcss
=
''
)
function
llxHeader
(
$head
=
''
,
$title
=
''
,
$help_url
=
''
,
$target
=
''
,
$disablejs
=
0
,
$disablehead
=
0
,
$arrayofjs
=
''
,
$arrayofcss
=
''
,
$morequerystring
=
''
)
{
top_htmlhead
(
$head
,
$title
,
$disablejs
,
$disablehead
,
$arrayofjs
,
$arrayofcss
);
// Show html headers
top_menu
(
$head
,
$title
,
$target
,
$disablejs
,
$disablehead
,
$arrayofjs
,
$arrayofcss
);
top_menu
(
$head
,
$title
,
$target
,
$disablejs
,
$disablehead
,
$arrayofjs
,
$arrayofcss
,
$morequerystring
);
left_menu
(
''
,
$help_url
,
''
,
''
,
1
);
main_area
();
}
...
...
@@ -932,16 +933,17 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
/**
* \brief Show an HTML header + a BODY + The top menu bar
* \param head Lines in the HEAD
* \param title Title of web page
* \param target Target to use in menu links
* \param disablejs Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax)
* \param disablehead Do not output head section
* \param arrayofjs Array of js files to add in header
* \param arrayofcss Array of css files to add in header
* Show an HTML header + a BODY + The top menu bar
* @param head Lines in the HEAD
* @param title Title of web page
* @param target Target to use in menu links
* @param disablejs Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax)
* @param disablehead Do not output head section
* @param arrayofjs Array of js files to add in header
* @param arrayofcss Array of css files to add in header
* @param morequerystring Query string to add to the link "print" to get same parameters (use only if autodetect fails)
*/
function
top_menu
(
$head
,
$title
=
''
,
$target
=
''
,
$disablejs
=
0
,
$disablehead
=
0
,
$arrayofjs
=
''
,
$arrayofcss
=
''
)
function
top_menu
(
$head
,
$title
=
''
,
$target
=
''
,
$disablejs
=
0
,
$disablehead
=
0
,
$arrayofjs
=
''
,
$arrayofcss
=
''
,
$morequerystring
=
''
)
{
global
$user
,
$conf
,
$langs
,
$db
,
$dolibarr_main_authentication
;
...
...
@@ -1152,7 +1154,8 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
// Link to print main content area
if
(
empty
(
$conf
->
global
->
MAIN_PRINT_DISABLELINK
)
&&
empty
(
$conf
->
browser
->
phone
))
{
$text
=
'<a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?'
.
$_SERVER
[
"QUERY_STRING"
]
.
'&optioncss=print" target="_blank">'
;
$qs
=
$_SERVER
[
"QUERY_STRING"
]
.
(
$_SERVER
[
"QUERY_STRING"
]
?
'&'
:
''
)
.
$morequerystring
;
$text
=
'<a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?'
.
$qs
.
(
$qs
?
'&'
:
''
)
.
'optioncss=print" target="_blank">'
;
$text
.
=
'<img class="printer" border="0" width="14" height="14" src="'
.
DOL_URL_ROOT
.
'/theme/'
.
$conf
->
theme
.
'/img/printer.png"'
;
$text
.
=
' title="" alt="">'
;
$text
.
=
'</a>'
;
...
...
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