EliteConf
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
test
protected
controllers
Interests_selection_conferenceController.php
Go to the documentation of this file.
1
<?php
2
7
class
Interests_selection_conferenceController
extends
Controller
8
{
9
public
function
actionIndex
()
10
{
11
$this->render(
'index'
);
12
}
13
14
18
public
function
selectfunction
($topicid)
19
{
20
21
Connect_DatabaseController::connect
();
22
23
if
(Yii::app()->user->id != NULL)
24
$usid
= Yii::app()->user->id;
25
else
26
$usid
= 0;
27
28
$confid
= $_POST[
'confid'
];
29
30
$sql_insert_conference_title=
"INSERT INTO conference_title ( conferenceid, titleid)
31
VALUES
32
('$confid', '$topicid')"
;
33
mysql_query($sql_insert_conference_title) or die (mysql_error());
34
35
36
37
}
38
// Uncomment the following methods and override them if needed
39
/*
40
public function filters()
41
{
42
// return the filter configuration for this controller, e.g.:
43
return array(
44
'inlineFilterName',
45
array(
46
'class'=>'path.to.FilterClass',
47
'propertyName'=>'propertyValue',
48
),
49
);
50
}
51
52
public function actions()
53
{
54
// return external action classes, e.g.:
55
return array(
56
'action1'=>'path.to.ActionClass',
57
'action2'=>array(
58
'class'=>'path.to.AnotherActionClass',
59
'propertyName'=>'propertyValue',
60
),
61
);
62
}
63
*/
64
}
Generated on Sun Jun 2 2013 05:35:37 for EliteConf by
1.8.4