phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.34,1.3


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.34,1.35
Date: Mon, 21 Apr 2003 16:29:20 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv12469

Modified Files:
        class.boetemplate.inc.php 
Log Message:
implemented disable_row/column for bjohnson


Index: class.boetemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.boetemplate.inc.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** class.boetemplate.inc.php   27 Mar 2003 23:47:03 -0000      1.34
--- class.boetemplate.inc.php   21 Apr 2003 20:29:18 -0000      1.35
***************
*** 317,320 ****
--- 317,352 ----
                        return $this->set_cell_attribute($name,'disabled',True);
                }
+               
+               /*!
+               @function disable_row
+               @syntax disable_row( $n,$enable=False )
+               @author ralfbecker
+               @abstract disables row $n
+               @param $n is numerical row-number starting with 1 (!) 
+               @param $enable can be used to re-enable a row if set to True
+               */
+               function disable_row($n,$enable=False)
+               {
+                       list($height) = explode(',',$this->data[0]["h$n"]);
+                       $this->data[0]["h$n"] = $height.($enable?'':',1');
+               }
+ 
+               /*!
+               @function disable_column
+               @syntax disable_column( $c,$enable=False )
+               @author ralfbecker
+               @abstract disables column $c
+               @param $c is numerical column-number starting with 1 (!), or 
the char-code starting with 'A'
+               @param $enable can be used to re-enable a column if set to True
+               */
+               function disable_column($c,$enable=False)
+               {
+                       if (is_numeric($c))
+                       {
+                               $c = $this->num2chars($c);
+                       }
+                       list($height) = explode(',',$this->data[0][$c]);
+                       $this->data[0][$c] = $height.($enable?'':',1');
+               }
  
                /*!





reply via email to

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