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