From f2c268f72c91e0ea13b69fc52911f5ca162eff4b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 23 Jun 2013 12:43:06 +0200 Subject: [PATCH 1/3] Fix: Missing theme for autofill --- htdocs/theme/amarok/style.css.php | 5 +++++ htdocs/theme/auguria/style.css.php | 25 ++++++++++++++++--------- htdocs/theme/bureau2crea/style.css.php | 6 ++++++ htdocs/theme/cameleo/style.css.php | 6 ++++++ htdocs/theme/eldy/style.css.php | 8 +++++--- 5 files changed, 38 insertions(+), 12 deletions(-) diff --git a/htdocs/theme/amarok/style.css.php b/htdocs/theme/amarok/style.css.php index 5e57bcc1bc2..9840c2cc186 100755 --- a/htdocs/theme/amarok/style.css.php +++ b/htdocs/theme/amarok/style.css.php @@ -251,6 +251,11 @@ input:disabled {background:#b6b6b6;} input[type=checkbox] { background-color: transparent; border: none; box-shadow: none; } input[type=image] { background-color: transparent; border: none; box-shadow: none; } +input:-webkit-autofill { + background-color: !important; + background-image:none !important; + -webkit-box-shadow: 0 0 0 50px inset; +} legend { margin-bottom: 8px; } diff --git a/htdocs/theme/auguria/style.css.php b/htdocs/theme/auguria/style.css.php index 14685d261b3..ed4027e5550 100644 --- a/htdocs/theme/auguria/style.css.php +++ b/htdocs/theme/auguria/style.css.php @@ -143,6 +143,12 @@ textarea:disabled { } input[type=checkbox] { background-color: transparent; border: none; box-shadow: none; } input[type=image] { background-color: transparent; border: none; box-shadow: none; } +input:-webkit-autofill { + background-color: !important; + background-image:none !important; + -webkit-box-shadow: 0 0 0 50px inset; +} + legend { margin-bottom: 8px; } @@ -1408,19 +1414,20 @@ th.liste_titre_sel, td.liste_titre_sel /* border-bottom: 1px solid #FDFFFF; */ white-space: nowrap; } + input.liste_titre { -background: transparent; -background-repeat: repeat-x; -border: 0px; + background: transparent; + background-repeat: repeat-x; + border: 0px; } tr.liste_total td { -border-top: 1px solid #DDDDDD; -background: #F0F0F0; -background-repeat: repeat-x; -color: #332266; -font-weight: normal; -white-space: nowrap; + border-top: 1px solid #DDDDDD; + background: #F0F0F0; + background-repeat: repeat-x; + color: #332266; + font-weight: normal; + white-space: nowrap; } diff --git a/htdocs/theme/bureau2crea/style.css.php b/htdocs/theme/bureau2crea/style.css.php index 0ac7c62c074..f8b80a48b05 100644 --- a/htdocs/theme/bureau2crea/style.css.php +++ b/htdocs/theme/bureau2crea/style.css.php @@ -156,6 +156,12 @@ textarea:disabled { input[type=checkbox] { background-color: transparent; border: none; box-shadow: none; } input[type=image] { background-color: transparent; border: none; box-shadow: none; } +input:-webkit-autofill { + background-color: !important; + background-image:none !important; + -webkit-box-shadow: 0 0 0 50px inset; +} + input.button[type=submit] { background-image: url(); display: block; diff --git a/htdocs/theme/cameleo/style.css.php b/htdocs/theme/cameleo/style.css.php index c2c020bb035..74e62fc0489 100644 --- a/htdocs/theme/cameleo/style.css.php +++ b/htdocs/theme/cameleo/style.css.php @@ -126,6 +126,12 @@ textarea:disabled { input[type=checkbox] { background-color: transparent; border: none; box-shadow: none; } input[type=image] { background-color: transparent; border: none; box-shadow: none; } +input:-webkit-autofill { + background-color: !important; + background-image:none !important; + -webkit-box-shadow: 0 0 0 50px inset; +} + input.button[type=submit] { background: #A51B00; -moz-border-radius:8px; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index bb5025b72f4..46c7fe331eb 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -268,9 +268,6 @@ input:disabled { background:#ddd; } -input:-webkit-autofill { - background-color: #FCFEFA !important; background-image:none !important; -} input.liste_titre { box-shadow: none !important; } @@ -283,6 +280,11 @@ textarea:disabled { } input[type=checkbox] { background-color: transparent; border: none; box-shadow: none; } input[type=image] { background-color: transparent; border: none; box-shadow: none; } +input:-webkit-autofill { + background-color: !important; + background-image:none !important; + -webkit-box-shadow: 0 0 0 50px inset; +} legend { margin-bottom: 8px; } From fc62f6f7d6976f64e9154bda4c160dfb102084f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 23 Jun 2013 13:00:02 +0200 Subject: [PATCH 2/3] Fix: Search filter was lost --- htdocs/compta/bank/account.php | 36 +++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index a07395a8f4f..59cdaa4b81d 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -55,6 +55,10 @@ $result=restrictedArea($user,'banque',$fieldvalue,'bank_account','','',$fieldtyp $paiementtype=GETPOST('paiementtype','alpha',3); $req_nb=GETPOST("req_nb",'',3); $thirdparty=GETPOST("thirdparty",'',3); +$req_desc=GETPOST("req_desc",'',3); +$req_debit=GETPOST("req_debit",'',3); +$req_credit=GETPOST("req_credit",'',3); + $vline=GETPOST("vline"); $page=GETPOST('page','int'); $negpage=GETPOST('negpage','int'); @@ -186,22 +190,22 @@ if ($id > 0 || ! empty($ref)) $param.='&req_nb='.urlencode($req_nb); $mode_search = 1; } - if (GETPOST("req_desc")) + if ($req_desc) { - $sql_rech.= " AND b.label LIKE '%".$db->escape(GETPOST("req_desc"))."%'"; - $param.='&req_desc='.urlencode(GETPOST("req_desc")); + $sql_rech.= " AND b.label LIKE '%".$db->escape($req_desc)."%'"; + $param.='&req_desc='.urlencode($req_desc); $mode_search = 1; } - if (GETPOST("req_debit")) + if ($req_debit != '') { - $sql_rech.=" AND b.amount = -".price2num(GETPOST("req_debit")); - $param.='&req_debit='.urlencode(GETPOST("req_debit")); + $sql_rech.=" AND b.amount = -".price2num($req_debit); + $param.='&req_debit='.urlencode($req_debit); $mode_search = 1; } - if (GETPOST("req_credit")) + if ($req_credit != '') { - $sql_rech.=" AND b.amount = ".price2num(GETPOST("req_credit")); - $param.='&req_credit='.urlencode(GETPOST("req_credit")); + $sql_rech.=" AND b.amount = ".price2num($req_credit); + $param.='&req_credit='.urlencode($req_credit); $mode_search = 1; } if ($thirdparty) @@ -298,9 +302,9 @@ if ($id > 0 || ! empty($ref)) $navig.=''; $navig.=''; $navig.=''; - $navig.=''; - $navig.=''; - $navig.=''; + $navig.=''; + $navig.=''; + $navig.=''; $navig.=''; $navig.=''; $navig.=''; @@ -412,10 +416,10 @@ if ($id > 0 || ! empty($ref)) print $form->select_types_paiements($paiementtype,'paiementtype',$filtertype,2,1,1,8); print ''; print ''; - print ''; + print ''; print ''; - print ''; - print ''; + print ''; + print ''; print ' '; print ''; print "\n"; @@ -674,7 +678,7 @@ if ($id > 0 || ! empty($ref)) } // Balance - if ($action != 'search') + if (! $mode_search) { if ($total >= 0) { From e5eb5492e92c401eeb2941fa3d18196610f1cfba Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 23 Jun 2013 13:03:06 +0200 Subject: [PATCH 3/3] Fix: W3C --- htdocs/compta/bank/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 59cdaa4b81d..551893d4174 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -329,7 +329,7 @@ if ($id > 0 || ! empty($ref)) // Show title if ($action != 'addline' && $action != 'delete') { - print ''.$navig.''; + print ''.$navig.''; } // Form to add a transaction with no invoice @@ -379,7 +379,7 @@ if ($id > 0 || ! empty($ref)) print ''; print ""; - print ' '."\n"; + print ' '."\n"; } /*