EliteConf
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
test
protected
controllers
ViewconferenceController.php
Go to the documentation of this file.
1
<?php
2
3
4
class
ViewconferenceController
extends
Controller
5
{
6
public
function
actionIndex
()
7
{
8
$this->render(
'index'
);
9
}
10
11
12
public
function
viewConference
()
13
{
14
15
16
$con = mysql_connect(
"localhost"
,
"root"
,
""
);
17
if
(!$con)
18
{
19
die(
'Could not connect: '
. mysql_error());
20
}
21
22
mysql_select_db(
"yii_tour"
, $con);
23
24
$confid
= $_GET[
'va'
];
25
26
27
//view the properties of a conference
28
$result
= mysql_query(
"SELECT * FROM conference WHERE conferenceid=$confid"
);
29
while
($row = mysql_fetch_array(
$result
))
30
{
31
echo
"<B>CONFERENCE PROPERTIES</B>"
;
32
echo
"<br />"
;
33
echo
"<br />"
;
34
echo
"Conference ID : "
. $row[
'conferenceid'
];
35
echo
"<br />"
;
36
echo
"Conference Name : "
. $row[
'name'
];
37
echo
"<br />"
;
38
echo
"Conference Rooms : "
. $row[
'rooms'
];
39
echo
"<br />"
;
40
echo
"Conference Start time : "
. $row[
'startTime'
];
41
echo
"<br />"
;
42
echo
"Conference End time : "
. $row[
'endTime'
];
43
echo
"<br />"
;
44
echo
"Conference Date : "
. $row[
'conf_date'
];
45
echo
"<br />"
;
46
echo
"Conference Address : "
. $row[
'address'
];
47
echo
"<br />"
;
48
echo
"Conference Description : "
. $row[
'description'
];
49
echo
"<br />"
;
50
echo
"<br />"
;
51
}
52
echo
"<br />"
;
53
54
55
56
mysql_close($con);
57
58
59
}
60
61
// Uncomment the following methods and override them if needed
62
/*
63
public function filters()
64
{
65
// return the filter configuration for this controller, e.g.:
66
return array(
67
'inlineFilterName',
68
array(
69
'class'=>'path.to.FilterClass',
70
'propertyName'=>'propertyValue',
71
),
72
);
73
}
74
75
public function actions()
76
{
77
// return external action classes, e.g.:
78
return array(
79
'action1'=>'path.to.ActionClass',
80
'action2'=>array(
81
'class'=>'path.to.AnotherActionClass',
82
'propertyName'=>'propertyValue',
83
),
84
);
85
}
86
*/
87
}
Generated on Sun Jun 2 2013 05:35:38 for EliteConf by
1.8.4