ad_page_contract {

    Lists all the enabled surveys
    a user is eligable to complete.

    @author  philg@mit.edu
    @author  nstrug@arsdigita.com
    @date    28th September 2000
    @cvs-id  $Id: one-survey.tcl,v 1.1 2002/09/16 00:00:23 daveb Exp $
} {
    survey_id:integer,notnull
} -properties {
    survey_details:multirow
}

set package_id [ad_conn package_id]

set context_bar [ad_context_bar]

set user_id [ad_maybe_redirect_for_registration]

set take_survey_p [ad_permission_p $survey_id survey_take_survey]

set admin_p [ad_permission_p $survey_id survey_admin_survey]

db_multirow survey_details get_survey_details {} 

ad_return_template

