phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5264 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5264 - phpcompta/trunk/include
Date: Wed, 15 May 2013 20:35:04 +0200 (CEST)

Author: danydb
Date: 2013-05-15 20:35:03 +0200 (Wed, 15 May 2013)
New Revision: 5264

Modified:
   phpcompta/trunk/include/class_acc_ledger.php
   phpcompta/trunk/include/class_acc_ledger_fin.php
   phpcompta/trunk/include/class_acc_ledger_purchase.php
   phpcompta/trunk/include/class_acc_ledger_sold.php
   phpcompta/trunk/include/class_html_input.php
   phpcompta/trunk/include/class_ibutton.php
   phpcompta/trunk/include/class_icard.php
   phpcompta/trunk/include/class_itva_popup.php
   phpcompta/trunk/include/compta_ven.inc.php
Log:
task #841 : am?\195?\169lioration encodage, passe d'un champs ?\195?\160 
l'autre avec TAB, la date a le focus

Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php        2013-05-15 18:09:51 UTC 
(rev 5263)
+++ phpcompta/trunk/include/class_acc_ledger.php        2013-05-15 18:35:03 UTC 
(rev 5264)
@@ -1763,6 +1763,7 @@
                        $w->value = (isset($jrn_concerned)) ? $jrn_concerned : 
"";
                        $ret.="Réconciliation/rapprochements : " . 
$w->input();
                }
+               $ret.= create_script("$('".$wDate->id."').focus()");
                return $ret;
        }
 
@@ -2305,7 +2306,7 @@
                        $value = 0;
                return $value;
        }
-       
+
        /**
         * @brief create the invoice and saved it as attachment to the
         * operation,

Modified: phpcompta/trunk/include/class_acc_ledger_fin.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_fin.php    2013-05-15 18:09:51 UTC 
(rev 5263)
+++ phpcompta/trunk/include/class_acc_ledger_fin.php    2013-05-15 18:35:03 UTC 
(rev 5264)
@@ -430,8 +430,8 @@
                require_once('template/form_ledger_fin.php');
                $r.=ob_get_contents();
                ob_end_clean();
+               $r.= create_script("$('".$Date->id."').focus()");
 
-
                return $r;
        }
 

Modified: phpcompta/trunk/include/class_acc_ledger_purchase.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_purchase.php       2013-05-15 
18:09:51 UTC (rev 5263)
+++ phpcompta/trunk/include/class_acc_ledger_purchase.php       2013-05-15 
18:35:03 UTC (rev 5264)
@@ -890,11 +890,13 @@
         /* Add button */
         $f_add_button=new IButton('add_card');
         $f_add_button->label=_('Créer une nouvelle fiche');
+               $f_add_button->tabindex=-1;
         $f_add_button->set_attribute('ipopup','ipop_newcard');
         $f_add_button->set_attribute('jrn',$this->id);
         $f_add_button->javascript=" 
this.jrn=\$('p_jrn').value;select_card_type(this);";
 
         $f_add_button2=new IButton('add_card2');
+               $f_add_button2->tabindex=-1;
         $f_add_button2->label=_('Créer une nouvelle fiche');
         $f_add_button2->set_attribute('ipopup','ipop_newcard');
         $f_add_button2->set_attribute('filter',$this->get_all_fiche_def ());
@@ -1227,6 +1229,8 @@
         {
             $r.='<script> update_pj();</script>';
         }
+               // set focus on date
+               $r.= create_script("$('".$Date->id."').focus()");
         return $r;
     }
 

Modified: phpcompta/trunk/include/class_acc_ledger_sold.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger_sold.php   2013-05-15 18:09:51 UTC 
(rev 5263)
+++ phpcompta/trunk/include/class_acc_ledger_sold.php   2013-05-15 18:35:03 UTC 
(rev 5264)
@@ -1032,12 +1032,14 @@
         $flag_tva=$g_parameter->MY_TVA_USE;
         /* Add button */
         $f_add_button=new IButton('add_card');
+               $f_add_button->tabindex=-1;
         $f_add_button->label=_('Créer une nouvelle fiche');
         $f_add_button->set_attribute('ipopup','ipop_newcard');
         $f_add_button->set_attribute('jrn',$this->id);
         $f_add_button->javascript="this.jrn=\$('p_jrn').value; 
select_card_type(this);";
 
         $f_add_button2=new IButton('add_card2');
+               $f_add_button2->tabindex=-1;
         $f_add_button2->label=_('Créer une nouvelle fiche');
         $f_add_button2->set_attribute('ipopup','ipop_newcard');
         $f_add_button2->set_attribute('filter',$this->get_all_fiche_def ());
@@ -1355,7 +1357,7 @@
         $r.=HtmlInput::hidden('jrn_type','VEN');
 
         $r.=HtmlInput::button('add_item',_('Ajout article'),      ' 
onClick="ledger_add_row()"');
-
+               $r.= create_script("$('".$Date->id."').focus()");
         return $r;
     }
 

Modified: phpcompta/trunk/include/class_html_input.php
===================================================================
--- phpcompta/trunk/include/class_html_input.php        2013-05-15 18:09:51 UTC 
(rev 5263)
+++ phpcompta/trunk/include/class_html_input.php        2013-05-15 18:35:03 UTC 
(rev 5264)
@@ -219,12 +219,12 @@
     }
     static function infobulle($p_comment)
     {
-        $r='<A HREF="#" 
style="display:inline;color:black;background-color:yellow;padding-left:4px;width:2em;padding-right:4px;text-decoration:none;"
 onmouseover="showBulle(\''.$p_comment.'\')"  
onclick="showBulle(\''.$p_comment.'\')" onmouseout="hideBulle(0)">?</A>';
+        $r='<A HREF="#" tabindex="-1" 
style="display:inline;color:black;background-color:yellow;padding-left:4px;width:2em;padding-right:4px;text-decoration:none;"
 onmouseover="showBulle(\''.$p_comment.'\')"  
onclick="showBulle(\''.$p_comment.'\')" onmouseout="hideBulle(0)">?</A>';
         return $r;
     }
     static function warnbulle($p_comment)
     {
-        $r='<A HREF="#" 
style="display:inline;color:red;background-color:white;padding-left:4px;padding-right:4px;text-decoration:none;"
 onmouseover="showBulle(\''.$p_comment.'\')"  
onclick="showBulle(\''.$p_comment.'\')" onmouseout="hideBulle(0)">&Delta;</A>';
+        $r='<A HREF="#" tabindex="-1" 
style="display:inline;color:red;background-color:white;padding-left:4px;padding-right:4px;text-decoration:none;"
 onmouseover="showBulle(\''.$p_comment.'\')"  
onclick="showBulle(\''.$p_comment.'\')" onmouseout="hideBulle(0)">&Delta;</A>';
         return $r;
     }
     /**

Modified: phpcompta/trunk/include/class_ibutton.php
===================================================================
--- phpcompta/trunk/include/class_ibutton.php   2013-05-15 18:09:51 UTC (rev 
5263)
+++ phpcompta/trunk/include/class_ibutton.php   2013-05-15 18:35:03 UTC (rev 
5264)
@@ -36,8 +36,10 @@
         if ( $this->readOnly==true) return $this->display();
         $extra= ( isset($this->extra))?$this->extra:"";
         $this->id=($this->id=="")?$this->name:$this->id;
+               $tab=(isset($this->tabindex))?' 
tabindex="'.$this->tabindex.'"':"";
         $r='<input type="BUTTON" name="'.$this->name.'"'.
            ' class="button" '.
+                               $tab.
            ' id="'.$this->id.'"'.
            ' value="'.$this->label.'"'.
            ' onClick="'.$this->javascript.'"'.$extra.'>';
@@ -46,6 +48,7 @@
         return $r;
 
     }
+
     /*!\brief print in html the readonly value of the widget*/
     public function display()
     {

Modified: phpcompta/trunk/include/class_icard.php
===================================================================
--- phpcompta/trunk/include/class_icard.php     2013-05-15 18:09:51 UTC (rev 
5263)
+++ phpcompta/trunk/include/class_icard.php     2013-05-15 18:35:03 UTC (rev 
5264)
@@ -299,7 +299,7 @@
                else
             $a.="this.inp='".$this->name."';";
         $a.="this.popup='ipop_card';";
-
+               $button->tabindex=-1;
         $button->javascript=$a.' search_card(this)';
         return $button->input();
     }

Modified: phpcompta/trunk/include/class_itva_popup.php
===================================================================
--- phpcompta/trunk/include/class_itva_popup.php        2013-05-15 18:09:51 UTC 
(rev 5263)
+++ phpcompta/trunk/include/class_itva_popup.php        2013-05-15 18:35:03 UTC 
(rev 5264)
@@ -80,7 +80,7 @@
 
         if ( $this->readOnly==true) return $this->display();
 
-        $str='<input type="TEXT" class="input_text" name="%s" value="%s" 
id="%s" size="3" %s>';
+        $str='<input type="TEXT"  class="input_text" name="%s" value="%s" 
id="%s" size="3" %s>';
         $r=sprintf($str,$this->name,$this->value,$this->id,$this->js);
 
         if ($this->in_table)
@@ -128,6 +128,7 @@
 
         // button
         $bt=new IButton('bt_'.$this->id);
+               $bt->tabindex="-1";
         $bt->label=_(' TVA ');
         $bt->set_attribute('gDossier',dossier::id());
         $bt->set_attribute('ctl',$this->id);

Modified: phpcompta/trunk/include/compta_ven.inc.php
===================================================================
--- phpcompta/trunk/include/compta_ven.inc.php  2013-05-15 18:09:51 UTC (rev 
5263)
+++ phpcompta/trunk/include/compta_ven.inc.php  2013-05-15 18:35:03 UTC (rev 
5264)
@@ -257,6 +257,7 @@
        {
                echo create_script(" get_last_date()");
        }
+       
     exit();
 
 



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

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