EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 /* @var $this InterestsController */
3 
12 $this->breadcrumbs=array(
13  'Interests',
14 );
15 ?>
16 
17 <h1>Search Area Of Interest By Topic</h1>
18 <form action="index.php?r=interests/index" method="post">
19 
20 <?php
21 // auto complete code.
22 // takes array on 'source' line
23 $this->widget('zii.widgets.jui.CJuiAutoComplete',array(
24  'name'=>'topic',
25  'source'=>$this->autocomplete_topics(),
26  // additional javascript options for the autocomplete plugin
27  'options'=>array(
28  'minLength'=>'0',
29  ),
30  'htmlOptions'=>array(
31  'style'=>'height:20px;',
32  ),
33 ));
34 
35 ?>
36 <br><br>
37 <input type="submit" value="Show Subtopics">
38 <br><br>
39 
40 <?php
41 
42 if(isset($_POST['topic'])) $this->view_subtopics();
43 else echo "Select A Topic To View Its Subtopics";
44 
45 ?>
46 
47 
48 
49 <br><br>
50 <?php echo "<h3><a href=./index.php?r=interests_request/index>Request New Interest</a></h3>" ?>
51 <br>
52 
53 <?php
54 
56 
57  if(Yii::app()->user->id != NULL)
58  $usid = Yii::app()->user->id;
59  else
60  $usid = 0;
61 
62  echo "<h3><a href=./index.php?r=user_profile&usid=$usid>Go Back To Your Profile</a></h3> <br/><br/>"
63 
64 ?>
65