diff --git a/application/views/admin/survey/listSurveys_view.php b/application/views/admin/survey/listSurveys_view.php index 154705dd753..4ca6ed73f52 100644 --- a/application/views/admin/survey/listSurveys_view.php +++ b/application/views/admin/survey/listSurveys_view.php @@ -51,76 +51,77 @@ - - - style='display:none;'>' name='surveyids[]' class='surveycbs' /> + + + + style='display:none;'>' name='surveyids[]' class='surveycbs' /> - - - <?php $clang->eT("This survey is active but expired.");?> - <?php $clang->eT("This survey is active but has a start date.");?> + - - <?php $clang->eT("This survey is active - click here to stop this survey.");?> - - <?php $clang->eT("This survey is currently active.")?> /expired.png' alt='eT("This survey is active but expired.");?>' /> - - <?php $clang->eT("This survey is currently not active - click here to activate this survey.");?> - - <?php $clang->eT("This survey is currently not active.");?> - /notyetstarted.png' alt='eT("This survey is active but has a start date.");?>' /> - - '> - '> - - ('>Edit) - - - - - - - - + elseif ($aSurveyEntry['status']=='active') + { + if ($aSurveyEntry['mayupdate']) + {?> + + <?php $clang->eT("This survey is active - click here to stop this survey.");?> + + <?php $clang->eT("This survey is currently active.")?> -   -   -   -   -   - + } + } + elseif ($aSurveyEntry['status']=='inactive') + { + if ( $aSurveyEntry['questioncount'] && $aSurveyEntry['mayupdate'] ) + {?> + + <?php $clang->eT("This survey is currently not active - click here to activate this survey.");?> + + <?php $clang->eT("This survey is currently not active.");?> + + + '> + '> + + ('>Edit) + + + + + + + + - - + +   +   +   +   +   + + + + -
+