noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 72/86: Cosmetic add CSS h-section


From: dwm
Subject: [Noalyss-commit] [noalyss] 72/86: Cosmetic add CSS h-section
Date: Thu, 19 Sep 2024 02:42:02 -0400 (EDT)

sparkyx pushed a commit to branch unstable
in repository noalyss.

commit 2ba87dd7704af1fbff6d134c1d60ff77b6f2a04d
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue Sep 17 15:12:53 2024 +0200

    Cosmetic add CSS h-section
---
 html/css/style-classic7.css                          |  3 ++-
 include/balance.inc.php                              |  2 +-
 include/class/acc_ledger.class.php                   |  2 +-
 include/class/acc_ledger_sale.class.php              |  6 +++---
 include/company.inc.php                              |  6 +++---
 include/compta_ven.inc.php                           |  2 +-
 include/fiche.inc.php                                |  4 ++--
 include/history_operation.inc.php                    |  4 ++--
 include/impress_bilan.inc.php                        |  2 +-
 include/impress_gl_comptes.inc.php                   |  2 +-
 include/impress_poste.inc.php                        | 20 ++++++++++----------
 include/impress_rapport.inc.php                      |  4 ++--
 include/noalyss-color.inc.php                        |  4 ++--
 include/template/form_ledger_detail.php              |  2 +-
 include/template/operation_exercice-input_source.php |  4 ++--
 include/template/operation_exercice-list_draft.php   |  2 +-
 include/template/param_jrn.php                       |  8 ++++----
 include/template/tax_summary_display.php             |  4 ++--
 18 files changed, 41 insertions(+), 40 deletions(-)

diff --git a/html/css/style-classic7.css b/html/css/style-classic7.css
index 07515935a..aab596401 100644
--- a/html/css/style-classic7.css
+++ b/html/css/style-classic7.css
@@ -3640,8 +3640,9 @@ div.widget-full_size {
 
  div.row.odd.hover:hover,div.row.even.hover:hover   {      background-color: 
var(--hover) !important;    }
 
-h2.legend {
+h2.h-section {
  background-color: #e4e9ee;
  color: navy;
  border: 1px steelblue solid;
+ font-style: normal;
 }
diff --git a/include/balance.inc.php b/include/balance.inc.php
index 0592fcc98..e8e17307c 100644
--- a/include/balance.inc.php
+++ b/include/balance.inc.php
@@ -317,7 +317,7 @@ if ( isset($_GET['view'] ) )
     $periode=new Periode($cn);
     $a=$periode->get_date_limit($from_periode);
     $b=$periode->get_date_limit($to_periode);
-    echo '<h2>';
+    echo '<h2 class="h-section">';
     printf ( _("période du %s au %s"),$a['p_start'],$b['p_end']);
     echo '</h2>';
        echo '<span style="display:block">';
diff --git a/include/class/acc_ledger.class.php 
b/include/class/acc_ledger.class.php
index ec804adce..51fc616f2 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -2917,7 +2917,7 @@ class Acc_Ledger  extends jrn_def_sql
     {
         $r='';
         $r.='<div id="payment"> ';
-        $r.='<h2> '._('Paiement').' </h2>';
+        $r.='<h2 class="h-section"> '._('Paiement').' </h2>';
         $mp=new Acc_Payment($this->db);
         $mp->set_parameter('ledger_source', $this->id);
         $r.=$mp->select($p_selected,$p_amount,$p_date,$p_comm);
diff --git a/include/class/acc_ledger_sale.class.php 
b/include/class/acc_ledger_sale.class.php
index 5fa2f583a..2f57664fe 100644
--- a/include/class/acc_ledger_sale.class.php
+++ b/include/class/acc_ledger_sale.class.php
@@ -914,7 +914,7 @@ class Acc_Ledger_Sale extends Acc_Ledger {
         $r.='<div style="float:none;clear:both">';
         $r.='</div>';
         
-        $r.='<h2>' . _('Détail articles vendus') . '</h2>';
+        $r.='<h2 class="h-section" class="h-section">' . _('Détail articles 
vendus') . '</h2>';
         $r.='<p class="decale">';
         $r.='<table class="result" >';
         $r.='<TR>';
@@ -1141,7 +1141,7 @@ EOF;
         if ($g_parameter->MY_ANALYTIC != 'nu' && ! $p_summary) // use of AA
             $r.='<input type="button" class="button" value="' . _('Vérifiez 
Imputation Analytique') . '" onClick="verify_ca(\'\');">';
         $r.='<div id="total_div_id" >';
-        $r.='<h2>Totaux</h2>';
+        $r.='<h2 class="h-section">Totaux</h2>';
         $other_tax_label="";
         $other_tax_amount="";
         if ( $this->has_other_tax() && isset($p_array['other_tax'])) {
@@ -1219,7 +1219,7 @@ EOF;
 
             $fname = new Fiche($this->db);
             $fname->get_by_qcode(${'e_mp_qcode_' . $e_mp});
-            $r.='<h2>' . "Payé par " . ${'e_mp_qcode_' . $e_mp} .
+            $r.='<h2 class="h-section">' . "Payé par " . ${'e_mp_qcode_' . 
$e_mp} .
                     " le ".${"mp_date"}.
                     " " . $fname->getName() . '</h2> ' . '<p class="decale">' 
. _('Déduction acompte ') . h($acompte) . '</p>' .
                     _('Libellé :') . h($e_comm_paiement) ;
diff --git a/include/company.inc.php b/include/company.inc.php
index da840f17c..04adf430d 100644
--- a/include/company.inc.php
+++ b/include/company.inc.php
@@ -148,7 +148,7 @@ $all->style=' class="input_text"';
 
 
         <div class="col">
-            <h2>Société</h2>
+            <h2 class="h-section">Société</h2>
             <div class="form-group">
                 <?php
                 $all=new IText();
@@ -233,7 +233,7 @@ $all->style=' class="input_text"';
 
             <div class="row">
                 <div class="col">
-                    <h2>Paramètre supplémentaire</h2>
+                    <h2 class="h-section">Paramètre supplémentaire</h2>
                     <?php
                         $object=Parameter_Extra_MTable::build();
                         $object->create_js_script();
@@ -255,7 +255,7 @@ $all->style=' class="input_text"';
         </div>
 
         <div class="col">
-            <h2>Fonctionnement</h2>
+            <h2 class="h-section">Fonctionnement</h2>
 
             <div class="form-group">
                 <label class="w-40" for="p_report">
diff --git a/include/compta_ven.inc.php b/include/compta_ven.inc.php
index 0def7c302..f0eafa255 100644
--- a/include/compta_ven.inc.php
+++ b/include/compta_ven.inc.php
@@ -139,7 +139,7 @@ if ( isset($_POST['record']) )
         /* Show link for Invoice */
         if (isset ($Ledger->doc) )
         {
-            echo '<h2>'._('Document').' </h2>';
+            echo '<h2 class="h-section">'._('Document').' </h2>';
             echo $Ledger->doc;
         }
 
diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index cf5cd0ba2..383703f08 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -399,7 +399,7 @@ if ($histo->selected  == 4 || $histo->selected  == 5)
                        } else
                                continue;
                }
-               echo '<h2>' . $cn->get_value("select fd_label from fiche_def 
where fd_id=$1", array($afiche[$e]['fd_id'])) . '</h2>';
+               echo '<h2 class="h-section">' . $cn->get_value("select fd_label 
from fiche_def where fd_id=$1", array($afiche[$e]['fd_id'])) . '</h2>';
                 $id="table_".$afiche[$e]['fd_id']."_id";
                 echo _('Filtre rapide:').HtmlInput::filter_table($id, '0,1,2', 
'1'); 
                echo '<table class="sortable" id="'.$id.'" class="result" >';
@@ -526,7 +526,7 @@ for ($e = 0; $e < count($afiche); $e++)
                        continue;
                $detail_card = 
HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE), 
$row->strAttribut(ATTR_DEF_NAME));
 
-               echo '<h2>' . $detail_card ;
+               echo '<h2 class="h-section">' . $detail_card ;
                 echo "poste "
                         . 
":".HtmlInput::history_account($row->strAttribut(ATTR_DEF_ACCOUNT),$row->strAttribut(ATTR_DEF_ACCOUNT),'display:inline').Icon_Action::infobulle(27).'</h2>';
 
diff --git a/include/history_operation.inc.php 
b/include/history_operation.inc.php
index 1ba4d6769..4a97184c5 100644
--- a/include/history_operation.inc.php
+++ b/include/history_operation.inc.php
@@ -91,13 +91,13 @@ if (!isset($p_array['date_start']))
        list($date_start, $date_end) = $per->get_date_limit();
        $p_array['date_start'] = $date_start;
        $p_array['date_end'] = $date_end;
-       $msg='<h2 class="">'.sprintf(_("Période %s au %s 
"),$date_start,$date_end).'</h2>';
+       $msg='<h2 class="h-section" class="">'.sprintf(_("Période %s au %s 
"),$date_start,$date_end).'</h2>';
 }
 else
 {
     $date_start=$http->get("date_start","string","");
     $date_end=$http->get("date_end","string","");
-    $msg='<h2 class="">'.sprintf(_("Période %s au %s "),$date_start,$date_end) 
.'</h2>';
+    $msg='<h2 class="h-section" class="">'.sprintf(_("Période %s au %s 
"),$date_start,$date_end) .'</h2>';
 
 }
 /*  compute the sql stmt */
diff --git a/include/impress_bilan.inc.php b/include/impress_bilan.inc.php
index 6b846c951..307b43510 100644
--- a/include/impress_bilan.inc.php
+++ b/include/impress_bilan.inc.php
@@ -93,7 +93,7 @@ if ( isset($_GET['verif']))
         $date_from=$bilan->from;
         $date_to=$bilan->to;
     }
-    echo '<h2>'._('Etape 2 :Impression')."   ".$date_from.'-'.$date_to.'</h2>';
+    echo '<h2 class="h-section">'._('Etape 2 :Impression')."   
".$date_from.'-'.$date_to.'</h2>';
     
     $bilan->get_request_get();
     $bilan->verify();
diff --git a/include/impress_gl_comptes.inc.php 
b/include/impress_gl_comptes.inc.php
index d583e4d14..06c8b4435 100644
--- a/include/impress_gl_comptes.inc.php
+++ b/include/impress_gl_comptes.inc.php
@@ -148,7 +148,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
 
         echo '<tr >
         <td colspan="8" style="width:auto">
-        <h2 class="">'. $accounting_id['pcm_val'].' 
'.h($accounting_id['pcm_lib']).'</h2>
+        <h2 class="h-section" >'. $accounting_id['pcm_val'].' 
'.h($accounting_id['pcm_lib']).'</h2>
         </td>
         </tr>';
 
diff --git a/include/impress_poste.inc.php b/include/impress_poste.inc.php
index d1a79ddf6..dd3ee2590 100644
--- a/include/impress_poste.inc.php
+++ b/include/impress_poste.inc.php
@@ -164,7 +164,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
             $result=$Poste->HtmlTable(null,$_GET['ople']);
             $table=ob_get_clean();
             if ( $result == 0) {
-            echo '<h2 class="">'.$Poste->id." ".h($Poste->label).'</h2>';
+            echo '<h2 class="h-section">'.$Poste->id." 
".h($Poste->label).'</h2>';
             echo $table;
             }
            echo '</div>';
@@ -182,7 +182,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
             $Poste->load();
 
             echo '<table class="result" >';
-            echo '<tr><td  class="mtitle" style="width:auto" colspan="6"><h2 
class="info">'. $_GET['poste_id'].' '.h($Poste->label).'</h2></td></tr>';
+            echo '<tr><td  style="width:auto" colspan="6"><h2 
class="h-section">'. $_GET['poste_id'].' '.h($Poste->label).'</h2></td></tr>';
             /* avoid duplicates */
             $old=array();
             foreach ($Poste->row as $detail)
@@ -210,7 +210,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
         if ( ! isset($_REQUEST['oper_detail']) )
         {
             echo '<div class="content">';
-            echo '<h2 class=""> ' .
+            echo '<h2 class="h-section" class=""> ' .
                 '(' . $fiche->id . ')' .
                 $fiche->getName() . ' ' .
                 ' [ ' . $fiche->get_quick_code() . ' ] ' .
@@ -224,11 +224,11 @@ if ( isset( $_REQUEST['bt_html'] ) )
         {
             // Detail //
             echo '<div class="content">';
-            echo '<h2 class=""> ' .
+            echo '<h2 class="h-section" class=""> ' .
                 '(' . $fiche->id . ')' .
                 $fiche->getName() . ' ' .
                 ' [ ' . $fiche->get_quick_code() . ' ] ' .
-                '<h2>';
+                '</h2>';
 
             $fiche->HtmlTableHeader();
             $fiche->HtmlTableDetail();
@@ -260,7 +260,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
                 $result=$Poste->HtmlTable(null,$_GET['ople']);
                 $table=ob_get_clean();
                 if ( $result == 0) {
-                echo '<h2 class="">'.$Poste->id." ".h($Poste->label).'</h2>';
+                echo '<h2 class="h-section" class="">'.$Poste->id." 
".h($Poste->label).'</h2>';
                 echo $table;
                 }
                 
@@ -274,14 +274,14 @@ if ( isset( $_REQUEST['bt_html'] ) )
             // Detail
             
//----------------------------------------------------------------------
             echo Acc_Account_Ledger::HtmlTableHeader();
-            echo '<table  style="width:100%;margin-left:0%">';
+            echo '<table  class="result">';
             foreach ($a_poste as $poste_id )
             {
                 $Poste=new Acc_Account_Ledger ($cn,$poste_id['pcm_val']);
                 $Poste->load();
                 $Poste->get_row_date( $_GET['from_periode'], 
$_GET['to_periode'],$_GET['ople']);
                 if ( empty($Poste->row)) continue;
-                echo '<tr><td  class="mtitle" style="width:auto" 
colspan="6"><h2 class="title">'. $poste_id['pcm_val'].' 
'.h($Poste->label).'</h2></td></tr>';
+                echo '<tr><td  style="width:auto" colspan="6"><h2 
class="h-section">'. $poste_id['pcm_val'].' 
'.h($Poste->label).'</h2></td></tr>';
 
                 $detail=$Poste->row[0];
 
@@ -292,8 +292,8 @@ if ( isset( $_REQUEST['bt_html'] ) )
                     /* avoid duplicates */
                     if ( in_array($detail['jr_id'],$old) == TRUE ) continue;
                     $old[]=$detail['jr_id'];
-                    echo tr(td("Journal 
:".$detail['jrn_def_name'],''),'style="width:auto" colspan="6"');
-                    echo '<tr><td class="mtitle" 
style="width:auto;color:whitesmoke" colspan="6">'. $detail['j_date'].' 
'.$detail['jr_internal'].' '.hb($detail['description']).' 
'.hi($detail['jr_pj_number']).'</td></tr>';
+                   // echo tr(td("Journal 
:".$detail['jrn_def_name'],''),'style="width:auto" colspan="6"');
+                    echo '<tr><td 
style="text-align:center;background-color:lightgrey;width:auto;" colspan="6">'. 
$detail['jrn_def_name']."-".$detail['j_date'].' '.$detail['jr_internal'].' 
'.hb($detail['description']).' '.hi($detail['jr_pj_number']).'</td></tr>';
 
                     $op=new Acc_Operation($cn);
                     $op->poste=$poste_id['pcm_val'];
diff --git a/include/impress_rapport.inc.php b/include/impress_rapport.inc.php
index 16e6139b2..bb0f57981 100644
--- a/include/impress_rapport.inc.php
+++ b/include/impress_rapport.inc.php
@@ -96,7 +96,7 @@ if ( isset( $_GET['bt_html'] ) )
     {
         
         $t=($from_periode==$to_periode)?"":" -> 
".getPeriodeName($cn,$to_periode,'p_end');
-        echo '<h2 >'.$form_id
+        echo '<h2 class="h-section" >'.$form_id
                 ." ".$form_label
                 ." - ".getPeriodeName($cn,$from_periode,'p_start')
                 ." ".$t
@@ -104,7 +104,7 @@ if ( isset( $_GET['bt_html'] ) )
     }
     else
     {
-        echo '<h2 >'.$form_id." ".$form_label.
+        echo '<h2 class="h-section" >'.$form_id." ".$form_label.
         ' Date :'.
         $from_date.
         " au ".
diff --git a/include/noalyss-color.inc.php b/include/noalyss-color.inc.php
index f5c08cf47..998b88780 100644
--- a/include/noalyss-color.inc.php
+++ b/include/noalyss-color.inc.php
@@ -36,7 +36,7 @@ $http = new HttpInput();
         <?= dossier::hidden(); ?>
         <div class="row">
             <div class="col">
-                <h2><?= _("Apparence") ?></h2>
+                <h2 class="h-section"><?= _("Apparence") ?></h2>
                 <?php
                 $noalyss_appearance = new Noalyss_Appearance();
                 $noalyss_appearance->load();
@@ -55,7 +55,7 @@ $http = new HttpInput();
 
             </div>
             <div class="col">
-                <h2><?= _("Ecran") ?></h2>
+                <h2  class="h-section"><?= _("Ecran") ?></h2>
                 <img src="image/default-screen.png" width="100%">
             </div>
         </div>
diff --git a/include/template/form_ledger_detail.php 
b/include/template/form_ledger_detail.php
index ce06927ef..7fe94e7e3 100644
--- a/include/template/form_ledger_detail.php
+++ b/include/template/form_ledger_detail.php
@@ -101,7 +101,7 @@ Acc_Operation_Note::input($note)
 <?php
 $hidden=($this->has_quantity()==0)?'d-none':'';
 ?>
-<h2><?php echo $f_legend_detail?></h2>
+<h2 class="h-section"><?php echo $f_legend_detail?></h2>
 <table id="sold_item" >
 <tr>
 <th style="width:auto"colspan="1">Code <?php echo 
Icon_Action::infobulle(0)?></th>
diff --git a/include/template/operation_exercice-input_source.php 
b/include/template/operation_exercice-input_source.php
index ed472a5c6..47bf3a288 100644
--- a/include/template/operation_exercice-input_source.php
+++ b/include/template/operation_exercice-input_source.php
@@ -42,7 +42,7 @@ global $g_parameter;
             <FORM method="POST">
 
                 <div class="" id="opening_div">
-                    <h2><?= _("Ouverture") ?></h2>
+                    <h2 class="h-section"><?= _("Ouverture") ?></h2>
                     <div class="text-muted">
                         <?= _("Ouverture des comptes pour l'exercice qui 
débute pour les comptes 0 à 5.") ?>
                         <?= ("Choisissez l'exercice clôturé (exercice N-1) du 
dossier à reporter pour les a-nouveaux (exercice N)") ?>
@@ -102,7 +102,7 @@ global $g_parameter;
 
             <FORM method="POST">
                 <div class="" id="closing_div" style="display:grid">
-                    <h2>Clôture</h2>
+                    <h2 class="h-section">Clôture</h2>
                     <div class="text-muted">Clôture de l'exercice pour les 
comptes 6 à 7</div>
 
                 </div>
diff --git a/include/template/operation_exercice-list_draft.php 
b/include/template/operation_exercice-list_draft.php
index 003c9bfce..f8acad9a1 100644
--- a/include/template/operation_exercice-list_draft.php
+++ b/include/template/operation_exercice-list_draft.php
@@ -37,7 +37,7 @@ $aUrl = ["ac" => $http->request("ac"), "gDossier" => 
Dossier::id()];
 $checkbox=new ICheckBox("operation_list[]");
 $checkbox->set_range("operation_range");
 ?>
-<h2><?=_("Liste des opérations")?></h2>
+<h2 class="h-section"><?=_("Liste des opérations")?></h2>
 <form method="POST">
     <?php
     echo \HtmlInput::array_to_hidden(["gDossier", "sa"], $_REQUEST);
diff --git a/include/template/param_jrn.php b/include/template/param_jrn.php
index d4dbb4a3a..d93576dd0 100644
--- a/include/template/param_jrn.php
+++ b/include/template/param_jrn.php
@@ -222,7 +222,7 @@ endif;
     if ( $new ==1 || $type=='ACH' ) : 
         ?>
     <div id='ACH_div' >
-    <h2 > Fiches </h2>
+    <h2 class="h-section" > Fiches </h2>
     <TABLE class="result" style="width:80%;margin-left:10%;">
         <tr>
             <th>
@@ -279,7 +279,7 @@ endif;
     if ( $new ==1  || $type=='VEN' ) : 
         ?>
     <div id='VEN_div' >
-    <h2> Fiches </h2>
+    <h2 class="h-section"> Fiches </h2>
     <TABLE class="result" style="width:80%;margin-left:10%;">
         
         <tr>
@@ -337,7 +337,7 @@ endif;
     if ( $new ==1 || $type=='ODS' ) : 
         ?>
     <div id='ODS_div' >
-    <h2> Fiches </h2>
+    <h2 class="h-section"> Fiches </h2>
    <TABLE class="result" style="width:60%;margin-left:20%;">
         <tr>
             <th>
@@ -383,7 +383,7 @@ endif;
     if ( $new ==1 || $type=='FIN' ) : 
         ?>
     <div id='FIN_div' >
-    <h2> Fiches </h2>
+    <h2 class="h-section"> Fiches </h2>
      <TABLE class="result" style="width:60%;margin-left:20%;">
         <tr>
             <th>
diff --git a/include/template/tax_summary_display.php 
b/include/template/tax_summary_display.php
index 22fadc321..a3cbdf9b3 100644
--- a/include/template/tax_summary_display.php
+++ b/include/template/tax_summary_display.php
@@ -27,7 +27,7 @@
  *
  */?>
 <div class="content">
-<h2><?php echo _("Vente")?></h2>
+<h2 class="h-section"><?php echo _("Vente")?></h2>
 
 <?php
 bcscale(4);
@@ -182,7 +182,7 @@ $array =    $this->get_summary_sale();
 
 ?>
 <hr>
-<h2><?php echo _("Achat")?></h2>
+<h2 class="h-section"><?php echo _("Achat")?></h2>
 <?php
 $array=$this->get_row_purchase();
 $nb_array=count($array);



reply via email to

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