#13; Prototype interface de selection de 'tous' les sujets ou uniquement ceux selectionnés

This commit is contained in:
xdrm-brackets 2016-05-21 15:56:17 +02:00
parent 74d7063460
commit 5d1fea3ba5
17 changed files with 23 additions and 50 deletions

View File

@ -183,7 +183,7 @@
& input[type='time']{ & input[type='time']{
display: inline-block; display: inline-block;
padding: .2em .5em; padding: .2em .5em;
margin: .5em; margin: .5em 0;
border-radius: 3px; border-radius: 3px;
border: 1px solid #777; border: 1px solid #777;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -218,6 +218,7 @@
$bodyfile = fopen($bodyfname, 'w'); $bodyfile = fopen($bodyfname, 'w');
fwrite($bodyfile, $returned['body']); fwrite($bodyfile, $returned['body']);
fclose($bodyfile); fclose($bodyfile);
chmod($bodyfname, 0775);
fwrite($tmpfile, "readfile('$bodyfname');".PHP_EOL); fwrite($tmpfile, "readfile('$bodyfname');".PHP_EOL);
@ -229,6 +230,7 @@
/* (5) On ferme le fichier */ /* (5) On ferme le fichier */
fclose($tmpfile); fclose($tmpfile);
chmod($tmpfile, 0775);
$response = new ModuleResponse(ManagerError::Success); $response = new ModuleResponse(ManagerError::Success);
$response->append('link', $tmpfname); $response->append('link', $tmpfname);

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: application/zip; charset=utf-8");
header("Content-Disposition: attachment; filename=export_21_05_2016_.zip");
header("Pragma: no-cache");
header("Expires: 0");
readfile('/var/www/socioview/tmp/content_57406292d5726.php');
unlink('/var/www/socioview/tmp/content_57406292d5726.php');
unlink(__FILE__);
?>

View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: application/zip; charset=utf-8");
header("Content-Disposition: attachment; filename=export_21_05_2016_.zip");
header("Pragma: no-cache");
header("Expires: 0");
readfile('/var/www/socioview/tmp/content_57406350c8e54.php');
unlink('/var/www/socioview/tmp/content_57406350c8e54.php');
unlink(__FILE__);
?>

View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: application/zip; charset=utf-8");
header("Content-Disposition: attachment; filename=export_21_05_2016_.zip");
header("Pragma: no-cache");
header("Expires: 0");
readfile('/var/www/socioview/tmp/content_574063b253600.php');
unlink('/var/www/socioview/tmp/content_574063b253600.php');
unlink(__FILE__);
?>

View File

@ -1,9 +0,0 @@
<?php
header("Content-Type: application/zip; charset=utf-8");
header("Content-Disposition: attachment; filename=export_21_05_2016_.zip");
header("Pragma: no-cache");
header("Expires: 0");
readfile('/var/www/socioview/tmp/content_574063c5818b3.php');
unlink('/var/www/socioview/tmp/content_574063c5818b3.php');
unlink(__FILE__);
?>

View File

@ -0,0 +1,3 @@
/*#group_0:checked + #subject-list{
display: none;
}*/

0
view/css/data.min.css vendored Normal file
View File

View File

@ -23,14 +23,18 @@ $pers = $request->answer();
<section id='export-form'> <section id='export-form'>
<h4>Exporter les données au format .csv</h4> <h4>Exporter les données au format .csv</h4>
<strong>Choix des sujets</strong><br> <strong>Choix des sujets</strong>
<br><input type='radio' name='subject-group' data-name='group' id='group_0' value='sel' ><label for='group_0'>Tous les sujets</label>
<br><input type='radio' name='subject-group' data-name='group' id='group_1' value='all' checked><label for='group_1'>Les sujets selectionnés uniquement</label>
<br><br>
<article style='display: inline;' id='subject-list'> <article style='display: inline;' id='subject-list'>
<input type='number' data-name='subjects' placeholder='Sujet' style='width: 5em; display: block;'> <input type='number' data-name='subjects' placeholder='Sujet' style='width: 5em; display: block;'>
</article> </article>
<input type='button' id='add-subject' class='primary' value='Ajouter +' style='padding:.2em .6em; margin: .5em'> <input type='button' id='add-subject' class='primary' value='+' style='padding:.2em .6em; margin: .5em 0'>
<br><br><br><strong>Types de données</strong><br><br> <br><br><br><strong>Types de données</strong>
<input type='checkbox' data-name='phone' value='1' id='phone_0'><label for='phone_0'>Données cellulaires</label> <br><br><input type='checkbox' data-name='phone' value='1' id='phone_0' ><label for='phone_0'>Données cellulaires</label>
<br><br><input type='checkbox' data-name='facebook' value='1' id='facebook_0'><label for='facebook_0'>Données Facebook</label> <br><br><input type='checkbox' data-name='facebook' value='1' id='facebook_0'><label for='facebook_0'>Données Facebook</label>
<br><br><input type='checkbox' data-name='restic' value='1' id='restic_0' ><label for='restic_0'>Données <i>Lab Surveys</i></label> <br><br><input type='checkbox' data-name='restic' value='1' id='restic_0' ><label for='restic_0'>Données <i>Lab Surveys</i></label>