?> </h2> <div class="desc" style="margin-bottom:20px;"> <?php echo nl2br($study_desc, false); ?> </div> <?php if ($study_type == '360') { ?> <ul class="studiu_360"> <li> <?php $liste = get_list_for_study($study_id); while ($lista = mysql_fetch_array($liste)) { $subjects = get_subj_for_list($lista['list_id']); while ($subject = mysql_fetch_array($subjects)) { $sel_subjects[] = $subject['subj_id']; } } $sel_subjects = array_unique($sel_subjects); $sub_neevaluati = array(); foreach ($sel_subjects as $rel_subject_id) { $query = "SELECT rel_subj_id FROM multievaluator\n\t\t\t\t\t\t\t\t\tWHERE `subj_id` = '" . $subject_id . "' AND `rel_subj_id` = '" . $rel_subject_id . "' AND `study_id` = '" . $study_id . "'"; $tester = mysql_query($query, $dbconnect); // if (mysql_numrows($tester) == 0) { $subj = mysql_fetch_array($tester); $sub_neevaluati[] = $rel_subject_id;
echo $list_name; ?> </a></li> <?php } ?> </ul> <p><?php __("The following subjects are included"); ?> :</p> <ul> <?php $result = get_list_for_study($study_id); while ($row = mysql_fetch_array($result)) { $list_id = $row["list_id"]; $subjects = get_subj_for_list($list_id); while ($subject = mysql_fetch_array($subjects)) { $subj_ids[] = $subject["subj_id"]; } } if (!empty($subj_ids)) { $subj_ids = array_unique($subj_ids); foreach ($subj_ids as $subj_id) { ?> <li> <a href="view_subject.php?subj_id=<?php echo $subj_id; ?>