[Fusionforge-commits] r16093 - in trunk/src: . common/docman/views

Franck VILLAUME nerville at fusionforge.org
Thu Aug 16 15:36:00 CEST 2012


Author: nerville
Date: 2012-08-16 15:35:59 +0200 (Thu, 16 Aug 2012)
New Revision: 16093

Modified:
   trunk/src/CHANGES
   trunk/src/common/docman/views/addfile.php
   trunk/src/common/docman/views/additem.php
   trunk/src/common/docman/views/editfile.php
Log:
display max upload size

Modified: trunk/src/CHANGES
===================================================================
--- trunk/src/CHANGES	2012-08-16 13:27:24 UTC (rev 16092)
+++ trunk/src/CHANGES	2012-08-16 13:35:59 UTC (rev 16093)
@@ -8,7 +8,7 @@
         fingerprint, deploy flag, easy delete (TrivialDev)
 * Docman: Directory monitoring (TrivialDev)
 * Activity: New Directory appears now in activity (TrivialDev)
-* Docman: Number of download per file (TrivialDev)
+* Docman: Display number of download per file, max upload size (TrivialDev)
 
 Plugins:
 * headermenu: new plugin to add links in login/logout menu link (TrivialDev)

Modified: trunk/src/common/docman/views/addfile.php
===================================================================
--- trunk/src/common/docman/views/addfile.php	2012-08-16 13:27:24 UTC (rev 16092)
+++ trunk/src/common/docman/views/addfile.php	2012-08-16 13:35:59 UTC (rev 16093)
@@ -129,7 +129,7 @@
 					<td style="text-align:right;">
 						<strong>'. _('Upload File') .'</strong>'. utils_requiredField()
 					.'</td><td>'
-						.' <input type="file" name="uploaded_data" size="30" />
+						.' <input type="file" name="uploaded_data" size="30" />'.sprintf(_('(max upload size: %1$s)'),human_readable_bytes(util_get_maxuploadfilesize())).'
 					</td>
 				</tr>
 				<tr id="urlrow" style="display:none">

Modified: trunk/src/common/docman/views/additem.php
===================================================================
--- trunk/src/common/docman/views/additem.php	2012-08-16 13:27:24 UTC (rev 16092)
+++ trunk/src/common/docman/views/additem.php	2012-08-16 13:35:59 UTC (rev 16093)
@@ -3,6 +3,7 @@
  * FusionForge Documentation Manager
  *
  * Copyright 2010-2011, Franck Villaume - Capgemini
+ * Copyright 2012, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -75,7 +76,7 @@
 	echo '<h4 class="docman_h4">'. _('Inject a Tree') .'</h4>';
 	echo '<form id="injectzip" name="injectzip" method="post" action="?group_id='.$group_id.'&action=injectzip&dirid='.$dirid.'" enctype="multipart/form-data">';
 	echo '<p>';
-	echo '<label>' . _('Upload archive:') . ' </label><input type="file" name="uploaded_zip" size="30" />';
+	echo '<label>' . _('Upload archive:') . ' </label><input type="file" name="uploaded_zip" size="30" />'.sprintf(_('(max upload size: %1$s)'),human_readable_bytes(util_get_maxuploadfilesize()));
 	echo '<input id="submitinjectzip" type="button" value="'. _('Inject') .'" onclick="javascript:doItInject()" />';
 	echo '</p>';
 	echo '</form>';

Modified: trunk/src/common/docman/views/editfile.php
===================================================================
--- trunk/src/common/docman/views/editfile.php	2012-08-16 13:27:24 UTC (rev 16092)
+++ trunk/src/common/docman/views/editfile.php	2012-08-16 13:35:59 UTC (rev 16093)
@@ -78,7 +78,7 @@
 echo '	</tr>';
 echo '	<tr id="uploadnewroweditfile">';
 echo '		<td><strong>'. _('OPTIONAL: Upload new file:') .'</strong><br />';
-echo '			<input type="file" name="uploaded_data" size="30" />';
+echo '			<input type="file" name="uploaded_data" size="30" />'.sprintf(_('(max upload size: %1$s)'),human_readable_bytes(util_get_maxuploadfilesize()));
 echo '		</td>';
 echo '	</tr>';
 echo '</table>';




More information about the Fusionforge-commits mailing list