<?
global $dbname;
//$dbname="Questionnaire";
global $NOSORT;
$NOSORT=1;
$ProjectId=$_SESSION[`ProjectId`];
ShowQueryResult("SELECT concat(`<a href=../Questionnaire/index.php?Instrument=ClinicalData&Form=`,FormQuestions.fID,fFormat,`&DE_MODE=D&CaseId=-1>`,FormQuestions.fID,`</a>`) as Form, FormQuestions.qID as Question,Questions.qDescription as Description, concat(`<a href=javascript:popitup(``../Questionnaire/response.php?response=`,Questions.qType,```,200,400,200,300);>`,Questions.qType,`</a>`) as ResponseType,Questions.qFormat as Format FROM FormQuestions,Questions,Forms WHERE  Questions.qID=FormQuestions.qID and Forms.fID=FormQuestions.fID and FormQuestions.ProjectId in (`0`,`$ProjectId`) ORDER BY FormQuestions.fID ASC, FormQuestions.qOrder ASC");
?>
