Skip to content

Commit

Permalink
Add EM menu items.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12065 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
GautamGupta committed Jan 15, 2012
1 parent f4930ab commit 6041bb4
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
9 changes: 7 additions & 2 deletions application/views/admin/survey/Question/questionbar_view.php
Expand Up @@ -39,8 +39,13 @@
<img src='<?php echo Yii::app()->getConfig('imageurl'); ?>/edit.png' alt='<?php $clang->eT("Edit Current Question"); ?>' /></a>
<?php } ?>



<?php if(bHasSurveyPermission($surveyid,'surveyactivation','read'))
{ ?>
<img src='<?php echo Yii::app()->getConfig('imageurl'); ?>/seperator.gif' alt='' />
<a href="#" onclick="window.open('<?php echo $this->createUrl('admin/expressions/survey_logic_file/surveyid/'.$surveyid.'/gid/'.$gid.'/qid/'.$qid); ?>','_blank')"
title="<?php $clang->eTview("Survey Logic File for current question"); ?>">
<img src='<?php echo Yii::app()->getConfig('imageurl'); ?>/quality_assurance.png' alt='<?php $clang->eT("Survey Logic File for current question"); ?>' /></a>
<?php } ?>

<?php if ((($qct == 0 && $activated != "Y") || $activated != "Y") && bHasSurveyPermission($surveyid,'surveycontent','delete'))
{
Expand Down
Expand Up @@ -23,8 +23,15 @@
<a href="#" onclick="window.open('<?php echo $this->createUrl('admin/questiongroup/edit/surveyid/'.$surveyid.'/gid/'.$gid); ?>','_top')"
title="<?php $clang->eTview("Edit current question group"); ?>">
<img src='<?php echo Yii::app()->getConfig('imageurl'); ?>/edit.png' alt='<?php $clang->eT("Edit current question group"); ?>' width="40" height="40"/></a>
<?php } ?>
<?php } ?>

<?php if(bHasSurveyPermission($surveyid,'surveyactivation','read'))
{ ?>
<img src='<?php echo Yii::app()->getConfig('imageurl'); ?>/seperator.gif' alt='' />
<a href="#" onclick="window.open('<?php echo $this->createUrl('admin/expressions/survey_logic_file/surveyid/'.$surveyid.'/gid/'.$gid); ?>','_blank')"
title="<?php $clang->eTview("Survey Logic File for current question group"); ?>">
<img src='<?php echo Yii::app()->getConfig('imageurl'); ?>/quality_assurance.png' alt='<?php $clang->eT("Survey Logic File for current question group"); ?>' /></a>
<?php } ?>

<?php
if (bHasSurveyPermission($surveyid,'surveycontent','delete'))
Expand Down
17 changes: 17 additions & 0 deletions application/views/admin/survey/surveybar_view.php
Expand Up @@ -78,6 +78,19 @@
<li><a href='<?php echo $this->createUrl("admin/emailtemplates/index/surveyid/$surveyid");?>' >
<img src='<?php echo $imageurl;?>/emailtemplates_30.png' alt=''/> <?php $clang->eT("Email templates");?></a></li>
<?php } ?>
<?php if($onelanguage) { ?>
<li><a target='_blank' href='<?php echo $this->createUrl("admin/expressions/survey_logic_file/surveyid/$surveyid/");?>' >
<img src='<?php echo $imageurl;?>/quality_assurance.png' alt='' width="30" height="30"/> <?php $clang->eT("Survey Logic File");?></a></li>
<?php } else { ?>
<li><a target='_blank' href='<?php echo $this->createUrl("admin/expressions/survey_logic_file/surveyid/$surveyid/");?>' >
<img src='<?php echo $imageurl;?>/quality_assurance.png' alt='' width="30" height="30"/> <?php $clang->eT("Survey Logic File");?></a><ul>
<?php foreach ($languagelist as $tmp_lang) { ?>
<li><a accesskey='d' target='_blank' href='<?php echo $this->createUrl("admin/expressions/survey_logic_file/surveyid/$surveyid/lang/$tmp_lang");?>'>
<img src='<?php echo $imageurl;?>/quality_assurance.png' alt='' /> <?php echo getLanguageNameFromCode($tmp_lang,false);?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
</ul></li>
<li><a href="#">
<img src='<?php echo $imageurl;?>/tools.png' alt='<?php $clang->eT("Tools");?>' /></a><ul>
Expand All @@ -94,6 +107,10 @@
<img src='<?php echo $imageurl;?>/translate_disabled_30.png' alt=''/> <?php $clang->eT("Quick-translation");?></a></li>
<?php } ?>
<?php } ?>
<?php if (bHasSurveyPermission($surveyid,'surveycontent','update')) { ?>
<li><a href="<?php echo $this->createUrl("admin/expressions"); ?>">
<img src='<?php echo $imageurl;?>/expressionManager_30.png' alt=''/> <?php $clang->eT("Expression Manager");?></a></li>
<?php } ?>
</ul></li>
<li><a href='#'>
<img src='<?php echo $imageurl;?>/display_export.png' alt='<?php $clang->eT("Display / Export");?>' width="40" height="40"/></a><ul>
Expand Down
Binary file added images/expressionManager_30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/quality_assurance.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6041bb4

Please sign in to comment.