[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 71/73: Cosmetic : adapt for small screen , ad
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 71/73: Cosmetic : adapt for small screen , add border to cells |
Date: |
Fri, 28 May 2021 05:26:53 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 7abb7704c42be47a627fb84a4ec1b0720b98aceb
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu May 27 17:46:06 2021 +0200
Cosmetic : adapt for small screen , add border to cells
---
html/css/style-classic7.css | 22 ++++++++++-----
include/anc_od.inc.php | 43 ++++++++++++++++++++----------
include/class/acc_account_ledger.class.php | 4 +--
include/class/fiche.class.php | 4 +--
include/class/lettering.class.php | 1 +
include/fiche.inc.php | 9 ++++---
6 files changed, 55 insertions(+), 28 deletions(-)
diff --git a/html/css/style-classic7.css b/html/css/style-classic7.css
index 6866145..e14d5be 100644
--- a/html/css/style-classic7.css
+++ b/html/css/style-classic7.css
@@ -57,8 +57,8 @@ a.mtitle span.notice {
}
table.sortable, table.table_large, table.result ,table.resultfooter {
width:99%;
- border-spacing: 1px;
- /*border-collapse:collapse; */
+ border-spacing: 0px;
+ border-collapse:collapse;
border:1px solid #5D90CD;
border-radius: 10px;
@@ -66,8 +66,11 @@ table.sortable, table.table_large, table.result
,table.resultfooter {
-webkit-border-radius: 10px;
padding:3px;
color: #242DD0;
+
+}
+table.sortable td, table.table_large td, table.result td,table.resultfooter
td {
+ border: 1px solid lightblue;
}
-
table.sortable th, table.table_large th,table.result th {
font-weight:bold;
font-family: Arial, Helvetica, "Liberation Sans", FreeSans, sans-serif;
@@ -330,6 +333,9 @@ tr.odd {
background-color: #DCE7F5;
/*! opacity: 50%; */
}
+tr.odd > td,tr.even > td {
+ border: 1px solid lightblue;
+}
.highlight {
font-weight: bolder;
font-size:14px;
@@ -1064,6 +1070,7 @@ table.sortable td, table.table_large td, table.result td
{
padding-left:5px;
padding-right:5px;
+ border: 1px solid lightblue;
}
table.info_op
{
@@ -1530,14 +1537,15 @@ div#preference_div {
div#box_search_card {
position:absolute;
- right:15.625%;
- top:145px;
+ right:3.625vh;
+ top:33vh;
}
@media only screen and (max-width:994px)
{
div#box_search_card {
- top:29%;
+ top:60vh;
+
}
}
@media only screen and (max-width:804px)
@@ -2954,7 +2962,7 @@ li.li-active {
}
.nav-level2 {
- background-color: #0b2d99
+ background-color: #0b2d99;
}
.nav-level2>li {
border-right: 1px #9fbcd6 ridge;
diff --git a/include/anc_od.inc.php b/include/anc_od.inc.php
index 6daaeb4..fc7ca55 100644
--- a/include/anc_od.inc.php
+++ b/include/anc_od.inc.php
@@ -45,26 +45,41 @@ if ( ! $m )
return;
}
+$dossier_id=Dossier::id();
-//----------------------------------------------------------------------
-// show the left menu
-//----------------------------------------------------------------------
echo '
<div class="menu2">
-<table clsas="mtitle">
-<tr>
-<td class="mtitle" >
-<A class="mtitle" HREF="?ac='.$http->request("ac").'&new&'.$str_dossier.'">
'._('Nouveau').' </A>
-</td>
-<td class="mtitle" >
-<A class="mtitle"
HREF="?ac='.$http->request("ac").'&see&'.$str_dossier.'">'._('Liste
opérations').' </A>
-</td>
-</tr>
-</table>
-</div>
';
+//<table clsas="mtitle">
+//<tr>
+//<td class="mtitle" >
+//<A class="mtitle" HREF="?ac='.$http->request("ac").'&new&'.$str_dossier.'">
'._('Nouveau').' </A>
+//</td>
+//<td class="mtitle" >
+//<A class="mtitle"
HREF="?ac='.$http->request("ac").'&see&'.$str_dossier.'">'._('Liste
opérations').' </A>
+//</td>
+//</tr>
+//</table>
+//</div>
+//';
+//----------------------------------------------------------------------
+// show the menu
+//----------------------------------------------------------------------
+echo ShowItem(array(
+ array(
+
"?".http_build_query(["ac"=>$http->request("ac"),"new"=>1,"gDossier"=>$dossier_id]),
+ _("Nouveau"),
+ _("Nouvelle opération")
+ ),
+ array (
+
"?".http_build_query(["ac"=>$http->request("ac"),"see"=>1,"gDossier"=>$dossier_id]),
+ _("Liste"),
+ _("Liste opérations")
+ )
+), "H", "nav-item", "nav-link", "", "nav nav-pills nav-level3");
+
//----------------------------------------------------------------------
// the pa_id is set
diff --git a/include/class/acc_account_ledger.class.php
b/include/class/acc_account_ledger.class.php
index 1a48448..bea644d 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -386,9 +386,9 @@ class Acc_Account_Ledger
if ( $from_div == 1)
- echo "<TABLE id=\"tbpopup\" class=\"resultfooter\"
style=\"border-collapse:separate;margin:1%;width:98%;;border-spacing:0px
5px\">";
+ echo "<TABLE id=\"tbpopup\" class=\"resultfooter\"
style=\"border-collapse:separate;margin:1%;width:98%;\">";
else
- echo "<TABLE id=\"tb".$from_div."\"
class=\"resultfooter\"
style=\"border-collapse:separate;margin:1%;width:98%;;border-spacing:0px
2px\">";
+ echo "<TABLE id=\"tb".$from_div."\"
class=\"resultfooter\"
style=\"border-collapse:separate;margin:1%;width:98%;\">";
echo '<tbody>';
echo "<TR>".
"<TH style=\"text-align:left\">"._('Date')." </TH>".
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index aa90550..e44c215 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -1588,11 +1588,11 @@ class Fiche
$rep="";
if ( $from_div==1)
{
- echo "<TABLE id=\"tbpopup\" class=\"resultfooter\"
style=\"margin:1%;width:98%;;border-collapse:separate;border-spacing:0px
5px\">";
+ echo "<TABLE id=\"tbpopup\" class=\"resultfooter\"
style=\"margin:1%;width:98%;;border-collapse:collapse;border-spacing:0px
5px\">";
}
else
{
- echo "<TABLE id=\"tb" . $from_div . "\"class=\"result\"
style=\"margin:1%;width:98%;border-collapse:separate;border-spacing:0px 2px\">";
+ echo "<TABLE id=\"tb" . $from_div . "\"class=\"result\"
style=\"margin:1%;width:98%;border-collapse:collapse;border-spacing:0px 2px\">";
}
echo '<tbody>';
echo "<TR>".
diff --git a/include/class/lettering.class.php
b/include/class/lettering.class.php
index b51f7b2..cb1975e 100644
--- a/include/class/lettering.class.php
+++ b/include/class/lettering.class.php
@@ -665,6 +665,7 @@ class Lettering_Card extends Lettering
diff_letter1 as letter_diff,
round(j_montant/currency_rate,4) as
currency_amount,
currency_rate,
+ currency_id,
currency_rate_ref,
(select cr_code_iso from currency where
currency_id=currency.id) as cr_code_iso
from jrnx join jrn on (j_grpt =
jr_grpt_id)
diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index e72e9b8..99e76f6 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -542,8 +542,9 @@ for ($e = 0; $e < count($afiche); $e++)
echo th(_('Interne'));
echo th(_('Comm'));
echo th(_('Code Devise'));
- echo th(_('Devise'));
- echo th(_('Montant'), 'style="width:auto;text-align:center"
colspan="2"');
+ echo th(_('Devise'),'style="text-align:right"');
+ echo th(_('Débit'), 'style="width:auto;text-align:right" ');
+ echo th(_('Crédit'), 'style="width:auto;text-align:right" ');
echo th(_('Prog.'),'style="text-align:right"');
echo th(_('Let.'));
echo '</tr>';
@@ -568,7 +569,9 @@ for ($e = 0; $e < count($afiche); $e++)
echo td(HtmlInput::detail_op($row['jr_id'],
$row['jr_internal']));
echo td(h($row['jr_comment']));
echo td($row['cr_code_iso']);
- echo
td(nbm(h($row['currency_amount']),2),'class="num"');
+
$str_currency_amount=($row['currency_id']==0)?"":nbm($row['currency_amount'],2);
+
+ echo td($str_currency_amount,'class="num"');
if ($row['j_debit'] == 't')
{
echo td(nbm($row['j_montant']), '
style="text-align:right"');
- [Noalyss-commit] [noalyss] 51/73: Code rewriting : doc and remove duplicated function, (continued)
- [Noalyss-commit] [noalyss] 51/73: Code rewriting : doc and remove duplicated function, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 58/73: Improve Manage_Table_SQL : missing param for execute-query, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 59/73: Correct menu PARAM, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 61/73: Bootstrap 4.6, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 64/73: cosmetic : menu on small screen, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 66/73: Devise correct autoliquidation not taken into account for currency, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 67/73: remove debug info, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 68/73: Payment by bank : currency info was missing, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 70/73: Bootstrap 4.6, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 69/73: Javascript format date, transform space into dot, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 71/73: Cosmetic : adapt for small screen , add border to cells,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 72/73: code improve rename scripts.js -> noalyss_script.js, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 73/73: Balance : code cleaning and cosmetic, Dany De Bontridder, 2021/05/28