Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
440e1448
Commit
440e1448
authored
10 years ago
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
Fix: #3230 [Leaves] Module setup page is useless
parent
e62595b0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/core/modules/modHoliday.class.php
+1
-1
1 addition, 1 deletion
htdocs/core/modules/modHoliday.class.php
htdocs/holiday/admin/holiday.php
+0
-71
0 additions, 71 deletions
htdocs/holiday/admin/holiday.php
htdocs/holiday/admin/index.html
+0
-0
0 additions, 0 deletions
htdocs/holiday/admin/index.html
with
1 addition
and
72 deletions
htdocs/core/modules/modHoliday.class.php
+
1
−
1
View file @
440e1448
...
@@ -80,7 +80,7 @@ class modHoliday extends DolibarrModules
...
@@ -80,7 +80,7 @@ class modHoliday extends DolibarrModules
//$this->style_sheet = '/mymodule/mymodule.css.php';
//$this->style_sheet = '/mymodule/mymodule.css.php';
// Config pages. Put here list of php page names stored in admmin directory used to setup module.
// Config pages. Put here list of php page names stored in admmin directory used to setup module.
$this
->
config_page_url
=
array
(
"holiday.php?leftmenu=setup@holiday"
);
//
$this->config_page_url = array("holiday.php?leftmenu=setup@holiday");
// Dependencies
// Dependencies
$this
->
depends
=
array
();
// List of modules id that must be enabled if this module is enabled
$this
->
depends
=
array
();
// List of modules id that must be enabled if this module is enabled
...
...
This diff is collapsed.
Click to expand it.
htdocs/holiday/admin/holiday.php
deleted
100644 → 0
+
0
−
71
View file @
e62595b0
<?php
/* Copyright (C) 2012-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2011 Dimitri Mouillard <dmouillard@teclib.com>
* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Page module configuration paid holiday.
*
* \file holiday.php
* \ingroup holiday
* \brief Page module configuration paid holiday.
*/
require
'../../main.inc.php'
;
require
DOL_DOCUMENT_ROOT
.
'/holiday/class/holiday.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/core/class/html.form.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/user/class/user.class.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/user/class/usergroup.class.php'
;
$action
=
GETPOST
(
'action'
);
$optName
=
GETPOST
(
'optName'
);
$optValue
=
GETPOST
(
'optValue'
);
$langs
->
load
(
"admin"
);
$langs
->
load
(
"holiday"
);
// Si pas administrateur
if
(
!
$user
->
admin
)
accessforbidden
();
/*
* View
*/
// Vérification si module activé
if
(
empty
(
$conf
->
holiday
->
enabled
))
print
$langs
->
trans
(
'NotActiveModCP'
);
llxheader
(
''
,
$langs
->
trans
(
'TitleAdminCP'
));
$linkback
=
'<a href="'
.
DOL_URL_ROOT
.
'/admin/modules.php">'
.
$langs
->
trans
(
"BackToModuleList"
)
.
'</a>'
;
print_fiche_titre
(
$langs
->
trans
(
'ConfCP'
),
$linkback
,
'title_hrm.png'
);
$cp
=
new
Holiday
(
$db
);
print
'<br>'
.
$langs
->
trans
(
"GoIntoDictionaryHolidayTypes"
)
.
'<br><br>'
;
$var
=!
$var
;
print
'<div class="info">'
.
$langs
->
trans
(
'LastUpdateCP'
)
.
': '
.
"
\n
"
;
if
(
$cp
->
getConfCP
(
'lastUpdate'
))
print
'<strong>'
.
dol_print_date
(
$db
->
jdate
(
$cp
->
getConfCP
(
'lastUpdate'
)),
'dayhour'
,
'tzuser'
)
.
'</strong>'
;
else
print
$langs
->
trans
(
'None'
);
print
"</div><br>
\n
"
;
// Fin de page
llxFooter
();
if
(
is_object
(
$db
))
$db
->
close
();
\ No newline at end of file
This diff is collapsed.
Click to expand it.
htdocs/holiday/admin/index.html
deleted
100644 → 0
+
0
−
0
View file @
e62595b0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment