EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
view.php
Go to the documentation of this file.
1 <?php
2 /* @var $this ConferenceController */
3 /* @var $model Conference */
4 
13 $this->breadcrumbs=array(
14  'Conferences'=>array('index'),
15  $model->name,
16 );
17 
18 
19 
20 $this->menu=array(
21  array('label'=>'List Conference', 'url'=>array('index')),
22  array('label'=>'Create Conference', 'url'=>array('create')),
23  array('label'=>'Update Conference', 'url'=>array('update', 'id'=>$model->conferenceid)),
24  array('label'=>'Delete Conference', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->conferenceid),'confirm'=>'Are you sure you want to delete this item?')),
25  array('label'=>'Manage Conference', 'url'=>array('admin')),
26 );
27 
28 
29 
30 
31 ?>
32 
33 
34 
35 <!-- Script to view/hide -->
36 <script type="text/javascript">
37 <!--
38  function toggle_visibility(id) {
39  var e = document.getElementById(id);
40  if(e.style.display == 'block')
41  e.style.display = 'none';
42  else
43  e.style.display = 'block';
44  }
45 //-->
46 </script>
47 
48 <h1>Properties of <?php echo $model->name; ?></h1>
49 
50 <?php $this->widget('zii.widgets.CDetailView', array(
51  'data'=>$model,
52  'attributes'=>array(
53  'conferenceid',
54  'name',
55  'rooms',
56  'startTime',
57  'endTime',
58  'conf_date_begin',
59  'conf_date_end',
60  'address',
61  'description',
62  ),
63 )); ?>
64 
65 
66 
67 
68 <br/>
69 <br/>
70 <br/>
71 
72 <a href="#" <?php $this->isAdmin(); ?> style="text-decoration: none" onclick="toggle_visibility('adminfunctions'); return false;">
73 <h3>Administrative Functions</h3>
74 </a>
75 <div id="adminfunctions" style="display:none";>
76 <?php
77 // VIEW CONFERENCE USERS
78 
79 $this->adminFunctions();
80 
81 ?>
82 <br>
83 </div>
84 
85 <div <?php $this->isAdmin(); ?>>
86 <br>
87 </div>
88 
89 <a href="#" <?php $this->isAuthor(); ?> style="text-decoration: none" onclick="toggle_visibility('authorfunctions'); return false;">
90 <h3>Authoring Functions</h3>
91 </a>
92 <div id="authorfunctions" style="display:none";>
93 <?php
94 // VIEW CONFERENCE USERS
95 
96 $this->authorFunctions();
97 
98 ?>
99 <br>
100 </div>
101 
102 <div <?php $this->isAuthor(); ?>>
103 <br>
104 </div>
105 
106 <a href="#" <?php $this->isReferee(); ?> style="text-decoration: none" onclick="toggle_visibility('refereefunctions'); return false;">
107 <h3>Refereeing Functions</h3>
108 </a>
109 <div id="refereefunctions" style="display:none";>
110 <?php
111 // VIEW CONFERENCE USERS
112 
113 $this->refereeFunctions();
114 
115 ?>
116 <br>
117 </div>
118 
119 <div <?php $this->isReferee(); ?>>
120 <br>
121 </div>
122 
123 
124 <a href="#" <?php $this->hasAnnouncement(); ?> style="text-decoration: none" onclick="toggle_visibility('announcement'); return false;">
125 <h3>Announcements</h3>
126 </a>
127 <div id="announcement" style="display:none";>
128 <?php
129 // VIEW CONFERENCE USERS
130 
131 $this->announcementFunctions();
132 
133 ?>
134 <br>
135 </div>
136 
137 <div <?php $this->hasAnnouncement(); ?>>
138 <br>
139 </div>
140 
141 
142 
143 <a href="#" style="text-decoration: none" onclick="toggle_visibility('topics'); return false;">
144 <h3>Topics of This Conference</h3>
145 </a>
146 <div id="topics" style="display:none";>
147 <?php
148 // VIEW CONFERENCE USERS
149 
150 $this->viewTopics($model->conferenceid);
151 
152 ?>
153 </div>
154 
155 <?php
156 
157 echo "<br/>";
158 ?>
159 
160 <a href="#" style="text-decoration: none" onclick="toggle_visibility('participants'); return false;">
161 <h3>Participants of This Conference</h3>
162 </a>
163 <div id="participants" style="display:none";>
164 <?php
165 // VIEW CONFERENCE USERS
166 
167 $this->usersView($model->conferenceid);
168 
169 ?>
170 </div>
171 
172 <?php
173 
174 echo "<br/>";
175 ?>
176 
177 <a href="#" style="text-decoration: none" onclick="toggle_visibility('papers'); return false;">
178 <h3>Papers of This Conference</h3>
179 </a>
180 <div id="papers" style="display:none";>
181 <?php
182 // VIEW CONFERENCE PAPERS
183 
184 $this->papersView($model->conferenceid);
185 
186 ?>
187 </div>
188 
189 <?php
190 
191 
192 ?>
193 
194 <br/>
195 <br/>
196 
197 <div <?php echo $this->attends(); ?> >
198 <form action="index.php?r=participate/index" method="post">
199 <input hidden name="id" value="<?php echo $model->conferenceid;?>"/>
200 <input hidden name="type" value="<?php echo "attendee";?>"/>
201 <input type="submit" value="Send Request to Become an Attendee">
202 </form>
203 </div>
204 
205 <div <?php echo $this->attends2(); ?> >
206 <form action="index.php?r=participate_not/index" method="post">
207 <input hidden name="id" value="<?php echo $model->conferenceid;?>"/>
208 <input hidden name="type" value="<?php echo "4";?>"/>
209 <input type="submit" value="Stop Attending This Conference">
210 </form>
211 </div>
212 
213 <div <?php echo $this->authors(); ?> >
214 <form action="index.php?r=participate/index" method="post">
215 <input hidden name="id" value="<?php echo $model->conferenceid;?>"/>
216 <input hidden name="type" value="<?php echo "author";?>"/>
217 <input type="submit" value="Send Request to Become an Author">
218 </form>
219 </div>
220 
221 <div <?php echo $this->authors2(); ?> >
222 <form action="index.php?r=participate_not/index" method="post">
223 <input hidden name="id" value="<?php echo $model->conferenceid;?>"/>
224 <input hidden name="type" value="<?php echo "2";?>"/>
225 <input type="submit" value="Stop Authoring For This Conference">
226 </form>
227 </div>
228 
229 <div <?php echo $this->referees(); ?> >
230 <form action="index.php?r=participate/index" method="post">
231 <input hidden name="id" value="<?php echo $model->conferenceid;?>"/>
232 <input hidden name="type" value="<?php echo "referee";?>"/>
233 <input type="submit" value="Send Request to Become a Referee">
234 </form>
235 </div>
236 
237 <div <?php echo $this->referees2(); ?> >
238 <form action="index.php?r=participate_not/index" method="post">
239 <input hidden name="id" value="<?php echo $model->conferenceid;?>"/>
240 <input hidden name="type" value="<?php echo "3";?>"/>
241 <input type="submit" value="Stop Refereeing For This Conference">
242 </form>
243 </div>
244 
245 <br/>
246 <br/>
247 <br/>
248 
249 
250 
251