EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <html>
2 <body>
3 
4 
5 <?php
6 
18 
19  $confid = $_GET["va"];
20 
21  $confname = mysql_query("SELECT * FROM conference WHERE conferenceid=$confid");
22 
23  while($conf = mysql_fetch_array($confname))
24  {
25 
26  $name = $conf['name'];
27 
28  }
29 
30 ?>
31 
32 <h1>Invite Users To <?php echo $name; ?>:</h1>
33 <br>
34 <h3>Invite Users By Mail:</h3>
35 
36 <form action="index.php?r=invitefunction/index" method="post">
37 <label>Mail Address : </label>
38 <input type="string" name="mail">
39 <br/>
40 <label>User Type : </label>
41 <br/>
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"];?>"/>
46 <br/>
47 <input type="submit" value="Invite User By Mail">
48 <br/>
49 
50 </form>
51 <br/>
52 <br>
53 <br>
54 
55 
56 <h3>Users Interested In Your Conference's Topics:</h3>
57 
58 
59 <?php
60 
61 
62  $i=0;
63 
64  $user = mysql_query("SELECT DISTINCT userid FROM interest_user WHERE interestid IN
65  (SELECT titleid FROM conference_title WHERE conferenceid=$confid)");
66 
67  while($row = mysql_fetch_array($user))
68  {
69 
70  $asd = $row['userid'];
71 
72  $result1 = mysql_query("SELECT username FROM users WHERE userid='$asd'");
73 
74  while($row2 = mysql_fetch_array($result1))
75  {
76  $asd2[$i] = $row2['username'];
77  $userid[$i] = $row['userid'];
78  }
79  $co = $row2['username'];
80 
81  $i++;
82 
83  }
84 if($i!=0){
85 echo "<form action='index.php?r=inviteFunctionCheckbox/index' method='post'>";
86 
87 $j=0;
88 while($j<sizeof($asd2))
89 {
90  echo "<B>".($j+1)."</B>" . ") ";
91  echo "<a href=\" ./index.php?r=user_profile/index&usid=$userid[$j]\">" . $asd2[$j] . "</a>";
92 
93  echo "<input type='checkbox' name='names[]' value=$asd2[$j]><br><br>";
94 
95  $j++;
96 }
97 
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";
102  echo "<br>";
103  echo "<input type='submit' name=\'formSubmit' value='Invite User(s)' />";
104  echo "</form>";
105 }
106 else echo "<form>There Are No Users Interested In Your Conference's Topics.</form>"
107 
108 
109 
110 ?>
111 <br><br><br>
112 
113 <h3>Select From List Of All Users:</h3>
114 
115 <?php
116 
117 
118  $users = mysql_query("SELECT DISTINCT userid FROM users");
119 
120  $j=0;
121 
122  while($row = mysql_fetch_array($users))
123  {
124 
125  $asd = $row['userid'];
126 
127  $result1 = mysql_query("SELECT username FROM users WHERE userid='$asd'");
128 
129  while($row2 = mysql_fetch_array($result1))
130  {
131  $asd2[$j] = $row2['username'];
132  $userid[$j] = $row['userid'];
133 
134  }
135  $co = $row2['username'];
136 
137  $j++;
138  }
139 
140 
141 echo "<form action='index.php?r=inviteFunctionCheckbox/index' method='post'>";
142 
143 $j=0;
144 while($j<sizeof($asd2))
145 {
146  echo "<B>".($j+1)."</B>" . ") ";
147  echo "<a href=\" ./index.php?r=user_profile/index&usid=$userid[$j]\">" . $asd2[$j] . "</a>";
148 
149  echo "<input type='checkbox' name='names[]' value=$asd2[$j]><br><br>";
150 
151  $j++;
152 }
153 
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";
158  echo "<br>";
159  echo "<input type='submit' name=\'formSubmit' value='Invite User(s)' />";
160  echo "</form>";
161 
162 ?>
163 
164 </body>
165 </html>