All the view scripts are called from the controller scripts and are passed values through an array at the time.

 

The surveybar_view is called by controllers/admin/Survey_Common_Action.php

 

The values available are built up through the _surveybar() function in that file in an array called $aData

 

Jason

 

From: Srineth Priyanka [mailto:srineth.priyanka@gmail.com]
Sent: Tuesday, 17 July 2012 11:16 AM
To: limesurvey-developers@lists.sourceforge.net
Subject: Re: [limesurvey-developers] Which files used for adding icons

 

If you’re working on the new LimeSurvey (2.0), look in the views, “surveybar_view.php”.

I'm using limesurvey2.00 RC4, I could find surveybar_view.php from limesurvey\application\views\admin\survey 

directory. 

 

To add icon, I have added some commands for it, like below,

 

<?php if($tokenmanagement) { ?>

                <li><a href="<?php echo $this->createUrl("admin/tokens/index/surveyid/$surveyid"); ?>">

                        <img src='<?php echo $sImageURL;?>tokens.png' alt='<?php $clang->eT("Token management");?>' width="<?php echo $iIconSize;?>" height="<?php echo $iIconSize;?>"/></a>

                </li>

            <?php } ?>

 

<?php if($sendlink) { ?>

               

            <?php } ?>

 

But it shows some errors due to declaring $sendlink, So can I know where is declare $tokenmanagement ?

 

 

You’ll find examples in both of those files of how to programmatically build a survey URL.