/* {{{ proto void mkcrossformat (array weights, integer qid) Builds HTML to allow for cross tabulation/analysis reporting. */ function mkcrossformat($counts, $qid, $tid) { $cids = array(); $cidCount = 0; // let's grab the cid values for each of the questions // that we allow cross analysis on. if ($tid == 1) { $cids = array('Y', 'N'); } else { $sql = "SELECT id FROM ".$GLOBALS['ESPCONFIG']['question_choice_table']." WHERE question_id = $qid ORDER BY id"; $result = execute_sql($sql); while ($cid = fetch_row($result)) { $result->MoveNext(); array_push($cids, $cid[0]); } db_close($result); } $bg = $GLOBALS['ESPCONFIG']['bgalt_color1']; ?>
|
|