CSS : Cosmetic add CSS h-section and super (for detail)

This commit is contained in:
sparkyx 2024-09-17 17:35:09 +02:00
parent 5f318e22ce
commit 304685f037
18 changed files with 52 additions and 39 deletions

View file

@ -3639,3 +3639,16 @@ div.widget-full_size {
} }
div.row.odd.hover:hover,div.row.even.hover:hover { background-color: var(--hover) !important; } div.row.odd.hover:hover,div.row.even.hover:hover { background-color: var(--hover) !important; }
h2.h-section {
background-color: #e4e9ee;
color: navy;
border: 1px steelblue solid;
font-style: normal;
}
.super {
font-family: SansationLight;
vertical-align: super;
font-size: 80%;
font-variant-caps: normal;
}

View file

@ -317,7 +317,7 @@ if ( isset($_GET['view'] ) )
$periode=new Periode($cn); $periode=new Periode($cn);
$a=$periode->get_date_limit($from_periode); $a=$periode->get_date_limit($from_periode);
$b=$periode->get_date_limit($to_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']); printf ( _("période du %s au %s"),$a['p_start'],$b['p_end']);
echo '</h2>'; echo '</h2>';
echo '<span style="display:block">'; echo '<span style="display:block">';

View file

@ -2917,7 +2917,7 @@ class Acc_Ledger extends jrn_def_sql
{ {
$r=''; $r='';
$r.='<div id="payment"> '; $r.='<div id="payment"> ';
$r.='<h2> '._('Paiement').' </h2>'; $r.='<h2 class="h-section"> '._('Paiement').' </h2>';
$mp=new Acc_Payment($this->db); $mp=new Acc_Payment($this->db);
$mp->set_parameter('ledger_source', $this->id); $mp->set_parameter('ledger_source', $this->id);
$r.=$mp->select($p_selected,$p_amount,$p_date,$p_comm); $r.=$mp->select($p_selected,$p_amount,$p_date,$p_comm);

View file

@ -914,7 +914,7 @@ class Acc_Ledger_Sale extends Acc_Ledger {
$r.='<div style="float:none;clear:both">'; $r.='<div style="float:none;clear:both">';
$r.='</div>'; $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.='<p class="decale">';
$r.='<table class="result" >'; $r.='<table class="result" >';
$r.='<TR>'; $r.='<TR>';
@ -1141,7 +1141,7 @@ EOF;
if ($g_parameter->MY_ANALYTIC != 'nu' && ! $p_summary) // use of AA 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.='<input type="button" class="button" value="' . _('Vérifiez Imputation Analytique') . '" onClick="verify_ca(\'\');">';
$r.='<div id="total_div_id" >'; $r.='<div id="total_div_id" >';
$r.='<h2>Totaux</h2>'; $r.='<h2 class="h-section">Totaux</h2>';
$other_tax_label=""; $other_tax_label="";
$other_tax_amount=""; $other_tax_amount="";
if ( $this->has_other_tax() && isset($p_array['other_tax'])) { if ( $this->has_other_tax() && isset($p_array['other_tax'])) {
@ -1219,7 +1219,7 @@ EOF;
$fname = new Fiche($this->db); $fname = new Fiche($this->db);
$fname->get_by_qcode(${'e_mp_qcode_' . $e_mp}); $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"}. " le ".${"mp_date"}.
" " . $fname->getName() . '</h2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' . " " . $fname->getName() . '</h2> ' . '<p class="decale">' . _('Déduction acompte ') . h($acompte) . '</p>' .
_('Libellé :') . h($e_comm_paiement) ; _('Libellé :') . h($e_comm_paiement) ;

View file

@ -148,7 +148,7 @@ $all->style=' class="input_text"';
<div class="col"> <div class="col">
<h2>Société</h2> <h2 class="h-section">Société</h2>
<div class="form-group"> <div class="form-group">
<?php <?php
$all=new IText(); $all=new IText();
@ -233,7 +233,7 @@ $all->style=' class="input_text"';
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h2>Paramètre supplémentaire</h2> <h2 class="h-section">Paramètre supplémentaire</h2>
<?php <?php
$object=Parameter_Extra_MTable::build(); $object=Parameter_Extra_MTable::build();
$object->create_js_script(); $object->create_js_script();
@ -255,7 +255,7 @@ $all->style=' class="input_text"';
</div> </div>
<div class="col"> <div class="col">
<h2>Fonctionnement</h2> <h2 class="h-section">Fonctionnement</h2>
<div class="form-group"> <div class="form-group">
<label class="w-40" for="p_report"> <label class="w-40" for="p_report">

View file

@ -139,7 +139,7 @@ if ( isset($_POST['record']) )
/* Show link for Invoice */ /* Show link for Invoice */
if (isset ($Ledger->doc) ) if (isset ($Ledger->doc) )
{ {
echo '<h2>'._('Document').' </h2>'; echo '<h2 class="h-section">'._('Document').' </h2>';
echo $Ledger->doc; echo $Ledger->doc;
} }

View file

@ -399,7 +399,7 @@ if ($histo->selected == 4 || $histo->selected == 5)
} else } else
continue; 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"; $id="table_".$afiche[$e]['fd_id']."_id";
echo _('Filtre rapide:').HtmlInput::filter_table($id, '0,1,2', '1'); echo _('Filtre rapide:').HtmlInput::filter_table($id, '0,1,2', '1');
echo '<table class="sortable" id="'.$id.'" class="result" >'; echo '<table class="sortable" id="'.$id.'" class="result" >';
@ -526,7 +526,7 @@ for ($e = 0; $e < count($afiche); $e++)
continue; continue;
$detail_card = HtmlInput::card_detail($row->strAttribut(ATTR_DEF_QUICKCODE), $row->strAttribut(ATTR_DEF_NAME)); $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 " echo "poste "
. ":".HtmlInput::history_account($row->strAttribut(ATTR_DEF_ACCOUNT),$row->strAttribut(ATTR_DEF_ACCOUNT),'display:inline').Icon_Action::infobulle(27).'</h2>'; . ":".HtmlInput::history_account($row->strAttribut(ATTR_DEF_ACCOUNT),$row->strAttribut(ATTR_DEF_ACCOUNT),'display:inline').Icon_Action::infobulle(27).'</h2>';

View file

@ -91,13 +91,13 @@ if (!isset($p_array['date_start']))
list($date_start, $date_end) = $per->get_date_limit(); list($date_start, $date_end) = $per->get_date_limit();
$p_array['date_start'] = $date_start; $p_array['date_start'] = $date_start;
$p_array['date_end'] = $date_end; $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 else
{ {
$date_start=$http->get("date_start","string",""); $date_start=$http->get("date_start","string","");
$date_end=$http->get("date_end","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 */ /* compute the sql stmt */

View file

@ -93,7 +93,7 @@ if ( isset($_GET['verif']))
$date_from=$bilan->from; $date_from=$bilan->from;
$date_to=$bilan->to; $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->get_request_get();
$bilan->verify(); $bilan->verify();

View file

@ -148,7 +148,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
echo '<tr > echo '<tr >
<td colspan="8" style="width:auto"> <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> </td>
</tr>'; </tr>';

View file

@ -164,7 +164,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
$result=$Poste->HtmlTable(null,$_GET['ople']); $result=$Poste->HtmlTable(null,$_GET['ople']);
$table=ob_get_clean(); $table=ob_get_clean();
if ( $result == 0) { 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 $table;
} }
echo '</div>'; echo '</div>';
@ -182,7 +182,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
$Poste->load(); $Poste->load();
echo '<table class="result" >'; 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 */ /* avoid duplicates */
$old=array(); $old=array();
foreach ($Poste->row as $detail) foreach ($Poste->row as $detail)
@ -210,7 +210,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
if ( ! isset($_REQUEST['oper_detail']) ) if ( ! isset($_REQUEST['oper_detail']) )
{ {
echo '<div class="content">'; echo '<div class="content">';
echo '<h2 class=""> ' . echo '<h2 class="h-section" class=""> ' .
'(' . $fiche->id . ')' . '(' . $fiche->id . ')' .
$fiche->getName() . ' ' . $fiche->getName() . ' ' .
' [ ' . $fiche->get_quick_code() . ' ] ' . ' [ ' . $fiche->get_quick_code() . ' ] ' .
@ -224,11 +224,11 @@ if ( isset( $_REQUEST['bt_html'] ) )
{ {
// Detail // // Detail //
echo '<div class="content">'; echo '<div class="content">';
echo '<h2 class=""> ' . echo '<h2 class="h-section" class=""> ' .
'(' . $fiche->id . ')' . '(' . $fiche->id . ')' .
$fiche->getName() . ' ' . $fiche->getName() . ' ' .
' [ ' . $fiche->get_quick_code() . ' ] ' . ' [ ' . $fiche->get_quick_code() . ' ] ' .
'<h2>'; '</h2>';
$fiche->HtmlTableHeader(); $fiche->HtmlTableHeader();
$fiche->HtmlTableDetail(); $fiche->HtmlTableDetail();
@ -260,7 +260,7 @@ if ( isset( $_REQUEST['bt_html'] ) )
$result=$Poste->HtmlTable(null,$_GET['ople']); $result=$Poste->HtmlTable(null,$_GET['ople']);
$table=ob_get_clean(); $table=ob_get_clean();
if ( $result == 0) { 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; echo $table;
} }
@ -274,14 +274,14 @@ if ( isset( $_REQUEST['bt_html'] ) )
// Detail // Detail
//---------------------------------------------------------------------- //----------------------------------------------------------------------
echo Acc_Account_Ledger::HtmlTableHeader(); echo Acc_Account_Ledger::HtmlTableHeader();
echo '<table style="width:100%;margin-left:0%">'; echo '<table class="result">';
foreach ($a_poste as $poste_id ) foreach ($a_poste as $poste_id )
{ {
$Poste=new Acc_Account_Ledger ($cn,$poste_id['pcm_val']); $Poste=new Acc_Account_Ledger ($cn,$poste_id['pcm_val']);
$Poste->load(); $Poste->load();
$Poste->get_row_date( $_GET['from_periode'], $_GET['to_periode'],$_GET['ople']); $Poste->get_row_date( $_GET['from_periode'], $_GET['to_periode'],$_GET['ople']);
if ( empty($Poste->row)) continue; 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]; $detail=$Poste->row[0];
@ -292,8 +292,8 @@ if ( isset( $_REQUEST['bt_html'] ) )
/* avoid duplicates */ /* avoid duplicates */
if ( in_array($detail['jr_id'],$old) == TRUE ) continue; if ( in_array($detail['jr_id'],$old) == TRUE ) continue;
$old[]=$detail['jr_id']; $old[]=$detail['jr_id'];
echo tr(td("Journal :".$detail['jrn_def_name'],''),'style="width:auto" colspan="6"'); // 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 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=new Acc_Operation($cn);
$op->poste=$poste_id['pcm_val']; $op->poste=$poste_id['pcm_val'];

View file

@ -96,7 +96,7 @@ if ( isset( $_GET['bt_html'] ) )
{ {
$t=($from_periode==$to_periode)?"":" -> ".getPeriodeName($cn,$to_periode,'p_end'); $t=($from_periode==$to_periode)?"":" -> ".getPeriodeName($cn,$to_periode,'p_end');
echo '<h2 >'.$form_id echo '<h2 class="h-section" >'.$form_id
." ".$form_label ." ".$form_label
." - ".getPeriodeName($cn,$from_periode,'p_start') ." - ".getPeriodeName($cn,$from_periode,'p_start')
." ".$t ." ".$t
@ -104,7 +104,7 @@ if ( isset( $_GET['bt_html'] ) )
} }
else else
{ {
echo '<h2 >'.$form_id." ".$form_label. echo '<h2 class="h-section" >'.$form_id." ".$form_label.
' Date :'. ' Date :'.
$from_date. $from_date.
" au ". " au ".

View file

@ -36,7 +36,7 @@ $http = new HttpInput();
<?= dossier::hidden(); ?> <?= dossier::hidden(); ?>
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h2><?= _("Apparence") ?></h2> <h2 class="h-section"><?= _("Apparence") ?></h2>
<?php <?php
$noalyss_appearance = new Noalyss_Appearance(); $noalyss_appearance = new Noalyss_Appearance();
$noalyss_appearance->load(); $noalyss_appearance->load();
@ -55,7 +55,7 @@ $http = new HttpInput();
</div> </div>
<div class="col"> <div class="col">
<h2><?= _("Ecran") ?></h2> <h2 class="h-section"><?= _("Ecran") ?></h2>
<img src="image/default-screen.png" width="100%"> <img src="image/default-screen.png" width="100%">
</div> </div>
</div> </div>

View file

@ -101,7 +101,7 @@ Acc_Operation_Note::input($note)
<?php <?php
$hidden=($this->has_quantity()==0)?'d-none':''; $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" > <table id="sold_item" >
<tr> <tr>
<th style="width:auto"colspan="1">Code <?php echo Icon_Action::infobulle(0)?></th> <th style="width:auto"colspan="1">Code <?php echo Icon_Action::infobulle(0)?></th>

View file

@ -42,7 +42,7 @@ global $g_parameter;
<FORM method="POST"> <FORM method="POST">
<div class="" id="opening_div"> <div class="" id="opening_div">
<h2><?= _("Ouverture") ?></h2> <h2 class="h-section"><?= _("Ouverture") ?></h2>
<div class="text-muted"> <div class="text-muted">
<?= _("Ouverture des comptes pour l'exercice qui débute pour les comptes 0 à 5.") ?> <?= _("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)") ?> <?= ("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"> <FORM method="POST">
<div class="" id="closing_div" style="display:grid"> <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 class="text-muted">Clôture de l'exercice pour les comptes 6 à 7</div>
</div> </div>

View file

@ -37,7 +37,7 @@ $aUrl = ["ac" => $http->request("ac"), "gDossier" => Dossier::id()];
$checkbox=new ICheckBox("operation_list[]"); $checkbox=new ICheckBox("operation_list[]");
$checkbox->set_range("operation_range"); $checkbox->set_range("operation_range");
?> ?>
<h2><?=_("Liste des opérations")?></h2> <h2 class="h-section"><?=_("Liste des opérations")?></h2>
<form method="POST"> <form method="POST">
<?php <?php
echo \HtmlInput::array_to_hidden(["gDossier", "sa"], $_REQUEST); echo \HtmlInput::array_to_hidden(["gDossier", "sa"], $_REQUEST);

View file

@ -222,7 +222,7 @@ endif;
if ( $new ==1 || $type=='ACH' ) : if ( $new ==1 || $type=='ACH' ) :
?> ?>
<div id='ACH_div' > <div id='ACH_div' >
<h2 > Fiches </h2> <h2 class="h-section" > Fiches </h2>
<TABLE class="result" style="width:80%;margin-left:10%;"> <TABLE class="result" style="width:80%;margin-left:10%;">
<tr> <tr>
<th> <th>
@ -279,7 +279,7 @@ endif;
if ( $new ==1 || $type=='VEN' ) : if ( $new ==1 || $type=='VEN' ) :
?> ?>
<div id='VEN_div' > <div id='VEN_div' >
<h2> Fiches </h2> <h2 class="h-section"> Fiches </h2>
<TABLE class="result" style="width:80%;margin-left:10%;"> <TABLE class="result" style="width:80%;margin-left:10%;">
<tr> <tr>
@ -337,7 +337,7 @@ endif;
if ( $new ==1 || $type=='ODS' ) : if ( $new ==1 || $type=='ODS' ) :
?> ?>
<div id='ODS_div' > <div id='ODS_div' >
<h2> Fiches </h2> <h2 class="h-section"> Fiches </h2>
<TABLE class="result" style="width:60%;margin-left:20%;"> <TABLE class="result" style="width:60%;margin-left:20%;">
<tr> <tr>
<th> <th>
@ -383,7 +383,7 @@ endif;
if ( $new ==1 || $type=='FIN' ) : if ( $new ==1 || $type=='FIN' ) :
?> ?>
<div id='FIN_div' > <div id='FIN_div' >
<h2> Fiches </h2> <h2 class="h-section"> Fiches </h2>
<TABLE class="result" style="width:60%;margin-left:20%;"> <TABLE class="result" style="width:60%;margin-left:20%;">
<tr> <tr>
<th> <th>

View file

@ -27,7 +27,7 @@
* *
*/?> */?>
<div class="content"> <div class="content">
<h2><?php echo _("Vente")?></h2> <h2 class="h-section"><?php echo _("Vente")?></h2>
<?php <?php
bcscale(4); bcscale(4);
@ -182,7 +182,7 @@ $array = $this->get_summary_sale();
?> ?>
<hr> <hr>
<h2><?php echo _("Achat")?></h2> <h2 class="h-section"><?php echo _("Achat")?></h2>
<?php <?php
$array=$this->get_row_purchase(); $array=$this->get_row_purchase();
$nb_array=count($array); $nb_array=count($array);