mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
64 lines
No EOL
3.7 KiB
PHP
64 lines
No EOL
3.7 KiB
PHP
<div class='header ui-widget-header'><?php $clang->eT("Copy survey"); ?></div>
|
|
<div class='messagebox ui-corner-all'>
|
|
|
|
<?php if (isset($aImportResults['error']) && $aImportResults['error']!=false)
|
|
{ ?>
|
|
<div class='warningheader'><?php $clang->eT("Error"); ?></div><br />
|
|
<?php echo $aImportResults['error']; ?><br /><br />
|
|
<input type='submit' value='<?php $clang->eT("Main Admin Screen"); ?>' onclick="window.open('<?php echo $this->createUrl('admin'); ?>', '_top')" />
|
|
<?php $importerror = true;
|
|
}
|
|
|
|
if (!$importerror)
|
|
{ ?>
|
|
<div class='successheader'><?php $clang->eT("Success"); ?></div><br /><br />
|
|
|
|
<strong><?php $clang->eT("Survey import summary"); ?></strong><br />
|
|
|
|
|
|
<ul style="text-align:left;">
|
|
<li><?php $clang->eT("Surveys"); ?>: <?php echo $aImportResults['surveys']; ?></li>
|
|
<li><?php $clang->eT("Languages"); ?>: <?php echo $aImportResults['languages']; ?></li>
|
|
<li><?php $clang->eT("Question groups"); ?>: <?php echo $aImportResults['groups']; ?></li>
|
|
<li><?php $clang->eT("Questions"); ?>: <?php echo $aImportResults['questions']; ?></li>
|
|
<li><?php $clang->eT("Answers"); ?>: <?php echo $aImportResults['answers']; ?></li>
|
|
<?php if (isset($aImportResults['subquestions']))
|
|
{ ?>
|
|
<li><?php $clang->eT("Subquestions"); ?>: <?php echo $aImportResults['subquestions']; ?></li>
|
|
<?php }
|
|
if (isset($aImportResults['defaultvalues']))
|
|
{ ?>
|
|
<li><?php $clang->eT("Default answers"); ?>: <?php echo $aImportResults['defaultvalues']; ?></li>
|
|
<?php }
|
|
if (isset($aImportResults['conditions']))
|
|
{ ?>
|
|
<li><?php $clang->eT("Condition"); ?>: <?php echo $aImportResults['conditions']; ?></li>
|
|
<?php }
|
|
if (isset($aImportResults['labelsets']))
|
|
{ ?>
|
|
<li><?php $clang->eT("Label sets"); ?>: <?php echo $aImportResults['labelsets']; ?></li>
|
|
<?php }
|
|
if (isset($aImportResults['deniedcountls']) && $aImportResults['deniedcountls']>0)
|
|
{ ?>
|
|
<li><?php $clang->eT("Not imported label sets"); ?>: <?php echo $aImportResults['deniedcountls']; $clang->eT("(Label sets were not imported since you do not have the permission to create new label sets.)"); ?></li>
|
|
<?php } ?>
|
|
<li><?php $clang->eT("Question attributes"); ?>: <?php echo $aImportResults['question_attributes']; ?></li>
|
|
<li><?php $clang->eT("Assessments"); ?>: <?php echo $aImportResults['assessments']; ?></li>
|
|
<li><?php $clang->eT("Quotas"); ?>: <?php echo $aImportResults['quota']; ?> (<?php echo $aImportResults['quotamembers']; $clang->eT("quota members"); $clang->eT("and"); echo $aImportResults['quotals']; $clang->eT("quota language settings"); ?>)</li></ul><br />
|
|
|
|
<?php if (count($aImportResults['importwarnings'])>0)
|
|
{ ?>
|
|
<div class='warningheader'><?php $clang->eT("Warnings"); ?>:</div>
|
|
<ul style="text-align:left;">
|
|
<?php foreach ($aImportResults['importwarnings'] as $warning)
|
|
{ ?>
|
|
<li><?php echo $warning; ?></li>
|
|
<?php } ?>
|
|
</ul><br />
|
|
<?php } ?>
|
|
|
|
<strong><?php $clang->eT("Copy of survey is completed."); ?></strong>
|
|
<a href='<?php echo $this->createUrl("admin/survey/sa/view/".$aImportResults['newsid']); ?>'>
|
|
<?php $clang->eT("Go to survey"); ?></a>
|
|
<?php } ?>
|
|
</div>
|