-
Notifications
You must be signed in to change notification settings - Fork 988
/
_integration_panel.php
executable file
·44 lines (43 loc) · 1.99 KB
/
_integration_panel.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
42
43
44
<?php
/**
* Right accordion, integration panel
* Use datatables, needs surveysettings.js
*/
$yii = Yii::app();
$controller = $yii->getController();
?>
<!-- Datatable translation-data -->
<script type="text/javascript">
var jsonUrl = "<?php echo App()->createUrl('admin/survey/sa/getUrlParamsJson', array('surveyid' => $surveyid))?>";
var imageUrl = "<?php echo $yii->getConfig("adminimageurl");?>";
var sProgress = "<?php eT('Showing _START_ to _END_ of _TOTAL_ entries','js');?>";
var sAction = "<?php eT('Action','js');?>";
var sParameter = "<?php eT('Parameter','js');?>";
var sTargetQuestion = "<?php eT('Target question','js');?>";
var sURLParameters = "<?php eT('URL parameters','js');?>";
var sNoParametersDefined = "<?php eT('No parameters defined','js');?>";
var sSearchPrompt = "<?php eT('Search:','js');?>";
var sSureDelete = "<?php eT('Are you sure you want to delete this URL parameter?','js');?>";
var sEnterValidParam = "<?php eT('You have to enter a valid parameter name.','js');?>";
var sAddParam = "<?php eT('Add URL parameter','js');?>";
var sEditParam = "<?php eT('Edit URL parameter','js');?>";
var iSurveyId = "<?php echo $surveyid; ?>";
</script>
<!-- Container -->
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<table id="urlparams" class='table dataTable table-striped table-borders' >
<thead>
<tr>
<th></th><th><?php eT('Action');?></th><th><?php eT('Parameter');?></th><th><?php eT('Target question');?></th><th></th><th></th><th></th>
</tr>
</thead>
</table>
<input type='hidden' id='allurlparams' name='allurlparams' value='' />
</div>
</div>
</div>
<!-- Modal box to add a parameter -->
<div data-copy="submitsurveybutton"></div>
<?php $this->renderPartial('survey/subview/addPanelIntegrationParameter_view', array('questions' => $questions)); ?>