dolibarr  13.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 require '../main.inc.php';
24 
25 require_once DOL_DOCUMENT_ROOT."/cron/class/cronjob.class.php";
26 require_once DOL_DOCUMENT_ROOT.'/core/lib/cron.lib.php';
27 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
28 
29 // Load translation files required by the page
30 $langs->loadLangs(array('admin', 'cron'));
31 
32 // Security check
33 if (!$user->rights->cron->read) accessforbidden();
34 
35 $id = GETPOST('id', 'int');
36 
37 $mesg = '';
38 
39 /*
40  * View
41 */
42 
43 llxHeader('', $langs->trans("CronInfo"));
44 
45 $object = new Cronjob($db);
46 $object->fetch($id);
47 $object->info($id);
48 
49 $head = cron_prepare_head($object);
50 
51 print dol_get_fiche_head($head, 'info', $langs->trans("CronTask"), -1, 'cron');
52 
53 $linkback = '<a href="'.DOL_URL_ROOT.'/cron/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
54 
55 $morehtmlref = '<div class="refidno">';
56 $morehtmlref .= '</div>';
57 
58 dol_banner_tab($object, 'id', $linkback, 1, 'rowid', 'ref', $morehtmlref);
59 
60 print '<div class="underbanner clearboth"></div>';
61 
62 print '<br>';
63 
64 print '<table width="100%"><tr><td>';
65 dol_print_object_info($object);
66 print '</td></tr></table>';
67 print '</div>';
68 
69 llxFooter();
70 $db->close();
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
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 informations on an object TODO Move this into html.formother.
llxHeader()
Empty header.
Definition: wrapper.php:45
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
Definition: index.php:89
Cron Job class.
dol_banner_tab($object, $paramid, $morehtml= '', $shownav=1, $fieldid= 'rowid', $fieldref= 'ref', $morehtmlref= '', $moreparam= '', $nodbprefix=0, $morehtmlleft= '', $morehtmlstatus= '', $onlybanner=0, $morehtmlright= '')
Show tab footer of a card.
llxFooter()
Empty footer.
Definition: wrapper.php:59