[Fusionforge-commits] r11891 - trunk/src/common/widget

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Thu Dec 23 12:07:00 CET 2010


Author: nerville
Date: 2010-12-23 12:07:00 +0100 (Thu, 23 Dec 2010)
New Revision: 11891

Modified:
   trunk/src/common/widget/Widget_MyProjectsLatestDocuments.class.php
Log:
land first light and buggy version of MyProjectsLatestDocuments widget

Modified: trunk/src/common/widget/Widget_MyProjectsLatestDocuments.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyProjectsLatestDocuments.class.php	2010-12-23 10:56:24 UTC (rev 11890)
+++ trunk/src/common/widget/Widget_MyProjectsLatestDocuments.class.php	2010-12-23 11:07:00 UTC (rev 11891)
@@ -68,13 +68,18 @@
 				}
 
 				$df = new DocumentFactory($g);
-				$docs_arr = $df->getFromDB(5,array('updatedate','createdate'),false);
+				$df->getFromDB(5,array('updatedate','createdate'),false);
 
-				list($hide_now,$count_diff,$hide_url) = my_hide_url('docmanproject',$g->getID(),$hide_item_id,count($docs_arr),$hide_docmanproject);
-				$html_my_projects .= '
-					<TR '. $HTML->boxGetAltRowStyle($i) .'"><TD>'.
-					'<A href="/docman/?group_id='. $g->getID() .'/">'.
-					$g->getPublicName().'</A></td><td>[]</td></tr>';
+				list($hide_now,$count_diff,$hide_url) = my_hide_url('docmanproject',$g->getID(),$hide_item_id,count($df->Documents),$hide_docmanproject);
+				$html_hdr = ($i ? '<tr class="boxitem"><td colspan="2">' : '').
+					$hide_url.'<a HREF="/docman/?group_id='.$g->getID().'">'.
+					$g->getPublicName().'</A>&nbsp;&nbsp;&nbsp;&nbsp;';
+
+				$html = '';
+
+				$html_hdr .= '['.count($df->Documents).']</td></tr>';
+
+				$html_my_projects .= $html_hdr.$html;
 			}
 			$html_my_projects .= '</table>';
 		}




More information about the Fusionforge-commits mailing list