Author: danydb
Date: 2011-10-27 21:10:19 +0200 (Thu, 27 Oct 2011)
New Revision: 4238

Modified:
   phpcompta/branches/rel600-dynamic-menu/include/template/menu.php
Log:
#241 :adapt width submenu



Modified: phpcompta/branches/rel600-dynamic-menu/include/template/menu.php
===================================================================
--- phpcompta/branches/rel600-dynamic-menu/include/template/menu.php    
2011-10-27 18:59:39 UTC (rev 4237)
+++ phpcompta/branches/rel600-dynamic-menu/include/template/menu.php    
2011-10-27 19:10:19 UTC (rev 4238)
@@ -1,5 +1,14 @@
 <div class="topmenu">
-<table style="width:100%">
+    <? if ( count($amenu) > 4 && $idx == 0) :
+       $width = 100;
+    ?>
+<table style="width:<?=$width?>%">
+    <? else:
+       ?>
+<table>
+    <? endif;?>
+
+
     <tr>
        <?php
        global $g_user;


_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to