/
spss_view.php
41 lines (38 loc) · 2.98 KB
/
spss_view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<div class='header ui-widget-header'><?php $clang->eT("Export result data to SPSS");?></div>
<?php echo CHtml::form(array("admin/export/sa/exportspss/sid/{$surveyid}/"), 'post', array('id'=>'exportspss', 'class'=>'wrap2columns'));?>
<fieldset>
<ul>
<li><label for='completionstate'><?php $clang->eT("Data selection:");?></label><select id='completionstate' name='completionstate' onchange='this.form.submit();'>
<option value='complete' <?php echo $selecthide;?>><?php $clang->eT("Completed responses only");?></option>
<option value='all' <?php echo $selectshow;?>><?php $clang->eT("All responses");?></option>
<option value='incomplete' <?php echo$selectinc;?>><?php $clang->eT("Incomplete responses only");?></option>
</select></li>
<li><label for='spssver'><?php $clang->eT("SPSS version:");?></label><select id='spssver' name='spssver' onchange='this.form.submit();'>
<?php if ($spssver == 1) $selected = "selected='selected'"; else $selected = "";?>
<option value='1' <?php echo $selected;?>><?php $clang->eT("Prior to 16");?></option>
<?php if ($spssver == 2) $selected = "selected='selected'"; else $selected = ""; ?>
<option value='2' <?php echo $selected;?>><?php $clang->eT("16 or up");?></option>
</select></li>
<input type='hidden' name='sid' value='<?php echo $surveyid;?>' />
<input type='hidden' name='action' value='exportspss' /></li>
<li><label for='dlstructure'><?php $clang->eT("Step 1:");?></label><input type='submit' name='dlstructure' id='dlstructure' value='<?php $clang->eT("Export syntax");?>'/></li>
<li><label for='dldata'/><?php $clang->eT("Step 2:");?></label><input type='submit' name='dldata' id='dldata' value='<?php $clang->eT("Export data");?>'/></li>
</ul>
</fieldset>
<fieldset>
<legend><?php $clang->eT("Optional");?></legend>
<ul>
<li><label></label></li>
<li><label for='limit'><?php $clang->eT("Limit:");?></label><input type='text' name='limit' value='<?php echo App()->getRequest()->getParam('limit');?>' /></li>
<li><label for='offset'><?php $clang->eT("Offset:");?></label><input type='text' name='offset' value='<?php echo App()->getRequest()->getParam('offset');?>' /></li>
</ul>
</fieldset>
</form>
<p><div class='messagebox ui-corner-all'><div class='header ui-widget-header'><?php $clang->eT("Instructions for the impatient");?></div>
<br/><ol>
<li><?php $clang->eT("Download the data and the syntax file");?></li>
<li><?php $clang->eT("Open the syntax file in SPSS in Unicode mode");?></li>
<li><?php echo sprintf($clang->gT("Edit the %s line and complete the filename with a full path to the downloaded data file"),"'FILE='");?></li>
<li><?php $clang->eT("Choose 'Run/All' from the menu to run the import");?></li>
</ol><p>
<?php $clang->eT("Your data should be imported now");?></div>