11 $this->render(
'index');
22 echo
"<form action='index.php?r=interests_confirmation_function/index&new=1' method='post'>";
23 $topics = mysql_query(
"SELECT * FROM interests_topics_confirmation WHERE id IN (SELECT topicid FROM topic_subtopic_confirmation WHERE accepted=0)");
29 while($row = mysql_fetch_array($topics))
31 $as[$o] = $row[
'name'];
32 $asd[$o] = $row[
'id'];
33 $result1 = mysql_query(
"SELECT subtopicid FROM topic_subtopic_confirmation WHERE topicid='$asd[$o]' AND accepted=0");
34 echo
"<h3>$as[$o]</h3>" .
"";
36 while($row2 = mysql_fetch_array($result1))
38 $asd2 = $row2[
'subtopicid'];
40 $result2 = mysql_query(
"SELECT name FROM interests_subtopics_confirmation WHERE id='$asd2'");
42 while($row3 = mysql_fetch_array($result2))
45 $asd3[$k] = $row3[
'name'];
47 echo
"<B>".($k+1).
"</B>" .
") ";
49 echo
"<input type='checkbox' name='topicid[]' value=$asd2>";
50 echo
"<input type='hidden' name='topid[]' value=$asd[$o]>";
52 echo $asd3[$k] .
"</a><br><br>";
59 $co = $row2[
'subtopicid'];
65 echo
"<input type='submit' name=\'formSubmit' value='Confirm Requests' />";
80 echo
"<form action='index.php?r=interests_confirmation_function/index&new=0' method='post'>";
81 $topics = mysql_query(
"SELECT * FROM interests_topics WHERE id IN (SELECT topicid FROM topic_subtopic_existing_confirmation WHERE accepted=0)");
87 while($row = mysql_fetch_array($topics))
89 $as[$o] = $row[
'name'];
90 $asd[$o] = $row[
'id'];
91 $result1 = mysql_query(
"SELECT subtopicid FROM topic_subtopic_existing_confirmation WHERE topicid='$asd[$o]' AND accepted=0");
92 echo
"<h3>$as[$o]</h3>" .
"";
94 while($row2 = mysql_fetch_array($result1))
96 $asd2 = $row2[
'subtopicid'];
98 $result2 = mysql_query(
"SELECT name FROM interests_subtopics_confirmation WHERE id='$asd2'");
101 while($row3 = mysql_fetch_array($result2))
104 $asd3[$k] = $row3[
'name'];
106 echo
"<B>".($k+1).
"</B>" .
") ";
108 echo
"<input type='checkbox' name='topicid[]' value=$asd2>";
109 echo
"<input type='hidden' name='topid[]' value=$asd[$o]>";
112 echo $asd3[$k] .
"</a><br><br>";
119 $co = $row2[
'subtopicid'];
125 echo
"<input type='submit' name=\'formSubmit' value='Confirm Requests' />";