-
Notifications
You must be signed in to change notification settings - Fork 0
/
orgTemp.php
executable file
·176 lines (120 loc) · 2.87 KB
/
orgTemp.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<html>
<head>
</head><body>
<link href="css/rai.css" rel="stylesheet" type="text/css">
<?php
include 'header.php';
include 'connection.php';
//$HeaderHeigth = "100 %" ;
//$Date = "5 - 8 March 2013";
{
$result = mysql_query("SELECT * FROM key_dates");
$rownumber=0;
while($row = mysql_fetch_array($result))
{
if($rownumber%2==0) $layout="rightsideh1";
else
{
$layout="rightsideh2";
}
$rownumber++;
$item[0] = "";
$item[0] .= " <div id=\"rightsideh2\" >";
$item[0] .= "<a href=\"" . $SERVER['PHP_SELF'] . "?refNo=" . $row['id'] . "\">" .$row['note']. "</a>";
$item[0] .= " </div> ";
echo $item[0];
}
}
$refNo = $_GET['refNo'];
$sql = "select * from key_dates where key_id = '$refNo' ";
//echo "\n $sql \n";
$res = mysql_query($sql);
while ( $row = mysql_fetch_array($res))
{
//echo $row[id];
$item[0] = "";
$item[0] .= " <div id=\"centersideh1\" >";
// $item[0] .= "<a href = \"header.php\">" . $row['conf'] . "</a>" ;
$item[0] .= $row['name'];
$item[0] .= " </div> ";
$item[0] .= " <div id=\"centersideh2\" >";
$item[0] .= $row['date'];
$item[0] .= " </div> ";
//echo $row[name] . "<br/>";
echo $item[0];
}
{
$result = mysql_query("SELECT * FROM User");
$rownumber=0;
/*
while($row = mysql_fetch_array($result))
{
if($rownumber%2==0) $layout="rightsideh1";
else
{
$layout="rightsideh2";
}
$rownumber++;
}
*/
$item[0] = "";
$item[0] .= " <div id=\"rightsideh2\" >";
$item[0] .= "<a href=\"" . $SERVER['PHP_SELF'] . "?refNo=";
$item[0] .= "org" . "\">" . "COnf Organiser" . "</a>";
$item[0] .= " </div> ";
echo $item[0];
}
$refNo = $_GET['refNo'];
if ($refNo == "org")
{
?>
<div id = "centersideh2">
<?php
$sql = "select * from User where org != '0' ";
//echo "\n $sql \n";
$res = mysql_query($sql);
while ( $row = mysql_fetch_array($res))
{
//echo $row[id];
$item[0] = "";
$item[0] .= " <div id=\"centersideh1\" >";
// $item[0] .= "<a href = \"header.php\">" . $row['conf'] . "</a>" ;
$item[0] .= $row['first_name'];
$item[0] .= " ". $row['last_name'] ;
$item[0] .= " ". $row['email'];
$item[0] .= " ". $row['address'];
$item[0] .= " </div> ";
//echo $row[name] . "<br/>";
echo $item[0];
}
//echo "<br/>OrgaXXX<br/>";
?>
</div>
<?php
}
else
{
//echo "\n<br/>ref no :: $refNo <br/>\n";
/*$sql = "select * from ResearchTopic where Conf_ID = '$refNo' ";
//echo "\n $sql \n";
$res = mysql_query($sql);
while ( $row = mysql_fetch_array($res))
{
//echo $row[id];
$item[0] = "";
$item[0] .= " <div id=\"centersideh2\" >";
// $item[0] .= "<a href = \"header.php\">" . $row['conf'] . "</a>" ;
$item[0] .= $row['label'] . "<br/>";
$item[0] .= " </div> ";
//echo $row[name] . "<br/>";
echo $item[0];
//echo $row[label] . "<br>" ;
}
*/
echo "\n<br/>ref no :: $refNo <br/>\n";
}
include '/home/parveen/public_html/php/fetch1.php';
include 'footer.php';
?>
</body>
</html>