12 $this->render(
'index');
23 $ar = mysql_query(
"SELECT * FROM interests_topics");
27 while($row = mysql_fetch_array($ar))
29 $nam[
$i] = $row[
'name'];
50 echo
"<form action='index.php?r=interests_selection/index' method='post'>";
52 $topics = mysql_query(
"SELECT * FROM interests_topics WHERE name='$topname'");
57 if(mysql_num_rows($topics)!=0)
59 while($row = mysql_fetch_array($topics))
61 $as[$o] = $row[
'name'];
62 $asd[$o] = $row[
'id'];
63 $result1 = mysql_query(
"SELECT subtopicid FROM topic_subtopic WHERE topicid='$asd[$o]'");
64 echo
"<h3>$as[$o]</h3>" .
"";
66 while($row2 = mysql_fetch_array($result1))
68 $asd2 = $row2[
'subtopicid'];
70 $result2 = mysql_query(
"SELECT name FROM interests_subtopics WHERE id='$asd2'");
72 while($row3 = mysql_fetch_array($result2))
75 $asd3[$k] = $row3[
'name'];
77 echo
"<B>".($k+1).
"</B>" .
") ";
79 echo
"<input type='checkbox' name='topicid[]' value=$asd2>";
82 echo $asd3[$k] .
"</a><br><br>";
89 $co = $row2[
'subtopicid'];
99 echo
"<input type='radio' name='knowledge' value='1' /> Mediocre Knowledge";
100 echo
"<input type='radio' name='knowledge' value='2' /> Good Knowledge";
101 echo
"<input type='radio' name='knowledge' value='3' /> Excellent Knowledge";
103 echo
"<input type='submit' name=\'formSubmit' value='Select Interests' />";
107 echo
"<form action='index.php?r=interests_request/index' method='post'>";
108 echo
"<textarea hidden name='topname'>" .
$topname .
"</textarea>";
109 echo
"<input type='submit' name=\'formSubmit2' value='Add Subtopics For This Interest' />";
117 echo
"<form action='index.php?r=interests_request/index' method='post'>";
118 echo
"No Subtopics For " .
$topname .
"<br><br>";
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.";
140 echo
"<form action='index.php?r=interests_selection/index' method='post'>";
142 $topics = mysql_query(
"SELECT * FROM interests_topics");
147 while($row = mysql_fetch_array($topics))
149 $as[$o] = $row[
'name'];
150 $asd[$o] = $row[
'id'];
151 $result1 = mysql_query(
"SELECT subtopicid FROM topic_subtopic WHERE topicid='$asd[$o]'");
152 echo
"<h3>$as[$o]</h3>" .
"";
154 while($row2 = mysql_fetch_array($result1))
156 $asd2 = $row2[
'subtopicid'];
158 $result2 = mysql_query(
"SELECT name FROM interests_subtopics WHERE id='$asd2'");
160 while($row3 = mysql_fetch_array($result2))
163 $asd3[$k] = $row3[
'name'];
165 echo
"<B>".($k+1).
"</B>" .
") ";
167 echo
"<input type='checkbox' name='topicid[]' value=$asd2>";
170 echo $asd3[$k] .
"</a><br><br>";
177 $co = $row2[
'subtopicid'];
187 echo
"<input type='radio' name='knowledge' value='1' /> Mediocre Knowledge";
188 echo
"<input type='radio' name='knowledge' value='2' /> Good Knowledge";
189 echo
"<input type='radio' name='knowledge' value='3' /> Excellent Knowledge";
191 echo
"<input type='submit' name=\'formSubmit' value='Select Interests' />";