EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 /* @var $this Interests_requestController */
3 
9 $this->breadcrumbs=array(
10  'Interests Request',
11 );
12 ?>
13 
14 <?php
15 $topname = "asd";
16 
17 if(isset($_POST['topname']))
18 {
19  $hid = 'visible';
20  $topname = $_POST['topname'];
21 }
22 else $hid = 'hidden';
23 
24 ?>
25 
26 <form <?php echo $hid; ?> action="index.php?r=interests_request_function/index" method="post">
27 <?php
28 echo "<h3>Add New Subtopics For " . $topname . "</h3>";
29 ?>
30 <?php
31 // auto complete code.
32 // takes array on 'source' line
33 $this->widget('zii.widgets.jui.CJuiAutoComplete',array(
34  'name'=>'subtopic2',
35  'source'=>$this->autocomplete_subtopics(),
36  // additional javascript options for the autocomplete plugin
37  'options'=>array(
38  'minLength'=>'0',
39  ),
40  'htmlOptions'=>array(
41  'style'=>'height:20px;',
42  ),
43 ));
44 
45 ?>
46 <input hidden name="type" value=1>
47 <textarea hidden name="topic"><?php echo $topname;?></textarea>
48 <br><br>
49 <input type="submit" value="Add New Subtopic">
50 <br><br>
51 </form>
52 
53 <br><br>
54 
55 
56 <h3>Request A New Topic And/Or Subtopic For Your Interests</h3>
57 <form action="index.php?r=interests_request_function/index" method="post">
58 <label>Topic : </label><br>
59 
60 <?php
61 // auto complete code.
62 // takes array on 'source' line
63 $this->widget('zii.widgets.jui.CJuiAutoComplete',array(
64  'name'=>'topic',
65  'source'=>$this->autocomplete_alltopics(),
66  // additional javascript options for the autocomplete plugin
67  'options'=>array(
68  'minLength'=>'0',
69  ),
70  'htmlOptions'=>array(
71  'style'=>'height:20px;',
72  ),
73 ));
74 ?>
75 
76 <br>
77 <br>
78 <label>Subtopic : </label><br>
79 
80 <?php
81 // auto complete code.
82 // takes array on 'source' line
83 $this->widget('zii.widgets.jui.CJuiAutoComplete',array(
84  'name'=>'subtopic',
85  'source'=>$this->autocomplete_allsubtopics(),
86  // additional javascript options for the autocomplete plugin
87  'options'=>array(
88  'minLength'=>'0',
89  ),
90  'htmlOptions'=>array(
91  'style'=>'height:20px;',
92  ),
93 ));
94 ?>
95 <input hidden name="type" value=2>
96 <br><br>
97 <input type="submit" value="Send Request For New Interest">
98 <br/><br>
99 *Don't forget to specify a topic name when requesting a new subtopic.
100 <br>
101 **If you want to add a subtopic for an existing topic, specify the topic name.
102 
103 </form>
104 
105 <br><br>
106 <?php
107 
108 if(!isset($_POST['confid']) && !isset($_GET['confid']))
109 {
110  if(!isset($_POST['paperid']) && !isset($_GET['paperid']))
111  echo "<h3><a href=./index.php?r=interests/index>Go Back To Interest Selection Page</a></h3> <br/><br/>";
112 
113  else if(isset($_POST['paperid']) && !isset($_GET['paperid']))
114  {
115  $confid = $_POST['paperid'];
116  echo "<h3><a href=./index.php?r=paper_keyword/index&va=$confid>Go Back To Interest Selection Page</a></h3> <br/><br/>";
117 
118  }
119  else
120  {
121  $confid = $_GET['paperid'];
122  echo "<h3><a href=./index.php?r=paper_keyword/index&va=$confid>Go Back To Interest Selection Page</a></h3> <br/><br/>";
123 
124  }
125 }
126 else if(isset($_POST['confid']) && !isset($_GET['confid']))
127 {
128  $confid = $_POST['confid'];
129  echo "<h3><a href=./index.php?r=conferenceTopics/index&va=$confid>Go Back To Interest Selection Page</a></h3> <br/><br/>";
130 
131 }
132 else
133 {
134 
135  $confid = $_GET['confid'];
136  echo "<h3><a href=./index.php?r=conferenceTopics/index&va=$confid>Go Back To Interest Selection Page</a></h3> <br/><br/>";
137 
138 }
139  ?>