<?php $mpage = ADMIN_ROOT . $module["route"] . "/"; BigTree::globalizeArray($view); // Figure out the column width $awidth = count($actions) * 40; $available = 896 - $awidth; $percol = floor($available / count($fields)); foreach ($fields as $key => $field) { $fields[$key]["width"] = $percol - 20; } $items = BigTreeAutoModule::parseViewData($view, $items); ?> <div class="table" style="margin: 0;"> <summary><h2>Search Results</h2></summary> <header> <?php $x = 0; foreach ($fields as $key => $field) { $x++; ?> <span class="view_column" style="width: <?php echo $field["width"]; ?> px;"><?php echo $field["title"]; ?> </span> <?php } ?>