/
browsemenubar_view.php
94 lines (89 loc) · 6.54 KB
/
browsemenubar_view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<div class='menubar'>
<div class='menubar-title ui-widget-header'>
<strong><?php echo $title; ?></strong>: (<?php echo $thissurvey['surveyls_title']; ?>)
</div>
<div class='menubar-main'>
<div class='menubar-left'>
<a href='<?php echo $this->createUrl("admin/survey/view/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>home.png' title='' alt='<?php $clang->eT("Return to survey administration"); ?>' /></a>
<img src='<?php echo $sImageURL; ?>blank.gif' alt='' width='11' />
<img src='<?php echo $sImageURL; ?>separator.gif' class='separator' alt='' />
<?php if (hasSurveyPermission($surveyid, 'responses', 'read'))
{ ?>
<a href='<?php echo $this->createUrl("admin/browse/index/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>summary.png' title='' alt='<?php $clang->eT("Show summary information"); ?>' /></a>
<?php if (count(Survey::model()->findByPk($surveyid)->additionalLanguages) == 0)
{ ?>
<a href='<?php echo $this->createUrl("admin/browse/browse/surveyid/$surveyid/all"); ?>'>
<img src='<?php echo $sImageURL; ?>document.png' title='' alt='<?php $clang->eT("Display Responses"); ?>' /></a>
<?php }
else
{ ?>
<a href="<?php echo $this->createUrl("admin/browse/browse/surveyid/$surveyid/all"); ?>" accesskey='b' id='browseresponses'>
<img src='<?php echo $sImageURL; ?>document.png' alt='<?php $clang->eT("Display Responses"); ?>' /></a>
<div class="langpopup" id="browselangpopup"><?php $clang->eT("Please select a language:"); ?><ul>
<?php foreach ($tmp_survlangs as $tmp_lang)
{ ?>
<li><a href="<?php echo $this->createUrl("admin/browse/index/surveyid/$surveyid/all/start/0/limit/50/order/asc/browselang/$tmp_lang"); ?>" accesskey='b'><?php echo getLanguageNameFromCode($tmp_lang, false); ?></a></li>
<?php } ?>
</ul></div>
<?php } ?>
<a href='<?php echo $this->createUrl("admin/browse/browse/surveyid/$surveyid/all/start/0/limit/50/order/desc"); ?>'>
<img src='<?php echo $sImageURL; ?>viewlast.png' alt='<?php $clang->eT("Display Last 50 Responses"); ?>' /></a>
<?php }
if (hasSurveyPermission($surveyid, 'responses', 'create'))
{ ?>
<a href='<?php echo $this->createUrl("admin/dataentry/view/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>dataentry.png' alt='<?php $clang->eT("Dataentry Screen for Survey"); ?>' /></a>
<?php }
if (hasSurveyPermission($surveyid, 'statistics', 'read'))
{ ?>
<a href='<?php echo $this->createUrl("admin/statistics/index/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>statistics.png' alt='<?php $clang->eT("Get statistics from these responses"); ?>' /></a>
<?php if ($thissurvey['savetimings'] == "Y")
{ ?>
<a href='<?php echo $this->createUrl("admin/browse/browse/surveyid/$surveyid/subaction/time"); ?>'>
<img src='<?php echo $sImageURL; ?>statistics_time.png' alt='<?php $clang->eT("Get time statistics from these responses"); ?>' /></a>
<?php }
} ?>
<img src='<?php echo $sImageURL; ?>separator.gif' class='separator' alt='' />
<?php if (hasSurveyPermission($surveyid, 'responses', 'export'))
{ ?>
<a href='<?php echo $this->createUrl("admin/export/exportresults/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>export.png' alt='<?php $clang->eT("Export results to application"); ?>' /></a>
<a href='<?php echo $this->createUrl("admin/export/exportspss/sid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>exportspss.png' alt="<?php $clang->eT("Export results to a SPSS/PASW command file"); ?>" /></a>
<a href='<?php echo $this->createUrl("admin/export/exportr/sid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>exportr.png' alt='<?php $clang->eT("Export results to a R data file"); ?>' /></a>
<?php
}
if (hasSurveyPermission($surveyid, 'responses', 'create'))
{
?>
<a href='<?php echo $this->createUrl("admin/dataentry/import/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>importold.png' alt='<?php $clang->eT("Import responses from a deactivated survey table"); ?>' /></a>
<?php } ?>
<img src='<?php echo $sImageURL; ?>separator.gif' class='separator' alt='' />
<?php if (hasSurveyPermission($surveyid, 'responses', 'read'))
{ ?>
<a href='<?php echo $this->createUrl("admin/saved/view/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>saved.png' title='' alt='<?php $clang->eT("View Saved but not submitted Responses"); ?>' /></a>
<?php }
if (hasSurveyPermission($surveyid, 'responses', 'import'))
{ ?>
<a href='<?php echo $this->createUrl("admin/dataentry/vvimport/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>importvv.png' alt='<?php $clang->eT("Import a VV survey file"); ?>' /></a>
<?php }
if (hasSurveyPermission($surveyid, 'responses', 'export'))
{ ?>
<a href='<?php echo $this->createUrl("admin/export/vvexport/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>exportvv.png' title='' alt='<?php $clang->eT("Export a VV survey file"); ?>' /></a>
<?php }
if (hasSurveyPermission($surveyid, 'responses', 'delete') && $thissurvey['anonymized'] == 'N' && $thissurvey['tokenanswerspersistence'] == 'Y')
{ ?>
<a href='<?php echo $this->createUrl("admin/dataentry/iteratesurvey/surveyid/$surveyid"); ?>'>
<img src='<?php echo $sImageURL; ?>iterate.png' title='' alt='<?php $clang->eT("Iterate survey"); ?>' /></a>
<?php } ?>
</div>
</div>
</div>