1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00
limesurvey_ynh/sources/application/views/admin/survey/deactivateSurvey_view.php

65 lines
No EOL
4.4 KiB
PHP

<?php if (isset($step1))
{ ?>
<br /><div class='messagebox ui-corner-all'>
<div class='header ui-widget-header'><?php $clang->eT("Stop this survey"); echo "($surveyid)" ; ?></div>
<div class='warningheader'>
<?php $clang->eT("Warning"); ?><br /><?php $clang->eT("READ THIS CAREFULLY BEFORE PROCEEDING"); ?>
</div>
<p><?php $clang->eT("There are two ways to stop a survey. Please read carefully about the two options below and choose the right one for you."); ?></p>
<table id='deactivation'><tr><th width='50%'><?php $clang->eT("Expiration"); ?></th><th><?php $clang->eT("Deactivation"); ?></th></tr>
<tr><td><ul>
<li><?php $clang->eT("No responses are lost.");?></li>
<li><?php $clang->eT("No participant information lost.");?></li>
<li><?php $clang->eT("Ability to change of questions, groups and parameters is still limited.");?></li>
<li><?php $clang->eT("An expired survey is not accessible to participants (they only see a message that the survey has expired).");?></li>
<li><?php $clang->eT("It's still possible to perform statistics on responses using LimeSurvey.");?></li>
</ul>
</td>
<td>
<ul>
<li><?php $clang->eT("All responses are not accessible anymore with LimeSurvey.");?> <?php echo $clang->gT("Your response table will be renamed to:")." {$dbprefix}old_".$surveyid."_{$date}"; ?></li>
<li><?php $clang->eT("All participant information is lost.");?></li>
<li><?php $clang->eT("A deactivated survey is not accessible to participants (only a message appears that they are not permitted to see this survey).");?></li>
<li><?php $clang->eT("All questions, groups and parameters are editable again.");?></li>
<li><a title='<?php $clang->eT("Export survey results") ?>' href='<?php echo $this->createUrl('admin/export/sa/exportresults/surveyid/'.$surveyid) ?>'>
<?php $clang->eT("You should export your responses before deactivating.");?>
</li>
</ul>
</td>
</tr><tr>
<td>
<?php echo CHtml::form(array("admin/survey/sa/expire/surveyid/{$surveyid}/"), 'post'); ?>
<p><input type='submit' value='<?php $clang->eT("Expire survey"); ?>'/></p>
</form>
</td>
<td>
<?php echo CHtml::form(array("admin/survey/sa/deactivate/surveyid/{$surveyid}/"), 'post'); ?>
<p><input type='submit' value='<?php $clang->eT("Deactivate survey"); ?>' onclick="<?php echo convertGETtoPOST($this->createUrl("admin/survey/sa/deactivate/".$surveyid)."?action=deactivate&amp;ok=Y&amp;sid=$surveyid"); ?>" /></p>
<input type='hidden' value='Y' name='ok' />
</form>
</td>
</tr>
</table>
</div><br />
<?php }
else
{ ?>
<br /><div class='messagebox ui-corner-all'>
<div class='header ui-widget-header'><?php $clang->eT("Deactivate Survey"); echo "($surveyid)"; ?></div>
<div class='successheader'><?php $clang->eT("Survey Has Been Deactivated"); ?>
</div>
<p>
<?php $clang->eT("The responses to this survey are no longer available using LimeSurvey."); ?></p>
<p>
<?php echo $clang->gT("The responses table has been renamed to: ")." ".$sNewSurveyTableName; ?><br>
<?php if (isset($toldtable) && $toldtable)
{
echo $clang->gT("The tokens table associated with this survey has been renamed to: ")." $tnewtable<br>";
} ?>
<?php if (isset($sNewTimingsTableName)) echo $clang->gT("The response timings table has been renamed to: ")." ".$sNewTimingsTableName; ?><br>
</p>
<?php $clang->eT("You should note the name(s) of the table(s) in case you need to access this information later."); ?><br>
<p><?php $clang->eT("Note: If you deactivated this survey in error, it is possible to restore this data easily if you do not make any changes to the survey structure. See the LimeSurvey documentation for further details"); ?></p>
</div><br/>&nbsp;
<?php } ?>