21 $confname = mysql_query(
"SELECT * FROM conference WHERE conferenceid=$confid");
32 <h1>Invite
Users To <?php echo $name; ?>:</h1>
34 <h3>Invite
Users By Mail:</h3>
36 <form action=
"index.php?r=invitefunction/index" method=
"post">
37 <label>Mail Address : </label>
38 <input type=
"string" name=
"mail">
40 <label>User Type : </label>
42 <input type=
"radio" name=
"type" value=
"2" /> Author
43 <input type=
"radio" name=
"type" value=
"3" /> Referee
44 <input type=
"radio" name=
"type" value=
"4" /> Attendee
45 <input hidden name=
"val" value=
"<?php echo $_GET["va
"];?>"/>
47 <input type=
"submit" value=
"Invite User By Mail">
64 $user = mysql_query("SELECT DISTINCT userid FROM interest_user WHERE interestid IN
65 (SELECT titleid FROM conference_title WHERE conferenceid=$confid)");
67 while($row = mysql_fetch_array($user))
70 $asd = $row['userid
'];
72 $result1 = mysql_query("SELECT username FROM users WHERE userid='$asd
'");
74 while($row2 = mysql_fetch_array($result1))
76 $asd2[$i] = $row2['username
'];
77 $userid[$i] = $row['userid
'];
79 $co = $row2['username
'];
85 echo "<form action='index.php?r=inviteFunctionCheckbox/index
' method='post
'>";
88 while($j<sizeof($asd2))
90 echo "<B>".($j+1)."</B>" . ") ";
91 echo "<a href=\" ./index.php?r=user_profile/index&usid=$userid[$j]\">" . $asd2[$j] . "</a>";
93 echo "<input type='checkbox
' name='names[]
' value=$asd2[$j]><br><br>";
98 echo "<input hidden name='val
' value='$confid'/>";
99 echo "<input type='radio
' name='type
' value='2
' /> Author";
100 echo "<input type='radio
' name='type
' value='3
' /> Referee";
101 echo "<input type='radio
' name='type
' value='4
' /> Attendee";
103 echo "<input type='submit
' name=\'formSubmit' value=
'Invite User(s)' />
";
106 else echo "<form>There Are No
Users Interested In Your
Conference's Topics.</form>"
113 <h3>Select From List Of All Users:</h3>
118 $users = mysql_query("SELECT DISTINCT userid FROM users");
122 while($row = mysql_fetch_array($users))
125 $asd = $row['userid
'];
127 $result1 = mysql_query("SELECT username FROM users WHERE userid='$asd
'");
129 while($row2 = mysql_fetch_array($result1))
131 $asd2[$j] = $row2['username
'];
132 $userid[$j] = $row['userid
'];
135 $co = $row2['username
'];
141 echo "<form action='index.php?r=inviteFunctionCheckbox/index
' method='post
'>";
144 while($j<sizeof($asd2))
146 echo "<B>".($j+1)."</B>" . ") ";
147 echo "<a href=\" ./index.php?r=user_profile/index&usid=$userid[$j]\">" . $asd2[$j] . "</a>";
149 echo "<input type='checkbox
' name='names[]
' value=$asd2[$j]><br><br>";
154 echo "<input hidden name='val
' value='$confid'/>";
155 echo "<input type='radio
' name='type
' value='2
' /> Author";
156 echo "<input type='radio
' name='type
' value='3
' /> Referee";
157 echo "<input type='radio
' name='type
' value='4
' /> Attendee";
159 echo "<input type='submit
' name=\'formSubmit' value=
'Invite User(s)' />
";