diff --git a/plugins/admin/systems/class_glpiDeviceManagement.inc b/plugins/admin/systems/class_glpiDeviceManagement.inc
index 675ebc4208481ac40431aa625aff8aacdd64ac20..6573cb9a690dbace39bdfa0d2635c451ecad8e99 100644 (file)
}elseif(isset($tmp['designation'])){
$smarty->assign("warning", sprintf(_("You're about to delete the glpi device '%s'."), $tmp['designation']));
}else{
- print_a(_("Can't detect object name."));
+ print_red(_("Can't detect object name."));
}
return($smarty->fetch(get_template_path('remove_glpi.tpl', TRUE)));
$divlist->SetEntriesPerPage(0);
$divlist->SetHeader(array(
array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
- array("string" => _("devices")." / "._("Departments"), "attach" => "style=''"),
- array("string" => _("Use"), "attach" => "style='width:60px;border-right:0px;text-align:right;'" )));
+ array("string" => _("devices"), "attach" => "style=''"),
+ array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'" )));
$edit = "<a href='?plug=".$_GET['plug']."&act=edit_device&id=%s'>%s</a>";
$editdel = "<a href='?plug=".$_GET['plug']."&act=edit_device&id=%s'><img src='images/edit.png' alt='"._("Edit")."' border=0></a>";
}
/* Dawn databse struckture ....*/
- if(empty($user['comment'])) {
+ if(empty($user['comment']) && isset($user['comments'])) {
$user['comment'] = $user['comments'];
}
" <input class='center' type='image' align='middle'
src='images/monitor.png' title='"._("New monitor")."' alt='"._("M")."' name='new_monitor'> ".
" <input class='center' type='image' align='middle'
- src='images/keyboard.png' title='"._("New mainbord")."' alt='"._("MB")."' name='new_moboard'> ".
+ src='images/mainboard.png' title='"._("New mainbord")."' alt='"._("MB")."' name='new_moboard'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New processor")."' alt='"._("P")."' name='new_processor'> ".
+ src='images/processor.png' title='"._("New processor")."' alt='"._("P")."' name='new_processor'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New case")."' alt='"._("C")."' name='new_case'> ".
+ src='images/server.png' title='"._("New case")."' alt='"._("C")."' name='new_case'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New network interface")."' alt='"._("NI")."' name='new_iface'> ".
+ src='images/net_hardware.png' title='"._("New network interface")."' alt='"._("NI")."' name='new_iface'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New ram")."' alt='"._("R")."' name='new_ram'> ".
+ src='images/memory.png' title='"._("New ram")."' alt='"._("R")."' name='new_ram'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New hard disk")."' alt='"._("HDD")."' name='new_hdd'> ".
+ src='images/fai_partitionTable.png' title='"._("New hard disk")."' alt='"._("HDD")."' name='new_hdd'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New drive")."' alt='"._("D")."' name='new_drive'> ".
+ src='images/drives.png' title='"._("New drive")."' alt='"._("D")."' name='new_drive'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New controller")."' alt='"._("CS")."' name='new_control'> ".
+ src='images/hardware.png' title='"._("New controller")."' alt='"._("CS")."' name='new_control'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New graphics card")."' alt='"._("GC")."' name='new_gfxcard'> ".
+ src='images/gfx_hardware.png' title='"._("New graphics card")."' alt='"._("GC")."' name='new_gfxcard'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New sound card")."' alt='"._("SC")."' name='new_sndcard'> ".
+ src='images/snd_hardware.png' title='"._("New sound card")."' alt='"._("SC")."' name='new_sndcard'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New power supply")."' alt='"._("PS")."' name='new_power'> ".
+ src='images/power.png' title='"._("New power supply")."' alt='"._("PS")."' name='new_power'> ".
" <input class='center' type='image' align='middle'
- src='mages/list_back.png' title='"._("New misc device")."' alt='"._("OC")."' name='new_pci'> ".
+ src='images/fai_template.png' title='"._("New misc device")."' alt='"._("OC")."' name='new_pci'> ".
"</div>";
$filter= $_SESSION['glpiDeviceRegex'];
*/
function check($attr)
{
- $message = array();
+ /* Call common method to give check the hook */
+ $message= plugin::check();
if(isset($attr['designation'])){
$str2 = "designation";