function super_generate($title, $user, $object)
{
    global $truncateText;
    $results = getAllObjects($object, "dt_created", false);
    $alt = false;
    $rowclass = "";
    if (count($results) > 0 || isSuperUser(false)) {
        $class = strtolower(get_class($object));
        echo "<span class='adminrowheader'>{$title} Admin</span>";
        echo "  - <a href='" . $class . "_form.php' class='newslarge'>create new</a>";
        echo "<div class=\"spacer\"></div>";
        echo "<table class=\"table\">";
        if (count($results) == 0) {
            echo "<tr><td>";
            echo "currently have no entries";
            echo "</td></tr>";
        } else {
            $hasName = isset($results[0]->name);
            $hasHeading = isset($results[0]->heading);
            $hasDescription = isset($results[0]->description);
            $hasText = isset($results[0]->text);
            $hasLink = isset($results[0]->link);
            if ($class == "platinum_membership" || $class == "supplier") {
                $hasStats = true;
            } else {
                $hasStats = false;
            }
            echo "<TR>";
            if ($hasName) {
                echo "<TD>Name</td>";
            } elseif ($hasHeading) {
                echo "<TD>Heading</td>";
            }
            if ($hasDescription) {
                echo "<TD>Description</td>";
            } elseif ($hasText) {
                echo "<TD>Text</td>";
            }
            if ($hasLink) {
                echo "<TD>URL</td>";
            }
            echo "<TD>Created</td>";
            echo "<TD><!-- Functions --></td>";
            if ($hasStats) {
                echo "<TD>Impressions</TD>";
                echo "<TD>Clicks</TD>";
            }
            echo "</tr>";
            foreach ($results as $obj) {
                if ($alt) {
                    $rowclass = "row_even";
                } else {
                    $rowclass = "row_odd";
                }
                $alt = !$alt;
                echo "<tr>";
                if ($hasName) {
                    echo "<td class=\"{$rowclass}\">" . $obj->name . "</td>";
                } else {
                    if ($hasHeading) {
                        echo "<td class=\"{$rowclass}\">" . $obj->heading . "</td>";
                    }
                }
                if ($hasDescription) {
                    echo "<td class=\"{$rowclass}\">" . strip_tags(substr($obj->description, 0, $truncateText)) . "...</td>";
                } else {
                    if ($hasText) {
                        echo "<td class=\"{$rowclass}\">" . strip_tags(substr($obj->text, 0, $truncateText)) . "...</td>";
                    }
                }
                if ($hasLink) {
                    echo "<td class=\"{$rowclass}\">" . $obj->link . "</td>";
                }
                echo "<td class=\"{$rowclass}\">" . FormatDateTime($obj->dt_created, 7) . "</td>";
                $classId = $class . "Id";
                $status = $class . "_status";
                echo "<td class=\"{$rowclass}\">";
                echo "<ul><li><a href=\"" . $class . "_form.php?id=" . $obj->{$classId} . "\">Modify</a></li>";
                //echo "</td>";
                switch ($obj->{$status}) {
                    case "temp":
                        echo "<li><a href=\"activate.php?type={$class}&id=" . $obj->{$classId} . "\">Activate</a></li>";
                        break;
                        /*
                                  case "active":
                            			  //echo "<td class=\"$rowclass\">";
                                    echo "<li><a href=\"deactivate.php?type=$class&id=".$obj->$classId."\">Deactivate</a></li>";
                            			  //echo "</td>";
                            			  break;
                            			case "disabled":
                            			  //echo "<td class=\"$rowclass\">";
                            			  echo "<li><a href=\"activate.php?type=$class&id=".$obj->$classId."\">Activate</a></li>";
                            			  //echo "</td>";
                            			  break;
                        */
                }
                echo "<li><a href=\"#\" onClick=\"sure('{$class}','" . $obj->{$classId} . "')\">Delete</a></li>";
                echo "</ul>";
                if ($hasStats) {
                    $stats = new Stats();
                    $results = $stats->GetList(array(array("objectname", "=", $class), array("objectid", "=", $obj->{$classId})));
                    // we should only get one object back in the array
                    $statObject = $results[0];
                    echo "<TD>" . $statObject->impressions . "</td>";
                    echo "<TD>" . $statObject->clicks . "</td>";
                }
                echo "</td>";
                echo "</tr>";
            }
        }
        echo "</table>";
    }
    echo "<br/>";
    echo "<br/>";
}
    }
}
if ($ride->f_rideID) {
    $getVars["rideID"] = $ride->f_rideID;
}
if ($newRide) {
    if (!$ride->f_date) {
        $ride->f_date = date("Y-m-d H:i");
    }
    if (!$ride->f_time) {
        $ride->f_time = "00:00:00";
    }
}
$bikes = getAllObjects(new RDbike(DBConnect()));
$locations = getAllObjects(new RDlocation(DBConnect()));
$riders = getAllObjects(new RDrider(DBConnect(), $units));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Ride Dammit! <?php 
echo $newRide ? "New Ride" : "Ride Edit";
?>
</title>
  <link rel="stylesheet" href="<?php 
echo $RD_baseURL;
?>
/default.css">
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
</head>