Skip to content

Commit

Permalink
Dev Fixed survey translation image and placement on advanced toolbar
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9253 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Andrie de Vries committed Oct 15, 2010
1 parent fa60ade commit 6d4a55f
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions admin/html.php
Expand Up @@ -562,20 +562,6 @@
}
}

//<AdV>
if(bHasRight($surveyid,'edit_survey_property'))
{
$surveysummary .= "<img src='$imagefiles/seperator.gif' alt='' />\n";
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=translate&amp;sid=$surveyid', '_top')\""
. " title=\"".$clang->gTview("Translate survey")."\" >"
. "<img src='$imagefiles/translate_survey.png' name='translate' alt='".$clang->gT("Translate survey")."' /></a>\n";
}
else
{
$surveysummary .= "<img src='$imagefiles/seperator.gif' alt='' />\n";
$surveysummary .= "<img src='$imagefiles/blank.gif' alt='' width='80' />\n";
}
//</AdV>

if (bHasRight($surveyid,'export') || bHasRight($surveyid,'activate_survey'))
{
Expand Down Expand Up @@ -713,6 +699,19 @@
$surveysummary .= "<img src='$imagefiles/blank.gif' alt='' width='40' />\n";
}

if(bHasRight($surveyid,'edit_survey_property'))
{
$surveysummary .= "<img src='$imagefiles/seperator.gif' alt='' />\n";
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=translate&amp;sid=$surveyid', '_top')\""
. " title=\"".$clang->gTview("Translate survey")."\" >"
. "<img src='$imagefiles/translate.png' name='translate' alt='".$clang->gT("Translate survey")."' /></a>\n";
}
else
{
$surveysummary .= "<img src='$imagefiles/seperator.gif' alt='' />\n";
$surveysummary .= "<img src='$imagefiles/blank.gif' alt='' width='80' />\n";
}

if (bHasRight($surveyid,'define_questions'))
{
if ($sumcount6 > 0) {
Expand Down Expand Up @@ -802,7 +801,7 @@
|| $action=="setsurveysecurity" || $action=="setusergroupsurveysecurity" || $action=="delsurveysecurity"
|| $action=="editsurveysettings"|| $action=="editsurveylocalesettings" || $action=="updatesurveysettingsandeditlocalesettings" || $action=="addgroup" || $action=="importgroup"
|| $action=="ordergroups" || $action=="deletesurvey" || $action=="resetsurveylogic"
|| $action=="importsurveyresources" || $action=="translate" // <AdV>
|| $action=="importsurveyresources" || $action=="translate"
|| $action=="exportstructure" || $action=="quotas" || $action=="copysurvey") {$showstyle="style='display: none'";}
if (!isset($showstyle)) {$showstyle="";}
$aAdditionalLanguages = GetAdditionalLanguagesFromSurveyID($surveyid);
Expand Down Expand Up @@ -3576,7 +3575,6 @@

}

//<AdV>
if ($action == "translate") // Translate survey
{
if(bHasRight($surveyid,'edit_survey_property'))
Expand All @@ -3591,9 +3589,6 @@

}

//</AdV>


if($action == "quotas")
{
include("quota.php");
Expand Down

0 comments on commit 6d4a55f

Please sign in to comment.