11 $this->render(
'index');
22 $ar = mysql_query(
"SELECT * FROM interests_topics");
26 while($row = mysql_fetch_array($ar))
28 $nam[
$i] = $row[
'name'];
51 echo
"<form action='index.php?r=interest_selection_paper/index' method='post'>";
53 $topics = mysql_query(
"SELECT * FROM interests_topics WHERE name='$topname'");
58 if(mysql_num_rows($topics)!=0)
60 while($row = mysql_fetch_array($topics))
62 $as[$o] = $row[
'name'];
63 $asd[$o] = $row[
'id'];
64 $result1 = mysql_query(
"SELECT subtopicid FROM topic_subtopic WHERE topicid='$asd[$o]'");
65 echo
"<h3>$as[$o]</h3>" .
"";
67 while($row2 = mysql_fetch_array($result1))
69 $asd2 = $row2[
'subtopicid'];
71 $result2 = mysql_query(
"SELECT name FROM interests_subtopics WHERE id='$asd2'");
73 while($row3 = mysql_fetch_array($result2))
76 $asd3[$k] = $row3[
'name'];
78 echo
"<B>".($k+1).
"</B>" .
") ";
80 echo
"<input type='checkbox' name='topicid[]' value=$asd2>";
83 echo $asd3[$k] .
"</a><br><br>";
90 $co = $row2[
'subtopicid'];
98 echo
"<input hidden name='paperid' value=$confid />";
100 echo
"<input type='submit' name=\'formSubmit' value='Select Interests' />";
104 echo
"<form action='index.php?r=interests_request/index' method='post'>";
105 echo
"<input hidden name='paperid' value=$confid />";
106 echo
"<textarea hidden name='topname'>" .
$topname .
"</textarea>";
107 echo
"<input type='submit' name=\'formSubmit2' value='Add Subtopics For This Interest' />";
115 echo
"<form action='index.php?r=interests_request/index' method='post'>";
116 echo
"No Subtopics For " .
$topname .
"<br><br>";
117 echo
"<input hidden name='paperid' value=$confid />";
120 echo
"<textarea hidden name='topname'>" .
$topname .
"</textarea>";
121 echo
"<input type='submit' name=\'formSubmit2' value='Add Subtopics For This Interest' />";
127 echo
"No Topic Specified.";