Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f89cef7a
authored
Jul 18, 2011
by
Frederick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mcFPDF benoetigt Bibliothek fpdf16/fpdf.php
1 parent
7eaeffe6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
1 deletions
class_mcFPDF.inc.php
include.php
class_mcFPDF.inc.php
0 → 100644
View file @
f89cef7
<?
class
mcFPDF
extends
FPDF
{
protected
static
function
setCell
(
FPDF
$param_fpdf
,
$param_value
,
$param_x
,
$param_width
,
$param_align
=
'L'
)
{
$param_fpdf
->
SetX
(
$param_x
);
if
(
$param_width
<
0
)
{
$param_width
=
0
;
}
$param_fpdf
->
Cell
(
$param_width
,
7
,
$param_value
,
0
,
0
,
$param_align
);
}
public
static
function
tab_setHeadLine
(
FPDF
$param_fpdf
,
array
$param_values
,
array
$param_table_parameter
=
null
)
{
$param_fpdf
->
SetFont
(
'Arial'
,
'B'
,
8
);
self
::
tab_setLine
(
$param_fpdf
,
$param_values
,
$param_table_parameter
);
// Linienfarbe auf schwarz einstellen
$param_fpdf
->
SetDrawColor
(
0
,
0
,
0
);
// Linienbreite einstellen, 0.2 mm
$param_fpdf
->
SetLineWidth
(
0.2
);
// Linien zeichnen
$param_fpdf
->
Line
(
10
,
$param_fpdf
->
getY
(),
186
,
$param_fpdf
->
getY
());
$param_fpdf
->
Ln
(
3
);
}
private
static
function
tab_getdefaultTableParameter
()
{
$table_parameter
=
array
();
$table_parameter
[
'leftPostions'
]
=
array
();
foreach
(
$param_values
as
$tmp
)
{
$table_parameter
[
'leftPostions'
][]
=
array
(
'pos'
=>
20
,
'align'
=>
'L'
);
}
$table_parameter
[
'linesize'
]
=
5
;
return
$table_parameter
;
}
public
static
function
tab_setLine
(
FPDF
$param_fpdf
,
array
$param_values
,
array
$param_table_parameter
=
null
)
{
if
(
is_null
(
$param_table_parameter
))
{
$param_table_parameter
=
self
::
tab_getdefaultTableParameter
();
}
if
(
count
(
$param_table_parameter
[
'leftPostions'
])
==
count
(
$param_values
))
{
foreach
(
$param_values
as
$id
=>
$value
)
{
self
::
setCell
(
$param_fpdf
,
$value
,
$param_table_parameter
[
'leftPostions'
][
$id
][
'pos'
],
$param_table_parameter
[
'leftPostions'
][
$id
+
1
][
'pos'
]
-
$param_table_parameter
[
'leftPostions'
][
$id
][
'pos'
],
$param_table_parameter
[
'leftPostions'
][
$id
][
'align'
]);
}
}
$param_fpdf
->
Ln
(
$param_table_parameter
[
'linesize'
]);
}
}
?>
include.php
View file @
f89cef7
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
* @since 2011-01-07
* @since 2011-01-07
*/
*/
//require_once('../fpdf16/fpdf.php');
require_once
(
"basepath.inc.php"
);
require_once
(
"basepath.inc.php"
);
require_once
$__PATH_to_mcClasses
.
'class_mcMail.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcMail.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcFile.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcFile.inc.php'
;
...
@@ -26,9 +29,10 @@ require_once $__PATH_to_mcClasses . 'class_mcPerformance.inc.php';
...
@@ -26,9 +29,10 @@ require_once $__PATH_to_mcClasses . 'class_mcPerformance.inc.php';
require_once
$__PATH_to_mcClasses
.
'class_mcCrypt.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcCrypt.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcString.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcString.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcNumber.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'class_mcNumber.inc.php'
;
//require_once $__PATH_to_mcClasses . 'class_
.inc.php';
require_once
$__PATH_to_mcClasses
.
'class_mcFPDF
.inc.php'
;
//require_once $__PATH_to_mcClasses . 'class_.inc.php';
//require_once $__PATH_to_mcClasses . 'class_.inc.php';
//require_once $__PATH_to_mcClasses . 'class_.inc.php';
//require_once $__PATH_to_mcClasses . 'class_.inc.php';
require_once
$__PATH_to_mcClasses
.
'finance/class_mcZinsmethoden.inc.php'
;
require_once
$__PATH_to_mcClasses
.
'finance/class_mcZinsmethoden.inc.php'
;
?>
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment