Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
invoice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dotproject
invoice
Commits
1e528799
Commit
1e528799
authored
Jan 05, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php 5.3.0 patches
parent
18a24422
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
addedit.php
addedit.php
+2
-2
reports/invoicestyle1.php
reports/invoicestyle1.php
+2
-2
reports/invoicestyle2.php
reports/invoicestyle2.php
+2
-2
view.php
view.php
+6
-6
No files found.
addedit.php
View file @
1e528799
...
...
@@ -471,14 +471,14 @@ for ($s=0; $s < count($tasks); $s++) {
if
(
isset
(
$_POST
[
'start_date'
]))
{
?>
<tr><td
colspan=
"2"
>
<?
=
'Dates between: '
.
$_POST
[
'start_date'
]
.
' and '
.
$_POST
[
'end_date'
]
.
'<br />'
?>
</td></tr>
;
<tr><td
colspan=
"2"
>
<?
php
'Dates between: '
.
$_POST
[
'start_date'
]
.
' and '
.
$_POST
[
'end_date'
]
.
'<br />'
?>
</td></tr>
;
<?php
}
?>
</table>
<table
width=
"100%"
border=
"0"
cellpadding=
"2"
cellspacing=
"1"
class=
"tbl"
>
<tr>
<th>
<?
=
$AppUI
->
_
(
'Select'
)
?>
</th>
<th>
<?
php
$AppUI
->
_
(
'Select'
)
?>
</th>
<th>
<?php
echo
$AppUI
->
_
(
'Date'
);
?>
</th>
<th>
<?php
echo
$AppUI
->
_
(
'Log Summary'
);
?>
</th>
<th
nowrap=
"nowrap"
>
<?php
echo
$AppUI
->
_
(
'Creator'
);
?>
</th>
...
...
reports/invoicestyle1.php
View file @
1e528799
...
...
@@ -18,9 +18,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) );
$landscape
=
0
;
if
(
$landscape
!=
1
)
$pdf
=
&
new
Cezpdf
(
"letter"
,
"portrait"
);
$pdf
=
new
Cezpdf
(
"letter"
,
"portrait"
);
else
$pdf
=
&
new
Cezpdf
(
"letter"
,
"landscape"
);
$pdf
=
new
Cezpdf
(
"letter"
,
"landscape"
);
$pdf
->
ezSetCmMargins
(
1
,
2
,
1.5
,
1.5
);
...
...
reports/invoicestyle2.php
View file @
1e528799
...
...
@@ -18,9 +18,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) );
$landscape
=
0
;
if
(
$landscape
!=
1
)
$pdf
=
&
new
Cezpdf
(
"letter"
,
"portrait"
);
$pdf
=
new
Cezpdf
(
"letter"
,
"portrait"
);
else
$pdf
=
&
new
Cezpdf
(
"letter"
,
"landscape"
);
$pdf
=
new
Cezpdf
(
"letter"
,
"landscape"
);
$pdf
->
ezSetCmMargins
(
1
,
2
,
1.5
,
1.5
);
...
...
view.php
View file @
1e528799
<?
<?
php
$invoice_id
=
intval
(
dPgetParam
(
$_GET
,
"invoice_id"
,
0
)
);
$project_id
=
intval
(
dPgetParam
(
$_GET
,
"project_id"
,
0
)
);
// //$report_type = dPgetParam( $_REQUEST, "report_type", '' );
// check permissions for this record
// Done in index.php
//
$canEdit = !getDenyEdit( $m, $project_id);
$canEdit
=
!
getDenyEdit
(
$m
,
$project_id
);
if
(
!
$canEdit
)
{
$AppUI
->
redirect
(
"m=public&a=access_denied"
);
}
...
...
@@ -205,7 +205,7 @@ if ($a["task_amount"] == "0") {
<table
width=
"100%"
border=
"0"
cellpadding=
"2"
cellspacing=
"1"
class=
"tbl"
valign=
"top"
>
<tr>
<th
width=
"10"
>
<?
=
$AppUI
->
_
(
'Date'
)
?>
</th>
<th
width=
"10"
>
<?
php
$AppUI
->
_
(
'Date'
)
?>
</th>
<th>
<?php
echo
$AppUI
->
_
(
'Task Name'
);
?>
</th>
<th
width=
"250"
nowrap=
"nowrap"
>
<?php
echo
$AppUI
->
_
(
'Task Creator'
);
?>
</th>
<th
width=
"100"
nowrap=
"nowrap"
>
<?php
echo
$AppUI
->
_
(
'Task Hours'
);
?>
</th>
...
...
@@ -301,7 +301,7 @@ $tasks=db_fetch_assoc($tmptasks);
</tr>
</table>
<?
<?
php
$q
=
new
DBQuery
;
$q
->
addQuery
(
'project_name, project_short_name'
);
$q
->
addTable
(
'projects'
);
...
...
@@ -322,9 +322,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) );
// $landscape = 0;
// if ($landscape != 1)
// $pdf =
&
new Cezpdf("letter", "portrait");
// $pdf = new Cezpdf("letter", "portrait");
// else
// $pdf =
&
new Cezpdf("letter", "landscape");
// $pdf = new Cezpdf("letter", "landscape");
//
// $pdf->ezSetCmMargins( 1, 2, 1.5, 1.5 );
// $pdf->selectFont( "$font_dir/Helvetica.afm" );
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment