phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc class.common.inc.php, 1.123.2.9.2.19


From: skwashd
Subject: [Phpgroupware-cvs] phpgwapi/inc class.common.inc.php, 1.123.2.9.2.19
Date: Wed, 27 Apr 2005 06:42:00 -0000

Update of phpgwapi/inc

Modified Files:
     Branch: Version-0_9_16-branch
            class.common.inc.php lines: +19 -2

Log Message:
css based tabs

====================================================
Index: phpgwapi/inc/class.common.inc.php
diff -u phpgwapi/inc/class.common.inc.php:1.123.2.9.2.18 
phpgwapi/inc/class.common.inc.php:1.123.2.9.2.19
--- phpgwapi/inc/class.common.inc.php:1.123.2.9.2.18    Thu Oct 23 01:20:31 2003
+++ phpgwapi/inc/class.common.inc.php   Thu Jan  8 22:06:07 2004
@@ -493,8 +493,25 @@
                @param $selected ?
                @param $fontsize optional
                */
-               function create_tabs($tabs, $selected, $fontsize = '')
+               function create_tabs($tabs, $selected, $fontsize = '', $lang = 
False, $no_image = True)
                {
+                       if($no_image)
+                       {
+                               $output_text = "<table style=\"{padding: 0px; 
border-collapse: collapse; border: 0px; width: 100%;}\">\n\t<tr>\n";
+                               foreach($tabs as $id => $tab)
+                               {
+                                       $output_text .= "\t\t" . '<th class="';
+                                       $output_text .= ($id != $selected ? 
'in' : '');
+                                       $output_text .= 'activetab">';
+                                       $output_text .= '<a href="' . 
$tab['link'] . '">';
+                                       $output_text .= ($lang ? 
lang($tab['label']) : $tab['label']);
+                                       $output_text .= "</a></th>\n";
+                               }
+                               $output_text .= "\t\t" . '<th 
class="tablast">&nbsp;</th>' . "\n";
+                               $output_text .= "\t</tr>\n</table>\n";
+                               return $output_text;
+                       }
+
                        $output_text = '<table border="0" cellspacing="0" 
cellpadding="0"><tr>';

                        /* This is a php3 workaround */






reply via email to

[Prev in Thread] Current Thread [Next in Thread]