...
 
Commits (3)
......@@ -2,7 +2,7 @@
/**
* Fichier de classes pour gérer les hôtes
*
* Copyright (C) 2011-2018 Jean-François Ferry <hello@librethic.io>
* Copyright (C) 2011-2019 Jean-François Ferry <hello@librethic.io>
* Copyright (C) 2011 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
......@@ -109,8 +109,8 @@ class Host extends CommonObject
'import_key' => array('type'=>'varchar(14)', 'label'=>'ImportId', 'visible'=>-2, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1,),
'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>1, 'index'=>1, 'arrayofkeyval'=> array(0=>'Draft', 1=>'Online', '-1'=>'Offline', 9=>'Disabled')),
'actif' => array('type'=>'boolean', 'label'=>'Active', 'visible'=>-2, 'enabled'=>1, 'position'=>10001, 'notnull'=>-1, 'index'=>1,),
'category_code' => array('type'=>'sellist', 'label'=>'HostCategoryFormLabel', 'visible'=>1, 'enabled'=>1, 'position'=>56, 'notnull'=>-1, 'index'=>1, 'param' => array('options' => array('c_host_category:label:code' => 1 )), 'comment'=>"Category code of dictionary",),
);
'category_code' => array('type'=>'sellist:c_host_category:label:code:', 'label'=>'HostCategoryFormLabel', 'visible'=>1, 'enabled'=>1, 'position'=>56, 'notnull'=>-1, 'index'=>1, 'comment'=>"Category code of dictionary",),
);
/**
......
......@@ -359,7 +359,22 @@ print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
print '<input type="hidden" name="page" value="'.$page.'">';
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_companies', 0, '', '', $limit);
if ($socid) {
$morefilter = '&fk_soc='.$socid;
}
$morebuttons = '';
$label='HostAdd';
$morebuttons.= '<a class="butActionNew" href="'.dol_buildpath('/hosting/host_card.php', 1).'?action=create'.$morefilter.'"><span class="valignmiddle">'.$langs->trans($label).'</span>';
$morebuttons.= '<span class="fa fa-plus-circle valignmiddle"></span>';
$morebuttons.= '</a>';
if ($conf->domain->enabled) {
$label='DomainAdd';
$morebuttons.= '<a class="butActionNew" href="'.dol_buildpath('/domain/domain_card.php', 1).'?action=create'.$morefilter.'"><span class="valignmiddle">'.$langs->trans($label).'</span>';
$morebuttons.= '<span class="fa fa-plus-circle valignmiddle"></span>';
$morebuttons.= '</a>';
}
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_companies', 0, $morebuttons, '', $limit);
// Add code for pre mass action (confirmation or email presend form)
$topicmail="SendHostRef";
......