/
import_ressources_modal.php
39 lines (37 loc) · 1.81 KB
/
import_ressources_modal.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
<?php
/**
* This modal display a form to upload resources
* It's called from the accordion "Resources"
* It has been move from inside the settings because form nesting is not valid in HTML, and can create problems.
*/
?>
<div class="modal fade" id="importRessourcesModal" tabindex="-1" role="dialog" aria-labelledby="importRessourcesModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="importRessourcesModalLabel">
<?php eT("Import resources ZIP archive"); ?>
</h4>
</div>
<?php echo CHtml::form(array('surveyAdministration/importsurveyresources'), 'post', array('id'=>'importsurveyresources', 'name'=>'importsurveyresources', 'class'=>'form30', 'enctype'=>'multipart/form-data', 'onsubmit'=>'return window.LS.validatefilename(this,"'. gT('Please select a file to import!', 'js').'");')); ?>
<div class="modal-body">
<input type='hidden' name='surveyid' value='<?php echo $surveyid; ?>' />
<input type='hidden' name='action' value='importsurveyresources' />
<label for='the_file'>
<?php eT("Select ZIP file:"); ?>
</label>
<input id='the_file' name='the_file' type='file' />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-cancel" data-dismiss="modal">
<?php eT("Cancel");?>
</button>
<input type='button' class="btn btn-primary" value='<?php eT("Import"); ?>' <?php echo $ZIPimportAction; ?> />
</div>
</form>
</div>
</div>
</div>