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++) {
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>
......
......@@ -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 );
......
......@@ -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 );
......
<?
<?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" );
......
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