phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc class.jscalendar.inc.php, 1.1.2.1,


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.jscalendar.inc.php, 1.1.2.1, 1.1.2.2
Date: Mon, 18 Aug 2003 19:13:07 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv8408

Modified Files:
      Tag: Version-0_9_16-branch
        class.jscalendar.inc.php 
Log Message:
added a helpmessage to the jsCalendar input-field


Index: class.jscalendar.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.jscalendar.inc.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** class.jscalendar.inc.php    17 Aug 2003 22:58:32 -0000      1.1.2.1
--- class.jscalendar.inc.php    18 Aug 2003 23:13:05 -0000      1.1.2.2
***************
*** 51,56 ****
        @param $date date as string or unix timestamp (in users localtime)
        @param $year,$month,$day if $date is not used
        */
!       function input($name,$date,$year=0,$month=0,$day=0)
        {
                //echo "<p>jscalendar::input(name='$name', 
date='$date'='".date('Y-m-d',$date)."', year='$year', month='$month', 
day='$day')</p>\n";
--- 51,58 ----
        @param $date date as string or unix timestamp (in users localtime)
        @param $year,$month,$day if $date is not used
+       @param $helpmsg a helpmessage for the statusline of the browser
+       @param $options any other options to the inputfield
        */
!       function 
input($name,$date,$year=0,$month=0,$day=0,$helpmsg='',$options='')
        {
                //echo "<p>jscalendar::input(name='$name', 
date='$date'='".date('Y-m-d',$date)."', year='$year', month='$month', 
day='$day')</p>\n";
***************
*** 66,71 ****
                        $date = 
date($this->dateformat,mktime(12,0,0,$month,$day,$year));
                }
                return
! '<input type="text" id="'.$name.'" name="'.$name.'" size="10" 
value="'.$date.'"/>
  <script type="text/javascript">
        document.writeln(\'<img id="'.$name.'-trigger" 
src="'.$this->phpgwapi_inc_url.'/jscalendar/img.gif" title="'.lang('Select 
date').'" style="cursor:pointer; cursor:hand;"/>\');
--- 68,78 ----
                        $date = 
date($this->dateformat,mktime(12,0,0,$month,$day,$year));
                }
+               if ($helpmsg !== '')
+               {
+                       $options .= " 
onFocus=\"self.status='".addslashes($helpmsg)."'; return true;\"" .
+                               " onBlur=\"self.status=''; return true;\"";
+               }
                return
! '<input type="text" id="'.$name.'" name="'.$name.'" size="10" 
value="'.$date.'"'.$options.'/>
  <script type="text/javascript">
        document.writeln(\'<img id="'.$name.'-trigger" 
src="'.$this->phpgwapi_inc_url.'/jscalendar/img.gif" title="'.lang('Select 
date').'" style="cursor:pointer; cursor:hand;"/>\');
***************
*** 113,115 ****
                return $ret;
        }
! }
\ No newline at end of file
--- 120,122 ----
                return $ret;
        }
! }





reply via email to

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