<span class="view_action" style="width: <?php echo count($bigtree["view"]["actions"]) * 40; ?> px;"><?php if (count($bigtree["view"]["actions"]) > 1) { ?> Actions<?php } ?> </span> </header> <ul id="sort_table"> <?php foreach ($items as $item) { // Get the status if (BigTreeAutoModule::changeExists($bigtree["view"]["table"], $item["id"])) { $status_class = "pending"; $status = "Changed"; } else { $status_class = "published"; $status = "Published"; } $item_permission = $admin->getAccessLevel($bigtree["module"], $item, $bigtree["form"]["table"]); if ($item_permission && $item_permission != "n") { ?> <li id="row_<?php echo $item["id"]; ?> " class="<?php echo $status_class; ?>