! -> Note
$ -> Affected files
+------------------------------- Release 2.1.0 RC ------------------------------------------------
+09-Mar-2009 Joe Hunt
+! Release 2.1.0 Release Candidate (RC).
+$ config.php
+! Report clean up
+$ /reporting/includes/excel_report.inc
+
09-Mar-2009 Janusz Dobrowolski
# Initial prefs for new created user now copied form current admin settings.
$ /admin/users.php
$ /includes/session.inc
08-Mar-2009 Joe Hunt
-! XLS engine now compatible med PEAR Excel Writer.
+! XLS engine now compatible with PEAR Excel Writer.
$ /reporting/includes/excel_report.inc
/reporting/includes/Workbook.php
{
global $app_title, $version, $power_by, $power_url;
$this->company = get_company_prefs();
- //$this->docTitle($this->title);
- //$this->docAuthor($app_title . ' ' . $version);
- //$this->docCompany($this->company['coy_name']);
- //$this->docManager($power_by . ' - ' . $power_url);
$year = get_current_fiscalyear();
if ($year['closed'] == 0)
$how = _("Active");
$txt = date2sql($txt);
list($year, $mo, $day) = explode("-", $txt);
$date = $this->ymd2date((int)$year, (int)$mo, (int)$day);
- //$date = $this->ymd2date(2009, 3, 2);
$this->sheet->writeNumber($this->y, $c, $date, $this->formatDate);
- //$this->sheet->write_string($this->y, $c, $txt);
}
function TextCol2($c, $n, $txt, $corr=0, $r=0)
{
$excel_column_width_factor = 256;
$unit_offset_length = 6.5;
- /*
- $unit_offset_map = array(0, 36, 73, 109, 146, 182, 219);
- $width_units = $excel_column_width_factor * ($px / $unit_offset_length);
- $width_units += $unit_offset_map[($px % $unit_offset_length)];
- return $width_units;
- $pixels = (float)((float)$px / (float)$excel_column_width_factor) * $unit_offset_length;
- $ofs = $px % $excel_column_width_factor;
- $pixels += round((float)$ofs / ((float) $excel_column_width_factor / $unit_offset_length));
- return (int)$pixels;
- */
return ($px / $unit_offset_length);
}