Copy this into a file such as list_viewdef_serials.php or whatever you like. Access it by going to "list.php?view=serials". The name of the file doesn't matter, as long as it starts with list_viewdef_ and then whatever follows (minus the .php) is sent as a parameter to list.php.
[code]<?php
$query_array=array("headline"=>__("List all Systems"), "sql"=>"SELECT * FROM `system`", "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", ), "30"=>array("name"=>"system_name", "head"=>__("Hostname"), "show"=>"y", "link"=>"y", ), "40"=>array("name"=>"system_vendor", "head"=>__("Vendor"), "show"=>"y", "link"=>"y", ), "50"=>array("name"=>"system_model", "head"=>__("Model"), "show"=>"y", "link"=>"y", ), "60"=>array("name"=>"system_id_number", "head"=>__("Serial"), "show"=>"y", "link"=>"y", ), "80"=>array("name"=>"system_timestamp", "head"=>__("Date Audited"), "show"=>$show_date_audited, ), "90"=>array("name"=>"system_system_type", "head"=>__("System Type"), "show"=>$show_type, "align"=>"center", ),
), ); ?>[/code]
|