dolibarr 20.0.2
info.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
23// Load Dolibarr environment
24require '../main.inc.php';
25
26require_once DOL_DOCUMENT_ROOT."/cron/class/cronjob.class.php";
27require_once DOL_DOCUMENT_ROOT.'/core/lib/cron.lib.php';
28require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
29
30// Load translation files required by the page
31$langs->loadLangs(array('admin', 'cron'));
32
33// Security check
34if (!$user->hasRight('cron', 'read')) {
36}
37
38$id = GETPOSTINT('id');
39
40$object = new Cronjob($db);
41
42
43/*
44 * View
45 */
46
47$form = new Form($db); // $form is required as global value into dol_banner_tab
48
49llxHeader('', $langs->trans("CronInfo"));
50
51$object->fetch($id);
52$object->info($id);
53
54$head = cron_prepare_head($object);
55
56print dol_get_fiche_head($head, 'info', $langs->trans("CronTask"), -1, 'cron');
57
58$linkback = '<a href="'.DOL_URL_ROOT.'/cron/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
59
60$morehtmlref = '<div class="refidno">';
61$morehtmlref .= $langs->trans($object->label);
62$morehtmlref .= '</div>';
63
64dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', $morehtmlref);
65
66print '<div class="underbanner clearboth"></div>';
67
68print '<br>';
69
70print '<table width="100%"><tr><td>';
72print '</td></tr></table>';
73print '</div>';
74
75llxFooter();
76$db->close();
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:58
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Definition wrapper.php:55
llxFooter()
Empty footer.
Definition wrapper.php:69
Cron Job class.
Class to manage generation of HTML components Only common components must be here.
cron_prepare_head(Cronjob $object)
Return array of tabs to used on a cron job.
Definition cron.lib.php:61
dol_print_object_info($object, $usetable=0)
Show information on an object TODO Move this into html.formother.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.