NEW : llxHeader body css for donation

This commit is contained in:
Alexandre SPANGARO
2023-12-17 23:08:08 +01:00
parent 98009ea6be
commit 644bf76c18
12 changed files with 19 additions and 15 deletions

View File

@@ -173,7 +173,9 @@ if (isModEnabled('accounting')) {
$formaccounting = new FormAccounting($db);
}
llxHeader('', $langs->trans("DonationsSetup"), 'DonConfiguration');
$help_url = '';
llxHeader('', $langs->trans("DonationsSetup"), $help_url, '', 0, 0, '', '', '', 'mod-donation page-admin');
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
print load_fiche_titre($langs->trans("DonationsSetup"), $linkback, 'title_setup');

View File

@@ -63,7 +63,8 @@ require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php';
$textobject = $langs->transnoentitiesnoconv("Donations");
llxHeader('', $langs->trans("DonationsSetup"));
$help_url = '';
llxHeader('', $langs->trans("DonationsSetup"), $help_url, '', 0, 0, '', '', '', 'mod-donation page-admin_extrafields');
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
print load_fiche_titre($langs->trans("DonationsSetup"), $linkback, 'title_setup');

View File

@@ -391,7 +391,7 @@ $title = $langs->trans("Donation");
$help_url = 'EN:Module_Donations|FR:Module_Dons|ES:M&oacute;dulo_Donaciones|DE:Modul_Spenden';
llxHeader('', $title, $help_url);
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-donation page-card');
$form = new Form($db);
$formfile = new FormFile($db);

View File

@@ -111,7 +111,7 @@ $title = $langs->trans('Donation')." - ".$langs->trans('Documents');
$help_url = 'EN:Module_Donations|FR:Module_Dons|ES:M&oacute;dulo_Donaciones|DE:Modul_Spenden';
llxHeader('', $title, $help_url);
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-donation page-card_documents');
if ($object->id) {

View File

@@ -56,7 +56,7 @@ $donstatic = new Don($db);
$help_url = 'EN:Module_Donations|FR:Module_Dons|ES:M&oacute;dulo_Donaciones|DE:Modul_Spenden';
llxHeader('', $langs->trans("Donations"), $help_url);
llxHeader('', $langs->trans("Donations"), $help_url, '', 0, 0, '', '', '', 'mod-donation page-index');
$nb = array();
$somme = array();

View File

@@ -69,7 +69,7 @@ $title = $langs->trans('Donation')." - ".$langs->trans('Info');
$help_url = 'EN:Module_Donations|FR:Module_Dons|ES:M&oacute;dulo_Donaciones|DE:Modul_Spenden';
llxHeader('', $title, $help_url);
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-donation page-card_info');
$form = new Form($db);
if (isModEnabled('project')) {

View File

@@ -202,7 +202,7 @@ if ($num == 1 && !getDolGlobalInt('MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && $sea
// Output page
// --------------------------------------------------------------------
llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-donation page-list'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
// Example : Adding jquery code
// print '<script type="text/javascript">

View File

@@ -86,7 +86,7 @@ $title = $langs->trans('Donation')." - ".$langs->trans('Notes');
$help_url = 'EN:Module_Donations|FR:Module_Dons|ES:M&oacute;dulo_Donaciones|DE:Modul_Spenden';
llxHeader('', $title, $help_url);
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-donation page-card_notes');
$form = new Form($db);
if (isModEnabled('project')) {

View File

@@ -78,8 +78,8 @@ if ($action == 'confirm_delete' && $confirm == 'yes' && $user->hasRight('don', '
/*
* View
*/
llxHeader();
$title = $langs->trans("Payment");
llxHeader('', $title, '', '', 0, 0, '', '', '', 'mod-donation page-payment_card');
$don = new Don($db);
$form = new Form($db);

View File

@@ -139,8 +139,8 @@ if ($action == 'add_payment') {
*/
$form = new Form($db);
llxHeader();
$title = $langs->trans("Payment");
llxHeader('', $title, '', '', 0, 0, '', '', '', 'mod-donation page-payment');
$sql = "SELECT sum(p.amount) as total";

View File

@@ -58,10 +58,10 @@ $result = restrictedArea($user, 'don');
*/
$form = new Form($db);
$title = $langs->trans("DonationsStatistics");
llxHeader('', $title, '', '', 0, 0, '', '', '', 'mod-donation page-stats');
llxHeader();
print load_fiche_titre($langs->trans("StatisticsOfDonations"), $mesg);
print load_fiche_titre($langs->trans("DonationsStatistics"), $mesg);
dol_mkdir($dir);

View File

@@ -33,3 +33,4 @@ DONATION_ART978=Show article 978 from CGI if you are concerned
DonationPayment=Donation payment
DonationValidated=Donation %s validated
DonationUseThirdparties=Use the address of an existing thirdparty as the address of the donor
DonationsStatistics=Donation's statistics