[Fusionforge-commits] r14754 - trunk/src/common/tracker/actions

Alain Peyrat aljeux at fusionforge.org
Mon Nov 7 22:05:16 CET 2011


Author: aljeux
Date: 2011-11-07 22:05:15 +0100 (Mon, 07 Nov 2011)
New Revision: 14754

Modified:
   trunk/src/common/tracker/actions/detail.php
   trunk/src/common/tracker/actions/mod-limited.php
   trunk/src/common/tracker/actions/mod.php
Log:
Add number of followups & attachements in tab for trackers

Modified: trunk/src/common/tracker/actions/detail.php
===================================================================
--- trunk/src/common/tracker/actions/detail.php	2011-11-07 20:37:00 UTC (rev 14753)
+++ trunk/src/common/tracker/actions/detail.php	2011-11-07 21:05:15 UTC (rev 14754)
@@ -100,8 +100,12 @@
 		</td></tr>
 </table>
 <div id="tabber" class="tabber">
-<div class="tabbertab" title="<?php echo _('Followups'); ?>">
-	<table border="0" width="80%">
+<?php
+$count=db_numrows($ah->getMessages());
+$nb = $count? ' ('.$count.')' : '';
+?>
+<div class="tabbertab" title="<?php echo _('Followups').$nb; ?>">
+	<table width="80%">
 		<tr><td colspan="2">
 			<?php if ($ath->allowsAnon() || session_loggedin()) { ?>
 			<input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
@@ -133,8 +137,14 @@
 		</td></tr>
 </table>
 </div>
-<div class="tabbertab" title="<?php echo _('Attachments'); ?>">
-<table border="0" width="80%">
+<?php
+$tabcnt=0;
+$file_list = $ah->getFiles();
+$count=count($file_list);
+$nb = $count? ' ('.$count.')' : '';
+?>
+<div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
+<table width="80%">
 	<tr><td colspan="2">
 	<?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
 		<strong><?php echo _('Attach Files'); ?></strong><br />

Modified: trunk/src/common/tracker/actions/mod-limited.php
===================================================================
--- trunk/src/common/tracker/actions/mod-limited.php	2011-11-07 20:37:00 UTC (rev 14753)
+++ trunk/src/common/tracker/actions/mod-limited.php	2011-11-07 21:05:15 UTC (rev 14754)
@@ -149,8 +149,12 @@
 	</td></tr>
 </table>
 <div id="tabber" class="tabber">
-<div class="tabbertab" title="<?php echo _('Followups');?>">
-<table border="0" width="80%">
+<?php
+$count=db_numrows($ah->getMessages());
+$nb = $count? ' ('.$count.')' : '';
+?>
+<div class="tabbertab" title="<?php echo _('Followups').$nb; ?>">
+<table width="80%">
 	<tr><td colspan="2">
 		<br /><strong><?php echo _('Add A Comment') ?>: <?php echo notepad_button('document.forms.trackermodlimitedform.details') ?></strong><br />
 		<textarea id="tracker-comment" name="details" rows="7" cols="60" title="<?php echo util_html_secure(html_get_tooltip_description('comment')) ?>"></textarea>
@@ -171,8 +175,15 @@
 	</td></tr>
 </table>
 </div>
-<div class="tabbertab" title="<?php echo _('Attachments'); ?>">
-<table border="0" width="80%">
+<?php
+$tabcnt=0;
+$file_list = $ah->getFiles();
+$count=count($file_list);
+$nb = $count? ' ('.$count.')' : '';
+?>
+<div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
+		<h2><?php echo _('Existing Files') ?>:</h2>
+<table width="80%">
 	<tr><td colspan="2">
 		<?php echo _('Attach Files') ?><br />
 		<input type="file" name="input_file0" size="30" /><br />

Modified: trunk/src/common/tracker/actions/mod.php
===================================================================
--- trunk/src/common/tracker/actions/mod.php	2011-11-07 20:37:00 UTC (rev 14753)
+++ trunk/src/common/tracker/actions/mod.php	2011-11-07 21:05:15 UTC (rev 14754)
@@ -187,8 +187,12 @@
 	</td></tr>
 </table>
 <div id="tabber" class="tabber">
-<div class="tabbertab" title="<?php echo _('Followups'); ?>">
-<table border="0" width="80%">
+<?php
+$count=db_numrows($ah->getMessages());
+$nb = $count? ' ('.$count.')' : '';
+?>
+<div class="tabbertab" title="<?php echo _('Followups').$nb; ?>">
+<table width="80%">
 	<tr><td colspan="2">
 		<br /><strong><?php echo _('Use Canned Response') ?>:</strong><br />
 		<?php
@@ -240,9 +244,15 @@
 	?>
 </div>
 <?php } ?>
-<div class="tabbertab" title="<?php echo _('Attachments'); ?>">
+<?php
+$tabcnt=0;
+$file_list = $ah->getFiles();
+$count=count($file_list);
+$nb = $count? ' ('.$count.')' : '';
+?>
+<div class="tabbertab" title="<?php echo _('Attachments').$nb; ?>">
 		<h2><?php echo _('Existing Files') ?>:</h2>
-<table border="0" width="80%">
+<table width="80%">
 	<tr><td colspan="2">
         <strong><?php echo _('Attach Files') ?>:</strong><br />
         <input type="file" name="input_file0" size="30" /><br />




More information about the Fusionforge-commits mailing list