14 'Papers'=>array(
'index'),
19 array(
'label'=>
'List Paper',
'url'=>array(
'index')),
20 array(
'label'=>
'Create Paper',
'url'=>array(
'create')),
21 array(
'label'=>
'Update Paper',
'url'=>array(
'update',
'id'=>$model->id)),
22 array(
'label'=>
'Delete Paper',
'url'=>
'#',
'linkOptions'=>array(
'submit'=>array(
'delete',
'id'=>$model->id),
'confirm'=>
'Are you sure you want to delete this item?')),
23 array(
'label'=>
'Manage Paper',
'url'=>array(
'admin')),
27 <h1>View
Paper "<?php echo $model->name; ?>"</h1>
29 <?php $this->widget(
'zii.widgets.CDetailView', array(
43 <?php echo CHtml::link(
"Download Abstract", array(
44 'download',
'id'=>$model->id)) .
"<br>"; ?>
50 if(Yii::app()->user->id != NULL)
51 $usid = Yii::app()->user->id;
56 $isref = mysql_query(
"SELECT * FROM paper_referee WHERE paperid=$model->id AND userid=$usid");
59 $isauth = mysql_query(
"SELECT * FROM paper_author WHERE paperid=$model->id AND userid=$usid");
62 $isad = mysql_query(
"SELECT * FROM conference_user_type WHERE userid=$usid AND usertype=1 AND conferenceid IN
63 (SELECT conferenceid FROM conference_paper WHERE paperid=$model->id)");
67 (SELECT firstid FROM paper_abstact_first WHERE abstractid=$model->id)");
72 $firstid = $row[
'id'];
76 echo CHtml::link(
"Download First Draft", array(
77 'download',
'id'=>$firstid)) .
"<br>";
86 $finalmanu = mysql_query(
"SELECT * FROM paper WHERE id IN
87 (SELECT finalid FROM paper_first_final WHERE firstid=$model->id)");
93 $finalid = $row[
'id'];
97 echo CHtml::link(
"Download Final Manuscript", array(
98 'download',
'id'=>$finalid));
102 <script type=
"text/javascript">
104 function toggle_visibility(
id) {
105 var e = document.getElementById(
id);
106 if(e.style.display ===
'block')
107 e.style.display =
'none';
109 e.style.display =
'block';
119 <a href=
"#" style=
"text-decoration: none" onclick=
" toggle_visibility('evaluations'); return false;">
120 <h3>Evaluations On This
Paper</h3>
122 <div
id=
"evaluations" style=
"display:none">
126 $this->view_evaluation($paperid);
133 <a href=
"#" style=
"text-decoration: none" onclick=
" toggle_visibility('comments'); return false;">
134 <h3>Comments On This
Paper</h3>
136 <div
id=
"comments" style=
"display:none">
140 $this->comments($paperid);
147 <a href=
"#" style=
"text-decoration: none" onclick=
"toggle_visibility('topics'); return false;">
148 <h3>Topics of This
Paper</h3>
150 <div
id=
"topics" style=
"display:none";>
154 $this->viewTopics($model->id);
165 <a href=
"#" <?php $this->isAdmin(); ?> style=
"text-decoration: none" onclick=
"toggle_visibility('adminfunctions'); return false;">
166 <h3>Administrative Functions</h3>
168 <div
id=
"adminfunctions" style=
"display:none";>
170 $this->adminFunctions();
175 <div <?php $this->isAdmin(); ?>>
179 <a href=
"#" <?php $this->isAuthor(); ?> style=
"text-decoration: none" onclick=
"toggle_visibility('authorfunctions'); return false;">
180 <h3>Authoring Functions</h3>
182 <div
id=
"authorfunctions" style=
"display:none";>
184 $this->authorFunctions();
189 <div <?php $this->isAuthor(); ?>>
193 <a href=
"#" <?php $this->isReferee(); ?> style=
"text-decoration: none" onclick=
"toggle_visibility('refereefunctions'); return false;">
194 <h3>Refereeing Functions</h3>
196 <div
id=
"refereefunctions" style=
"display:none";>
198 $this->refereeFunctions();
203 <div <?php $this->isReferee(); ?>>