--- quiz.1.137.2.4.module	Wed Nov 05 10:22:18 2008
+++ quiz.module	Wed Nov 26 10:41:51 2008
@@ -137,16 +137,40 @@
     'type' => MENU_NORMAL_ITEM, // optional
     'file' => 'quiz.admin.inc',
   );
+  
+  /**
+   * Lets change this to filter by the Quiz Title instead of showing ALL the quiz results
+   * then we can click the title and be taken into a deeper layer to show results filtered by 
+   * the quiz id.
+   */
   $items['admin/quiz/results'] = array(
     'title' => t('@quiz results', array('@quiz' => QUIZ_NAME)),
-    'page callback' => 'quiz_admin',
+    'page callback' => 'quiz_admin_quizzes',
     'access arguments' => array('administer quiz'),
     'type' => MENU_NORMAL_ITEM,
     'file' => 'quiz.admin.inc',
   );
   
+  /**
+   * Changed to filter based on Quiz id, this will show us all the results for this specific 
+   * quiz.  This should help with organization and locating the appropriate result set based 
+   * on the quiz.
+   */
   $items['admin/quiz/%/view'] = array(
     'title' => t('View @quiz', array('@quiz' => QUIZ_NAME)),
+    'page callback' => 'quiz_admin',
+    'page arguments' => array(2),	  
+    'access arguments' => array('administer quiz'),
+    'type' => MENU_CALLBACK,
+    'file' => 'quiz.admin.inc',
+  );
+  
+  /**
+   * Moved to a new menu url to allow for deeper filtering between multiple quizzes
+   * running at any given time.  This will show the results of the specific test.
+   */
+  $items['admin/quiz/%/results'] = array(
+    'title' => t('View @quiz', array('@quiz' => QUIZ_NAME)),
     'page callback' => 'quiz_admin_results',
     'page arguments' => array(2),	  
     'access arguments' => array('administer quiz'),
 
@@ -1677,6 +1762,32 @@
   return $results;
 }
 
+/**
+ * Get a full list of the quizzes
+ */
+function _quiz_get_quizzes($uid = 0) {
+  $results = array();
+  $args = array();
+  $sql = "SELECT n.nid, n.title, u.name, n.created
+          FROM {node} n
+          INNER JOIN {quiz_node_properties} qnp
+          INNER JOIN {users} u
+          WHERE n.type = 'quiz'
+            AND n.nid = qnp.nid
+            AND u.uid = n.uid";
+
+  if ($uid != 0) {
+    $sql .= " AND n.uid = %d";
+    $args[] = $uid;
+  }
+  $sql .= " ORDER BY n.nid DESC";
+  $dbresult = db_query($sql, $args);
+  while ($line = db_fetch_array($dbresult)) {
+    $results[$line['nid']] = $line;
+  }
+  return $results;
+}
+
 function _quiz_get_answers($rid) {
   $questions = array();
   $ids = db_query("SELECT question_nid, question_vid, type 

