Commit 1e528799 authored by Jean-Paul Saman's avatar Jean-Paul Saman

php 5.3.0 patches

parent 18a24422
...@@ -471,14 +471,14 @@ for ($s=0; $s < count($tasks); $s++) { ...@@ -471,14 +471,14 @@ for ($s=0; $s < count($tasks); $s++) {
if (isset($_POST['start_date'])) 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 <?php
} }
?> ?>
</table> </table>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl"> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl">
<tr> <tr>
<th><?= $AppUI->_('Select') ?></th> <th><?php $AppUI->_('Select') ?></th>
<th><?php echo $AppUI->_('Date');?></th> <th><?php echo $AppUI->_('Date');?></th>
<th><?php echo $AppUI->_('Log Summary');?></th> <th><?php echo $AppUI->_('Log Summary');?></th>
<th nowrap="nowrap"><?php echo $AppUI->_('Creator');?></th> <th nowrap="nowrap"><?php echo $AppUI->_('Creator');?></th>
......
...@@ -18,9 +18,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) ); ...@@ -18,9 +18,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) );
$landscape = 0; $landscape = 0;
if ($landscape != 1) if ($landscape != 1)
$pdf =& new Cezpdf("letter", "portrait"); $pdf = new Cezpdf("letter", "portrait");
else else
$pdf =& new Cezpdf("letter", "landscape"); $pdf = new Cezpdf("letter", "landscape");
$pdf->ezSetCmMargins( 1, 2, 1.5, 1.5 ); $pdf->ezSetCmMargins( 1, 2, 1.5, 1.5 );
......
...@@ -18,9 +18,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) ); ...@@ -18,9 +18,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) );
$landscape = 0; $landscape = 0;
if ($landscape != 1) if ($landscape != 1)
$pdf =& new Cezpdf("letter", "portrait"); $pdf = new Cezpdf("letter", "portrait");
else else
$pdf =& new Cezpdf("letter", "landscape"); $pdf = new Cezpdf("letter", "landscape");
$pdf->ezSetCmMargins( 1, 2, 1.5, 1.5 ); $pdf->ezSetCmMargins( 1, 2, 1.5, 1.5 );
......
<? <?php
$invoice_id = intval( dPgetParam( $_GET, "invoice_id", 0 ) ); $invoice_id = intval( dPgetParam( $_GET, "invoice_id", 0 ) );
$project_id = intval( dPgetParam( $_GET, "project_id", 0 ) ); $project_id = intval( dPgetParam( $_GET, "project_id", 0 ) );
// //$report_type = dPgetParam( $_REQUEST, "report_type", '' ); // //$report_type = dPgetParam( $_REQUEST, "report_type", '' );
// check permissions for this record // check permissions for this record
// Done in index.php // Done in index.php
//$canEdit = !getDenyEdit( $m, $project_id); $canEdit = !getDenyEdit( $m, $project_id);
if (!$canEdit) { if (!$canEdit) {
$AppUI->redirect( "m=public&a=access_denied" ); $AppUI->redirect( "m=public&a=access_denied" );
} }
...@@ -205,7 +205,7 @@ if ($a["task_amount"] == "0") { ...@@ -205,7 +205,7 @@ if ($a["task_amount"] == "0") {
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl" valign="top"> <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl" valign="top">
<tr> <tr>
<th width="10"><?= $AppUI->_('Date') ?></th> <th width="10"><?php $AppUI->_('Date') ?></th>
<th><?php echo $AppUI->_('Task Name');?></th> <th><?php echo $AppUI->_('Task Name');?></th>
<th width="250" nowrap="nowrap"><?php echo $AppUI->_('Task Creator');?></th> <th width="250" nowrap="nowrap"><?php echo $AppUI->_('Task Creator');?></th>
<th width="100" nowrap="nowrap"><?php echo $AppUI->_('Task Hours');?></th> <th width="100" nowrap="nowrap"><?php echo $AppUI->_('Task Hours');?></th>
...@@ -301,7 +301,7 @@ $tasks=db_fetch_assoc($tmptasks); ...@@ -301,7 +301,7 @@ $tasks=db_fetch_assoc($tmptasks);
</tr> </tr>
</table> </table>
<? <?php
$q = new DBQuery; $q = new DBQuery;
$q->addQuery('project_name, project_short_name'); $q->addQuery('project_name, project_short_name');
$q->addTable('projects'); $q->addTable('projects');
...@@ -322,9 +322,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) ); ...@@ -322,9 +322,9 @@ require( $AppUI->getLibraryClass( 'ezpdf/class.ezpdf' ) );
// $landscape = 0; // $landscape = 0;
// if ($landscape != 1) // if ($landscape != 1)
// $pdf =& new Cezpdf("letter", "portrait"); // $pdf = new Cezpdf("letter", "portrait");
// else // else
// $pdf =& new Cezpdf("letter", "landscape"); // $pdf = new Cezpdf("letter", "landscape");
// //
// $pdf->ezSetCmMargins( 1, 2, 1.5, 1.5 ); // $pdf->ezSetCmMargins( 1, 2, 1.5, 1.5 );
// $pdf->selectFont( "$font_dir/Helvetica.afm" ); // $pdf->selectFont( "$font_dir/Helvetica.afm" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment