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
b5cc1795
Commit
b5cc1795
authored
Sep 3, 2005
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Echec gnration images car rpertoire inexistant.
parent
44dc6227
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/rapport/Atome.class.php
+98
-86
98 additions, 86 deletions
htdocs/rapport/Atome.class.php
htdocs/rapport/index.php
+1
-1
1 addition, 1 deletion
htdocs/rapport/index.php
with
99 additions
and
87 deletions
htdocs/rapport/Atome.class.php
+
98
−
86
View file @
b5cc1795
<?php
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
...
...
@@ -17,11 +18,21 @@
*
* $Id$
* $Source$
*
*/
/**
\file htdocs/rapport/Atome.class.php
\brief Fichier de la classe mre Atome de gnration de rapports
*/
include_once
DOL_DOCUMENT_ROOT
.
'/bargraph.class.php'
;
/**
\class Atome
\brief Classe mre des classes de gnration des images de rapports
*/
class
Atome
{
var
$id
;
...
...
@@ -29,11 +40,11 @@ class Atome
var
$name
;
var
$periode
;
var
$graph_values
;
/**
* Initialisation de la classe
*
*/
function
AtomeInitialize
(
$periode
,
$name
,
$daystart
)
{
$this
->
year
=
strftime
(
"%Y"
,
$daystart
);
...
...
@@ -41,20 +52,21 @@ class Atome
$this
->
periode
=
$periode
;
$this
->
name
=
$name
;
}
/**
*
*
*
*/
function
BarGraph
()
{
$filename
=
DOL_DOCUMENT_ROOT
.
'/document/'
;
$dir
=
DOL_DATA_ROOT
.
'/rapport/images/'
;
if
(
!
is_dir
(
$dir
))
create_exdir
(
$dir
);
$this
->
graph_values
=
array
();
if
(
$this
->
periode
==
'year'
)
{
$filename
.
=
$this
->
name
.
$this
->
year
.
'.png'
;
$filename
=
$dir
.
$this
->
name
.
$this
->
year
.
'.png'
;
for
(
$i
=
0
;
$i
<
12
;
$i
++
)
{
...
...
@@ -73,7 +85,7 @@ class Atome
if
(
$this
->
periode
==
'month'
)
{
$filename
.
=
$this
->
name
.
$this
->
year
.
$this
->
month
.
'.png'
;
$filename
=
$dir
.
$this
->
name
.
$this
->
year
.
$this
->
month
.
'.png'
;
$datex
=
mktime
(
12
,
0
,
0
,
$this
->
month
,
1
,
$this
->
year
);
$i
=
0
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/rapport/index.php
+
1
−
1
View file @
b5cc1795
...
...
@@ -87,7 +87,7 @@ print $img."<br>";
$db
->
close
();
llxFooter
(
"<em>Dernière modification
$Date
$ révision
$Revision
$
</em>"
);
llxFooter
(
'$Date$ -
$Revision$
'
);
?>
...
...
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