[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qsos-commits] qsos/apps/phpviewer export_oo.php
From: |
Raphaël Semeteys |
Subject: |
[Qsos-commits] qsos/apps/phpviewer export_oo.php |
Date: |
Sun, 12 Nov 2006 11:03:34 +0000 |
CVSROOT: /sources/qsos
Module name: qsos
Changes by: Raphaël Semeteys <rsemeteys> 06/11/12 11:03:34
Modified files:
apps/phpviewer : export_oo.php
Log message:
Header completed (authors and dates)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/phpviewer/export_oo.php?cvsroot=qsos&r1=1.2&r2=1.3
Patches:
Index: export_oo.php
===================================================================
RCS file: /sources/qsos/qsos/apps/phpviewer/export_oo.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- export_oo.php 11 Nov 2006 23:49:04 -0000 1.2
+++ export_oo.php 12 Nov 2006 11:03:34 -0000 1.3
@@ -575,6 +575,77 @@
$row->appendChild($cell);
$table->appendChild($row);
+ //Authors
+ $authors = $input->getauthors();
+ $list = "";
+ for ($i=0; $i < count($authors); $i++) {
+ if ($i != 0) {
+ $list .= ", ";
+ }
+ $list .= $authors[$i]->name." (".$authors[$i]->email.")";
+ }
+ $row = $output->createElement('table:table-row');
+ $row->setAttribute("table:style-name","ro1");
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce2");
+ $cell->setAttribute("office:value-type","string");
+ $text = $output->createElement('text:p',"Authors");
+ $cell->appendChild($text);
+ $row->appendChild($cell);
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce8");
+ $cell->setAttribute("office:value-type","string");
+ $text = $output->createElement('text:p',$list);
+ $cell->appendChild($text);
+ $row->appendChild($cell);
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce8");
+ $cell->setAttribute("table:number-columns-repeated","2");
+ $row->appendChild($cell);
+ $table->appendChild($row);
+
+ //Creation date
+ $row = $output->createElement('table:table-row');
+ $row->setAttribute("table:style-name","ro1");
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce2");
+ $cell->setAttribute("office:value-type","string");
+ $text = $output->createElement('text:p',"Creation date");
+ $cell->appendChild($text);
+ $row->appendChild($cell);
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce8");
+ $cell->setAttribute("office:value-type","string");
+ $text = $output->createElement('text:p',$input->getkey("creation"));
+ $cell->appendChild($text);
+ $row->appendChild($cell);
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce8");
+ $cell->setAttribute("table:number-columns-repeated","2");
+ $row->appendChild($cell);
+ $table->appendChild($row);
+
+ //Validation date
+ $row = $output->createElement('table:table-row');
+ $row->setAttribute("table:style-name","ro1");
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce2");
+ $cell->setAttribute("office:value-type","string");
+ $text = $output->createElement('text:p',"Validation date");
+ $cell->appendChild($text);
+ $row->appendChild($cell);
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce8");
+ $cell->setAttribute("office:value-type","string");
+ $text = $output->createElement('text:p',$input->getkey("validation"));
+ $cell->appendChild($text);
+ $row->appendChild($cell);
+ $cell = $output->createElement('table:table-cell');
+ $cell->setAttribute("table:style-name","ce8");
+ $cell->setAttribute("table:number-columns-repeated","2");
+ $row->appendChild($cell);
+ $table->appendChild($row);
+
$row = $output->createElement('table:table-row');
$row->setAttribute("table:style-name","ro1");
$row->setAttribute("table:number-rows-repeated","2");
@@ -614,7 +685,7 @@
$table->appendChild($row);
//Init row counter
- $numrow = 11;
+ $numrow = 14;
//Init loop
showtree($output, $input, $input->getTree(), $table, 0);