Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/LimeSurvey/LimeSurvey
- Loading branch information
Showing
9 changed files
with
345 additions
and
366 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
application/views/admin/export/exportresult_panels/_columns-control.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- Column control --> | ||
<div class="panel panel-primary" id="panel-6"> | ||
<div class="panel-heading"> | ||
<div class="panel-title h4"> | ||
<?php eT("Columns");?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<input type='hidden' name='sid' value='<?php echo $surveyid; ?>' /> | ||
<?php if ($SingleResponse): ?> | ||
<input type='hidden' name='response_id' value="<?php echo $SingleResponse;?>" /> | ||
<?php endif; ?> | ||
<label for='colselect' class="col-sm-12 control-label"> | ||
<?php eT("Select columns:");?> | ||
</label> | ||
<div class="col-sm-12"> | ||
<?php | ||
echo CHtml::listBox('colselect[]',array_keys($aFields),$aFields,array('multiple'=>'multiple','size'=>'20','options'=>$aFieldsOptions, 'class'=>'form-control')); | ||
?> | ||
</div> | ||
<div class="col-sm-12 text-center"> | ||
<strong id='columncount'> </strong> | ||
</div> | ||
</div> | ||
</div> |
30 changes: 30 additions & 0 deletions
30
application/views/admin/export/exportresult_panels/_format.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- Format --> | ||
<div class="panel panel-primary" id="panel-1"> | ||
<div class="panel-heading"> | ||
<div class="panel-title h4"> | ||
<?php eT("Format");?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="form-group"> | ||
<!-- Format --> | ||
<label for='export_format' class="col-sm-6 control-label"> | ||
<?php eT("Export format:"); ?> | ||
</label> | ||
<div class="col-sm-12"> | ||
<div class="radio ls-flex-row wrap align-items-space-around"> | ||
<?php foreach ($exports as $key => $info) { ?> | ||
<?php if (!empty($info['label'])) { ?> | ||
<div class="ls-flex col-4 ls-space padding all-5"> | ||
<label> | ||
<input type="radio" name="type" id="<?php echo $key;?>" value="<?php echo $key;?>" <?php if($info[ 'label']=='CSV' ){ echo 'checked';}?>> | ||
<?php echo $info['label'];?> | ||
</label> | ||
</div> | ||
<?php } ?> | ||
<?php } ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
38 changes: 38 additions & 0 deletions
38
application/views/admin/export/exportresult_panels/_general.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!-- General --> | ||
<div class="panel panel-primary" id="panel-3"> | ||
<div class="panel-heading"> | ||
<div class="panel-title h4"> | ||
<?php eT("General"); ?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="form-group row"> | ||
<label for='completionstate' class="control-label"> | ||
<?php eT("Completion state:");?> | ||
</label> | ||
|
||
<div class=""> | ||
<select name='completionstate' id='completionstate' class='form-control'> | ||
<option value='complete' <?php echo $selecthide;?>> | ||
<?php eT("Completed responses only");?> | ||
</option> | ||
<option value='all' <?php echo $selectshow;?>> | ||
<?php eT("All responses");?> | ||
</option> | ||
<option value='incomplete' <?php echo $selectinc;?>> | ||
<?php eT("Incomplete responses only");?> | ||
</option> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label for='exportlang' class="control-label"> | ||
<?php eT("Export language:"); ?> | ||
</label> | ||
<div class=''> | ||
<?php echo CHtml::dropDownList('exportlang', null, $aLanguages, array('class'=>'form-control')); ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
91 changes: 91 additions & 0 deletions
91
application/views/admin/export/exportresult_panels/_headings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<!-- Heading --> | ||
<div class="panel panel-primary" id="panel-4"> | ||
<div class="panel-heading"> | ||
<div class="panel-title h4"> | ||
<?php eT("Headings");?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
|
||
<!-- Headers --> | ||
<div class="form-group row"> | ||
<label class="col-sm-12 control-label" for=''> | ||
<?php eT("Export questions as:"); ?> | ||
</label> | ||
<div class="btn-group col-sm-12" data-toggle="buttons"> | ||
<?php foreach($headexports as $type=>$headexport):?> | ||
<label class="btn btn-default <?php if($headexport['checked']=='checked'){ echo 'active';}?>"> | ||
<input value="<?php echo $type; ?>" id="headstyle-<?php echo $type; ?>" type="radio" name="headstyle" <?php if($headexport[ 'checked']=='checked' ){ echo 'checked';} ?> /> | ||
<?php echo $headexport['label'];?> | ||
</label> | ||
<?php endforeach; ?> | ||
</div> | ||
</div> | ||
|
||
<!-- Convert spaces --> | ||
<div class="form-group row"> | ||
<label class="col-sm-12 control-label" for='headspacetounderscores'> | ||
<?php eT("Convert spaces in question text to underscores:"); ?> | ||
</label> | ||
<div class='col-sm-12'> | ||
<?php $this->widget('yiiwheels.widgets.switch.WhSwitch', array( | ||
'name' => 'headspacetounderscores', | ||
'id'=>'headspacetounderscores', | ||
'value' => 0, | ||
'onLabel'=>gT('On'), | ||
'offLabel' => gT('Off'))); | ||
?> | ||
</div> | ||
</div> | ||
|
||
<!-- Text abbreviated--> | ||
<div class="form-group row"> | ||
<label class="col-sm-12 control-label" for='abbreviatedtext'> | ||
<?php eT("Text abbreviated:"); ?> | ||
</label> | ||
<div class='col-sm-12'> | ||
<?php $this->widget('yiiwheels.widgets.switch.WhSwitch', array( | ||
'name' => 'abbreviatedtext', | ||
'id'=>'abbreviatedtext', | ||
'value' => 0, | ||
'onLabel'=>gT('On'), | ||
'offLabel' => gT('Off'))); | ||
?> | ||
</div> | ||
</div> | ||
|
||
<!-- Use Expression Manager code--> | ||
<div class="form-group row"> | ||
<label class="col-sm-12 control-label" for='emcode'> | ||
<?php eT("Use Expression Manager code:"); ?> | ||
</label> | ||
<div class='col-sm-12'> | ||
<?php $this->widget('yiiwheels.widgets.switch.WhSwitch', array( | ||
'name' => 'emcode', | ||
'id'=>'emcode', | ||
'value' => 0, | ||
'onLabel'=>gT('On'), | ||
'offLabel' => gT('Off'))); | ||
?> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label for='abbreviatedtextto' class="col-sm-12 control-label"> | ||
<?php eT("Number of characters:"); ?> | ||
</label> | ||
<div class="col-sm-12"> | ||
<input min="1" step="1" type="number" value="15" name="abbreviatedtextto" id="abbreviatedtextto" class="form-control" /> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label for='codetextseparator' class="col-sm-12 control-label"> | ||
<?php eT("Code/text separator:"); ?> | ||
</label> | ||
<div class="col-sm-12"> | ||
<input size="4" type="text" value=". " name="codetextseparator" id="codetextseparator" class="form-control" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
27 changes: 27 additions & 0 deletions
27
application/views/admin/export/exportresult_panels/_range.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- Range --> | ||
<div class="panel panel-primary" id="panel-2" <?php if ($SingleResponse) { echo 'style="display:none"';} ?> > | ||
<div class="panel-heading"> | ||
<div class="panel-title h4"> | ||
<?php eT("Range");?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="form-group"> | ||
<!-- From --> | ||
<label for='export_from' class=" control-label"> | ||
<?php eT("From:"); ?> | ||
</label> | ||
<div class=""> | ||
<?php printf('<input min="%s" max="%s" step="1" type="number" value="%s" name="export_from" id="export_from" class="form-control" />', $min_datasets, $max_datasets, $min_datasets) ?> | ||
</div> | ||
|
||
<!-- To --> | ||
<label for='export_to' class=" control-label"> | ||
<?php eT("to:"); ?> | ||
</label> | ||
<div class=""> | ||
<?php printf('<input min="%s" max="%s" step="1" type="number" value="%s" name="export_to" id="export_to" class="form-control" />', $min_datasets, $max_datasets, $max_datasets) ?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
44 changes: 44 additions & 0 deletions
44
application/views/admin/export/exportresult_panels/_responses.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div class="panel panel-primary" id="panel-5"> | ||
<div class="panel-heading"> | ||
<div class="panel-title h4"> | ||
<?php eT("Responses");?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<div class='form-group row'> | ||
<label class="col-sm-12 control-label" for=''> | ||
<?php eT("Export responses as:"); ?> | ||
</label> | ||
<!-- Answer codes / Full answers --> | ||
<div class="btn-group col-sm-6" data-toggle="buttons"> | ||
<label class="btn btn-default"> | ||
<input name="answers" value="short" type="radio" id="answers-short" /> | ||
<?php eT("Answer codes");?> | ||
</label> | ||
|
||
<label class="btn btn-default active"> | ||
<input name="answers" value="long" type="radio" checked='checked' id="answers-long" autofocus="true" /> | ||
<?php eT("Full answers");?> | ||
</label> | ||
</div> | ||
</div> | ||
|
||
<!-- Responses --> | ||
<div class="form-group row"> | ||
<div class='col-sm-12'> | ||
<?php | ||
echo CHTML::checkBox('converty',false,array('value'=>'Y','id'=>'converty')); | ||
echo ' '.CHTML::label(gT("Convert Y to:"),'converty'); | ||
echo CHTML::textField('convertyto','1',array('id'=>'convertyto','size'=>'3','maxlength'=>'1', 'class' => 'form-control')); | ||
?> | ||
</div> | ||
<div class='col-sm-12'> | ||
<?php | ||
echo CHTML::checkBox('convertn',false,array('value'=>'Y','id'=>'convertn')); | ||
echo ' '.CHTML::label(gT("Convert N to:"),'convertn'); | ||
echo CHTML::textField('convertnto','2',array('id'=>'convertnto','size'=>'3','maxlength'=>'1', 'class' => 'form-control')); | ||
?> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
33 changes: 33 additions & 0 deletions
33
application/views/admin/export/exportresult_panels/_single-value.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
$sResponsesId = ''; | ||
$aResponsesId = json_decode(Yii::app()->session['responsesid']); | ||
foreach($aResponsesId as $aResponseId){ | ||
$sResponsesId .= $aResponseId.', '; | ||
} | ||
?> | ||
|
||
<div class="panel panel-primary" id="panel-2" <?php if ($SingleResponse) { echo 'style="display:none"';} ?> > | ||
<div class="panel-heading"> | ||
<h4 class="panel-title"> | ||
<?php eT("Selection");?> | ||
</h4> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="form-group"> | ||
<!-- From --> | ||
<label for='export_ids' class="col-sm-2 control-label"> | ||
<?php eT("Selected answers"); ?> | ||
</label> | ||
|
||
<div class="col-sm-6"> | ||
<input type="text" readonly value="<?php echo $sResponsesId; ?>" class="form-control" name="responses_id" id="responses_id" /> | ||
</div> | ||
<div class="col-sm-2"> | ||
<a class="btn btn-default" href="<?php echo Yii::app()->getController()->createUrl(" admin/responses/sa/setSession/ ", array('unset'=>'true', 'sid'=>$surveyid)); ?>" role="button"> | ||
<?php eT("Reset");?> | ||
</a> | ||
</div> | ||
<input type="hidden" value='<?php echo json_encode($aResponsesId); ?>' name="export_ids" id="export_ids" /> | ||
</div> | ||
</div> | ||
</div> |
41 changes: 41 additions & 0 deletions
41
application/views/admin/export/exportresult_panels/_token-control.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
$attrfieldnames=getTokenFieldsAndNames($surveyid,true); | ||
?> | ||
|
||
<div class="panel panel-primary" id="panel-7"> | ||
<div class="panel-heading"> | ||
<div class="panel-title h4"> | ||
<?php eT("Token control");?> | ||
</div> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="alert alert-info alert-dismissible" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span>×</span></button> | ||
<?php eT('Your survey can export associated token data with each response. Select any additional fields you would like to export.'); ?> | ||
</div> | ||
|
||
<label for='attribute_select' class="col-sm-4 control-label"> | ||
<?php eT("Choose token fields:");?> | ||
</label> | ||
<div class="col-sm-8"> | ||
<select name='attribute_select[]' multiple size='20' class="form-control" id="attribute_select"> | ||
<option value='first_name' id='first_name'> | ||
<?php eT("First name");?> | ||
</option> | ||
<option value='last_name' id='last_name'> | ||
<?php eT("Last name");?> | ||
</option> | ||
<option value='email_address' id='email_address'> | ||
<?php eT("Email address");?> | ||
</option> | ||
|
||
<?php | ||
foreach ($attrfieldnames as $attr_name=>$attr_desc) | ||
{ | ||
echo "<option value='$attr_name' id='$attr_name' />".$attr_desc['description']."</option>\n"; | ||
} | ||
?> | ||
</select> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.