Pasted below is the setup for my currently working custom view. I'm trying to add the currently logged on user, type of monitor that is on the PC, name of primary optical drive... and I think that's it.
I'd also love it if there was a way to get FREE space on the entire hard disk... instead of just the value for each partition's free space... is this even possible?
The reason I need help is because I've been able to make it list the other items, but, for instance, if a laptop does not have a monitor attached, it doesn't even list the system AT ALL in this view... so I was doing something wrong. Any help would be greatly appreciated!
[code]<?php
$query_array=array("headline"=>__("Custom Export"), "sql"=>"SELECT * FROM `system`, `processor`, `hard_drive` WHERE system_uuid = hard_drive_uuid AND system_uuid = processor_uuid AND hard_drive_uuid = processor_uuid AND system_timestamp = processor_timestamp AND system_timestamp = hard_drive_timestamp AND processor_device_id = 'CPU0' AND hard_drive_index = 0", "sort"=>"system_name", "dir"=>"ASC", "get"=>array("file"=>"system.php", "title"=>__("Go to System"), "var"=>array("pc"=>"%system_uuid", "view"=>"summary", ), ), "fields"=>array("10"=>array("name"=>"system_uuid", "head"=>__("UUID"), "show"=>"n", ), "20"=>array("name"=>"system_name", "head"=>__("Hostname"), "show"=>"y", "link"=>"y", ), "30"=>array("name"=>"net_ip_address", "head"=>__("IP"), "show"=>"y", "link"=>"y", ), "40"=>array("name"=>"system_system_type", "head"=>__("System Type"), "show"=>$show_type, "align"=>"center", ), "50"=>array("name"=>"processor_name", "head"=>__("CPU"), "show"=>"y", ), "60"=>array("name"=>"system_memory", "head"=>__("RAM"), "show"=>"y", ), "70"=>array("name"=>"hard_drive_size", "head"=>__("First Disk Space"), "show"=>"y", ), "90"=>array("name"=>"system_vendor", "head"=>__("Vendor"), "show"=>"y", ), "100"=>array("name"=>"system_model", "head"=>__("Model"), "show"=>"y", ), "110"=>array("name"=>"system_id_number", "head"=>__("Serial #"), "show"=>"y", ), "120"=>array("name"=>"system_os_name", "head"=>__("OS"), "show"=>$show_os, ),
), ); ?> [/code]
|