[Top][All Lists]
[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"> </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 */
- [Phpgroupware-cvs] phpgwapi/inc class.common.inc.php, 1.123.2.9.2.19,
skwashd <=
- Prev by Date:
[Phpgroupware-cvs] bookkeeping/inc class.uibilling.inc.php, 1.3 class.uibookkeeping.inc.php, 1.3 class.sodeliveries.inc.php, 1.2 class.bodeliveries.inc.php, 1.2 class.uideliveries.inc.php, 1.3 class.bobookkeeping.inc.php, 1.3 class.sobilling.inc.php, 1.2 class.bobilling.inc.php, 1.2
- Next by Date:
[Phpgroupware-cvs] phpgwapi/templates/idots/css idots.css,1.1.2.4
- Previous by thread:
[Phpgroupware-cvs] bookkeeping/inc class.uibilling.inc.php, 1.3 class.uibookkeeping.inc.php, 1.3 class.sodeliveries.inc.php, 1.2 class.bodeliveries.inc.php, 1.2 class.uideliveries.inc.php, 1.3 class.bobookkeeping.inc.php, 1.3 class.sobilling.inc.php, 1.2 class.bobilling.inc.php, 1.2
- Next by thread:
[Phpgroupware-cvs] phpgwapi/inc class.common.inc.php, 1.123.2.9.2.19
- Index(es):