[Fusionforge-commits] r7518 - trunk/gforge/plugins/extratabs/www
Roland Mas
lolando at libremir.placard.fr.eu.org
Wed Apr 29 11:01:10 CEST 2009
Author: lolando
Date: 2009-04-29 11:01:10 +0200 (Wed, 29 Apr 2009)
New Revision: 7518
Modified:
trunk/gforge/plugins/extratabs/www/index.php
Log:
Be smarter in displaying the tab edition form
Modified: trunk/gforge/plugins/extratabs/www/index.php
===================================================================
--- trunk/gforge/plugins/extratabs/www/index.php 2009-04-29 09:00:54 UTC (rev 7517)
+++ trunk/gforge/plugins/extratabs/www/index.php 2009-04-29 09:01:10 UTC (rev 7518)
@@ -139,13 +139,18 @@
</form>
</p>
+<?php
+ $res = db_query("SELECT * FROM plugin_extratabs_main WHERE group_id='$group_id' ORDER BY index ASC");
+$nbtabs = db_numrows($res) ;
+if ($nbtabs > 0) {
+
+?>
+
+
<h3><?php echo _('Manage extra tabs') ;?></h3>
<p>
<?php echo _('You can move and delete the tabs that you already added. Please note that those extra tabs can only appear on the right of the standard tabs. And you can only move them inside the set of extra tabs.') ;
-$res = db_query("SELECT * FROM plugin_extratabs_main
- WHERE group_id='$group_id' ORDER BY index ASC");
-
?></p><p>
<form name="change_tab" action="<?php echo util_make_url ('/plugins/extratabs/'); ?>" method="post">
<input type="hidden" name="group_id" value="<?php echo $group->getID() ?>" />
@@ -162,13 +167,16 @@
}
} ?>
</select><br/><br/>
+ <?php if ($nbtabs > 1) { ?>
<input type="submit" name="up" value="<?php echo _('Move tab left') ?>" /><br/>
<input type="submit" name="down" value="<?php echo _('Move tab right') ?>" /><br/>
+ <?php } ?>
<input type="submit" name="delete" value="<?php echo _('Delete tab') ?>" />
</form>
</p>
<?php
+ }
project_admin_footer(array());
// Local Variables:
More information about the Fusionforge-commits
mailing list