Merged dev into master
This commit is contained in:
commit
255af4d6b0
|
@ -3,3 +3,4 @@ sftp-config.json
|
||||||
phpunit/coverage/
|
phpunit/coverage/
|
||||||
/public_html/tmp/*
|
/public_html/tmp/*
|
||||||
/build/lightdb/storage/*/data
|
/build/lightdb/storage/*/data
|
||||||
|
**.swp
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
|
|
||||||
// Loads the build facade
|
// Loads the build facade
|
||||||
require_once __BUILD__.'/Builder.php';
|
// require_once __BUILD__.'/Builder.php';
|
||||||
|
|
||||||
|
|
||||||
/* AUTOLOADER
|
/* AUTOLOADER
|
||||||
|
@ -52,11 +52,10 @@
|
||||||
\manager\sessionManager::session_start();
|
\manager\sessionManager::session_start();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* [3] Gestion des droits des utilisateurs
|
/* [3] Gestion des droits des utilisateurs
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) Retourne si l'utilisateur est connecte ou non */
|
/* (1) Retourne si l'utilisateur est connecte ou non */
|
||||||
function connected(){ return isset($_SESSION['permission']) && count($_SESSION['permission']); }
|
function connected(){ return isset($_SESSION['permission']) && is_array($_SESSION['permission']) && count($_SESSION['permission']) > 0; }
|
||||||
|
|
||||||
/* (2) Retourne si l'utilisateur a le status en question */
|
/* (2) Retourne si l'utilisateur a le status en question */
|
||||||
function permission($type){ return connected() && in_array($type, $_SESSION['permission']); }
|
function permission($type){ return connected() && in_array($type, $_SESSION['permission']); }
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
/* TRAITE LES DONNÉES D'UN FORMULAIRE DE TYPE TÉLÉPHONIQUE
|
/* TRAITE LES DONNÉES D'UN FORMULAIRE DE TYPE TÉLÉPHONIQUE
|
||||||
*
|
*
|
||||||
* @subject<int> Id du sujet concerné
|
* @subject<Array> Données du sujet concerné
|
||||||
* @contacts<Array> Tableau contenant les données des contacts
|
* @contacts<Array> Tableau contenant les données des contacts
|
||||||
* @mini<Array> Tableau contenant les données des mini fiches relation
|
* @mini<Array> Tableau contenant les données des mini fiches relation
|
||||||
* @fiches<Array> Tableau contenant les données des fiches relation
|
* @fiches<Array> Tableau contenant les données des fiches relation
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
$offset = intval($uniqid) + 1;
|
$offset = intval($uniqid) + 1;
|
||||||
|
|
||||||
// on enregistre l'id du sujet
|
// on enregistre l'id du sujet
|
||||||
$subject_id = intval($subject);
|
$subject_id = intval($subject['subject_id']);
|
||||||
|
|
||||||
// Contiendra la valeur de l'id maximum
|
// Contiendra la valeur de l'id maximum
|
||||||
$maxId = $offset;
|
$maxId = $offset;
|
||||||
|
@ -130,7 +130,11 @@
|
||||||
if( !in_array('phone', $subject_set['subject']['surveys']) )
|
if( !in_array('phone', $subject_set['subject']['surveys']) )
|
||||||
$subject_set['subject']['surveys'][] = 'phone';
|
$subject_set['subject']['surveys'][] = 'phone';
|
||||||
|
|
||||||
/* (5) On récupère les noms des contacts */
|
/* (5) On met à jour si le sujet veut renouveller l'enquête plus tard */
|
||||||
|
if( !empty($subject['coords']) )
|
||||||
|
$subject_set['subject']['coords'] = $subject['coords'];
|
||||||
|
|
||||||
|
/* (6) On récupère les noms des contacts */
|
||||||
$contactsById = []; // idContact -> nomContact, typeEnquete ('mini' ou 'fiche')
|
$contactsById = []; // idContact -> nomContact, typeEnquete ('mini' ou 'fiche')
|
||||||
|
|
||||||
foreach($subject_set['contacts'] as $contactId){
|
foreach($subject_set['contacts'] as $contactId){
|
||||||
|
@ -230,7 +234,12 @@
|
||||||
'contextExtra' => $ficheData['contextSpecial'],
|
'contextExtra' => $ficheData['contextSpecial'],
|
||||||
'freq' => $ficheData['freq'],
|
'freq' => $ficheData['freq'],
|
||||||
'connect' => $ficheData['connect'],
|
'connect' => $ficheData['connect'],
|
||||||
'connectExtra' => $ficheData['connectSpecial']
|
'connectExtra' => $ficheData['connectSpecial'],
|
||||||
|
'medsoc' => $ficheData['medsoc'],
|
||||||
|
'interest' => $ficheData['interest'],
|
||||||
|
'irlfreq' => $ficheData['irlfreq'],
|
||||||
|
'relmark' => $ficheData['relmark'],
|
||||||
|
'medrel' => $ficheData['medrel']
|
||||||
] );
|
] );
|
||||||
|
|
||||||
// On ajoute le contact dans la liste des contacts du sujet (si pas déja)
|
// On ajoute le contact dans la liste des contacts du sujet (si pas déja)
|
||||||
|
@ -422,7 +431,7 @@
|
||||||
|
|
||||||
/* TRAITE LES DONNÉES D'UN FORMULAIRE DE TYPE FACEBOOK
|
/* TRAITE LES DONNÉES D'UN FORMULAIRE DE TYPE FACEBOOK
|
||||||
*
|
*
|
||||||
* @subject<id> Id du sujet concerné
|
* @subject<Array> Données du sujet concerné
|
||||||
* @contacts<Array> Tableau contenant les données des contacts
|
* @contacts<Array> Tableau contenant les données des contacts
|
||||||
* @mini<Array> Tableau contenant les données des mini fiches relation
|
* @mini<Array> Tableau contenant les données des mini fiches relation
|
||||||
* @fiches<Array> Tableau contenant les données des fiches relation
|
* @fiches<Array> Tableau contenant les données des fiches relation
|
||||||
|
@ -449,7 +458,7 @@
|
||||||
$offset = intval($uniqid) + 1;
|
$offset = intval($uniqid) + 1;
|
||||||
|
|
||||||
// on enregistre l'id du sujet
|
// on enregistre l'id du sujet
|
||||||
$subject_id = intval($subject);
|
$subject_id = intval($subject['subject_id']);
|
||||||
|
|
||||||
// Contiendra la valeur de l'id maximum
|
// Contiendra la valeur de l'id maximum
|
||||||
$maxId = $offset;
|
$maxId = $offset;
|
||||||
|
@ -488,7 +497,11 @@
|
||||||
if( !in_array('facebook', $subject_set['subject']['surveys']) )
|
if( !in_array('facebook', $subject_set['subject']['surveys']) )
|
||||||
$subject_set['subject']['surveys'][] = 'facebook';
|
$subject_set['subject']['surveys'][] = 'facebook';
|
||||||
|
|
||||||
/* (5) On récupère les noms des contacts */
|
/* (5) On met à jour si le sujet veut renouveller l'enquête plus tard */
|
||||||
|
if( !empty($subject['coords']) )
|
||||||
|
$subject_set['subject']['coords'] = $subject['coords'];
|
||||||
|
|
||||||
|
/* (6) On récupère les noms des contacts */
|
||||||
$contactsById = []; // idContact -> nomContact, typeEnquete ('mini' ou 'fiche')
|
$contactsById = []; // idContact -> nomContact, typeEnquete ('mini' ou 'fiche')
|
||||||
|
|
||||||
foreach($subject_set['contacts'] as $contactId){
|
foreach($subject_set['contacts'] as $contactId){
|
||||||
|
|
|
@ -114,6 +114,11 @@
|
||||||
}
|
}
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
/* [2] Gestion des relations
|
||||||
|
=========================================================*/
|
||||||
|
/* (1) On récupère toutes les relations */
|
||||||
|
//blabla
|
||||||
|
|
||||||
|
|
||||||
/* [4] Gestion du retour
|
/* [4] Gestion du retour
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
|
|
|
@ -78,13 +78,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
/* [3] Construction du chemin
|
/* [3] Construction du chemin
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) On construit le chemin */
|
/* (1) On construit le chemin */
|
||||||
$path = __BUILD__.$uploadAuth['root'].'/'.$prefix.'/';
|
$path = __PUBLIC__.$uploadAuth['root'].'/'.$prefix.'/';
|
||||||
|
|
||||||
/* (2) On crée le dossier s'il n'existe pas */
|
/* (2) On crée le dossier s'il n'existe pas */
|
||||||
if ( !file_exists($path) ) mkdir($path, 0775, true);
|
if ( !file_exists($path) ) mkdir($path, 0775, true);
|
||||||
|
@ -82,8 +82,8 @@
|
||||||
*/
|
*/
|
||||||
private static function simpleFile($prefix, $extension, $file, $tester){
|
private static function simpleFile($prefix, $extension, $file, $tester){
|
||||||
// Si on est pas connecté, on retourne une erreur -> impossible via token
|
// Si on est pas connecté, on retourne une erreur -> impossible via token
|
||||||
if( !connected() ) return [ 'error' => ManagerError::PermissionError ];
|
if( !connected() ) return ManagerError::PermissionError;
|
||||||
if( !file_exists($file['tmp_name']) ) return [ 'error' => ManagerError::UnreachableResource ];
|
if( !file_exists($file['tmp_name']) ) return ManagerError::UnreachableResource;
|
||||||
|
|
||||||
|
|
||||||
/* [1] On récupère le chemin du fichier à créer et vérifie le dossier
|
/* [1] On récupère le chemin du fichier à créer et vérifie le dossier
|
||||||
|
@ -158,6 +158,7 @@
|
||||||
|
|
||||||
/* (3) Vérification du sujet */
|
/* (3) Vérification du sujet */
|
||||||
$checkSubject = isset($json['subject']['subject_id']) && is_numeric($json['subject']['subject_id']);
|
$checkSubject = isset($json['subject']['subject_id']) && is_numeric($json['subject']['subject_id']);
|
||||||
|
$checkSubject = $checkSubject && isset($json['subject']['coords']) && is_string($json['subject']['coords']);
|
||||||
|
|
||||||
// Erreur des attributs du sujet incorrects ou manquants
|
// Erreur des attributs du sujet incorrects ou manquants
|
||||||
if( !$checkSubject )
|
if( !$checkSubject )
|
||||||
|
@ -167,10 +168,11 @@
|
||||||
/* (4) Vérification des contacts */
|
/* (4) Vérification des contacts */
|
||||||
foreach($json['contacts'] as $contact){
|
foreach($json['contacts'] as $contact){
|
||||||
$checkContact = isset($contact['uid']) && is_numeric($contact['uid']);
|
$checkContact = isset($contact['uid']) && is_numeric($contact['uid']);
|
||||||
$checkContact = $checkContact && isset($contact['username']) && is_string($contact['username']);
|
$checkContact = $checkContact && (
|
||||||
// Existing ou username.length > 0
|
( isset($contact['username']) && is_string($contact['username']) )
|
||||||
$checkContact = $checkContact && isset($contact['existing']);
|
||
|
||||||
$checkContact = $checkContact && ( strlen($contact['username']) > 0 || intval($contact['existing']) == $contact['existing'] );
|
( isset($contact['existing']) && is_numeric($contact['existing']) )
|
||||||
|
);
|
||||||
// $checkContact = $checkContact && isset($contact['sms']) && is_numeric($contact['sms']);
|
// $checkContact = $checkContact && isset($contact['sms']) && is_numeric($contact['sms']);
|
||||||
// $checkContact = $checkContact && isset($contact['call']) && is_numeric($contact['call']);
|
// $checkContact = $checkContact && isset($contact['call']) && is_numeric($contact['call']);
|
||||||
// $checkContact = $checkContact && isset($contact['countsms']) && is_numeric($contact['countsms']);
|
// $checkContact = $checkContact && isset($contact['countsms']) && is_numeric($contact['countsms']);
|
||||||
|
@ -182,7 +184,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* (5) Vérification des mini-fiches */
|
/* (5) Vérification des mini-fiches */
|
||||||
foreach($json['mini'] as $mini){
|
foreach($json['mini'] as $mini){
|
||||||
$checkMini = isset($mini['uid']) && is_numeric($mini['uid']);
|
$checkMini = isset($mini['uid']) && is_numeric($mini['uid']);
|
||||||
|
@ -199,18 +200,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* (6) Vérification des fiches */
|
/* (6) Vérification des fiches */
|
||||||
foreach($json['fiches'] as $fiches){
|
foreach($json['fiches'] as $fiches){
|
||||||
$checkFiche = isset($fiches['uid']) && is_numeric($fiches['uid']);
|
$checkFiche = isset($fiches['uid']) && is_numeric($fiches['uid']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['contact']) && is_numeric($fiches['contact']);
|
$checkFiche = $checkFiche && isset($fiches['contact']) && is_numeric($fiches['contact']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['sexe']) && is_numeric($fiches['sexe']);
|
$checkFiche = $checkFiche && isset($fiches['sexe']) && is_numeric($fiches['sexe']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['age']) && is_string($fiches['age']);
|
$checkFiche = $checkFiche && isset($fiches['age']) && is_string($fiches['age']);
|
||||||
|
$checkFiche = $checkFiche && isset($fiches['interest']) && is_numeric($fiches['interest']);
|
||||||
|
$checkFiche = $checkFiche && isset($fiches['relmark']) && is_numeric($fiches['relmark']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['job']) && is_string($fiches['job']);
|
$checkFiche = $checkFiche && isset($fiches['job']) && is_string($fiches['job']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['loc']) && (is_numeric($fiches['loc']) || $fiches['loc']=='.');
|
$checkFiche = $checkFiche && isset($fiches['loc']) && (is_numeric($fiches['loc']) || $fiches['loc']=='.');
|
||||||
$checkFiche = $checkFiche && isset($fiches['studies']) && is_string($fiches['studies']);
|
$checkFiche = $checkFiche && isset($fiches['studies']) && is_string($fiches['studies']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['famsit']) && is_numeric($fiches['famsit']);
|
$checkFiche = $checkFiche && isset($fiches['famsit']) && is_numeric($fiches['famsit']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['reltype']) && is_numeric($fiches['reltype']);
|
$checkFiche = $checkFiche && isset($fiches['reltype']) && is_numeric($fiches['reltype']);
|
||||||
|
$checkFiche = $checkFiche && isset($fiches['medsoc']) && is_numeric($fiches['medsoc']);
|
||||||
|
$checkFiche = $checkFiche && isset($fiches['medrel']) && is_numeric($fiches['medrel']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['reltypeSpecial']) && is_string($fiches['reltypeSpecial']);
|
$checkFiche = $checkFiche && isset($fiches['reltypeSpecial']) && is_string($fiches['reltypeSpecial']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['city']) && is_string($fiches['city']);
|
$checkFiche = $checkFiche && isset($fiches['city']) && is_string($fiches['city']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['cp']) && is_string($fiches['cp']);
|
$checkFiche = $checkFiche && isset($fiches['cp']) && is_string($fiches['cp']);
|
||||||
|
@ -218,6 +222,7 @@
|
||||||
$checkFiche = $checkFiche && isset($fiches['context']) && is_numeric($fiches['context']);
|
$checkFiche = $checkFiche && isset($fiches['context']) && is_numeric($fiches['context']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['contextSpecial']) && is_array($fiches['contextSpecial']);
|
$checkFiche = $checkFiche && isset($fiches['contextSpecial']) && is_array($fiches['contextSpecial']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['freq']) && is_array($fiches['freq']);
|
$checkFiche = $checkFiche && isset($fiches['freq']) && is_array($fiches['freq']);
|
||||||
|
$checkFiche = $checkFiche && isset($fiches['irlfreq']) && is_array($fiches['irlfreq']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['connect']) && is_array($fiches['connect']);
|
$checkFiche = $checkFiche && isset($fiches['connect']) && is_array($fiches['connect']);
|
||||||
$checkFiche = $checkFiche && isset($fiches['connectSpecial']) && is_array($fiches['connectSpecial']);
|
$checkFiche = $checkFiche && isset($fiches['connectSpecial']) && is_array($fiches['connectSpecial']);
|
||||||
|
|
||||||
|
|
|
@ -1,43 +1,43 @@
|
||||||
{"id":2,"name":"contact-x","sexe":"1","age":"6","studies2":"01","reltype":"7","dist":"1","job":"82","famsit":"0","city":"35","cp":"10025","quartier":"25","duration":["25","125"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":554,"name":"contact-x","sexe":"1","age":"6","studies2":"","reltype":"1","dist":"1","job":"2","famsit":"1","city":"35","cp":"10025","quartier":"25","duration":["25","125"],"context":"11","contextExtra":["internet","",""],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":3,"name":"contact-1","sexe":"0","age":"6","studies2":"06","reltype":"6","dist":"2","job":"36","famsit":"0","city":"16","cp":"10006","quartier":"6","duration":["6","16"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":555,"name":"contact-1","sexe":"0","age":"6","studies2":"","reltype":"6","dist":"2","job":"6","famsit":"2","city":"16","cp":"10006","quartier":"6","duration":["6","16"],"context":"6","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":4,"name":"contact-2","sexe":"1","age":"7","studies2":"07","reltype":"7","dist":"3","job":"41","famsit":"0","city":"17","cp":"10007","quartier":"7","duration":["7","17"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":556,"name":"contact-2","sexe":"1","age":"7","studies2":"","reltype":"autre","dist":"3","job":"7","famsit":"3","city":"17","cp":"10007","quartier":"7","duration":["7","17"],"context":"7","contextExtra":["","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":5,"name":"contact-3","sexe":"2","age":"8","studies2":"08","reltype":"autre","dist":"0","job":"46","famsit":"0","city":"18","cp":"10008","quartier":"8","duration":["8","18"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":557,"name":"contact-3","sexe":"2","age":"8","studies2":"","reltype":"0","dist":"0","job":"8","famsit":"0","city":"18","cp":"10008","quartier":"8","duration":["8","18"],"context":"8","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":6,"name":"contact-4","sexe":"0","age":"9","studies2":"09","reltype":"0","dist":"1","job":"47","famsit":"0","city":"19","cp":"10009","quartier":"9","duration":["9","19"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":558,"name":"contact-4","sexe":"0","age":"9","studies2":"","reltype":"1","dist":"1","job":"9","famsit":"1","city":"19","cp":"10009","quartier":"9","duration":["9","19"],"context":"9","contextExtra":["","",""],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":7,"name":"contact-5","sexe":"1","age":"10","studies2":"10","reltype":"1","dist":"2","job":"48","famsit":"0","city":"20","cp":"10010","quartier":"10","duration":["10","110"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":559,"name":"contact-5","sexe":"1","age":"10","studies2":"","reltype":"2","dist":"2","job":"1","famsit":"2","city":"20","cp":"10010","quartier":"10","duration":["10","110"],"context":"10","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":8,"name":"contact-6","sexe":"2","age":"11","studies2":"11","reltype":"2","dist":"3","job":"51","famsit":"0","city":"21","cp":"10011","quartier":"11","duration":["11","111"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":560,"name":"contact-6","sexe":"2","age":"11","studies2":"","reltype":"3","dist":"3","job":"1","famsit":"3","city":"21","cp":"10011","quartier":"11","duration":["11","111"],"context":"11","contextExtra":["internet","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":9,"name":"contact-7","sexe":"0","age":"12","studies2":"","reltype":"3","dist":"0","job":"54","famsit":"0","city":"22","cp":"10012","quartier":"12","duration":["12","112"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":561,"name":"contact-7","sexe":"0","age":"12","studies2":"","reltype":"4","dist":"0","job":"1","famsit":"0","city":"22","cp":"10012","quartier":"12","duration":["12","112"],"context":"12","contextExtra":["","association",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":10,"name":"contact-8","sexe":"1","age":"13","studies2":"01","reltype":"4","dist":"1","job":"55","famsit":"0","city":"23","cp":"10013","quartier":"13","duration":["13","113"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":562,"name":"contact-8","sexe":"1","age":"13","studies2":"","reltype":"5","dist":"1","job":"0","famsit":"1","city":"23","cp":"10013","quartier":"13","duration":["13","113"],"context":"13","contextExtra":["","","autre"],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":11,"name":"contact-9","sexe":"2","age":"14","studies2":"02","reltype":"5","dist":"2","job":"56","famsit":"0","city":"24","cp":"10014","quartier":"14","duration":["14","114"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":563,"name":"contact-9","sexe":"2","age":"14","studies2":"","reltype":"6","dist":"2","job":"1","famsit":"2","city":"24","cp":"10014","quartier":"14","duration":["14","114"],"context":"0","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":12,"name":"contact-10","sexe":"0","age":"15","studies2":"03","reltype":"6","dist":"3","job":"61","famsit":"0","city":"25","cp":"10015","quartier":"15","duration":["15","115"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":564,"name":"contact-10","sexe":"0","age":"15","studies2":"","reltype":"autre","dist":"3","job":"2","famsit":"3","city":"25","cp":"10015","quartier":"15","duration":["15","115"],"context":"1","contextExtra":["","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":13,"name":"contact-11","sexe":"1","age":"16","studies2":"04","reltype":"7","dist":"0","job":"66","famsit":"0","city":"26","cp":"10016","quartier":"16","duration":["16","116"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":565,"name":"contact-11","sexe":"1","age":"16","studies2":"","reltype":"0","dist":"0","job":"3","famsit":"0","city":"26","cp":"10016","quartier":"16","duration":["16","116"],"context":"2","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":14,"name":"contact-12","sexe":"2","age":"17","studies2":"05","reltype":"autre","dist":"1","job":"69","famsit":"0","city":"27","cp":"10017","quartier":"17","duration":["17","117"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":566,"name":"contact-12","sexe":"2","age":"17","studies2":"","reltype":"1","dist":"1","job":"4","famsit":"1","city":"27","cp":"10017","quartier":"17","duration":["17","117"],"context":"3","contextExtra":["","",""],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":15,"name":"contact-13","sexe":"0","age":"18","studies2":"06","reltype":"0","dist":"2","job":"71","famsit":"0","city":"28","cp":"10018","quartier":"18","duration":["18","118"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":567,"name":"contact-13","sexe":"0","age":"18","studies2":"","reltype":"2","dist":"2","job":"5","famsit":"2","city":"28","cp":"10018","quartier":"18","duration":["18","118"],"context":"4","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":16,"name":"contact-14","sexe":"1","age":"0","studies2":"07","reltype":"1","dist":"3","job":"72","famsit":"0","city":"29","cp":"10019","quartier":"19","duration":["19","119"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":568,"name":"contact-14","sexe":"1","age":"0","studies2":"","reltype":"3","dist":"3","job":"6","famsit":"3","city":"29","cp":"10019","quartier":"19","duration":["19","119"],"context":"5","contextExtra":["","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":17,"name":"contact-15","sexe":"2","age":"1","studies2":"08","reltype":"2","dist":"0","job":"73","famsit":"0","city":"30","cp":"10020","quartier":"20","duration":["20","120"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":569,"name":"contact-15","sexe":"2","age":"1","studies2":"","reltype":"4","dist":"0","job":"7","famsit":"0","city":"30","cp":"10020","quartier":"20","duration":["20","120"],"context":"6","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":18,"name":"contact-16","sexe":"0","age":"2","studies2":"09","reltype":"3","dist":"1","job":"74","famsit":"0","city":"31","cp":"10021","quartier":"21","duration":["21","121"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":570,"name":"contact-16","sexe":"0","age":"2","studies2":"","reltype":"5","dist":"1","job":"8","famsit":"1","city":"31","cp":"10021","quartier":"21","duration":["21","121"],"context":"7","contextExtra":["","",""],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":19,"name":"contact-17","sexe":"1","age":"3","studies2":"10","reltype":"4","dist":"2","job":"75","famsit":"0","city":"32","cp":"10022","quartier":"22","duration":["22","122"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":571,"name":"contact-17","sexe":"1","age":"3","studies2":"","reltype":"6","dist":"2","job":"9","famsit":"2","city":"32","cp":"10022","quartier":"22","duration":["22","122"],"context":"8","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":20,"name":"contact-18","sexe":"2","age":"4","studies2":"11","reltype":"5","dist":"3","job":"76","famsit":"0","city":"33","cp":"10023","quartier":"23","duration":["23","123"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":572,"name":"contact-18","sexe":"2","age":"4","studies2":"","reltype":"autre","dist":"3","job":"0","famsit":"3","city":"33","cp":"10023","quartier":"23","duration":["23","123"],"context":"9","contextExtra":["","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":21,"name":"contact-19","sexe":"0","age":"5","studies2":"","reltype":"6","dist":"0","job":"81","famsit":"0","city":"34","cp":"10024","quartier":"24","duration":["24","124"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":573,"name":"contact-19","sexe":"0","age":"5","studies2":"","reltype":"0","dist":"0","job":"1","famsit":"0","city":"34","cp":"10024","quartier":"24","duration":["24","124"],"context":"10","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":23,"name":"contact-21","sexe":"2","age":"7","studies2":"02","reltype":"autre","dist":"2","job":"10","famsit":"0","city":"36","cp":"10026","quartier":"26","duration":["26","126"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":575,"name":"contact-21","sexe":"2","age":"7","studies2":"","reltype":"2","dist":"2","job":"0","famsit":"2","city":"36","cp":"10026","quartier":"26","duration":["26","126"],"context":"12","contextExtra":["","association",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":24,"name":"contact-22","sexe":"0","age":"8","studies2":"03","reltype":"0","dist":"3","job":"21","famsit":"0","city":"37","cp":"10027","quartier":"27","duration":["27","127"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":576,"name":"contact-22","sexe":"0","age":"8","studies2":"","reltype":"3","dist":"3","job":"1","famsit":"3","city":"37","cp":"10027","quartier":"27","duration":["27","127"],"context":"13","contextExtra":["","","autre"],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":25,"name":"contact-23","sexe":"1","age":"9","studies2":"04","reltype":"1","dist":"0","job":"22","famsit":"0","city":"38","cp":"10028","quartier":"28","duration":["28","128"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":577,"name":"contact-23","sexe":"1","age":"9","studies2":"","reltype":"4","dist":"0","job":"2","famsit":"0","city":"38","cp":"10028","quartier":"28","duration":["28","128"],"context":"0","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":26,"name":"contact-24","sexe":"2","age":"10","studies2":"05","reltype":"2","dist":"1","job":"23","famsit":"0","city":"39","cp":"10029","quartier":"29","duration":["29","129"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":578,"name":"contact-24","sexe":"2","age":"10","studies2":"","reltype":"5","dist":"1","job":"3","famsit":"1","city":"39","cp":"10029","quartier":"29","duration":["29","129"],"context":"1","contextExtra":["","",""],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":27,"name":"contact-25","sexe":"0","age":"11","studies2":"06","reltype":"3","dist":"2","job":"31","famsit":"0","city":"40","cp":"10030","quartier":"30","duration":["30","130"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":579,"name":"contact-25","sexe":"0","age":"11","studies2":"","reltype":"6","dist":"2","job":"4","famsit":"2","city":"40","cp":"10030","quartier":"30","duration":["30","130"],"context":"2","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":28,"name":"contact-26","sexe":"1","age":"12","studies2":"07","reltype":"4","dist":"3","job":"32","famsit":"0","city":"41","cp":"10031","quartier":"31","duration":["31","131"],"context":"3","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":580,"name":"contact-26","sexe":"1","age":"12","studies2":"","reltype":"autre","dist":"3","job":"5","famsit":"3","city":"41","cp":"10031","quartier":"31","duration":["31","131"],"context":"3","contextExtra":["","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":29,"name":"contact-27","sexe":"2","age":"13","studies2":"08","reltype":"5","dist":"0","job":"36","famsit":"0","city":"42","cp":"10032","quartier":"32","duration":["32","132"],"context":"4","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":581,"name":"contact-27","sexe":"2","age":"13","studies2":"","reltype":"0","dist":"0","job":"6","famsit":"0","city":"42","cp":"10032","quartier":"32","duration":["32","132"],"context":"4","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":30,"name":"contact-28","sexe":"0","age":"14","studies2":"09","reltype":"6","dist":"1","job":"41","famsit":"0","city":"43","cp":"10033","quartier":"33","duration":["33","133"],"context":"5","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":582,"name":"contact-28","sexe":"0","age":"14","studies2":"","reltype":"1","dist":"1","job":"7","famsit":"1","city":"43","cp":"10033","quartier":"33","duration":["33","133"],"context":"5","contextExtra":["","",""],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":31,"name":"contact-29","sexe":"1","age":"15","studies2":"10","reltype":"7","dist":"2","job":"46","famsit":"0","city":"44","cp":"10034","quartier":"34","duration":["34","134"],"context":"6","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":583,"name":"contact-29","sexe":"1","age":"15","studies2":"","reltype":"2","dist":"2","job":"8","famsit":"2","city":"44","cp":"10034","quartier":"34","duration":["34","134"],"context":"6","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":32,"name":"contact-30","sexe":"2","age":"16","studies2":"11","reltype":"autre","dist":"3","job":"47","famsit":"0","city":"45","cp":"10035","quartier":"35","duration":["35","135"],"context":"7","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":584,"name":"contact-30","sexe":"2","age":"16","studies2":"","reltype":"3","dist":"3","job":"9","famsit":"3","city":"45","cp":"10035","quartier":"35","duration":["35","135"],"context":"7","contextExtra":["","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":33,"name":"contact-31","sexe":"0","age":"17","studies2":"","reltype":"0","dist":"0","job":"48","famsit":"0","city":"46","cp":"10036","quartier":"36","duration":["36","136"],"context":"8","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":585,"name":"contact-31","sexe":"0","age":"17","studies2":"","reltype":"4","dist":"0","job":"1","famsit":"0","city":"46","cp":"10036","quartier":"36","duration":["36","136"],"context":"8","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":34,"name":"contact-32","sexe":"1","age":"18","studies2":"01","reltype":"1","dist":"1","job":"51","famsit":"0","city":"47","cp":"10037","quartier":"37","duration":["37","137"],"context":"9","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":586,"name":"contact-32","sexe":"1","age":"18","studies2":"","reltype":"5","dist":"1","job":"1","famsit":"1","city":"47","cp":"10037","quartier":"37","duration":["37","137"],"context":"9","contextExtra":["","",""],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":35,"name":"contact-33","sexe":"2","age":"0","studies2":"02","reltype":"2","dist":"2","job":"54","famsit":"0","city":"48","cp":"10038","quartier":"38","duration":["38","138"],"context":"10","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":587,"name":"contact-33","sexe":"2","age":"0","studies2":"","reltype":"6","dist":"2","job":"1","famsit":"2","city":"48","cp":"10038","quartier":"38","duration":["38","138"],"context":"10","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":36,"name":"contact-34","sexe":"0","age":"1","studies2":"03","reltype":"3","dist":"3","job":"55","famsit":"0","city":"49","cp":"10039","quartier":"39","duration":["39","139"],"context":"11","contextExtra":["internet","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":588,"name":"contact-34","sexe":"0","age":"1","studies2":"","reltype":"autre","dist":"3","job":"0","famsit":"3","city":"49","cp":"10039","quartier":"39","duration":["39","139"],"context":"11","contextExtra":["internet","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":37,"name":"contact-35","sexe":"1","age":"2","studies2":"04","reltype":"4","dist":"0","job":"56","famsit":"0","city":"50","cp":"10040","quartier":"40","duration":["40","140"],"context":"12","contextExtra":["","association",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":589,"name":"contact-35","sexe":"1","age":"2","studies2":"","reltype":"0","dist":"0","job":"1","famsit":"0","city":"50","cp":"10040","quartier":"40","duration":["40","140"],"context":"12","contextExtra":["","association",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":38,"name":"contact-36","sexe":"2","age":"3","studies2":"05","reltype":"5","dist":"1","job":"61","famsit":"0","city":"51","cp":"10041","quartier":"41","duration":["41","141"],"context":"13","contextExtra":["","","autre"],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":590,"name":"contact-36","sexe":"2","age":"3","studies2":"","reltype":"1","dist":"1","job":"2","famsit":"1","city":"51","cp":"10041","quartier":"41","duration":["41","141"],"context":"13","contextExtra":["","","autre"],"freq":["1","6","11","16","21"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":39,"name":"contact-37","sexe":"0","age":"4","studies2":"06","reltype":"6","dist":"2","job":"66","famsit":"0","city":"52","cp":"10042","quartier":"42","duration":["42","142"],"context":"0","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":591,"name":"contact-37","sexe":"0","age":"4","studies2":"","reltype":"2","dist":"2","job":"3","famsit":"2","city":"52","cp":"10042","quartier":"42","duration":["42","142"],"context":"0","contextExtra":["","",""],"freq":["2","7","12","17","22"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":40,"name":"contact-38","sexe":"1","age":"5","studies2":"07","reltype":"7","dist":"3","job":"69","famsit":"0","city":"53","cp":"10043","quartier":"43","duration":["43","143"],"context":"1","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":592,"name":"contact-38","sexe":"1","age":"5","studies2":"","reltype":"3","dist":"3","job":"4","famsit":"3","city":"53","cp":"10043","quartier":"43","duration":["43","143"],"context":"1","contextExtra":["","",""],"freq":["3","8","13","18","23"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
||||||
{"id":41,"name":"contact-39","sexe":"2","age":"6","studies2":"08","reltype":"autre","dist":"0","job":"71","famsit":"0","city":"54","cp":"10044","quartier":"44","duration":["44","144"],"context":"2","contextExtra":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectExtra":["",""]}
|
{"id":593,"name":"contact-39","sexe":"2","age":"6","studies2":"1","reltype":"4","dist":"0","job":"5","famsit":"0","city":"54","cp":"10044","quartier":"44","duration":["44","144"],"context":"2","contextExtra":["","",""],"freq":["0","5","10","15","20"],"connect":["0","2","4","6","8","10"],"connectExtra":["",""]}
|
||||||
{"id":43,"name":"contact-41","sexe":"1","age":"","studies1":"2","reltype":"1","dist":"."}
|
{"id":595,"name":"contact-41","sexe":"1","age":"1","studies1":"2","reltype":"1","dist":"0"}
|
||||||
{"id":44,"name":"contact-42","sexe":"0","age":"2","studies1":"3","reltype":"2","dist":"."}
|
{"id":596,"name":"contact-42","sexe":"0","age":"2","studies1":"3","reltype":"2","dist":"1"}
|
||||||
{"id":45,"name":"contact-43","sexe":"1","age":"3","studies1":"4","reltype":"3","dist":"."}
|
{"id":597,"name":"contact-43","sexe":"1","age":"3","studies1":"4","reltype":"3","dist":"2"}
|
||||||
{"id":46,"name":"contact-44","sexe":"0","age":"4","studies1":"5","reltype":"4","dist":"."}
|
{"id":598,"name":"contact-44","sexe":"0","age":"4","studies1":"5","reltype":"4","dist":"3"}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"2":{"line":0},"3":{"line":1},"4":{"line":2},"5":{"line":3},"6":{"line":4},"7":{"line":5},"8":{"line":6},"9":{"line":7},"10":{"line":8},"11":{"line":9},"12":{"line":10},"13":{"line":11},"14":{"line":12},"15":{"line":13},"16":{"line":14},"17":{"line":15},"18":{"line":16},"19":{"line":17},"20":{"line":18},"21":{"line":19},"23":{"line":20},"24":{"line":21},"25":{"line":22},"26":{"line":23},"27":{"line":24},"28":{"line":25},"29":{"line":26},"30":{"line":27},"31":{"line":28},"32":{"line":29},"33":{"line":30},"34":{"line":31},"35":{"line":32},"36":{"line":33},"37":{"line":34},"38":{"line":35},"39":{"line":36},"40":{"line":37},"41":{"line":38},"43":{"line":39},"44":{"line":40},"45":{"line":41},"46":{"line":42}}
|
{"554":{"line":0},"555":{"line":1},"556":{"line":2},"557":{"line":3},"558":{"line":4},"559":{"line":5},"560":{"line":6},"561":{"line":7},"562":{"line":8},"563":{"line":9},"564":{"line":10},"565":{"line":11},"566":{"line":12},"567":{"line":13},"568":{"line":14},"569":{"line":15},"570":{"line":16},"571":{"line":17},"572":{"line":18},"573":{"line":19},"575":{"line":20},"576":{"line":21},"577":{"line":22},"578":{"line":23},"579":{"line":24},"580":{"line":25},"581":{"line":26},"582":{"line":27},"583":{"line":28},"584":{"line":29},"585":{"line":30},"586":{"line":31},"587":{"line":32},"588":{"line":33},"589":{"line":34},"590":{"line":35},"591":{"line":36},"592":{"line":37},"593":{"line":38},"595":{"line":39},"596":{"line":40},"597":{"line":41},"598":{"line":42}}
|
|
@ -7,6 +7,48 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
"questions": {
|
||||||
|
"sexe": { "x": "Civilité" },
|
||||||
|
"age": { "x": "Age" },
|
||||||
|
"studies1": { "x": "Niveau d'études maximal (fiche rapide)" },
|
||||||
|
"studies2": { "x": "Niveau d'études maximal (fiche complète)" },
|
||||||
|
"job": { "x": "Dernière profession exercée" },
|
||||||
|
"city": { "x": "Où habite t-elle/il ? (ville)" },
|
||||||
|
"cp": { "x": "Où habite t-elle/il ? (code postal)" },
|
||||||
|
"quartier": { "x": "Où habite t-elle/il ? (quartier)" },
|
||||||
|
"context": { "x": "Contexte de rencontre" },
|
||||||
|
"contextExtra": { "0": "Internet (quel contexte ? préciser)",
|
||||||
|
"1": "Par une association (quel type ? préciser)",
|
||||||
|
"2": "Autre" },
|
||||||
|
"famsit": { "x": "Situation familiale" },
|
||||||
|
"reltype": { "x": "Type de relation" },
|
||||||
|
"dist": { "x": "À combien de temps est-ce de chez vous (en voiture) ? (si deux domiciles, le plus proche)" },
|
||||||
|
"duration": { "0": "Depuis quand connaissez-vous cette personne ? (mois)",
|
||||||
|
"1": "Depuis quand connaissez-vous cette personne ? (années)" },
|
||||||
|
"freq": { "0": "Avec quelle fréquence discutez-vous avec cette personne face à face ?",
|
||||||
|
"1": "Avec quelle fréquence discutez-vous avec cette personne via téléphone ou skype et équivalent ?",
|
||||||
|
"2": "Avec quelle fréquence discutez-vous avec cette personne via SMS et équivalents ?",
|
||||||
|
"3": "Avec quelle fréquence discutez-vous avec cette personne via courrier éléctronique ?",
|
||||||
|
"4": "Avec quelle fréquence discutez-vous avec cette personne via facebook ou autre réseau social ?" },
|
||||||
|
"irlfreq": { "0": "Selon vous, à quelle fréquence cette personne publie des commentaires personnels ou réagit aux publications des autres ?",
|
||||||
|
"1": "Selon vous, à quelle fréquence cette personne publie des photos personnelles (profil, voyages, etc.) ?",
|
||||||
|
"2": "Selon vous, à quelle fréquence cette personne partage de la musique ou des clips musicaux ?",
|
||||||
|
"3": "Selon vous, à quelle fréquence cette personne partage des informations culturelles (concert, exposition, etc.) ?",
|
||||||
|
"4": "Selon vous, à quelle fréquence cette personne partage des articles, des informations, des contenus avec une portée politique ?" },
|
||||||
|
"connect": { "0": "Ses coordonnées sont dans votre carnet d'adresse",
|
||||||
|
"1": "Son numéro de mobile est enregistré sur votre mobile (ou vous-mêmes êtes sur le sien)",
|
||||||
|
"2": "Elle figure parmi vos amis facebook (idem)",
|
||||||
|
"3": "Elle figure parmi vos amis facebook et vous interagissez avec elle sur ce dispositif régulièrement (idem)",
|
||||||
|
"4": "Vous le suivez sur Twitter (ou elle vous suit)",
|
||||||
|
"5": "Vous communiquez avec cette personne sur Twitter (idem)" },
|
||||||
|
"connectExtra": { "0": "Vous communiquez dans autre réseau",
|
||||||
|
"1": "Vous communiquez dans un autre dispositif (blogs, jeu vidéo ou autre)" },
|
||||||
|
"medsoc": { "x": "Comment cette personne utilise-t-elle les médias sociaux de votre point de vue ?" },
|
||||||
|
"medrel": { "x": "Considérez-vous que vos échange avec cette personne à travers les médias sociaux" },
|
||||||
|
"interest": { "x": "Sur une échelle de 1 à 5, préciser l'intérêt que vous accordez aux contenue qu'elle partage via les médias sociaux" },
|
||||||
|
"relmark": { "x": "Sur une échelle de 1 à 5, comment jugez-vous votre relation à cette personne ?" }
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,48 +75,31 @@
|
||||||
|
|
||||||
"studies2": {
|
"studies2": {
|
||||||
".": "NA",
|
".": "NA",
|
||||||
"0": "Inconnue",
|
"0": "Aucun diplôme, CEP, BEPC",
|
||||||
"01": "Pas de scolarité",
|
"1": "CAP, CAPA, BEP, BEPA, Brevet de compagnon, Diplômes sociaux (aide-soignante, auxiliaire de puériculture, travailleuse familiale)",
|
||||||
"02": "Aucun diplôme mais scolarité jusqu'en école primaire ou au collège",
|
"2": "Bac technologique ou professionnel, brevet professionnel ou de technicien",
|
||||||
"03": "Aucun diplôme mais scolarité au-delà du collège",
|
"3": "Baccalauréat général, brevet supérieur",
|
||||||
"04": "Certificat d'études primaires (CEP)",
|
"4": "Diplôme universitaire de 1er cycle: Licence, BTS, DUT",
|
||||||
"05": "BEPC, brevet élémentaire, brevet des collèges",
|
"5": "Diplôme universitaire de 2ème cycle : MASTER, Maîtrise ou DEA, CAPES",
|
||||||
"06": "Certificat d'aptitudes professionnelles (CAP), brevet de compagnon, y compris CAPA",
|
"6": "Doctorat (y compris médecine, pharmacie, dentaire)",
|
||||||
"07": "Brevet d'études professionnelles (BEP), y compris BEPA et diplômes agricoles (BAA, BPA) Diplômes sociaux (aide-soignante, auxiliaire de puériculture, travailleuse familiale)",
|
"7": "Diplôme d'ingénieur, diplôme d'une grande école de commerce"
|
||||||
"08": "Baccalauréat général, brevet supérieur BAC ( L, ES, S ou A, B , C, D, D’, E )",
|
|
||||||
"09": "Bac technologique ou professionnel, brevet professionnel ou de technicien BAC (STI, STL, SMS, STT ou F, G, H) BEC, BEI, BEH, capacité en droit Brevet de technicien agricole (BTA)",
|
|
||||||
"10": "Diplôme universitaire de 1er cycle BTS, DUT, DEUG Diplôme des professions sociales ou de santé, d'infirmier(ère) Diplôme universitaire propédeutique, DUEL, DUES, DEUG, PCEM",
|
|
||||||
"11": "Diplôme universitaire de 2ème ou 3ème cycle MASTER, DOCTORAT (y compris médecine, pharmacie, dentaire), Maîtrise, DEA, DESS, CAPES, CAPET, agrégation Diplôme d'ingénieur, d'une grande école, etc."
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"job": {
|
"job": {
|
||||||
".": "NA",
|
".": "NA",
|
||||||
"10": "Agriculteurs exploitants (Agriculteurs, maraîchers, viticulteurs…)",
|
"0": "Agriculateur exploitants",
|
||||||
"21": "Artisans (Maçons, électriciens, couturiers, boulangers, garagistes, coiffeurs…)",
|
"1": "Artisans",
|
||||||
"22": "Commerçants et assimilés (Commerçants en détail ou en gros, buralistes, cafetiers, agents immobiliers…)",
|
"2": "Commerçants et assimilés",
|
||||||
"23": "Chefs d'entreprise de 10 salariés ou plus",
|
"3": "Chefs d'entreprise de 10 salariés ou plus",
|
||||||
"31": "Professions libérales et assimilés (Médecins, avocats, notaires, architectes libéraux…)",
|
"4": "Professions libérales et assimilés",
|
||||||
"32": "Cadres de la fonction publique, professions intellectuelles et artistiques (Personnels administratifs de catégorie A, professeurs de l’enseignement secondaire ou supérieur, médecins hospitaliers, artistes…)",
|
"5": "Cadres de la fonction publique, professions intellectuelles et artistiques",
|
||||||
"36": "Cadres d'entreprise (Cadres administratifs, cadres commerciaux, ingénieurs…)",
|
"6": "Cadres d'entreprise",
|
||||||
"41": "Professions intermédiaires de l'enseignement, de la santé, de la fonction publique et assimilés (Personnels administratifs de catégorie B, instituteurs, infirmiers, travailleurs sociaux…)",
|
"7": "Professions intermétiaires de l'enseignement, de la santé, de la fonction publique et assimilés",
|
||||||
"46": "Professions intermédiaires administratives et commerciales des entreprises (Comptables, chargés de clientèles…)",
|
"8": "Professions intermédiaires administratives et commerciales des entreprises",
|
||||||
"47": "Techniciens (Techniciens d’études, techniciens de contrôle, dessinateurs en bâtiment, géomètres…)",
|
"9": "Techniciens",
|
||||||
"48": "Contremaîtres, agents de maîtrise (Conducteurs de travaux, chefs d’équipe…)",
|
"10": "Contremaîtres, agents de maîtrise",
|
||||||
"51": "Employés de la fonction publique (Personnels de catégorie C, agents administratifs, agents de service…)",
|
"11": "Employés",
|
||||||
"54": "Employés administratifs d'entreprise (Secrétaires, agents d’accueil…)",
|
"12": "Ouvriers"
|
||||||
"55": "Employés de commerce (Vendeurs, caissiers…)",
|
|
||||||
"56": "Personnels des services directs aux particuliers (Serveurs, coiffeurs, assistantes maternelles…)",
|
|
||||||
"61": "Ouvriers qualifiés de type industriel ou artisanal (Mécaniciens, chauffeurs, cuisiniers…)",
|
|
||||||
"66": "Ouvriers non qualifiés de type industriel ou artisanal (Ouvrier de production, manœuvres…)",
|
|
||||||
"69": "Ouvriers agricoles (Bergers, ouvriers de la viticulture, bûcherons, ouvrier forestiers…)",
|
|
||||||
"71": "Anciens agriculteurs exploitants",
|
|
||||||
"72": "Anciens artisans, commerçants, chefs d'entreprise",
|
|
||||||
"73": "Anciens cadres",
|
|
||||||
"74": "Anciennes professions intermédiaires",
|
|
||||||
"75": "Anciens employés",
|
|
||||||
"76": "Anciens ouvriers",
|
|
||||||
"81": "Chômeurs n'ayant jamais travaillé",
|
|
||||||
"82": "Inactifs divers (autres que retraités)"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
@ -102,8 +127,6 @@
|
||||||
"3": "En couple avec enfants"
|
"3": "En couple avec enfants"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"reltype": {
|
"reltype": {
|
||||||
"0": "Père, mère ou équivalent",
|
"0": "Père, mère ou équivalent",
|
||||||
"1": "Frère ou soeur",
|
"1": "Frère ou soeur",
|
||||||
|
@ -133,9 +156,46 @@
|
||||||
"4": "Jamais"
|
"4": "Jamais"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"irlfreq": {
|
||||||
|
"0": "plusieurs fois par semaine",
|
||||||
|
"1": "1 fois par semaine",
|
||||||
|
"2": "1 fois par mois",
|
||||||
|
"3": "1 fois par an ou moins",
|
||||||
|
"4": "Jamais"
|
||||||
|
},
|
||||||
|
|
||||||
"connect": {
|
"connect": {
|
||||||
"0": "Oui",
|
"0": "Oui",
|
||||||
"1": "Non"
|
"1": "Non"
|
||||||
|
},
|
||||||
|
|
||||||
|
"medsoc": {
|
||||||
|
"0": "D'une personne qui n'utilise pas ou peu les médias sociaux",
|
||||||
|
"1": "D'une personne qui consulte des publications mais partage peu de contenus",
|
||||||
|
"2": "D'une personne qui consulte des publication et partage des contenus de temps en temps",
|
||||||
|
"3": "D'une personne qui partage beaucoup de contenus et s'exprime fréquemment"
|
||||||
|
},
|
||||||
|
|
||||||
|
"medrel": {
|
||||||
|
"0": "N'ont aucun effet sur votre relation",
|
||||||
|
"1": "Vous ont rapproché d'elle",
|
||||||
|
"2": "Vous ont éloigné d'elle"
|
||||||
|
},
|
||||||
|
|
||||||
|
"interest": {
|
||||||
|
"0": "1",
|
||||||
|
"1": "2",
|
||||||
|
"2": "3",
|
||||||
|
"3": "4",
|
||||||
|
"4": "5"
|
||||||
|
},
|
||||||
|
|
||||||
|
"relmark": {
|
||||||
|
"0": "1",
|
||||||
|
"1": "2",
|
||||||
|
"2": "3",
|
||||||
|
"3": "4",
|
||||||
|
"4": "5"
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
{"1":{"line":0}}
|
{"1":{"line":0},"599":{"line":1},"600":{"line":2},"601":{"line":3},"602":{"line":4},"603":{"line":5},"604":{"line":6},"605":{"line":7},"606":{"line":8},"607":{"line":9}}
|
|
@ -1 +1 @@
|
||||||
49
|
607
|
|
@ -58,8 +58,7 @@
|
||||||
/* AMORCEUR */
|
/* AMORCEUR */
|
||||||
/************/
|
/************/
|
||||||
public static function session_start(){
|
public static function session_start(){
|
||||||
\session_start();
|
return \session_start();
|
||||||
return;
|
|
||||||
|
|
||||||
|
|
||||||
/* [1] Génération et Gestion des donnees a utiliser
|
/* [1] Génération et Gestion des donnees a utiliser
|
||||||
|
|
|
@ -16,16 +16,16 @@
|
||||||
|
|
||||||
"lab-surveys": {
|
"lab-surveys": {
|
||||||
"local": {
|
"local": {
|
||||||
"host" : "shadowx-dev.com",
|
"host" : "listic-lab-surveys.irit.fr",
|
||||||
"dbname" : "cnrs",
|
"dbname" : "lab-surveys",
|
||||||
"user" : "cnrs",
|
"user" : "lab-surveys",
|
||||||
"password" : "yEHsPxCurd7RsynE"
|
"password" : "wxcvbn"
|
||||||
},
|
},
|
||||||
"remote": {
|
"remote": {
|
||||||
"host" : "shadowx-dev.com",
|
"host" : "listic-lab-surveys.irit.fr",
|
||||||
"dbname" : "cnrs",
|
"dbname" : "lab-surveys",
|
||||||
"user" : "cnrs",
|
"user" : "lab-surveys",
|
||||||
"password" : "yEHsPxCurd7RsynE"
|
"password" : "wxcvbn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -201,7 +201,7 @@
|
||||||
"description": "Enregistre les données d'une enquête téléphonique.",
|
"description": "Enregistre les données d'une enquête téléphonique.",
|
||||||
"permissions": ["admin"],
|
"permissions": ["admin"],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"subject": { "description": "Id du sujet concerné", "type": "id" },
|
"subject": { "description": "Données du sujet (id, etc)", "type": "array<mixed>" },
|
||||||
"contacts": { "description": "Données des contacts de l'enquête.", "type": "array<array>" },
|
"contacts": { "description": "Données des contacts de l'enquête.", "type": "array<array>" },
|
||||||
"mini": { "description": "Mini fiches relations sur les contacts de l'enquête.", "type": "array<array>" },
|
"mini": { "description": "Mini fiches relations sur les contacts de l'enquête.", "type": "array<array>" },
|
||||||
"fiches": { "description": "Fiches relation sur les plus proches contacts de l'enquête.", "type": "array<array>" },
|
"fiches": { "description": "Fiches relation sur les plus proches contacts de l'enquête.", "type": "array<array>" },
|
||||||
|
@ -216,7 +216,7 @@
|
||||||
"description": "Enregistre les données d'une enquête facebook.",
|
"description": "Enregistre les données d'une enquête facebook.",
|
||||||
"permissions": ["admin"],
|
"permissions": ["admin"],
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"subject": { "description": "Id du sujet concerné", "type": "id" },
|
"subject": { "description": "Données du sujet (id, etc)", "type": "array<mixed>" },
|
||||||
"contacts": { "description": "Données des contacts de l'enquête.", "type": "array<array>" },
|
"contacts": { "description": "Données des contacts de l'enquête.", "type": "array<array>" },
|
||||||
"mini": { "description": "Mini fiches relations sur les contacts de l'enquête.", "type": "array<array>" },
|
"mini": { "description": "Mini fiches relations sur les contacts de l'enquête.", "type": "array<array>" },
|
||||||
"fiches": { "description": "Fiches relation sur les plus proches contacts de l'enquête.", "type": "array<array>" },
|
"fiches": { "description": "Fiches relation sur les plus proches contacts de l'enquête.", "type": "array<array>" },
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -18,6 +18,7 @@
|
||||||
var_dump( $index.' # '.$sl->fetch($index)['subject']['name'] );
|
var_dump( $index.' # '.$sl->fetch($index)['subject']['name'] );
|
||||||
|
|
||||||
$sub = $sl->fetch(1);
|
$sub = $sl->fetch(1);
|
||||||
|
var_dump($sub['subject']);
|
||||||
|
|
||||||
var_dump( 'contacts: '.count($sub['contacts']) );
|
var_dump( 'contacts: '.count($sub['contacts']) );
|
||||||
var_dump( 'relations: '.count($sub['relations']) );
|
var_dump( 'relations: '.count($sub['relations']) );
|
||||||
|
@ -31,6 +32,9 @@
|
||||||
echo $Aname.'('.$rel['idA'].') + '.$cl->fetch((int)$rel['idB'])['name'].'('.$rel['idB'].') = '.$rel['type']."<br>";
|
echo $Aname.'('.$rel['idA'].') + '.$cl->fetch((int)$rel['idB'])['name'].'('.$rel['idB'].') = '.$rel['type']."<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$ct = $cl->fetch(595);
|
||||||
|
var_dump($ct);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
/* [1] Remove contacts
|
/* [1] Remove contacts
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?php define('__ROOT__', dirname(__DIR__));
|
||||||
|
|
||||||
|
require_once __ROOT__.'/autoloader.php';
|
||||||
|
|
||||||
|
debug();
|
||||||
|
|
||||||
|
use \database\core\DatabaseDriver;
|
||||||
|
use \database\core\Rows;
|
||||||
|
use \database\core\Table;
|
||||||
|
|
||||||
|
|
||||||
|
function getSubjects(){
|
||||||
|
// let's suppose idEtude
|
||||||
|
$etude = Table::get('sujets', 'lab-surveys')
|
||||||
|
->where('idEtude', 3);
|
||||||
|
|
||||||
|
/* (1) Fetch subjects of this etude */
|
||||||
|
$sujets = Table::get('sujets', 'lab-surveys')
|
||||||
|
->join('idEtude', $etude)
|
||||||
|
->select('idSujet', null, false, 'id')
|
||||||
|
->select('pseudo');
|
||||||
|
|
||||||
|
|
||||||
|
return sujets->fetchAll();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function getQuestions(){}
|
||||||
|
|
||||||
|
function getAnswers($id_subject){}
|
|
@ -17,9 +17,11 @@ inputFacebookFiche.prototype = {
|
||||||
defaultData: { // Valeurs par défaut
|
defaultData: { // Valeurs par défaut
|
||||||
sexe: '2',
|
sexe: '2',
|
||||||
age: '.',
|
age: '.',
|
||||||
|
interest: '.',
|
||||||
|
relmark: '.',
|
||||||
job: '.',
|
job: '.',
|
||||||
famsit: '0', // Choix 1 à 3
|
famsit: '0', // Choix 1 à 3
|
||||||
studies: '0',
|
studies: '.',
|
||||||
reltype: '0', // Choix 1 à 9
|
reltype: '0', // Choix 1 à 9
|
||||||
reltypeSpecial: '',
|
reltypeSpecial: '',
|
||||||
city: '',
|
city: '',
|
||||||
|
@ -29,9 +31,12 @@ inputFacebookFiche.prototype = {
|
||||||
duration: ['', ''],
|
duration: ['', ''],
|
||||||
context: '0', // Choix 1 à 14
|
context: '0', // Choix 1 à 14
|
||||||
contextSpecial: ['', '', ''],
|
contextSpecial: ['', '', ''],
|
||||||
freq: ['4', '9', '14', '19', '24'], // 1er choix des 4 pour chaque question
|
freq: ['3', '8', '13', '18', '23'], // 4er choix des 4 pour chaque question
|
||||||
|
irlfreq: ['3', '8', '13', '18', '23'], // 4er choix des 4 pour chaque question
|
||||||
connect: ['1', '3', '5', '7', '9', '11'], // Le deuxième choix (Oui/Non) donc 'Non' par défaut pour chaque question
|
connect: ['1', '3', '5', '7', '9', '11'], // Le deuxième choix (Oui/Non) donc 'Non' par défaut pour chaque question
|
||||||
connectSpecial: ['', ''],
|
connectSpecial: ['', ''],
|
||||||
|
medsoc: '0',
|
||||||
|
medrel: '0',
|
||||||
timestamp: 0,
|
timestamp: 0,
|
||||||
valid: false
|
valid: false
|
||||||
}
|
}
|
||||||
|
@ -68,6 +73,8 @@ inputFacebookFiche.prototype.fieldsToStorage = function(){
|
||||||
obj = {
|
obj = {
|
||||||
sexe: deflated.sexe,
|
sexe: deflated.sexe,
|
||||||
age: deflated.age,
|
age: deflated.age,
|
||||||
|
interest: deflated.interest,
|
||||||
|
relmark: deflated.relmark,
|
||||||
job: deflated.job,
|
job: deflated.job,
|
||||||
famsit: deflated.famsit,
|
famsit: deflated.famsit,
|
||||||
studies: deflated.studies,
|
studies: deflated.studies,
|
||||||
|
@ -79,8 +86,11 @@ inputFacebookFiche.prototype.fieldsToStorage = function(){
|
||||||
loc: deflated.loc,
|
loc: deflated.loc,
|
||||||
duration: deflated.duration,
|
duration: deflated.duration,
|
||||||
context: deflated.context,
|
context: deflated.context,
|
||||||
|
medsoc: deflated.medsoc,
|
||||||
|
medrel: deflated.medrel,
|
||||||
contextSpecial: deflated.contextSpecial,
|
contextSpecial: deflated.contextSpecial,
|
||||||
freq: deflated.freq,
|
freq: deflated.freq,
|
||||||
|
irlfreq: deflated.irlfreq,
|
||||||
connect: deflated.connect,
|
connect: deflated.connect,
|
||||||
connectSpecial: deflated.connectSpecial,
|
connectSpecial: deflated.connectSpecial,
|
||||||
uid: parseInt(deflated.uid),
|
uid: parseInt(deflated.uid),
|
||||||
|
@ -146,6 +156,8 @@ inputFacebookFiche.prototype.add = function(objectData){
|
||||||
objectData.job = (objectData.job != null) ? objectData.job : this.defaultData.job;
|
objectData.job = (objectData.job != null) ? objectData.job : this.defaultData.job;
|
||||||
objectData.studies = (objectData.studies != null) ? objectData.studies : this.defaultData.studies;
|
objectData.studies = (objectData.studies != null) ? objectData.studies : this.defaultData.studies;
|
||||||
objectData.age = (objectData.age != null) ? objectData.age : this.defaultData.age;
|
objectData.age = (objectData.age != null) ? objectData.age : this.defaultData.age;
|
||||||
|
objectData.interest = (objectData.interest != null) ? objectData.interest : this.defaultData.interest;
|
||||||
|
objectData.relmark = (objectData.relmark != null) ? objectData.relmark : this.defaultData.relmark;
|
||||||
|
|
||||||
// {3} Champs <radio> //
|
// {3} Champs <radio> //
|
||||||
objectData.sexe = (objectData.sexe != null) ? objectData.sexe : this.defaultData.sexe;
|
objectData.sexe = (objectData.sexe != null) ? objectData.sexe : this.defaultData.sexe;
|
||||||
|
@ -153,7 +165,10 @@ inputFacebookFiche.prototype.add = function(objectData){
|
||||||
objectData.reltype = (objectData.reltype != null) ? objectData.reltype : this.defaultData.reltype;
|
objectData.reltype = (objectData.reltype != null) ? objectData.reltype : this.defaultData.reltype;
|
||||||
objectData.loc = (objectData.loc != null) ? objectData.loc : this.defaultData.loc;
|
objectData.loc = (objectData.loc != null) ? objectData.loc : this.defaultData.loc;
|
||||||
objectData.context = (objectData.context != null) ? objectData.context : this.defaultData.context;
|
objectData.context = (objectData.context != null) ? objectData.context : this.defaultData.context;
|
||||||
|
objectData.medsoc = (objectData.medsoc != null) ? objectData.medsoc : this.defaultData.medsoc;
|
||||||
|
objectData.medrel = (objectData.medrel != null) ? objectData.medrel : this.defaultData.medrel;
|
||||||
objectData.freq = (objectData.freq != null) ? objectData.freq : this.defaultData.freq;
|
objectData.freq = (objectData.freq != null) ? objectData.freq : this.defaultData.freq;
|
||||||
|
objectData.irlfreq = (objectData.irlfreq != null) ? objectData.irlfreq : this.defaultData.irlfreq;
|
||||||
objectData.connect = (objectData.connect != null) ? objectData.connect : this.defaultData.connect;
|
objectData.connect = (objectData.connect != null) ? objectData.connect : this.defaultData.connect;
|
||||||
|
|
||||||
|
|
||||||
|
@ -190,6 +205,8 @@ inputFacebookFiche.prototype.add = function(objectData){
|
||||||
// On met à jour les études uniquement si 'studies2' est défini //
|
// On met à jour les études uniquement si 'studies2' est défini //
|
||||||
if( existingData.studies2 != null ){
|
if( existingData.studies2 != null ){
|
||||||
objectData.studies = existingData.studies2;
|
objectData.studies = existingData.studies2;
|
||||||
|
objectData.interest = existingData.interest;
|
||||||
|
objectData.relmark = existingData.relmark;
|
||||||
objectData.job = existingData.job;
|
objectData.job = existingData.job;
|
||||||
objectData.famsit = existingData.famsit;
|
objectData.famsit = existingData.famsit;
|
||||||
objectData.city = existingData.city;
|
objectData.city = existingData.city;
|
||||||
|
@ -198,10 +215,13 @@ inputFacebookFiche.prototype.add = function(objectData){
|
||||||
objectData.duration[0] = existingData.duration[0];
|
objectData.duration[0] = existingData.duration[0];
|
||||||
objectData.duration[1] = existingData.duration[1];
|
objectData.duration[1] = existingData.duration[1];
|
||||||
objectData.context = existingData.context;
|
objectData.context = existingData.context;
|
||||||
|
objectData.medsoc = existingData.medsoc;
|
||||||
|
objectData.medrel = existingData.medrel;
|
||||||
objectData.contextSpecial = existingData.contextExtra;
|
objectData.contextSpecial = existingData.contextExtra;
|
||||||
objectData.connect = existingData.connect;
|
objectData.connect = existingData.connect;
|
||||||
objectData.connectSpecial = existingData.connectExtra;
|
objectData.connectSpecial = existingData.connectExtra;
|
||||||
objectData.freq = existingData.freq;
|
objectData.freq = existingData.freq;
|
||||||
|
objectData.irlfreq = existingData.irlfreq;
|
||||||
importedFiche = 'Contact importé: non modifiable!';
|
importedFiche = 'Contact importé: non modifiable!';
|
||||||
}else{
|
}else{
|
||||||
importedFiche = 'Contact importé (incomplet): modifiable partiellement!';
|
importedFiche = 'Contact importé (incomplet): modifiable partiellement!';
|
||||||
|
@ -248,49 +268,78 @@ inputFacebookFiche.prototype.add = function(objectData){
|
||||||
if( selectedOption != null )
|
if( selectedOption != null )
|
||||||
selectedOption.setAttribute('selected', 'selected');
|
selectedOption.setAttribute('selected', 'selected');
|
||||||
|
|
||||||
|
/* {9} On sélectionne la valeur dans le select (manuellement) de l'INTEREST */
|
||||||
|
selectedOption = $('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>span>select[data-name="interest"]>option[value="'+objectData.interest+'"]');
|
||||||
|
if( selectedOption != null )
|
||||||
|
selectedOption.setAttribute('selected', 'selected');
|
||||||
|
|
||||||
/* {9} On sélectionna la valeur des boutons <radio> pour le SEXE */
|
/* {10} On sélectionne la valeur dans le select (manuellement) de la NOTE DE RELATION */
|
||||||
|
selectedOption = $('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>span>select[data-name="relmark"]>option[value="'+objectData.relmark+'"]');
|
||||||
|
if( selectedOption != null )
|
||||||
|
selectedOption.setAttribute('selected', 'selected');
|
||||||
|
|
||||||
|
|
||||||
|
/* {11} On sélectionna la valeur des boutons <radio> pour le SEXE */
|
||||||
var sexeCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');
|
var sexeCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');
|
||||||
for( var i = 0 ; i < sexeCreated.length ; i++ )
|
for( var i = 0 ; i < sexeCreated.length ; i++ )
|
||||||
if( sexeCreated[i].value == objectData.sexe ) sexeCreated[i].setAttribute('checked', 'checked');
|
if( sexeCreated[i].value == objectData.sexe ) sexeCreated[i].setAttribute('checked', 'checked');
|
||||||
else sexeCreated[i].removeAttribute('checked');
|
else sexeCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
|
||||||
/* {10} On sélectionna la valeur des boutons <radio> pour la SITUATION FAMILIALE */
|
/* {12} On sélectionna la valeur des boutons <radio> pour la SITUATION FAMILIALE */
|
||||||
var famsitCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');
|
var famsitCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');
|
||||||
for( var i = 0 ; i < famsitCreated.length ; i++ )
|
for( var i = 0 ; i < famsitCreated.length ; i++ )
|
||||||
if( famsitCreated[i].value == objectData.famsit ) famsitCreated[i].setAttribute('checked', 'checked');
|
if( famsitCreated[i].value == objectData.famsit ) famsitCreated[i].setAttribute('checked', 'checked');
|
||||||
else famsitCreated[i].removeAttribute('checked');
|
else famsitCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
|
||||||
/* {11} On sélectionna la valeur des boutons <radio> pour le TYPE DE RELATION */
|
/* {13} On sélectionna la valeur des boutons <radio> pour le TYPE DE RELATION */
|
||||||
var reltypeCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');
|
var reltypeCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');
|
||||||
for( var i = 0 ; i < reltypeCreated.length ; i++ )
|
for( var i = 0 ; i < reltypeCreated.length ; i++ )
|
||||||
if( reltypeCreated[i].value == objectData.reltype ) reltypeCreated[i].setAttribute('checked', 'checked');
|
if( reltypeCreated[i].value == objectData.reltype ) reltypeCreated[i].setAttribute('checked', 'checked');
|
||||||
else reltypeCreated[i].removeAttribute('checked');
|
else reltypeCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
|
||||||
/* {12} On sélectionna la valeur des boutons <radio> pour la LOCATION */
|
/* {14} On sélectionna la valeur des boutons <radio> pour la LOCATION */
|
||||||
var locCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');
|
var locCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');
|
||||||
for( var i = 0 ; i < locCreated.length ; i++ )
|
for( var i = 0 ; i < locCreated.length ; i++ )
|
||||||
if( locCreated[i].value == objectData.loc ) locCreated[i].setAttribute('checked', 'checked');
|
if( locCreated[i].value == objectData.loc ) locCreated[i].setAttribute('checked', 'checked');
|
||||||
else locCreated[i].removeAttribute('checked');
|
else locCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
|
||||||
/* {13} On sélectionna la valeur des boutons <radio> pour le CONTEXTE DE RENCONTRE */
|
/* {15} On sélectionna la valeur des boutons <radio> pour le CONTEXTE DE RENCONTRE */
|
||||||
var contextCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="context"]');
|
var contextCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="context"]');
|
||||||
for( var i = 0 ; i < contextCreated.length ; i++ )
|
for( var i = 0 ; i < contextCreated.length ; i++ )
|
||||||
if( contextCreated[i].value == objectData.context ) contextCreated[i].setAttribute('checked', 'checked');
|
if( contextCreated[i].value == objectData.context ) contextCreated[i].setAttribute('checked', 'checked');
|
||||||
else contextCreated[i].removeAttribute('checked');
|
else contextCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {16} On sélectionna la valeur des boutons <radio> pour l'UTILISATION DES MEDIAS SOCIAUX */
|
||||||
|
var medsocCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="medsoc"]');
|
||||||
|
for( var i = 0 ; i < medsocCreated.length ; i++ )
|
||||||
|
if( medsocCreated[i].value == objectData.medsoc ) medsocCreated[i].setAttribute('checked', 'checked');
|
||||||
|
else medsocCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
/* {14} On sélectionna la valeur des boutons <radio> pour les FREQUENCES */
|
/* {17} On sélectionna la valeur des boutons <radio> pour l'UTILISATION DES MEDIAS SOCIAUX */
|
||||||
|
var medrelCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="medrel"]');
|
||||||
|
for( var i = 0 ; i < medrelCreated.length ; i++ )
|
||||||
|
if( medrelCreated[i].value == objectData.medrel ) medrelCreated[i].setAttribute('checked', 'checked');
|
||||||
|
else medrelCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* {18} On sélectionna la valeur des boutons <radio> pour les FREQUENCES */
|
||||||
var freqCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');
|
var freqCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');
|
||||||
for( var i = 0 ; i < freqCreated.length ; i++ )
|
for( var i = 0 ; i < freqCreated.length ; i++ )
|
||||||
if( objectData.freq.indexOf(freqCreated[i].value) > -1 ) freqCreated[i].setAttribute('checked', 'checked');
|
if( objectData.freq.indexOf(freqCreated[i].value) > -1 ) freqCreated[i].setAttribute('checked', 'checked');
|
||||||
else freqCreated[i].removeAttribute('checked');
|
else freqCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
/* {15} On sélectionna la valeur des boutons <radio> pour les CONNECTIONS */
|
/* {19} On sélectionna la valeur des boutons <radio> pour les FREQUENCES IRL */
|
||||||
|
var irlfreqCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="irlfreq"]');
|
||||||
|
for( var i = 0 ; i < irlfreqCreated.length ; i++ )
|
||||||
|
if( objectData.irlfreq.indexOf(irlfreqCreated[i].value) > -1 ) irlfreqCreated[i].setAttribute('checked', 'checked');
|
||||||
|
else irlfreqCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {20} On sélectionna la valeur des boutons <radio> pour les CONNECTIONS */
|
||||||
var connectCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');
|
var connectCreated = $$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');
|
||||||
for( var i = 0 ; i < connectCreated.length ; i++ )
|
for( var i = 0 ; i < connectCreated.length ; i++ )
|
||||||
if( objectData.connect.indexOf(connectCreated[i].value) > -1 ) connectCreated[i].setAttribute('checked', 'checked');
|
if( objectData.connect.indexOf(connectCreated[i].value) > -1 ) connectCreated[i].setAttribute('checked', 'checked');
|
||||||
|
@ -485,7 +534,7 @@ inputFacebookFiche.prototype.sync = function(){
|
||||||
copied.uid = clone[i][1].uid;
|
copied.uid = clone[i][1].uid;
|
||||||
lsi.set('f_fiches', copied.uid, copied);
|
lsi.set('f_fiches', copied.uid, copied);
|
||||||
|
|
||||||
/* (5.2) fiche vers mini OU mini vers fiche*/
|
/* (5.2) fiche vers mini */
|
||||||
}else if( clone[last_index][0] == 'fiche' ){
|
}else if( clone[last_index][0] == 'fiche' ){
|
||||||
|
|
||||||
/*CLONING_DEBUG*///console.warn('copying fiche#'+clone[last_index][1].uid+' to mini#'+clone[i][1].uid, clones_ts[last_index]-input_ts, clones_ts[i]-input_ts);
|
/*CLONING_DEBUG*///console.warn('copying fiche#'+clone[last_index][1].uid+' to mini#'+clone[i][1].uid, clones_ts[last_index]-input_ts, clones_ts[i]-input_ts);
|
||||||
|
@ -616,75 +665,91 @@ inputFacebookFiche.prototype.updateNavBar = function(){
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
inputFacebookFiche.prototype.check = function(ficheData){
|
inputFacebookFiche.prototype.check = function(ficheData){
|
||||||
|
|
||||||
// {1} Vérification des <input> //
|
/* {1} Vérification des <input> */
|
||||||
// 1. La ville a au moins 2 caractères
|
// 1. La ville a au moins 2 caractères
|
||||||
if( ficheData.city.length < 2 )
|
if( ficheData.city.length < 2 )
|
||||||
return false;
|
return false;
|
||||||
// 3. La durée de la relation en mois est vide ou un nombre
|
// 2. La durée de la relation en mois est vide ou un nombre
|
||||||
if( isNaN(parseInt(ficheData.duration[0])) && ficheData.duration[0].length > 0 )
|
if( isNaN(parseInt(ficheData.duration[0])) && ficheData.duration[0].length > 0 )
|
||||||
return false;
|
return false;
|
||||||
// 4. La durée de la relation en année est vide ou un nombre
|
// 3. La durée de la relation en année est vide ou un nombre
|
||||||
if( isNaN(parseInt(ficheData.duration[1])) && ficheData.duration[1].length > 0 )
|
if( isNaN(parseInt(ficheData.duration[1])) && ficheData.duration[1].length > 0 )
|
||||||
return false;
|
return false;
|
||||||
// 5. Pour la durée de la relation, au moins un des 2 n'est pas vide
|
// 4. Pour la durée de la relation, au moins un des 2 n'est pas vide
|
||||||
if( ficheData.duration[0].length+ficheData.duration[1].length == 0 )
|
if( ficheData.duration[0].length+ficheData.duration[1].length == 0 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// {2} Vérification des <select> //
|
/* {2} Vérification des <select> */
|
||||||
// 6. Le <select> pour la profession n'est pas indéfini
|
// 5. Le <select> pour la profession n'est pas indéfini
|
||||||
if( ficheData.job == '.' )
|
if( ficheData.job == '.' )
|
||||||
return false;
|
return false;
|
||||||
// 7. Le <select> pour les études n'est pas indéfini
|
// 6. Le <select> pour les études n'est pas indéfini
|
||||||
if( ficheData.studies == '.' )
|
if( ficheData.studies == '.' )
|
||||||
return false;
|
return false;
|
||||||
// 8. Le <select> pour l'AGE n'est pas indéfini
|
// 7. Le <select> pour l'AGE n'est pas indéfini
|
||||||
if( ficheData.age == '.' )
|
if( ficheData.age == '.' )
|
||||||
return false;
|
return false;
|
||||||
|
// 8. Le <select> pour l'INTEREST n'est pas indéfini
|
||||||
|
if( ficheData.interest == '.' )
|
||||||
|
return false;
|
||||||
|
// 9. Le <select> pour la NOTE DE RELATION n'est pas indéfini
|
||||||
|
if( ficheData.relmark == '.' )
|
||||||
|
return false;
|
||||||
|
|
||||||
// {3} Vérification des <input> radio //
|
/* {3} Vérification des <input> radio */
|
||||||
// 9. Le SEXE a un et un seul choix
|
// 10. Le SEXE a un et un seul choix
|
||||||
if( ficheData.sexe == '' )
|
if( ficheData.sexe == '' )
|
||||||
return false;
|
return false;
|
||||||
// 10. La SITUATION FAMILIALE a un et un seul choix
|
// 11. La SITUATION FAMILIALE a un et un seul choix
|
||||||
if( ficheData.famsit == '' )
|
if( ficheData.famsit == '' )
|
||||||
return false;
|
return false;
|
||||||
// 11. Le TYPE DE RELATION a un et un seul choix
|
// 12. Le TYPE DE RELATION a un et un seul choix
|
||||||
if( ficheData.reltype == '' )
|
if( ficheData.reltype == '' )
|
||||||
return false;
|
return false;
|
||||||
// 12. La DISTANCE DE DOMICILE (location) a un et un seul choix
|
// 13. La DISTANCE DE DOMICILE (location) a un et un seul choix
|
||||||
if( ficheData.loc == '' )
|
if( ficheData.loc == '' )
|
||||||
return false;
|
return false;
|
||||||
// 13. Le CONTEXTE DE RENCONTRE a un et un seul choix
|
// 14. Le CONTEXTE DE RENCONTRE a un et un seul choix
|
||||||
if( ficheData.context == '' )
|
if( ficheData.context == '' )
|
||||||
return false;
|
return false;
|
||||||
// 14. Les FRÉQUENCES ont un et un seul choix (par question de fréquence)
|
// 15. L'UTILISATION DES MEDIAS SOCIAUX a un et un seul choix
|
||||||
|
if( ficheData.medsoc == '' )
|
||||||
|
return false;
|
||||||
|
// 16. L'UTILISATION DES MEDIAS SOCIAUX a un et un seul choix
|
||||||
|
if( ficheData.medrel == '' )
|
||||||
|
return false;
|
||||||
|
// 17. Les FRÉQUENCES ont un et un seul choix (par question de fréquence)
|
||||||
for( var i = 0 ; i < ficheData.freq.length ; i++ )
|
for( var i = 0 ; i < ficheData.freq.length ; i++ )
|
||||||
if( ficheData.freq[i] == '' )
|
if( ficheData.freq[i] == '' )
|
||||||
return false;
|
return false;
|
||||||
// 15. Les CONNECTION ont un et un seul choix (par question de connection)
|
// 18. Les FRÉQUENCES IRL ont un et un seul choix (par question de fréquence)
|
||||||
|
for( var i = 0 ; i < ficheData.irlfreq.length ; i++ )
|
||||||
|
if( ficheData.irlfreq[i] == '' )
|
||||||
|
return false;
|
||||||
|
// 19. Les CONNECTION ont un et un seul choix (par question de connection)
|
||||||
for( var i = 0 ; i < ficheData.connect.length ; i++ )
|
for( var i = 0 ; i < ficheData.connect.length ; i++ )
|
||||||
if( ficheData.connect[i] == '' )
|
if( ficheData.connect[i] == '' )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// {4} <input> dépendant d'un choix d'un <input> radio //
|
/* {4} <input> dépendant d'un choix d'un <input> radio */
|
||||||
// 16. TYPE DE RELATION si autre est coché (indice 8), reltypeSpecial doit avoir au moins 2 caractère
|
// 20. TYPE DE RELATION si autre est coché (indice 8), reltypeSpecial doit avoir au moins 2 caractère
|
||||||
if( ficheData.reltype == '10' && ficheData.reltypeSpecial.length < 2 )
|
if( ficheData.reltype == '10' && ficheData.reltypeSpecial.length < 2 )
|
||||||
return false;
|
return false;
|
||||||
// 17. CONTEXTE DE RELATION si est coché indice 11, contactSpecial[0] doit avoir au moins 2 caractères
|
// 21. CONTEXTE DE RELATION si est coché indice 11, contactSpecial[0] doit avoir au moins 2 caractères
|
||||||
if( ficheData.context == '11' && ficheData.contextSpecial[0].length < 2 )
|
if( ficheData.context == '11' && ficheData.contextSpecial[0].length < 2 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// 18. CONTEXTE DE RELATION si est coché indice 12, contextSpecial[1] doit avoir au moins 2 caractères
|
// 22. CONTEXTE DE RELATION si est coché indice 12, contextSpecial[1] doit avoir au moins 2 caractères
|
||||||
if( ficheData.context == '12' && ficheData.contextSpecial[1].length < 2 )
|
if( ficheData.context == '12' && ficheData.contextSpecial[1].length < 2 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// 19. CONTEXTE DE RELATION si est coché indice 13, contextSpecial[2] doit avoir au moins 2 caractères
|
// 23. CONTEXTE DE RELATION si est coché indice 13, contextSpecial[2] doit avoir au moins 2 caractères
|
||||||
if( ficheData.context == '13' && ficheData.contextSpecial[2].length < 2 )
|
if( ficheData.context == '13' && ficheData.contextSpecial[2].length < 2 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 20. Si tout s'est bien passé, on retourne TRUE
|
// 24. Si tout s'est bien passé, on retourne TRUE
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -99,53 +99,38 @@ inputFacebookMatrice.prototype.storageToFields = function(){
|
||||||
|
|
||||||
/* (2) On construit le HTML de la matrice */
|
/* (2) On construit le HTML de la matrice */
|
||||||
// Contiendra le HTML
|
// Contiendra le HTML
|
||||||
var matrice_html = ["<table class='line'>"];
|
var matrice_html = ["<div class='line matrice'>"];
|
||||||
|
var conA, conB, L, Ll, C, Cl;
|
||||||
|
|
||||||
// {1} Pour chaque ligne //
|
// {1} Pour chaque ligne //
|
||||||
for( var A = 0 ; A < contacts.length ; A++ ){
|
for( L = 0, Ll = contacts.length ; L < Ll ; L++ ){
|
||||||
var conA = contactData[A];
|
conA = contactData[L];
|
||||||
|
|
||||||
|
|
||||||
matrice_html.push('<tr>');
|
|
||||||
|
|
||||||
if( A > 0 ){ // Noms sur la première ligne (abscisses)
|
|
||||||
matrice_html.push('<td style="text-align: right;">');
|
|
||||||
matrice_html.push(conA.username);
|
|
||||||
matrice_html.push('</td>');
|
|
||||||
}else // Sinon,
|
|
||||||
matrice_html.push('<td></td>');
|
|
||||||
|
|
||||||
// {2} Pour chaque case //
|
// {2} Pour chaque case //
|
||||||
for( var B = 0 ; B < contacts.length ; B++ ){ if( B < contacts.length-1 ){
|
for( C = L+1, Cl = contacts.length ; C < Cl ; C++ ){
|
||||||
var conB = contactData[B];
|
conB = contactData[C];
|
||||||
|
|
||||||
// {3} Première colonne -> Intitulé des ordonnées //
|
// {3} Insertion //
|
||||||
if( A == 0 ){
|
matrice_html.push( "<input type='checkbox' data-name='"+conA.uid+"' value='"+conB.uid+"' id='f_matrice_"+conA.uid+"_"+conB.uid+"'" );
|
||||||
matrice_html.push('<td>');
|
|
||||||
matrice_html.push('<span style="writing-mode: vertical-lr; text-align: right;">');
|
// Si lien actif, on le restitue
|
||||||
matrice_html.push(conB.username);
|
if( matriceData.hasOwnProperty(conA.uid) && matriceData[conA.uid].indexOf(conB.uid) > -1 )
|
||||||
matrice_html.push('</span>');
|
matrice_html.push( "checked='checked'");
|
||||||
|
|
||||||
// {4} Valeurs des relations (boutons) //
|
|
||||||
}else if( B < A ){
|
|
||||||
matrice_html.push("<td>");
|
|
||||||
matrice_html.push("<input type='checkbox' name='matrice_"+conA.uid+"_"+conB.uid+"' data-name='"+conA.uid+"' value='"+conB.uid+"' id='f_matrice_"+conA.uid+"_"+conB.uid+"'");
|
|
||||||
// Si la relation existe, on active le bouton
|
|
||||||
if( matriceData[A] != null && matriceData[A].indexOf(B) > -1 )
|
|
||||||
matrice_html.push(" checked");
|
|
||||||
matrice_html.push( ">" );
|
matrice_html.push( ">" );
|
||||||
matrice_html.push("<label for='f_matrice_"+conA.uid+"_"+conB.uid+"'></label>");
|
|
||||||
|
|
||||||
// {5} Cases vides (moitié supérieure droite) //
|
matrice_html.push( "<label class='matrice-content' for='f_matrice_"+conA.uid+"_"+conB.uid+"'>")
|
||||||
}else
|
matrice_html.push( "Est-ce que <span>" );
|
||||||
matrice_html.push("<td class='hidden'>");
|
matrice_html.push( !isNaN(conA.existing) ? lsi.get('f_friends', conA.existing).name : conA.username );
|
||||||
|
matrice_html.push( '</span> et <span>' );
|
||||||
|
matrice_html.push( !isNaN(conB.existing) ? lsi.get('f_friends', conB.existing).name : conB.username );
|
||||||
|
matrice_html.push( '</span> se connaissent ?' );
|
||||||
|
matrice_html.push( "</label>" );
|
||||||
|
|
||||||
matrice_html.push('</td>');
|
|
||||||
}}
|
|
||||||
|
|
||||||
matrice_html.push('</tr>');
|
|
||||||
}
|
}
|
||||||
matrice_html.push('</table>');
|
|
||||||
|
}
|
||||||
|
matrice_html.push( '</div>' );
|
||||||
|
|
||||||
|
|
||||||
/* (3) On affiche la matrice */
|
/* (3) On affiche la matrice */
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/* [0] Constructeur -> définit le conteneur et le bouton d'ajout
|
/* [0] Constructeur -> définit le conteneur et le bouton d'ajout
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
function inputFacebookSubject(iSubjectId, store_button){
|
function inputFacebookSubject(iSubjectId, iCoords, store_button){
|
||||||
this.subject_id = iSubjectId;
|
this.subject_id = iSubjectId;
|
||||||
|
this.coords = iCoords;
|
||||||
this.store_button = store_button;
|
this.store_button = store_button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +11,7 @@ function inputFacebookSubject(iSubjectId, store_button){
|
||||||
inputFacebookSubject.prototype = {
|
inputFacebookSubject.prototype = {
|
||||||
store_button: this.store_button, // Bouton d'ajout d'un formulaire
|
store_button: this.store_button, // Bouton d'ajout d'un formulaire
|
||||||
subject_id: this.subject_id,
|
subject_id: this.subject_id,
|
||||||
|
coords: this.coords,
|
||||||
handler: null
|
handler: null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,20 +25,25 @@ inputFacebookSubject.prototype.check = function(){
|
||||||
|
|
||||||
/* [3] Gestion de l'enregistrement des formulaires de contact
|
/* [3] Gestion de l'enregistrement des formulaires de contact
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
inputFacebookSubject.prototype.fieldsToStorage = function(){
|
inputFacebookSubject.prototype.fieldsToStorage = function(onlyCoords){
|
||||||
console.group('[facebook.subject] fields to storage');
|
console.group('[facebook.subject] fields to storage');
|
||||||
|
|
||||||
|
( typeof onlyCoords != 'boolean' ) ? false : onlyCoords;
|
||||||
|
|
||||||
// {1} Si le formulaire n'est pas valide, on ne l'enregistre pas //
|
// {1} Si le formulaire n'est pas valide, on ne l'enregistre pas //
|
||||||
if( !this.check() ) return false;
|
if( !onlyCoords )
|
||||||
|
if( !this.check() )
|
||||||
|
return false;
|
||||||
|
|
||||||
// {2} Si on a déja saisie 1+ contact, on ne l'enregistre pas //
|
// {2} Si on a déja saisie 1+ contact, on ne l'enregistre pas //
|
||||||
if( lsi.keys('f_contacts').length > 0 ){
|
// et si on modifie le sujet
|
||||||
|
if( lsi.keys('f_subject').length === 1 && this.subject_id.value != lsi.get('f_subject',0).subject_id && lsi.keys('f_contacts').length > 0 ){
|
||||||
Notification.warning('Attention', 'Vous devez effacer le formulaire pour changer de sujet');
|
Notification.warning('Attention', 'Vous devez effacer le formulaire pour changer de sujet');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// {3} On récupère et met en forme les valeurs du deflater //
|
// {3} On récupère et met en forme les valeurs du deflater //
|
||||||
var obj = { subject_id: this.subject_id.value };
|
var obj = { subject_id: this.subject_id.value, coords: this.coords.value };
|
||||||
|
|
||||||
// {4} On enregistre les données dans le 'localStorage' //
|
// {4} On enregistre les données dans le 'localStorage' //
|
||||||
lsi.set('f_subject', 0, obj);
|
lsi.set('f_subject', 0, obj);
|
||||||
|
@ -57,11 +64,11 @@ inputFacebookSubject.prototype.storageToFields = function(){
|
||||||
// {1} On récupère les informations du sujet //
|
// {1} On récupère les informations du sujet //
|
||||||
var subjectData = lsi.get('f_subject', 0);
|
var subjectData = lsi.get('f_subject', 0);
|
||||||
|
|
||||||
if( subjectData == null )
|
subjectData = subjectData || { subject_id: '', coords: '' };
|
||||||
subjectData = { subject_id: '' };
|
|
||||||
|
|
||||||
// {2} On restore les valeurs //
|
// {2} On restore les valeurs //
|
||||||
this.subject_id.value = subjectData.subject_id;
|
this.subject_id.value = subjectData.subject_id;
|
||||||
|
this.coords.value = subjectData.coords;
|
||||||
|
|
||||||
console.groupEnd();
|
console.groupEnd();
|
||||||
};
|
};
|
||||||
|
@ -79,16 +86,20 @@ inputFacebookSubject.prototype.attach = function(handler){
|
||||||
|
|
||||||
// Pointeur pour les scopes des addEventListener()
|
// Pointeur pour les scopes des addEventListener()
|
||||||
this.handler = handler;
|
this.handler = handler;
|
||||||
var ptr = this;
|
|
||||||
// Handler de mise à jour quand les champs sont bons
|
// Handler de mise à jour quand les champs sont bons
|
||||||
function fts(e){ ptr.fieldsToStorage(); ptr.handler(true); ptr.storageToFields(); }
|
function fts(e){ this.fieldsToStorage(); this.handler(true); this.storageToFields(); };
|
||||||
|
function fts2(e){ this.fieldsToStorage(true); this.storageToFields(); };
|
||||||
|
|
||||||
|
|
||||||
/* (2) On attache l'évènement sur le bouton d'enregistrement */
|
/* (2) On attache l'évènement sur le bouton d'enregistrement */
|
||||||
this.store_button.addEventListener('click', fts, false);
|
this.store_button.addEventListener('click', fts.bind(this), false);
|
||||||
|
|
||||||
/* (3) On attache un évènement de 'blur' sur chaque '<input type="text">' */
|
/* (3) On attache un évènement de 'blur' sur chaque '<input type="text">' */
|
||||||
this.subject_id.addEventListener('blur', fts, false);
|
this.subject_id.addEventListener('blur', fts.bind(this), false);
|
||||||
|
|
||||||
|
/* (4) On attache un évènement pour le champ coord */
|
||||||
|
this.coords.addEventListener('blur', fts2.bind(this), false);
|
||||||
|
|
||||||
/* (4) On charge le sujet depuis la mémoire ('localStorage') */
|
/* (4) On charge le sujet depuis la mémoire ('localStorage') */
|
||||||
this.storageToFields();
|
this.storageToFields();
|
||||||
|
|
|
@ -107,9 +107,7 @@ fMiniFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype3_mini_f_@uid' value='3'><label for='reltype3_mini_f_@uid'>Relation amoureuse</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype3_mini_f_@uid' value='3'><label for='reltype3_mini_f_@uid'>Relation amoureuse</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype4_mini_f_@uid' value='4'><label for='reltype4_mini_f_@uid'>Collègue</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype4_mini_f_@uid' value='4'><label for='reltype4_mini_f_@uid'>Collègue</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype5_mini_f_@uid' value='5'><label for='reltype5_mini_f_@uid'>Voisin</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype5_mini_f_@uid' value='5'><label for='reltype5_mini_f_@uid'>Voisin</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype6_mini_f_@uid' value='6'><label for='reltype6_mini_f_@uid'>Ami proche</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype6_mini_f_@uid' value='6'><label for='reltype6_mini_f_@uid'>Ami/Copain</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype7_mini_f_@uid' value='7'><label for='reltype7_mini_f_@uid'>Ami</label><br>\n"+
|
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype8_mini_f_@uid' value='8'><label for='reltype8_mini_f_@uid'>Relation de service (médecin, ...)</label><br>\n"+
|
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype9_mini_f_@uid' value='9'><label for='reltype9_mini_f_@uid'>Inconnu</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype9_mini_f_@uid' value='9'><label for='reltype9_mini_f_@uid'>Inconnu</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype10_mini_f_@uid' value='10'><label for='reltype10_mini_f_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_f_@uid' data-name='reltype' id='reltype10_mini_f_@uid' value='10'><label for='reltype10_mini_f_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
@ -219,43 +217,19 @@ fFicheBuilder.setLayout(
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\t<span class='select-container'><select data-name='job'>\n"+
|
"\t\t<span class='select-container'><select data-name='job'>\n"+
|
||||||
"\t\t\t<option value='.' disabled selected>Dernière profession exercée:</option>\n"+
|
"\t\t\t<option value='.' disabled selected>Dernière profession exercée:</option>\n"+
|
||||||
"\t\t\t<option value='0'>Inconnue</option>\n"+
|
"\t\t\t<option value='0'>Agriculateur exploitants</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Agriculateur exploitants</option>\n"+
|
"\t\t\t<option value='1'>Artisans</option>\n"+
|
||||||
"\t\t\t\t<option value='10'>Agriculteurs exploitants (Agriculteurs, maraîchers, viticulteurs…)</option>\n"+
|
"\t\t\t<option value='2'>Commerçants et assimilés</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Artisans, commerçants et chefs d'entreprises</option>\n"+
|
"\t\t\t<option value='3'>Chefs d'entreprise de 10 salariés ou plus</option>\n"+
|
||||||
"\t\t\t\t<option value='21'>Artisans (Maçons, électriciens, couturiers, boulangers, garagistes, coiffeurs…)</option>\n"+
|
"\t\t\t<option value='4'>Professions libérales et assimilés</option>\n"+
|
||||||
"\t\t\t\t<option value='22'>Commerçants et assimilés (Commerçants en détail ou en gros, buralistes, cafetiers, agents immobiliers…)</option>\n"+
|
"\t\t\t<option value='5'>Cadres de la fonction publique, professions intellectuelles et artistiques</option>\n"+
|
||||||
"\t\t\t\t<option value='23'>Chefs d'entreprise de 10 salariés ou plus</option>\n"+
|
"\t\t\t<option value='6'>Cadres d'entreprise</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Cadres et professions intellectuelles supérieures</option>\n"+
|
"\t\t\t<option value='7'>Professions intermétiaires de l'enseignement, de la santé, de la fonction publique et assimilés</option>\n"+
|
||||||
"\t\t\t\t<option value='31'>Professions libérales et assimilés (Médecins, avocats, notaires, architectes libéraux…)</option>\n"+
|
"\t\t\t<option value='8'>Professions intermédiaires administratives et commerciales des entreprises</option>\n"+
|
||||||
"\t\t\t\t<option value='32'>Cadres de la fonction publique, professions intellectuelles et artistiques (Personnels administratifs</option>\n"+
|
"\t\t\t<option value='9'>Techniciens</option>\n"+
|
||||||
"\t\t\t\t\t<option class='pad' value='32'>de catégorie A, professeurs de l’enseignement secondaire ou supérieur, médecins hospitaliers, artistes…)</option>\n"+
|
"\t\t\t<option value='10'>Contremaîtres, agents de maîtrise</option>\n"+
|
||||||
"\t\t\t\t<option value='36'>Cadres d'entreprise (Cadres administratifs, cadres commerciaux, ingénieurs…)</option>\n"+
|
"\t\t\t<option value='11'>Employés</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Professions Intermédiaires</option>\n"+
|
"\t\t\t<option value='12'>Ouvriers</option>\n"+
|
||||||
"\t\t\t\t<option value='41'>Professions intermédiaires de l'enseignement, de la santé, de la fonction publique et assimilés </option>\n"+
|
|
||||||
"\t\t\t\t\t<option class='pad' value='41'>(Personnels administratifs de catégorie B, instituteurs, infirmiers, travailleurs sociaux…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='46'>Professions intermédiaires administratives et commerciales des entreprises (Comptables, chargés de clientèles…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='47'>Techniciens (Techniciens d’études, techniciens de contrôle, dessinateurs en bâtiment, géomètres…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='48'>Contremaîtres, agents de maîtrise (Conducteurs de travaux, chefs d’équipe…)</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Employés</option>\n"+
|
|
||||||
"\t\t\t\t<option value='51'>Employés de la fonction publique (Personnels de catégorie C, agents administratifs, agents de service…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='54'>Employés administratifs d'entreprise (Secrétaires, agents d’accueil…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='55'>Employés de commerce (Vendeurs, caissiers…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='56'>Personnels des services directs aux particuliers (Serveurs, coiffeurs, assistantes maternelles…)</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Ouvriers</option>\n"+
|
|
||||||
"\t\t\t\t<option value='61'>Ouvriers qualifiés de type industriel ou artisanal (Mécaniciens, chauffeurs, cuisiniers…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='66'>Ouvriers non qualifiés de type industriel ou artisanal (Ouvrier de production, manœuvres…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='69'>Ouvriers agricoles (Bergers, ouvriers de la viticulture, bûcherons, ouvrier forestiers…)</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Retraités</option>\n"+
|
|
||||||
"\t\t\t\t<option value='71'>Anciens agriculteurs exploitants</option>\n"+
|
|
||||||
"\t\t\t\t<option value='72'>Anciens artisans, commerçants, chefs d'entreprise</option>\n"+
|
|
||||||
"\t\t\t\t<option value='73'>Anciens cadres</option>\n"+
|
|
||||||
"\t\t\t\t<option value='74'>Anciennes professions intermédiaires</option>\n"+
|
|
||||||
"\t\t\t\t<option value='75'>Anciens employés</option>\n"+
|
|
||||||
"\t\t\t\t<option value='76'>Anciens ouvriers</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Sans activité professionnelle</option>\n"+
|
|
||||||
"\t\t\t\t<option value='81'>Chômeurs n'ayant jamais travaillé</option>\n"+
|
|
||||||
"\t\t\t\t<option value='82'>Inactifs divers (autres que retraités)</option>\n"+
|
|
||||||
"\t\t</select></span>\n"+
|
"\t\t</select></span>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
@ -271,31 +245,14 @@ fFicheBuilder.setLayout(
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\t<span class='select-container'><select data-name='studies'>\n"+
|
"\t\t<span class='select-container'><select data-name='studies'>\n"+
|
||||||
"\t\t\t<option value='.' disabled selected>Niveau d'études maximal:</option>\n"+
|
"\t\t\t<option value='.' disabled selected>Niveau d'études maximal:</option>\n"+
|
||||||
"\t\t\t<option value='0'>Inconnue</option>\n"+
|
"\t\t\t<option value='0'>Aucun diplôme, CEP, BEPC</option>\n"+
|
||||||
"\t\t\t<option value='01'>Pas de scolarité</option>\n"+
|
"\t\t\t<option value='1'>CAP, CAPA, BEP, BEPA, Brevet de compagnon, Diplômes sociaux (aide-soignante, auxiliaire de puériculture, travailleuse familiale)</option>\n"+
|
||||||
"\t\t\t<option value='02'>Aucun diplôme mais scolarité jusqu'en école primaire ou au collège</option>\n"+
|
"\t\t\t<option value='2'>Bac technologique ou professionnel, brevet professionnel ou de technicien</option>\n"+
|
||||||
"\t\t\t<option value='03'>Aucun diplôme mais scolarité au-delà du collège</option>\n"+
|
"\t\t\t<option value='3'>Baccalauréat général, brevet supérieur</option>\n"+
|
||||||
"\t\t\t<option value='04'>Certificat d'études primaires (CEP)</option>\n"+
|
"\t\t\t<option value='4'>Diplôme universitaire de 1er cycle: Licence, BTS, DUT</option>\n"+
|
||||||
"\t\t\t<option value='05'>BEPC, brevet élémentaire, brevet des collèges</option>\n"+
|
"\t\t\t<option value='5'>Diplôme universitaire de 2ème cycle : MASTER, Maîtrise ou DEA, CAPES</option>\n"+
|
||||||
"\t\t\t<option value='06'>Certificat d'aptitudes professionnelles (CAP), brevet de compagnon, y compris CAPA</option>\n"+
|
"\t\t\t<option value='6'>Doctorat (y compris médecine, pharmacie, dentaire)</option>\n"+
|
||||||
"\t\t\t<option value='07'>Brevet d'études professionnelles (BEP), y compris BEPA et diplômes agricoles (BAA, BPA)</option>\n"+
|
"\t\t\t<option value='7'>Diplôme d'ingénieur, diplôme d'une grande école de commerce</option>\n"+
|
||||||
"\t\t\t\t<option value='07' class='pad'>Diplômes sociaux (aide-soignante, auxiliaire de puériculture, travailleuse familiale)</option>\n"+
|
|
||||||
"\t\t\t<option value='08'>Baccalauréat général, brevet supérieur</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='08'>BAC ( L, ES, S ou A, B , C, D, D’, E )</option>\n"+
|
|
||||||
"\t\t\t<option value='09'>Bac technologique ou professionnel, brevet professionnel ou de technicien</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='09'>BAC (STI, STL, SMS, STT ou F, G, H)</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='09'>BEC, BEI, BEH, capacité en droit</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='09'>Brevet de technicien agricole (BTA)</option>\n"+
|
|
||||||
|
|
||||||
"\t\t\t<option value='10'>Diplôme universitaire de 1er cycle</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='10'>BTS, DUT, DEUG</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='10'>Diplôme des professions sociales ou de santé, d'infirmier(ère)</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='10'>Diplôme universitaire propédeutique, DUEL, DUES, DEUG, PCEM</option>\n"+
|
|
||||||
"\t\t\t<option value='11'>Diplôme universitaire de 2ème ou 3ème cycle</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>MASTER, DOCTORAT (y compris médecine, pharmacie, dentaire),</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>Maîtrise, DEA, DESS,</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>CAPES, CAPET, agrégation</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>Diplôme d'ingénieur, d'une grande école, etc.</option>\n"+
|
|
||||||
"\t\t</select></span>\n"+
|
"\t\t</select></span>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
@ -307,8 +264,8 @@ fFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype3_f_@uid' value='3'><label for='reltype3_f_@uid'>Relation amoureuse</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype3_f_@uid' value='3'><label for='reltype3_f_@uid'>Relation amoureuse</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype4_f_@uid' value='4'><label for='reltype4_f_@uid'>Collègue</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype4_f_@uid' value='4'><label for='reltype4_f_@uid'>Collègue</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype5_f_@uid' value='5'><label for='reltype5_f_@uid'>Voisin</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype5_f_@uid' value='5'><label for='reltype5_f_@uid'>Voisin</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype6_f_@uid' value='6'><label for='reltype6_f_@uid'>Ami proche</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype6_f_@uid' value='6'><label for='reltype6_f_@uid'>Ami/Copain</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype7_f_@uid' value='7'><label for='reltype7_f_@uid'>Ami</label><br>\n"+
|
// "\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype7_f_@uid' value='7'><label for='reltype7_f_@uid'>Ami</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype10_f_@uid' value='10'><label for='reltype10_f_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
"\t\t <input type='radio' name='reltype_f_@uid' data-name='reltype' id='reltype10_f_@uid' value='10'><label for='reltype10_f_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
@ -366,7 +323,7 @@ fFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq02_f_@uid' value='1'><label for='freq02_f_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq02_f_@uid' value='1'><label for='freq02_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq03_f_@uid' value='2'><label for='freq03_f_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq03_f_@uid' value='2'><label for='freq03_f_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq04_f_@uid' value='3'><label for='freq04_f_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq04_f_@uid' value='3'><label for='freq04_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq05_f_@uid' value='4'><label for='freq05_f_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq0_f_@uid' data-name='freq' id='freq05_f_@uid' value='4'><label for='freq05_f_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -375,7 +332,7 @@ fFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq07_f_@uid' value='6'><label for='freq07_f_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq07_f_@uid' value='6'><label for='freq07_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq08_f_@uid' value='7'><label for='freq08_f_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq08_f_@uid' value='7'><label for='freq08_f_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq09_f_@uid' value='8'><label for='freq09_f_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq09_f_@uid' value='8'><label for='freq09_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq10_f_@uid' value='9'><label for='freq10_f_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq1_f_@uid' data-name='freq' id='freq10_f_@uid' value='9'><label for='freq10_f_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -384,7 +341,7 @@ fFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq12_f_@uid' value='11'><label for='freq12_f_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq12_f_@uid' value='11'><label for='freq12_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq13_f_@uid' value='12'><label for='freq13_f_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq13_f_@uid' value='12'><label for='freq13_f_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq14_f_@uid' value='13'><label for='freq14_f_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq14_f_@uid' value='13'><label for='freq14_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq15_f_@uid' value='14'><label for='freq15_f_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq2_f_@uid' data-name='freq' id='freq15_f_@uid' value='14'><label for='freq15_f_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -393,7 +350,7 @@ fFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq17_f_@uid' value='16'><label for='freq17_f_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq17_f_@uid' value='16'><label for='freq17_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq18_f_@uid' value='17'><label for='freq18_f_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq18_f_@uid' value='17'><label for='freq18_f_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq19_f_@uid' value='18'><label for='freq19_f_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq19_f_@uid' value='18'><label for='freq19_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq20_f_@uid' value='19'><label for='freq20_f_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq3_f_@uid' data-name='freq' id='freq20_f_@uid' value='19'><label for='freq20_f_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -402,7 +359,7 @@ fFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq22_f_@uid' value='21'><label for='freq22_f_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq22_f_@uid' value='21'><label for='freq22_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq23_f_@uid' value='22'><label for='freq23_f_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq23_f_@uid' value='22'><label for='freq23_f_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq24_f_@uid' value='23'><label for='freq24_f_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq24_f_@uid' value='23'><label for='freq24_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq25_f_@uid' value='24'><label for='freq25_f_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq4_f_@uid' data-name='freq' id='freq25_f_@uid' value='24'><label for='freq25_f_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
@ -451,4 +408,96 @@ fFicheBuilder.setLayout(
|
||||||
"\t\tVous communiquez dans un autre dispositif (blogs, jeu vidéo ou autre) : <input type='text' data-name='connectSpecial' value='@connectspecial1'>\n"+
|
"\t\tVous communiquez dans un autre dispositif (blogs, jeu vidéo ou autre) : <input type='text' data-name='connectSpecial' value='@connectspecial1'>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h4 data-icon='g'>Comment cette personne utilise-t-elle les médias sociaux de votre point de vue ? Il s'agit :</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_f_@uid' data-name='medsoc' id='medsocA_f_@uid' value='0'><label for='medsocA_f_@uid'>D'une personne qui n'utilise pas ou peu les médias sociaux</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_f_@uid' data-name='medsoc' id='medsocB_f_@uid' value='1'><label for='medsocB_f_@uid'>D'une personne qui consulte des publications mais partage peu de contenus</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_f_@uid' data-name='medsoc' id='medsocC_f_@uid' value='2'><label for='medsocC_f_@uid'>D'une personne qui consulte des publication et partage des contenus de temps en temps</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_f_@uid' data-name='medsoc' id='medsocD_f_@uid' value='3'><label for='medsocD_f_@uid'>D'une personne qui partage beaucoup de contenus et s'exprime fréquemment</label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>Sur une échelle de 1 à 5, préciser l'intérêt que vous accordez aux contenue qu'elle partage via les médias sociaux<br><br>\n"+
|
||||||
|
// "\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='interest'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Intérêt</option>\n"+
|
||||||
|
"\t\t\t<option value='0'>1 - Ne vous intéresse pas</option>\n"+
|
||||||
|
"\t\t\t<option value='1'>2</option>\n"+
|
||||||
|
"\t\t\t<option value='2'>3</option>\n"+
|
||||||
|
"\t\t\t<option value='3'>4</option>\n"+
|
||||||
|
"\t\t\t<option value='4'>5 - Vous intéresse beaucoup</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
// RELEASE v2
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h4 data-icon='z'>Selon vous, à quelle fréquence cette personne ?</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPublie des commentaires personnels ou réagit aux publications des autres ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_f_@uid' data-name='irlfreq' id='irlfreq01_f_@uid' value='0'><label for='irlfreq01_f_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_f_@uid' data-name='irlfreq' id='irlfreq02_f_@uid' value='1'><label for='irlfreq02_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_f_@uid' data-name='irlfreq' id='irlfreq03_f_@uid' value='2'><label for='irlfreq03_f_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_f_@uid' data-name='irlfreq' id='irlfreq04_f_@uid' value='3'><label for='irlfreq04_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq0_f_@uid' data-name='irlfreq' id='irlfreq05_f_@uid' value='4'><label for='irlfreq05_f_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPublie des photos personnelles (profil, voyages, etc.) ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_f_@uid' data-name='irlfreq' id='irlfreq06_f_@uid' value='5'><label for='irlfreq06_f_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_f_@uid' data-name='irlfreq' id='irlfreq07_f_@uid' value='6'><label for='irlfreq07_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_f_@uid' data-name='irlfreq' id='irlfreq08_f_@uid' value='7'><label for='irlfreq08_f_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_f_@uid' data-name='irlfreq' id='irlfreq09_f_@uid' value='8'><label for='irlfreq09_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq1_f_@uid' data-name='irlfreq' id='irlfreq10_f_@uid' value='9'><label for='irlfreq10_f_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPartage de la musique ou des clips musicaux ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_f_@uid' data-name='irlfreq' id='irlfreq11_f_@uid' value='10'><label for='irlfreq11_f_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_f_@uid' data-name='irlfreq' id='irlfreq12_f_@uid' value='11'><label for='irlfreq12_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_f_@uid' data-name='irlfreq' id='irlfreq13_f_@uid' value='12'><label for='irlfreq13_f_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_f_@uid' data-name='irlfreq' id='irlfreq14_f_@uid' value='13'><label for='irlfreq14_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq2_f_@uid' data-name='irlfreq' id='irlfreq15_f_@uid' value='14'><label for='irlfreq15_f_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPartage des informations culturelles (concert, exposition, etc.) ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_f_@uid' data-name='irlfreq' id='irlfreq16_f_@uid' value='15'><label for='irlfreq16_f_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_f_@uid' data-name='irlfreq' id='irlfreq17_f_@uid' value='16'><label for='irlfreq17_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_f_@uid' data-name='irlfreq' id='irlfreq18_f_@uid' value='17'><label for='irlfreq18_f_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_f_@uid' data-name='irlfreq' id='irlfreq19_f_@uid' value='18'><label for='irlfreq19_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq3_f_@uid' data-name='irlfreq' id='irlfreq20_f_@uid' value='19'><label for='irlfreq20_f_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPartage des articles, des informations, des contenus avec une portée politique ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_f_@uid' data-name='irlfreq' id='irlfreq21_f_@uid' value='20'><label for='irlfreq21_f_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_f_@uid' data-name='irlfreq' id='irlfreq22_f_@uid' value='21'><label for='irlfreq22_f_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_f_@uid' data-name='irlfreq' id='irlfreq23_f_@uid' value='22'><label for='irlfreq23_f_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_f_@uid' data-name='irlfreq' id='irlfreq24_f_@uid' value='23'><label for='irlfreq24_f_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq4_f_@uid' data-name='irlfreq' id='irlfreq25_f_@uid' value='24'><label for='irlfreq25_f_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>Sur une échelle de 1 à 5, comment jugez-vous votre relation à cette personne ?<br><br>\n"+
|
||||||
|
// "\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='relmark'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Relation</option>\n"+
|
||||||
|
"\t\t\t<option value='0'>1 - Pas du tout proche</option>\n"+
|
||||||
|
"\t\t\t<option value='1'>2</option>\n"+
|
||||||
|
"\t\t\t<option value='2'>3</option>\n"+
|
||||||
|
"\t\t\t<option value='3'>4</option>\n"+
|
||||||
|
"\t\t\t<option value='4'>5 - Très proche</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>Considérez-vous que vos échange avec cette personne à travers les médias sociaux: </h5>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='medrel_f_@uid' data-name='medrel' id='medrelA_f_@uid' value='0'><label for='medrelA_f_@uid'>N'ont aucun effet sur votre relation</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medrel_f_@uid' data-name='medrel' id='medrelB_f_@uid' value='1'><label for='medrelB_f_@uid'>Vous ont rapproché d'elle</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medrel_f_@uid' data-name='medrel' id='medrelC_f_@uid' value='2'><label for='medrelC_f_@uid'>Vous ont éloigné d'elle</label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"</article>\n");
|
"</article>\n");
|
||||||
|
|
|
@ -59,13 +59,6 @@ pMiniFicheBuilder.setLayout(
|
||||||
"\t\t<input type='checkbox' data-name='unknown' id='unknown_min_p_@uid' value='1'><label for='unknown_min_p_@uid'>Contact inconnu</label>"+
|
"\t\t<input type='checkbox' data-name='unknown' id='unknown_min_p_@uid' value='1'><label for='unknown_min_p_@uid'>Contact inconnu</label>"+
|
||||||
"\t</h5>"+
|
"\t</h5>"+
|
||||||
|
|
||||||
// "\t<h5 class='nobold color0'>"+
|
|
||||||
// "\t\t@countcall appels"+
|
|
||||||
// "\t</h5>"+
|
|
||||||
// "\t<h5 class='nobold color0'>"+
|
|
||||||
// "\t\t@countsms sms"+
|
|
||||||
// "\t</h5>"+
|
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\t<input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeH_mini_p_@uid' value='0'><label for='sexeH_mini_p_@uid'>Homme</label>\n"+
|
"\t\t<input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeH_mini_p_@uid' value='0'><label for='sexeH_mini_p_@uid'>Homme</label>\n"+
|
||||||
"\t\t <input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeF_mini_p_@uid' value='1'><label for='sexeF_mini_p_@uid'>Femme</label>\n"+
|
"\t\t <input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeF_mini_p_@uid' value='1'><label for='sexeF_mini_p_@uid'>Femme</label>\n"+
|
||||||
|
@ -121,9 +114,7 @@ pMiniFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype3_mini_p_@uid' value='3'><label for='reltype3_mini_p_@uid'>Relation amoureuse</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype3_mini_p_@uid' value='3'><label for='reltype3_mini_p_@uid'>Relation amoureuse</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype4_mini_p_@uid' value='4'><label for='reltype4_mini_p_@uid'>Collègue</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype4_mini_p_@uid' value='4'><label for='reltype4_mini_p_@uid'>Collègue</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype5_mini_p_@uid' value='5'><label for='reltype5_mini_p_@uid'>Voisin</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype5_mini_p_@uid' value='5'><label for='reltype5_mini_p_@uid'>Voisin</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype6_mini_p_@uid' value='6'><label for='reltype6_mini_p_@uid'>Ami proche</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype6_mini_p_@uid' value='6'><label for='reltype6_mini_p_@uid'>Ami/Copain</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype7_mini_p_@uid' value='7'><label for='reltype7_mini_p_@uid'>Ami</label><br>\n"+
|
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype8_mini_p_@uid' value='8'><label for='reltype8_mini_p_@uid'>Relation de service (médecin, ...)</label><br>\n"+
|
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype9_mini_p_@uid' value='9'><label for='reltype9_mini_p_@uid'>Inconnu</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype9_mini_p_@uid' value='9'><label for='reltype9_mini_p_@uid'>Inconnu</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype10_mini_p_@uid' value='10'><label for='reltype10_mini_p_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype10_mini_p_@uid' value='10'><label for='reltype10_mini_p_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
@ -167,14 +158,6 @@ pMiniFicheBuilder.setLayout(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -236,43 +219,19 @@ pFicheBuilder.setLayout(
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\t<span class='select-container'><select data-name='job'>\n"+
|
"\t\t<span class='select-container'><select data-name='job'>\n"+
|
||||||
"\t\t\t<option value='.' disabled selected>Dernière profession exercée:</option>\n"+
|
"\t\t\t<option value='.' disabled selected>Dernière profession exercée:</option>\n"+
|
||||||
"\t\t\t<option value='0'>Inconnue</option>\n"+
|
"\t\t\t<option value='0'>Agriculateur exploitants</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Agriculateur exploitants</option>\n"+
|
"\t\t\t<option value='1'>Artisans</option>\n"+
|
||||||
"\t\t\t\t<option value='10'>Agriculteurs exploitants (Agriculteurs, maraîchers, viticulteurs…)</option>\n"+
|
"\t\t\t<option value='2'>Commerçants et assimilés</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Artisans, commerçants et chefs d'entreprises</option>\n"+
|
"\t\t\t<option value='3'>Chefs d'entreprise de 10 salariés ou plus</option>\n"+
|
||||||
"\t\t\t\t<option value='21'>Artisans (Maçons, électriciens, couturiers, boulangers, garagistes, coiffeurs…)</option>\n"+
|
"\t\t\t<option value='4'>Professions libérales et assimilés</option>\n"+
|
||||||
"\t\t\t\t<option value='22'>Commerçants et assimilés (Commerçants en détail ou en gros, buralistes, cafetiers, agents immobiliers…)</option>\n"+
|
"\t\t\t<option value='5'>Cadres de la fonction publique, professions intellectuelles et artistiques</option>\n"+
|
||||||
"\t\t\t\t<option value='23'>Chefs d'entreprise de 10 salariés ou plus</option>\n"+
|
"\t\t\t<option value='6'>Cadres d'entreprise</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Cadres et professions intellectuelles supérieures</option>\n"+
|
"\t\t\t<option value='7'>Professions intermétiaires de l'enseignement, de la santé, de la fonction publique et assimilés</option>\n"+
|
||||||
"\t\t\t\t<option value='31'>Professions libérales et assimilés (Médecins, avocats, notaires, architectes libéraux…)</option>\n"+
|
"\t\t\t<option value='8'>Professions intermédiaires administratives et commerciales des entreprises</option>\n"+
|
||||||
"\t\t\t\t<option value='32'>Cadres de la fonction publique, professions intellectuelles et artistiques (Personnels administratifs</option>\n"+
|
"\t\t\t<option value='9'>Techniciens</option>\n"+
|
||||||
"\t\t\t\t\t<option class='pad' value='32'>de catégorie A, professeurs de l’enseignement secondaire ou supérieur, médecins hospitaliers, artistes…)</option>\n"+
|
"\t\t\t<option value='10'>Contremaîtres, agents de maîtrise</option>\n"+
|
||||||
"\t\t\t\t<option value='36'>Cadres d'entreprise (Cadres administratifs, cadres commerciaux, ingénieurs…)</option>\n"+
|
"\t\t\t<option value='11'>Employés</option>\n"+
|
||||||
"\t\t\t<option value='.' disabled>Professions Intermédiaires</option>\n"+
|
"\t\t\t<option value='12'>Ouvriers</option>\n"+
|
||||||
"\t\t\t\t<option value='41'>Professions intermédiaires de l'enseignement, de la santé, de la fonction publique et assimilés </option>\n"+
|
|
||||||
"\t\t\t\t\t<option class='pad' value='41'>(Personnels administratifs de catégorie B, instituteurs, infirmiers, travailleurs sociaux…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='46'>Professions intermédiaires administratives et commerciales des entreprises (Comptables, chargés de clientèles…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='47'>Techniciens (Techniciens d’études, techniciens de contrôle, dessinateurs en bâtiment, géomètres…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='48'>Contremaîtres, agents de maîtrise (Conducteurs de travaux, chefs d’équipe…)</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Employés</option>\n"+
|
|
||||||
"\t\t\t\t<option value='51'>Employés de la fonction publique (Personnels de catégorie C, agents administratifs, agents de service…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='54'>Employés administratifs d'entreprise (Secrétaires, agents d’accueil…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='55'>Employés de commerce (Vendeurs, caissiers…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='56'>Personnels des services directs aux particuliers (Serveurs, coiffeurs, assistantes maternelles…)</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Ouvriers</option>\n"+
|
|
||||||
"\t\t\t\t<option value='61'>Ouvriers qualifiés de type industriel ou artisanal (Mécaniciens, chauffeurs, cuisiniers…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='66'>Ouvriers non qualifiés de type industriel ou artisanal (Ouvrier de production, manœuvres…)</option>\n"+
|
|
||||||
"\t\t\t\t<option value='69'>Ouvriers agricoles (Bergers, ouvriers de la viticulture, bûcherons, ouvrier forestiers…)</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Retraités</option>\n"+
|
|
||||||
"\t\t\t\t<option value='71'>Anciens agriculteurs exploitants</option>\n"+
|
|
||||||
"\t\t\t\t<option value='72'>Anciens artisans, commerçants, chefs d'entreprise</option>\n"+
|
|
||||||
"\t\t\t\t<option value='73'>Anciens cadres</option>\n"+
|
|
||||||
"\t\t\t\t<option value='74'>Anciennes professions intermédiaires</option>\n"+
|
|
||||||
"\t\t\t\t<option value='75'>Anciens employés</option>\n"+
|
|
||||||
"\t\t\t\t<option value='76'>Anciens ouvriers</option>\n"+
|
|
||||||
"\t\t\t<option value='.' disabled>Sans activité professionnelle</option>\n"+
|
|
||||||
"\t\t\t\t<option value='81'>Chômeurs n'ayant jamais travaillé</option>\n"+
|
|
||||||
"\t\t\t\t<option value='82'>Inactifs divers (autres que retraités)</option>\n"+
|
|
||||||
"\t\t</select></span>\n"+
|
"\t\t</select></span>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
@ -288,31 +247,14 @@ pFicheBuilder.setLayout(
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\t<span class='select-container'><select data-name='studies'>\n"+
|
"\t\t<span class='select-container'><select data-name='studies'>\n"+
|
||||||
"\t\t\t<option value='.' disabled selected>Niveau d'études maximal:</option>\n"+
|
"\t\t\t<option value='.' disabled selected>Niveau d'études maximal:</option>\n"+
|
||||||
"\t\t\t<option value='0'>Inconnue</option>\n"+
|
"\t\t\t<option value='0'>Aucun diplôme, CEP, BEPC</option>\n"+
|
||||||
"\t\t\t<option value='01'>Pas de scolarité</option>\n"+
|
"\t\t\t<option value='1'>CAP, CAPA, BEP, BEPA, Brevet de compagnon, Diplômes sociaux (aide-soignante, auxiliaire de puériculture, travailleuse familiale)</option>\n"+
|
||||||
"\t\t\t<option value='02'>Aucun diplôme mais scolarité jusqu'en école primaire ou au collège</option>\n"+
|
"\t\t\t<option value='2'>Bac technologique ou professionnel, brevet professionnel ou de technicien</option>\n"+
|
||||||
"\t\t\t<option value='03'>Aucun diplôme mais scolarité au-delà du collège</option>\n"+
|
"\t\t\t<option value='3'>Baccalauréat général, brevet supérieur</option>\n"+
|
||||||
"\t\t\t<option value='04'>Certificat d'études primaires (CEP)</option>\n"+
|
"\t\t\t<option value='4'>Diplôme universitaire de 1er cycle: Licence, BTS, DUT</option>\n"+
|
||||||
"\t\t\t<option value='05'>BEPC, brevet élémentaire, brevet des collèges</option>\n"+
|
"\t\t\t<option value='5'>Diplôme universitaire de 2ème cycle : MASTER, Maîtrise ou DEA, CAPES</option>\n"+
|
||||||
"\t\t\t<option value='06'>Certificat d'aptitudes professionnelles (CAP), brevet de compagnon, y compris CAPA</option>\n"+
|
"\t\t\t<option value='6'>Doctorat (y compris médecine, pharmacie, dentaire)</option>\n"+
|
||||||
"\t\t\t<option value='07'>Brevet d'études professionnelles (BEP), y compris BEPA et diplômes agricoles (BAA, BPA)</option>\n"+
|
"\t\t\t<option value='7'>Diplôme d'ingénieur, diplôme d'une grande école de commerce</option>\n"+
|
||||||
"\t\t\t\t<option value='07' class='pad'>Diplômes sociaux (aide-soignante, auxiliaire de puériculture, travailleuse familiale)</option>\n"+
|
|
||||||
"\t\t\t<option value='08'>Baccalauréat général, brevet supérieur</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='08'>BAC ( L, ES, S ou A, B , C, D, D’, E )</option>\n"+
|
|
||||||
"\t\t\t<option value='09'>Bac technologique ou professionnel, brevet professionnel ou de technicien</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='09'>BAC (STI, STL, SMS, STT ou F, G, H)</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='09'>BEC, BEI, BEH, capacité en droit</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='09'>Brevet de technicien agricole (BTA)</option>\n"+
|
|
||||||
|
|
||||||
"\t\t\t<option value='10'>Diplôme universitaire de 1er cycle</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='10'>BTS, DUT, DEUG</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='10'>Diplôme des professions sociales ou de santé, d'infirmier(ère)</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='10'>Diplôme universitaire propédeutique, DUEL, DUES, DEUG, PCEM</option>\n"+
|
|
||||||
"\t\t\t<option value='11'>Diplôme universitaire de 2ème ou 3ème cycle</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>MASTER, DOCTORAT (y compris médecine, pharmacie, dentaire),</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>Maîtrise, DEA, DESS,</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>CAPES, CAPET, agrégation</option>\n"+
|
|
||||||
"\t\t\t\t<option class='pad' value='11'>Diplôme d'ingénieur, d'une grande école, etc.</option>\n"+
|
|
||||||
"\t\t</select></span>\n"+
|
"\t\t</select></span>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
@ -324,9 +266,9 @@ pFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype3_p_@uid' value='3'><label for='reltype3_p_@uid'>Relation amoureuse</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype3_p_@uid' value='3'><label for='reltype3_p_@uid'>Relation amoureuse</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype4_p_@uid' value='4'><label for='reltype4_p_@uid'>Collègue</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype4_p_@uid' value='4'><label for='reltype4_p_@uid'>Collègue</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype5_p_@uid' value='5'><label for='reltype5_p_@uid'>Voisin</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype5_p_@uid' value='5'><label for='reltype5_p_@uid'>Voisin</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype6_p_@uid' value='6'><label for='reltype6_p_@uid'>Ami proche</label><br>\n"+
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype6_p_@uid' value='6'><label for='reltype6_p_@uid'>Ami/Copain</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype7_p_@uid' value='7'><label for='reltype7_p_@uid'>Ami</label><br>\n"+
|
// "\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype7_p_@uid' value='7'><label for='reltype7_p_@uid'>Ami</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype8_p_@uid' value='8'><label for='reltype8_p_@uid'>Relation de service (médecin, ...)</label><br>\n"+
|
// "\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype8_p_@uid' value='8'><label for='reltype8_p_@uid'>Relation de service (médecin, ...)</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype10_p_@uid' value='10'><label for='reltype10_p_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype10_p_@uid' value='10'><label for='reltype10_p_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
@ -342,7 +284,8 @@ pFicheBuilder.setLayout(
|
||||||
|
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\tÀ combien de temps est-ce de chez vous ?<br>\n"+
|
"\t\tÀ combien de temps est-ce de chez vous (en voiture) ?<br>\n"+
|
||||||
|
"\t\t(si deux domiciles, le plus proche)<br>\n"+
|
||||||
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locA_p_@uid' value='0'><label for='locA_p_@uid'>- de 5 minutes</label><br>\n"+
|
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locA_p_@uid' value='0'><label for='locA_p_@uid'>- de 5 minutes</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locB_p_@uid' value='1'><label for='locB_p_@uid'>de 5 à 15 minutes</label><br>\n"+
|
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locB_p_@uid' value='1'><label for='locB_p_@uid'>de 5 à 15 minutes</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locC_p_@uid' value='2'><label for='locC_p_@uid'>de 15 à 60 minutes</label><br>\n"+
|
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locC_p_@uid' value='2'><label for='locC_p_@uid'>de 15 à 60 minutes</label><br>\n"+
|
||||||
|
@ -360,7 +303,7 @@ pFicheBuilder.setLayout(
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte0_p_@uid' value='0'><label for='contexte0_p_@uid'>De la même famille</label><br>\n"+
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte0_p_@uid' value='0'><label for='contexte0_p_@uid'>De la même famille</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte1_p_@uid' value='1'><label for='contexte1_p_@uid'>Grandi ensemble</label><br>\n"+
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte1_p_@uid' value='1'><label for='contexte1_p_@uid'>Grandi ensemble</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte2_p_@uid' value='2'><label for='contexte2_p_@uid'>Par mon mari/ma femme/relation amoureuse</label><br>\n"+
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte2_p_@uid' value='2'><label for='contexte2_p_@uid'>Par mon conjoint/partenaire</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte3_p_@uid' value='3'><label for='contexte3_p_@uid'>Par mes parents</label><br>\n"+
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte3_p_@uid' value='3'><label for='contexte3_p_@uid'>Par mes parents</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte4_p_@uid' value='4'><label for='contexte4_p_@uid'>Par mes enfants</label><br>\n"+
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte4_p_@uid' value='4'><label for='contexte4_p_@uid'>Par mes enfants</label><br>\n"+
|
||||||
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte5_p_@uid' value='5'><label for='contexte5_p_@uid'>Par un ami</label><br>\n"+
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte5_p_@uid' value='5'><label for='contexte5_p_@uid'>Par un ami</label><br>\n"+
|
||||||
|
@ -384,7 +327,7 @@ pFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq02_p_@uid' value='1'><label for='freq02_p_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq02_p_@uid' value='1'><label for='freq02_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq03_p_@uid' value='2'><label for='freq03_p_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq03_p_@uid' value='2'><label for='freq03_p_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq04_p_@uid' value='3'><label for='freq04_p_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq04_p_@uid' value='3'><label for='freq04_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq05_p_@uid' value='4'><label for='freq05_p_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq05_p_@uid' value='4'><label for='freq05_p_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -393,7 +336,7 @@ pFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq07_p_@uid' value='6'><label for='freq07_p_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq07_p_@uid' value='6'><label for='freq07_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq08_p_@uid' value='7'><label for='freq08_p_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq08_p_@uid' value='7'><label for='freq08_p_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq09_p_@uid' value='8'><label for='freq09_p_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq09_p_@uid' value='8'><label for='freq09_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq10_p_@uid' value='9'><label for='freq10_p_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq10_p_@uid' value='9'><label for='freq10_p_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -402,7 +345,7 @@ pFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq12_p_@uid' value='11'><label for='freq12_p_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq12_p_@uid' value='11'><label for='freq12_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq13_p_@uid' value='12'><label for='freq13_p_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq13_p_@uid' value='12'><label for='freq13_p_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq14_p_@uid' value='13'><label for='freq14_p_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq14_p_@uid' value='13'><label for='freq14_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq15_p_@uid' value='14'><label for='freq15_p_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq15_p_@uid' value='14'><label for='freq15_p_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -411,7 +354,7 @@ pFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq17_p_@uid' value='16'><label for='freq17_p_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq17_p_@uid' value='16'><label for='freq17_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq18_p_@uid' value='17'><label for='freq18_p_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq18_p_@uid' value='17'><label for='freq18_p_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq19_p_@uid' value='18'><label for='freq19_p_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq19_p_@uid' value='18'><label for='freq19_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq20_p_@uid' value='19'><label for='freq20_p_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq20_p_@uid' value='19'><label for='freq20_p_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
@ -420,7 +363,7 @@ pFicheBuilder.setLayout(
|
||||||
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq22_p_@uid' value='21'><label for='freq22_p_@uid'>1 fois par semaine</label>\n"+
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq22_p_@uid' value='21'><label for='freq22_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq23_p_@uid' value='22'><label for='freq23_p_@uid'>1 fois par mois</label>\n"+
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq23_p_@uid' value='22'><label for='freq23_p_@uid'>1 fois par mois</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq24_p_@uid' value='23'><label for='freq24_p_@uid'>1 fois par an ou moins</label>\n"+
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq24_p_@uid' value='23'><label for='freq24_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq25_p_@uid' value='24'><label for='freq25_p_@uid'>Jamais</label>\n"+
|
// "\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq25_p_@uid' value='24'><label for='freq25_p_@uid'>Jamais</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
@ -438,35 +381,125 @@ pFicheBuilder.setLayout(
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\tElle figure parmi vos amis facebook<br>\n"+
|
"\t\tElle figure parmi vos amis facebook (idem)<br>\n"+
|
||||||
"\t\t <input type='radio' name='connect3_p_@uid' data-name='connect' id='connect31_p_@uid' value='4'><label for='connect31_p_@uid'>Oui</label>\n"+
|
"\t\t <input type='radio' name='connect3_p_@uid' data-name='connect' id='connect31_p_@uid' value='4'><label for='connect31_p_@uid'>Oui</label>\n"+
|
||||||
"\t\t <input type='radio' name='connect3_p_@uid' data-name='connect' id='connect32_p_@uid' value='5'><label for='connect32_p_@uid'>Non</label>\n"+
|
"\t\t <input type='radio' name='connect3_p_@uid' data-name='connect' id='connect32_p_@uid' value='5'><label for='connect32_p_@uid'>Non</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\tElle figure parmi vos amis facebook et vous interagissez avec elle sur ce dispositif régulièrement<br>\n"+
|
"\t\tElle figure parmi vos amis facebook et vous interagissez avec elle sur ce dispositif régulièrement (idem)<br>\n"+
|
||||||
"\t\t <input type='radio' name='connect4_p_@uid' data-name='connect' id='connect41_p_@uid' value='6'><label for='connect41_p_@uid'>Oui</label>\n"+
|
"\t\t <input type='radio' name='connect4_p_@uid' data-name='connect' id='connect41_p_@uid' value='6'><label for='connect41_p_@uid'>Oui</label>\n"+
|
||||||
"\t\t <input type='radio' name='connect4_p_@uid' data-name='connect' id='connect42_p_@uid' value='7'><label for='connect42_p_@uid'>Non</label>\n"+
|
"\t\t <input type='radio' name='connect4_p_@uid' data-name='connect' id='connect42_p_@uid' value='7'><label for='connect42_p_@uid'>Non</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\tVous le suivez sur Twitter<br>\n"+
|
"\t\tVous le suivez sur Twitter (ou elle vous suit)<br>\n"+
|
||||||
"\t\t <input type='radio' name='connect5_p_@uid' data-name='connect' id='connect51_p_@uid' value='8'><label for='connect51_p_@uid'>Oui</label>\n"+
|
"\t\t <input type='radio' name='connect5_p_@uid' data-name='connect' id='connect51_p_@uid' value='8'><label for='connect51_p_@uid'>Oui</label>\n"+
|
||||||
"\t\t <input type='radio' name='connect5_p_@uid' data-name='connect' id='connect52_p_@uid' value='9'><label for='connect52_p_@uid'>Non</label>\n"+
|
"\t\t <input type='radio' name='connect5_p_@uid' data-name='connect' id='connect52_p_@uid' value='9'><label for='connect52_p_@uid'>Non</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\tVous communiquez avec cette personne sur Twitter<br>\n"+
|
"\t\tVous communiquez avec cette personne sur Twitter (idem)<br>\n"+
|
||||||
"\t\t <input type='radio' name='connect6_p_@uid' data-name='connect' id='connect61_p_@uid' value='10'><label for='connect61_p_@uid'>Oui</label>\n"+
|
"\t\t <input type='radio' name='connect6_p_@uid' data-name='connect' id='connect61_p_@uid' value='10'><label for='connect61_p_@uid'>Oui</label>\n"+
|
||||||
"\t\t <input type='radio' name='connect6_p_@uid' data-name='connect' id='connect62_p_@uid' value='11'><label for='connect62_p_@uid'>Non</label>\n"+
|
"\t\t <input type='radio' name='connect6_p_@uid' data-name='connect' id='connect62_p_@uid' value='11'><label for='connect62_p_@uid'>Non</label>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\tVous communiquez dans autre réseau social : <input type='text' data-name='connectSpecial' value='@connectspecial0'>\n"+
|
"\t\tVous communiquez dans autre réseau : <input type='text' data-name='connectSpecial' value='@connectspecial0'>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"\t<h5 class='nobold color0'>\n"+
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
"\t\tVous communiquez dans un autre dispositif (blogs, jeu vidéo ou autre) : <input type='text' data-name='connectSpecial' value='@connectspecial1'>\n"+
|
"\t\tVous communiquez dans un autre dispositif (blogs, jeu vidéo ou autre) : <input type='text' data-name='connectSpecial' value='@connectspecial1'>\n"+
|
||||||
"\t</h5>\n"+
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
// RELEASE v2
|
||||||
|
|
||||||
|
"\t<h4 data-icon='g'>Comment cette personne utilise-t-elle les médias sociaux de votre point de vue ? Il s'agit :</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_p_@uid' data-name='medsoc' id='medsocA_p_@uid' value='0'><label for='medsocA_p_@uid'>D'une personne qui n'utilise pas ou peu les médias sociaux</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_p_@uid' data-name='medsoc' id='medsocB_p_@uid' value='1'><label for='medsocB_p_@uid'>D'une personne qui consulte des publications mais partage peu de contenus</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_p_@uid' data-name='medsoc' id='medsocC_p_@uid' value='2'><label for='medsocC_p_@uid'>D'une personne qui consulte des publication et partage des contenus de temps en temps</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medsoc_p_@uid' data-name='medsoc' id='medsocD_p_@uid' value='3'><label for='medsocD_p_@uid'>D'une personne qui partage beaucoup de contenus et s'exprime fréquemment</label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>Sur une échelle de 1 à 5, préciser l'intérêt que vous accordez aux contenue qu'elle partage via les médias sociaux<br><br>\n"+
|
||||||
|
// "\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='interest'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Intérêt</option>\n"+
|
||||||
|
"\t\t\t<option value='0'>1 - Ne vous intéresse pas</option>\n"+
|
||||||
|
"\t\t\t<option value='1'>2</option>\n"+
|
||||||
|
"\t\t\t<option value='2'>3</option>\n"+
|
||||||
|
"\t\t\t<option value='3'>4</option>\n"+
|
||||||
|
"\t\t\t<option value='4'>5 - Vous intéresse beaucoup</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h4 data-icon='z'>Selon vous, à quelle fréquence cette personne ?</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPublie des commentaires personnels ou réagit aux publications des autres ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_p_@uid' data-name='irlfreq' id='irlfreq01_p_@uid' value='0'><label for='irlfreq01_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_p_@uid' data-name='irlfreq' id='irlfreq02_p_@uid' value='1'><label for='irlfreq02_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_p_@uid' data-name='irlfreq' id='irlfreq03_p_@uid' value='2'><label for='irlfreq03_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq0_p_@uid' data-name='irlfreq' id='irlfreq04_p_@uid' value='3'><label for='irlfreq04_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq0_p_@uid' data-name='irlfreq' id='irlfreq05_p_@uid' value='4'><label for='irlfreq05_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPublie des photos personnelles (profil, voyages, etc.) ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_p_@uid' data-name='irlfreq' id='irlfreq06_p_@uid' value='5'><label for='irlfreq06_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_p_@uid' data-name='irlfreq' id='irlfreq07_p_@uid' value='6'><label for='irlfreq07_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_p_@uid' data-name='irlfreq' id='irlfreq08_p_@uid' value='7'><label for='irlfreq08_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq1_p_@uid' data-name='irlfreq' id='irlfreq09_p_@uid' value='8'><label for='irlfreq09_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq1_p_@uid' data-name='irlfreq' id='irlfreq10_p_@uid' value='9'><label for='irlfreq10_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPartage de la musique ou des clips musicaux ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_p_@uid' data-name='irlfreq' id='irlfreq11_p_@uid' value='10'><label for='irlfreq11_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_p_@uid' data-name='irlfreq' id='irlfreq12_p_@uid' value='11'><label for='irlfreq12_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_p_@uid' data-name='irlfreq' id='irlfreq13_p_@uid' value='12'><label for='irlfreq13_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq2_p_@uid' data-name='irlfreq' id='irlfreq14_p_@uid' value='13'><label for='irlfreq14_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq2_p_@uid' data-name='irlfreq' id='irlfreq15_p_@uid' value='14'><label for='irlfreq15_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPartage des informations culturelles (concert, exposition, etc.) ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_p_@uid' data-name='irlfreq' id='irlfreq16_p_@uid' value='15'><label for='irlfreq16_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_p_@uid' data-name='irlfreq' id='irlfreq17_p_@uid' value='16'><label for='irlfreq17_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_p_@uid' data-name='irlfreq' id='irlfreq18_p_@uid' value='17'><label for='irlfreq18_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq3_p_@uid' data-name='irlfreq' id='irlfreq19_p_@uid' value='18'><label for='irlfreq19_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq3_p_@uid' data-name='irlfreq' id='irlfreq20_p_@uid' value='19'><label for='irlfreq20_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tPartage des articles, des informations, des contenus avec une portée politique ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_p_@uid' data-name='irlfreq' id='irlfreq21_p_@uid' value='20'><label for='irlfreq21_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_p_@uid' data-name='irlfreq' id='irlfreq22_p_@uid' value='21'><label for='irlfreq22_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_p_@uid' data-name='irlfreq' id='irlfreq23_p_@uid' value='22'><label for='irlfreq23_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='irlfreq4_p_@uid' data-name='irlfreq' id='irlfreq24_p_@uid' value='23'><label for='irlfreq24_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
// "\t\t <input type='radio' name='irlfreq4_p_@uid' data-name='irlfreq' id='irlfreq25_p_@uid' value='24'><label for='irlfreq25_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>Sur une échelle de 1 à 5, comment jugez-vous votre relation à cette personne ?<br><br>\n"+
|
||||||
|
// "\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='relmark'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Relation</option>\n"+
|
||||||
|
"\t\t\t<option value='0'>1 - Pas du tout proche</option>\n"+
|
||||||
|
"\t\t\t<option value='1'>2</option>\n"+
|
||||||
|
"\t\t\t<option value='2'>3</option>\n"+
|
||||||
|
"\t\t\t<option value='3'>4</option>\n"+
|
||||||
|
"\t\t\t<option value='4'>5 - Très proche</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>Considérez-vous que vos échange avec cette personne à travers les médias sociaux: </h5>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='medrel_p_@uid' data-name='medrel' id='medrelA_p_@uid' value='0'><label for='medrelA_p_@uid'>N'ont aucun effet sur votre relation</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medrel_p_@uid' data-name='medrel' id='medrelB_p_@uid' value='1'><label for='medrelB_p_@uid'>Vous ont rapproché d'elle</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='medrel_p_@uid' data-name='medrel' id='medrelC_p_@uid' value='2'><label for='medrelC_p_@uid'>Vous ont éloigné d'elle</label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
"</article>\n");
|
"</article>\n");
|
||||||
|
|
|
@ -0,0 +1,472 @@
|
||||||
|
/* [0] Gestion des constructeurs HTML
|
||||||
|
=========================================================*/
|
||||||
|
/* (1) Constructeur de formulaire de contact */
|
||||||
|
var pContactBuilder = new HTMLBuilder();
|
||||||
|
pContactBuilder.setLayout(
|
||||||
|
"<h4 data-icon='o' class='new-contact color2'> \n"+
|
||||||
|
|
||||||
|
"\t<input type='hidden' data-name='uid' value='@uid'>\n"+
|
||||||
|
// "\t<input type='hidden' data-name='call' value='@call'>\n"+
|
||||||
|
// "\t<input type='hidden' data-name='sms' value='@sms'>\n"+
|
||||||
|
//
|
||||||
|
// "\t<input type='hidden' data-name='countcall' value='@countcall'>\n"+
|
||||||
|
// "\t<input type='hidden' data-name='countsms' value='@countsms'>\n"+
|
||||||
|
//
|
||||||
|
// "\t<input type='text' data-name='number' placeholder='Numéro de téléphone' value='@number' > \n"+
|
||||||
|
|
||||||
|
"\t<span class='select-container nobold'><select data-name='existing'>\n"+
|
||||||
|
"\t\t<option value='.'>Contact existant</option>\n"+
|
||||||
|
"@contacts"+
|
||||||
|
"\t</select></span>\n"+
|
||||||
|
|
||||||
|
"\t ou \n"+
|
||||||
|
|
||||||
|
"\t<input type='text' data-name='username' placeholder='Pseudo' value='@username' > \n"+
|
||||||
|
"\t<input type='submit' class='primary sub-number' value='Enregistrer'>\n"+
|
||||||
|
|
||||||
|
"</h4>\n\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* (2) Constructeur de MINI fiche de relation */
|
||||||
|
var pMiniFicheBuilder = new HTMLBuilder();
|
||||||
|
pMiniFicheBuilder.setLayout(
|
||||||
|
"<article class='mini-fiche-relation'>\n"+
|
||||||
|
|
||||||
|
"\t<input type='hidden' data-name='uid' value='@uid'>\n"+
|
||||||
|
|
||||||
|
"\t<span data-space></span>\n"+
|
||||||
|
"\t<h4 data-icon='a' class='color2'>@name</h4>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>"+
|
||||||
|
"\t\t<input type='checkbox' data-name='unknown' id='unknown_min_p_@uid' value='1'><label for='unknown_min_p_@uid'>Contact inconnu</label>"+
|
||||||
|
"\t</h5>"+
|
||||||
|
|
||||||
|
// "\t<h5 class='nobold color0'>"+
|
||||||
|
// "\t\t@countcall appels"+
|
||||||
|
// "\t</h5>"+
|
||||||
|
// "\t<h5 class='nobold color0'>"+
|
||||||
|
// "\t\t@countsms sms"+
|
||||||
|
// "\t</h5>"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeH_mini_p_@uid' value='0'><label for='sexeH_mini_p_@uid'>Homme</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeF_mini_p_@uid' value='1'><label for='sexeF_mini_p_@uid'>Femme</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='sexe_mini_p_@uid' data-name='sexe' id='sexeI_mini_p_@uid' value='2'><label for='sexeI_mini_p_@uid'>Indéterminé</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='age'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Age:</option>\n"+
|
||||||
|
"\t\t\t<option value='0' >5 à 10 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='2' >10 à 15 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='3' >15 à 20 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='4' >20 à 25 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='5' >25 à 30 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='6' >30 à 35 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='7' >35 à 40 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='8' >40 à 45 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='9' >45 à 50 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='10'>50 à 55 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='11'>55 à 60 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='12'>60 à 65 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='13'>65 à 70 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='14'>70 à 75 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='15'>75 à 80 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='16'>80 à 85 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='17'>85 à 90 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='18'>90 à 95 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='19'>95 à 100 ans</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='studies'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Niveau d'études maximal:</option>\n"+
|
||||||
|
"\t\t\t<option value='0'>Inconnu</option>\n"+
|
||||||
|
"\t\t\t<option value='1'>< BAC</option>\n"+
|
||||||
|
"\t\t\t<option value='2'>BAC</option>\n"+
|
||||||
|
"\t\t\t<option value='3'>BAC+2</option>\n"+
|
||||||
|
"\t\t\t<option value='4'>BAC+3</option>\n"+
|
||||||
|
"\t\t\t<option value='5'>BAC+5 et plus</option>\n"+
|
||||||
|
"\t\t\t<option value='6'>Diplôme d'ingénieur, d'une grande école, etc.</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h4 data-icon='a'>Type de relation</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype0_mini_p_@uid' value='0'><label for='reltype0_mini_p_@uid'>Père, mère ou équivalent</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype1_mini_p_@uid' value='1'><label for='reltype1_mini_p_@uid'>Frère ou soeur</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype2_mini_p_@uid' value='2'><label for='reltype2_mini_p_@uid'>Autre membre de la famille</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype3_mini_p_@uid' value='3'><label for='reltype3_mini_p_@uid'>Relation amoureuse</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype4_mini_p_@uid' value='4'><label for='reltype4_mini_p_@uid'>Collègue</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype5_mini_p_@uid' value='5'><label for='reltype5_mini_p_@uid'>Voisin</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype6_mini_p_@uid' value='6'><label for='reltype6_mini_p_@uid'>Ami proche</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype7_mini_p_@uid' value='7'><label for='reltype7_mini_p_@uid'>Ami</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype8_mini_p_@uid' value='8'><label for='reltype8_mini_p_@uid'>Relation de service (médecin, ...)</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype9_mini_p_@uid' value='9'><label for='reltype9_mini_p_@uid'>Inconnu</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_mini_p_@uid' data-name='reltype' id='reltype10_mini_p_@uid' value='10'><label for='reltype10_mini_p_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h4 data-icon='m'>Où habite t-elle/il ?</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tÀ combien de temps est-ce de chez vous ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_mini_p_@uid' data-name='loc' id='locX_mini_p_@uid' value='.'><label for='locX_mini_p_@uid'>Je ne sais pas</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_mini_p_@uid' data-name='loc' id='locA_mini_p_@uid' value='0'><label for='locA_mini_p_@uid'>- de 5 minutes</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_mini_p_@uid' data-name='loc' id='locB_mini_p_@uid' value='1'><label for='locB_mini_p_@uid'>de 5 à 15 minutes</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_mini_p_@uid' data-name='loc' id='locC_mini_p_@uid' value='2'><label for='locC_mini_p_@uid'>de 15 à 60 minutes</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_mini_p_@uid' data-name='loc' id='locD_mini_p_@uid' value='3'><label for='locD_mini_p_@uid'>+ d'une heure</label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
"</article>");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* (3) Constructeur de formulaire fiche relation */
|
||||||
|
var pFicheBuilder = new HTMLBuilder();
|
||||||
|
pFicheBuilder.setLayout(
|
||||||
|
"<article class='fiche-relation'>\n"+
|
||||||
|
|
||||||
|
"\t<input type='hidden' data-name='contact' value='@contact'>\n"+
|
||||||
|
"\t<input type='hidden' data-name='uid' value='@uid'>\n"+
|
||||||
|
|
||||||
|
"\t<h4 data-icon='a' class='color2'>@name</h4>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>"+
|
||||||
|
"\t\t@importedfiche"+
|
||||||
|
"\t</h5>"+
|
||||||
|
// "\t<h5 class='nobold color0'>"+
|
||||||
|
// "\t\t@countsms sms"+
|
||||||
|
// "\t</h5>"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeH_p_@uid' value='0'><label for='sexeH_p_@uid'>Homme</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeF_p_@uid' value='1'><label for='sexeF_p_@uid'>Femme</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='sexe_p_@uid' data-name='sexe' id='sexeI_p_@uid' value='2'><label for='sexeI_p_@uid'>Indéterminé</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='age'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Age:</option>\n"+
|
||||||
|
"\t\t\t<option value='0' >5 à 10 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='1' >10 à 15 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='2' >15 à 20 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='3' >20 à 25 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='4' >25 à 30 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='5' >30 à 35 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='6' >35 à 40 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='7' >40 à 45 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='8' >45 à 50 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='9' >50 à 55 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='10'>55 à 60 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='11'>60 à 65 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='12'>65 à 70 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='13'>70 à 75 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='14'>75 à 80 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='15'>80 à 85 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='16'>85 à 90 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='17'>90 à 95 ans</option>\n"+
|
||||||
|
"\t\t\t<option value='18'>95 à 100 ans</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='job'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Dernière profession exercée:</option>\n"+
|
||||||
|
"\t\t\t<option value='0'>Inconnue</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Agriculateur exploitants</option>\n"+
|
||||||
|
"\t\t\t\t<option value='10'>Agriculteurs exploitants (Agriculteurs, maraîchers, viticulteurs…)</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Artisans, commerçants et chefs d'entreprises</option>\n"+
|
||||||
|
"\t\t\t\t<option value='21'>Artisans (Maçons, électriciens, couturiers, boulangers, garagistes, coiffeurs…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='22'>Commerçants et assimilés (Commerçants en détail ou en gros, buralistes, cafetiers, agents immobiliers…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='23'>Chefs d'entreprise de 10 salariés ou plus</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Cadres et professions intellectuelles supérieures</option>\n"+
|
||||||
|
"\t\t\t\t<option value='31'>Professions libérales et assimilés (Médecins, avocats, notaires, architectes libéraux…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='32'>Cadres de la fonction publique, professions intellectuelles et artistiques (Personnels administratifs</option>\n"+
|
||||||
|
"\t\t\t\t\t<option class='pad' value='32'>de catégorie A, professeurs de l’enseignement secondaire ou supérieur, médecins hospitaliers, artistes…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='36'>Cadres d'entreprise (Cadres administratifs, cadres commerciaux, ingénieurs…)</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Professions Intermédiaires</option>\n"+
|
||||||
|
"\t\t\t\t<option value='41'>Professions intermédiaires de l'enseignement, de la santé, de la fonction publique et assimilés </option>\n"+
|
||||||
|
"\t\t\t\t\t<option class='pad' value='41'>(Personnels administratifs de catégorie B, instituteurs, infirmiers, travailleurs sociaux…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='46'>Professions intermédiaires administratives et commerciales des entreprises (Comptables, chargés de clientèles…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='47'>Techniciens (Techniciens d’études, techniciens de contrôle, dessinateurs en bâtiment, géomètres…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='48'>Contremaîtres, agents de maîtrise (Conducteurs de travaux, chefs d’équipe…)</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Employés</option>\n"+
|
||||||
|
"\t\t\t\t<option value='51'>Employés de la fonction publique (Personnels de catégorie C, agents administratifs, agents de service…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='54'>Employés administratifs d'entreprise (Secrétaires, agents d’accueil…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='55'>Employés de commerce (Vendeurs, caissiers…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='56'>Personnels des services directs aux particuliers (Serveurs, coiffeurs, assistantes maternelles…)</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Ouvriers</option>\n"+
|
||||||
|
"\t\t\t\t<option value='61'>Ouvriers qualifiés de type industriel ou artisanal (Mécaniciens, chauffeurs, cuisiniers…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='66'>Ouvriers non qualifiés de type industriel ou artisanal (Ouvrier de production, manœuvres…)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='69'>Ouvriers agricoles (Bergers, ouvriers de la viticulture, bûcherons, ouvrier forestiers…)</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Retraités</option>\n"+
|
||||||
|
"\t\t\t\t<option value='71'>Anciens agriculteurs exploitants</option>\n"+
|
||||||
|
"\t\t\t\t<option value='72'>Anciens artisans, commerçants, chefs d'entreprise</option>\n"+
|
||||||
|
"\t\t\t\t<option value='73'>Anciens cadres</option>\n"+
|
||||||
|
"\t\t\t\t<option value='74'>Anciennes professions intermédiaires</option>\n"+
|
||||||
|
"\t\t\t\t<option value='75'>Anciens employés</option>\n"+
|
||||||
|
"\t\t\t\t<option value='76'>Anciens ouvriers</option>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled>Sans activité professionnelle</option>\n"+
|
||||||
|
"\t\t\t\t<option value='81'>Chômeurs n'ayant jamais travaillé</option>\n"+
|
||||||
|
"\t\t\t\t<option value='82'>Inactifs divers (autres que retraités)</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tSituation familiale:<br>\n"+
|
||||||
|
"\t\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitA_p_@uid' value='0'><label for='famsitA_p_@uid'>Seul</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitB_p_@uid' value='1'><label for='famsitB_p_@uid'>Seul avec enfant(s)</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitC_p_@uid' value='2'><label for='famsitC_p_@uid'>En couple sans enfants</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='famsit_p_@uid' data-name='famsit' id='famsitD_p_@uid' value='3'><label for='famsitD_p_@uid'>En couple avec enfants</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<span class='select-container'><select data-name='studies'>\n"+
|
||||||
|
"\t\t\t<option value='.' disabled selected>Niveau d'études maximal:</option>\n"+
|
||||||
|
"\t\t\t<option value='0'>Inconnue</option>\n"+
|
||||||
|
"\t\t\t<option value='01'>Pas de scolarité</option>\n"+
|
||||||
|
"\t\t\t<option value='02'>Aucun diplôme mais scolarité jusqu'en école primaire ou au collège</option>\n"+
|
||||||
|
"\t\t\t<option value='03'>Aucun diplôme mais scolarité au-delà du collège</option>\n"+
|
||||||
|
"\t\t\t<option value='04'>Certificat d'études primaires (CEP)</option>\n"+
|
||||||
|
"\t\t\t<option value='05'>BEPC, brevet élémentaire, brevet des collèges</option>\n"+
|
||||||
|
"\t\t\t<option value='06'>Certificat d'aptitudes professionnelles (CAP), brevet de compagnon, y compris CAPA</option>\n"+
|
||||||
|
"\t\t\t<option value='07'>Brevet d'études professionnelles (BEP), y compris BEPA et diplômes agricoles (BAA, BPA)</option>\n"+
|
||||||
|
"\t\t\t\t<option value='07' class='pad'>Diplômes sociaux (aide-soignante, auxiliaire de puériculture, travailleuse familiale)</option>\n"+
|
||||||
|
"\t\t\t<option value='08'>Baccalauréat général, brevet supérieur</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='08'>BAC ( L, ES, S ou A, B , C, D, D’, E )</option>\n"+
|
||||||
|
"\t\t\t<option value='09'>Bac technologique ou professionnel, brevet professionnel ou de technicien</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='09'>BAC (STI, STL, SMS, STT ou F, G, H)</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='09'>BEC, BEI, BEH, capacité en droit</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='09'>Brevet de technicien agricole (BTA)</option>\n"+
|
||||||
|
|
||||||
|
"\t\t\t<option value='10'>Diplôme universitaire de 1er cycle</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='10'>BTS, DUT, DEUG</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='10'>Diplôme des professions sociales ou de santé, d'infirmier(ère)</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='10'>Diplôme universitaire propédeutique, DUEL, DUES, DEUG, PCEM</option>\n"+
|
||||||
|
"\t\t\t<option value='11'>Diplôme universitaire de 2ème ou 3ème cycle</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='11'>MASTER, DOCTORAT (y compris médecine, pharmacie, dentaire),</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='11'>Maîtrise, DEA, DESS,</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='11'>CAPES, CAPET, agrégation</option>\n"+
|
||||||
|
"\t\t\t\t<option class='pad' value='11'>Diplôme d'ingénieur, d'une grande école, etc.</option>\n"+
|
||||||
|
"\t\t</select></span>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h4 data-icon='a'>Type de relation</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype0_p_@uid' value='0'><label for='reltype0_p_@uid'>Père, mère ou équivalent</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype1_p_@uid' value='1'><label for='reltype1_p_@uid'>Frère ou soeur</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype2_p_@uid' value='2'><label for='reltype2_p_@uid'>Autre membre de la famille</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype3_p_@uid' value='3'><label for='reltype3_p_@uid'>Relation amoureuse</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype4_p_@uid' value='4'><label for='reltype4_p_@uid'>Collègue</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype5_p_@uid' value='5'><label for='reltype5_p_@uid'>Voisin</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype6_p_@uid' value='6'><label for='reltype6_p_@uid'>Ami proche</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype7_p_@uid' value='7'><label for='reltype7_p_@uid'>Ami</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype8_p_@uid' value='8'><label for='reltype8_p_@uid'>Relation de service (médecin, ...)</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='reltype_p_@uid' data-name='reltype' id='reltype10_p_@uid' value='10'><label for='reltype10_p_@uid'>Autre : <input type='text' data-name='reltypeSpecial' placeholder='coéquipier de tennis, ..' value='@reltypespecial'></label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h4 data-icon='m'>Où habite t-elle/il ?</h4>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t<input type='text' data-name='city' placeholder='Ville' value='@city'>\n"+
|
||||||
|
"\t\t<input type='text' data-name='cp' placeholder='Code postal' value='@cp'><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tSi Toulouse : <input type='text' data-name='quartier' placeholder='quartier' value='@quartier'>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tÀ combien de temps est-ce de chez vous ?<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locA_p_@uid' value='0'><label for='locA_p_@uid'>- de 5 minutes</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locB_p_@uid' value='1'><label for='locB_p_@uid'>de 5 à 15 minutes</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locC_p_@uid' value='2'><label for='locC_p_@uid'>de 15 à 60 minutes</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='loc_p_@uid' data-name='loc' id='locD_p_@uid' value='3'><label for='locD_p_@uid'>+ d'une heure</label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tDepuis quand connaissez-vous cette personne ?<br><br>\n"+
|
||||||
|
"\t\t<input type='number' style='width: 5em;' data-name='duration' min='0' max='11' step='1' placeholder='mois' value='@duration0'>mois\n"+
|
||||||
|
"\t\tet <input type='number' style='width: 5em;' data-name='duration' min='0' max='100' step='1' placeholder='années' value='@duration1'>ans.\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h4 data-icon='d'>Contexte de rencontre</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte0_p_@uid' value='0'><label for='contexte0_p_@uid'>De la même famille</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte1_p_@uid' value='1'><label for='contexte1_p_@uid'>Grandi ensemble</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte2_p_@uid' value='2'><label for='contexte2_p_@uid'>Par mon mari/ma femme/relation amoureuse</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte3_p_@uid' value='3'><label for='contexte3_p_@uid'>Par mes parents</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte4_p_@uid' value='4'><label for='contexte4_p_@uid'>Par mes enfants</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte5_p_@uid' value='5'><label for='contexte5_p_@uid'>Par un ami</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte6_p_@uid' value='6'><label for='contexte6_p_@uid'>Comme voisin</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte7_p_@uid' value='7'><label for='contexte7_p_@uid'>Par d’autres membres de la famille</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte8_p_@uid' value='8'><label for='contexte8_p_@uid'>Etudes</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte9_p_@uid' value='9'><label for='contexte9_p_@uid'>Etudes supérieures</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte10_p_@uid' value='10'><label for='contexte10_p_@uid'>Au travail</label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte11_p_@uid' value='11'><label for='contexte11_p_@uid'>Internet (quel contexte ? préciser <input type='text' data-name='contextSpecial' placeholder='facebook, youtube, twitter, ..' value='@contextspecial0'>)</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte12_p_@uid' value='12'><label for='contexte12_p_@uid'>Par une association (quel type : <input type='text' data-name='contextSpecial' placeholder='aide à la personne, sport, ..' value='@contextspecial1'>)</label><br>\n"+
|
||||||
|
"\t\t <input type='radio' name='contexte_p_@uid' data-name='context' id='contexte13_p_@uid' value='13'><label for='contexte13_p_@uid'>Autre : <input type='text' data-name='contextSpecial' placeholder='vacances, ..' value='@contextspecial2'></label><br>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h4 data-icon='b'>Avec quelle fréquence discutez-vous avec cette personne ?</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tFace à face<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq01_p_@uid' value='0'><label for='freq01_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq02_p_@uid' value='1'><label for='freq02_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq03_p_@uid' value='2'><label for='freq03_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq04_p_@uid' value='3'><label for='freq04_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq0_p_@uid' data-name='freq' id='freq05_p_@uid' value='4'><label for='freq05_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tTéléphone ou skype et équivalent<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq06_p_@uid' value='5'><label for='freq06_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq07_p_@uid' value='6'><label for='freq07_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq08_p_@uid' value='7'><label for='freq08_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq09_p_@uid' value='8'><label for='freq09_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq1_p_@uid' data-name='freq' id='freq10_p_@uid' value='9'><label for='freq10_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tSMS, et équivalents<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq11_p_@uid' value='10'><label for='freq11_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq12_p_@uid' value='11'><label for='freq12_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq13_p_@uid' value='12'><label for='freq13_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq14_p_@uid' value='13'><label for='freq14_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq2_p_@uid' data-name='freq' id='freq15_p_@uid' value='14'><label for='freq15_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tCourrier électronique<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq16_p_@uid' value='15'><label for='freq16_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq17_p_@uid' value='16'><label for='freq17_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq18_p_@uid' value='17'><label for='freq18_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq19_p_@uid' value='18'><label for='freq19_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq3_p_@uid' data-name='freq' id='freq20_p_@uid' value='19'><label for='freq20_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tFacebook ou autre réseau social<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq21_p_@uid' value='20'><label for='freq21_p_@uid'>plusieurs fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq22_p_@uid' value='21'><label for='freq22_p_@uid'>1 fois par semaine</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq23_p_@uid' value='22'><label for='freq23_p_@uid'>1 fois par mois</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq24_p_@uid' value='23'><label for='freq24_p_@uid'>1 fois par an ou moins</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='freq4_p_@uid' data-name='freq' id='freq25_p_@uid' value='24'><label for='freq25_p_@uid'>Jamais</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
|
||||||
|
"\t<h4 data-icon='r'>Comment êtes-vous « connecté » à cette personne ?</h4>\n"+
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tSes coordonnées sont dans votre carnet d’adresse<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect1_p_@uid' data-name='connect' id='connect11_p_@uid' value='0'><label for='connect11_p_@uid'>Oui</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect1_p_@uid' data-name='connect' id='connect12_p_@uid' value='1'><label for='connect12_p_@uid'>Non</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tSon numéro de mobile est enregistré sur votre mobile (ou vous-mêmes êtes sur le sien)<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect2_p_@uid' data-name='connect' id='connect21_p_@uid' value='2'><label for='connect21_p_@uid'>Oui</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect2_p_@uid' data-name='connect' id='connect22_p_@uid' value='3'><label for='connect22_p_@uid'>Non</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tElle figure parmi vos amis facebook<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect3_p_@uid' data-name='connect' id='connect31_p_@uid' value='4'><label for='connect31_p_@uid'>Oui</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect3_p_@uid' data-name='connect' id='connect32_p_@uid' value='5'><label for='connect32_p_@uid'>Non</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tElle figure parmi vos amis facebook et vous interagissez avec elle sur ce dispositif régulièrement<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect4_p_@uid' data-name='connect' id='connect41_p_@uid' value='6'><label for='connect41_p_@uid'>Oui</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect4_p_@uid' data-name='connect' id='connect42_p_@uid' value='7'><label for='connect42_p_@uid'>Non</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tVous le suivez sur Twitter<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect5_p_@uid' data-name='connect' id='connect51_p_@uid' value='8'><label for='connect51_p_@uid'>Oui</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect5_p_@uid' data-name='connect' id='connect52_p_@uid' value='9'><label for='connect52_p_@uid'>Non</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tVous communiquez avec cette personne sur Twitter<br>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect6_p_@uid' data-name='connect' id='connect61_p_@uid' value='10'><label for='connect61_p_@uid'>Oui</label>\n"+
|
||||||
|
"\t\t <input type='radio' name='connect6_p_@uid' data-name='connect' id='connect62_p_@uid' value='11'><label for='connect62_p_@uid'>Non</label>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tVous communiquez dans autre réseau social : <input type='text' data-name='connectSpecial' value='@connectspecial0'>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"\t<h5 class='nobold color0'>\n"+
|
||||||
|
"\t\tVous communiquez dans un autre dispositif (blogs, jeu vidéo ou autre) : <input type='text' data-name='connectSpecial' value='@connectspecial1'>\n"+
|
||||||
|
"\t</h5>\n"+
|
||||||
|
|
||||||
|
"</article>\n");
|
|
@ -16,9 +16,11 @@ inputPhoneFiche.prototype = {
|
||||||
defaultData: { // Valeurs par défaut
|
defaultData: { // Valeurs par défaut
|
||||||
sexe: '2',
|
sexe: '2',
|
||||||
age: '.',
|
age: '.',
|
||||||
|
interest: '.',
|
||||||
|
relmark: '.',
|
||||||
job: '.',
|
job: '.',
|
||||||
famsit: '0', // Choix 1 à 3
|
famsit: '0', // Choix 1 à 3
|
||||||
studies: '0',
|
studies: '.',
|
||||||
reltype: '0', // Choix 1 à 9
|
reltype: '0', // Choix 1 à 9
|
||||||
reltypeSpecial: '',
|
reltypeSpecial: '',
|
||||||
city: '',
|
city: '',
|
||||||
|
@ -28,9 +30,12 @@ inputPhoneFiche.prototype = {
|
||||||
duration: ['', ''],
|
duration: ['', ''],
|
||||||
context: '0', // Choix 1 à 14
|
context: '0', // Choix 1 à 14
|
||||||
contextSpecial: ['', '', ''],
|
contextSpecial: ['', '', ''],
|
||||||
freq: ['4', '9', '14', '19', '24'], // 1er choix des 4 pour chaque question
|
freq: ['3', '8', '13', '18', '23'], // 4er choix des 4 pour chaque question
|
||||||
|
irlfreq: ['3', '8', '13', '18', '23'], // 4er choix des 4 pour chaque question
|
||||||
connect: ['1', '3', '5', '7', '9', '11'], // Le deuxième choix (Oui/Non) donc 'Non' par défaut pour chaque question
|
connect: ['1', '3', '5', '7', '9', '11'], // Le deuxième choix (Oui/Non) donc 'Non' par défaut pour chaque question
|
||||||
connectSpecial: ['', ''],
|
connectSpecial: ['', ''],
|
||||||
|
medsoc: '0',
|
||||||
|
medrel: '0',
|
||||||
timestamp: 0,
|
timestamp: 0,
|
||||||
valid: false
|
valid: false
|
||||||
}
|
}
|
||||||
|
@ -67,6 +72,8 @@ inputPhoneFiche.prototype.fieldsToStorage = function(){
|
||||||
obj = {
|
obj = {
|
||||||
sexe: deflated.sexe,
|
sexe: deflated.sexe,
|
||||||
age: deflated.age,
|
age: deflated.age,
|
||||||
|
interest: deflated.interest,
|
||||||
|
relmark: deflated.relmark,
|
||||||
job: deflated.job,
|
job: deflated.job,
|
||||||
famsit: deflated.famsit,
|
famsit: deflated.famsit,
|
||||||
studies: deflated.studies,
|
studies: deflated.studies,
|
||||||
|
@ -78,8 +85,11 @@ inputPhoneFiche.prototype.fieldsToStorage = function(){
|
||||||
loc: deflated.loc,
|
loc: deflated.loc,
|
||||||
duration: deflated.duration,
|
duration: deflated.duration,
|
||||||
context: deflated.context,
|
context: deflated.context,
|
||||||
|
medsoc: deflated.medsoc,
|
||||||
|
medrel: deflated.medrel,
|
||||||
contextSpecial: deflated.contextSpecial,
|
contextSpecial: deflated.contextSpecial,
|
||||||
freq: deflated.freq,
|
freq: deflated.freq,
|
||||||
|
irlfreq: deflated.irlfreq,
|
||||||
connect: deflated.connect,
|
connect: deflated.connect,
|
||||||
connectSpecial: deflated.connectSpecial,
|
connectSpecial: deflated.connectSpecial,
|
||||||
uid: parseInt(deflated.uid),
|
uid: parseInt(deflated.uid),
|
||||||
|
@ -147,6 +157,8 @@ inputPhoneFiche.prototype.add = function(objectData){
|
||||||
objectData.job = (objectData.job != null) ? objectData.job : this.defaultData.job;
|
objectData.job = (objectData.job != null) ? objectData.job : this.defaultData.job;
|
||||||
objectData.studies = (objectData.studies != null) ? objectData.studies : this.defaultData.studies;
|
objectData.studies = (objectData.studies != null) ? objectData.studies : this.defaultData.studies;
|
||||||
objectData.age = (objectData.age != null) ? objectData.age : this.defaultData.age;
|
objectData.age = (objectData.age != null) ? objectData.age : this.defaultData.age;
|
||||||
|
objectData.interest = (objectData.interest != null) ? objectData.interest : this.defaultData.interest;
|
||||||
|
objectData.relmark = (objectData.relmark != null) ? objectData.relmark : this.defaultData.relmark;
|
||||||
|
|
||||||
// {3} Champs <radio> //
|
// {3} Champs <radio> //
|
||||||
objectData.sexe = (objectData.sexe != null) ? objectData.sexe : this.defaultData.sexe;
|
objectData.sexe = (objectData.sexe != null) ? objectData.sexe : this.defaultData.sexe;
|
||||||
|
@ -154,7 +166,10 @@ inputPhoneFiche.prototype.add = function(objectData){
|
||||||
objectData.reltype = (objectData.reltype != null) ? objectData.reltype : this.defaultData.reltype;
|
objectData.reltype = (objectData.reltype != null) ? objectData.reltype : this.defaultData.reltype;
|
||||||
objectData.loc = (objectData.loc != null) ? objectData.loc : this.defaultData.loc;
|
objectData.loc = (objectData.loc != null) ? objectData.loc : this.defaultData.loc;
|
||||||
objectData.context = (objectData.context != null) ? objectData.context : this.defaultData.context;
|
objectData.context = (objectData.context != null) ? objectData.context : this.defaultData.context;
|
||||||
|
objectData.medsoc = (objectData.medsoc != null) ? objectData.medsoc : this.defaultData.medsoc;
|
||||||
|
objectData.medrel = (objectData.medrel != null) ? objectData.medrel : this.defaultData.medrel;
|
||||||
objectData.freq = (objectData.freq != null) ? objectData.freq : this.defaultData.freq;
|
objectData.freq = (objectData.freq != null) ? objectData.freq : this.defaultData.freq;
|
||||||
|
objectData.irlfreq = (objectData.irlfreq != null) ? objectData.irlfreq : this.defaultData.irlfreq;
|
||||||
objectData.connect = (objectData.connect != null) ? objectData.connect : this.defaultData.connect;
|
objectData.connect = (objectData.connect != null) ? objectData.connect : this.defaultData.connect;
|
||||||
|
|
||||||
|
|
||||||
|
@ -191,6 +206,8 @@ inputPhoneFiche.prototype.add = function(objectData){
|
||||||
// On met à jour les études uniquement si 'studies2' est défini //
|
// On met à jour les études uniquement si 'studies2' est défini //
|
||||||
if( existingData.studies2 != null ){
|
if( existingData.studies2 != null ){
|
||||||
objectData.studies = existingData.studies2;
|
objectData.studies = existingData.studies2;
|
||||||
|
objectData.interest = existingData.interest;
|
||||||
|
objectData.relmark = existingData.relmark;
|
||||||
objectData.job = existingData.job;
|
objectData.job = existingData.job;
|
||||||
objectData.famsit = existingData.famsit;
|
objectData.famsit = existingData.famsit;
|
||||||
objectData.city = existingData.city;
|
objectData.city = existingData.city;
|
||||||
|
@ -199,10 +216,13 @@ inputPhoneFiche.prototype.add = function(objectData){
|
||||||
objectData.duration[0] = existingData.duration[0];
|
objectData.duration[0] = existingData.duration[0];
|
||||||
objectData.duration[1] = existingData.duration[1];
|
objectData.duration[1] = existingData.duration[1];
|
||||||
objectData.context = existingData.context;
|
objectData.context = existingData.context;
|
||||||
|
objectData.medsoc = existingData.medsoc;
|
||||||
|
objectData.medrel = existingData.medrel;
|
||||||
objectData.contextSpecial = existingData.contextExtra;
|
objectData.contextSpecial = existingData.contextExtra;
|
||||||
objectData.connect = existingData.connect;
|
objectData.connect = existingData.connect;
|
||||||
objectData.connectSpecial = existingData.connectExtra;
|
objectData.connectSpecial = existingData.connectExtra;
|
||||||
objectData.freq = existingData.freq;
|
objectData.freq = existingData.freq;
|
||||||
|
objectData.irlfreq = existingData.irlfreq;
|
||||||
importedFiche = 'Contact importé: non modifiable!';
|
importedFiche = 'Contact importé: non modifiable!';
|
||||||
}else{
|
}else{
|
||||||
importedFiche = 'Contact importé (incomplet): modifiable partiellement!';
|
importedFiche = 'Contact importé (incomplet): modifiable partiellement!';
|
||||||
|
@ -243,55 +263,78 @@ inputPhoneFiche.prototype.add = function(objectData){
|
||||||
if( selectedOption != null )
|
if( selectedOption != null )
|
||||||
selectedOption.setAttribute('selected', 'selected');
|
selectedOption.setAttribute('selected', 'selected');
|
||||||
|
|
||||||
|
|
||||||
/* {8} On sélectionne la valeur dans le select (manuellement) de l'AGE */
|
/* {8} On sélectionne la valeur dans le select (manuellement) de l'AGE */
|
||||||
selectedOption = $('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+objectData.age+'"]');
|
selectedOption = $('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+objectData.age+'"]');
|
||||||
if( selectedOption != null )
|
if( selectedOption != null )
|
||||||
selectedOption.setAttribute('selected', 'selected');
|
selectedOption.setAttribute('selected', 'selected');
|
||||||
|
|
||||||
|
/* {9} On sélectionne la valeur dans le select (manuellement) de l'INTEREST */
|
||||||
|
selectedOption = $('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>span>select[data-name="interest"]>option[value="'+objectData.interest+'"]');
|
||||||
|
if( selectedOption != null )
|
||||||
|
selectedOption.setAttribute('selected', 'selected');
|
||||||
|
|
||||||
/* {9} On sélectionna la valeur des boutons <radio> pour le SEXE */
|
/* {10} On sélectionne la valeur dans le select (manuellement) de la NOTE DE RELATION */
|
||||||
|
selectedOption = $('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>span>select[data-name="relmark"]>option[value="'+objectData.relmark+'"]');
|
||||||
|
if( selectedOption != null )
|
||||||
|
selectedOption.setAttribute('selected', 'selected');
|
||||||
|
|
||||||
|
|
||||||
|
/* {11} On sélectionna la valeur des boutons <radio> pour le SEXE */
|
||||||
var sexeCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');
|
var sexeCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');
|
||||||
for( var i = 0 ; i < sexeCreated.length ; i++ )
|
for( var i = 0 ; i < sexeCreated.length ; i++ )
|
||||||
if( sexeCreated[i].value == objectData.sexe ) sexeCreated[i].setAttribute('checked', 'checked');
|
if( sexeCreated[i].value == objectData.sexe ) sexeCreated[i].setAttribute('checked', 'checked');
|
||||||
else sexeCreated[i].removeAttribute('checked');
|
else sexeCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {12} On sélectionna la valeur des boutons <radio> pour la SITUATION FAMILIALE */
|
||||||
/* {10} On sélectionna la valeur des boutons <radio> pour la SITUATION FAMILIALE */
|
|
||||||
var famsitCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');
|
var famsitCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');
|
||||||
for( var i = 0 ; i < famsitCreated.length ; i++ )
|
for( var i = 0 ; i < famsitCreated.length ; i++ )
|
||||||
if( famsitCreated[i].value == objectData.famsit ) famsitCreated[i].setAttribute('checked', 'checked');
|
if( famsitCreated[i].value == objectData.famsit ) famsitCreated[i].setAttribute('checked', 'checked');
|
||||||
else famsitCreated[i].removeAttribute('checked');
|
else famsitCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {13} On sélectionna la valeur des boutons <radio> pour le TYPE DE RELATION */
|
||||||
/* {11} On sélectionna la valeur des boutons <radio> pour le TYPE DE RELATION */
|
|
||||||
var reltypeCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');
|
var reltypeCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');
|
||||||
for( var i = 0 ; i < reltypeCreated.length ; i++ )
|
for( var i = 0 ; i < reltypeCreated.length ; i++ )
|
||||||
if( reltypeCreated[i].value == objectData.reltype ) reltypeCreated[i].setAttribute('checked', 'checked');
|
if( reltypeCreated[i].value == objectData.reltype ) reltypeCreated[i].setAttribute('checked', 'checked');
|
||||||
else reltypeCreated[i].removeAttribute('checked');
|
else reltypeCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {14} On sélectionna la valeur des boutons <radio> pour la LOCATION */
|
||||||
/* {12} On sélectionna la valeur des boutons <radio> pour la LOCATION */
|
|
||||||
var locCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');
|
var locCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');
|
||||||
for( var i = 0 ; i < locCreated.length ; i++ )
|
for( var i = 0 ; i < locCreated.length ; i++ )
|
||||||
if( locCreated[i].value == objectData.loc ) locCreated[i].setAttribute('checked', 'checked');
|
if( locCreated[i].value == objectData.loc ) locCreated[i].setAttribute('checked', 'checked');
|
||||||
else locCreated[i].removeAttribute('checked');
|
else locCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {15} On sélectionna la valeur des boutons <radio> pour le CONTEXTE DE RENCONTRE */
|
||||||
/* {13} On sélectionna la valeur des boutons <radio> pour le CONTEXTE DE RENCONTRE */
|
|
||||||
var contextCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="context"]');
|
var contextCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="context"]');
|
||||||
for( var i = 0 ; i < contextCreated.length ; i++ )
|
for( var i = 0 ; i < contextCreated.length ; i++ )
|
||||||
if( contextCreated[i].value == objectData.context ) contextCreated[i].setAttribute('checked', 'checked');
|
if( contextCreated[i].value == objectData.context ) contextCreated[i].setAttribute('checked', 'checked');
|
||||||
else contextCreated[i].removeAttribute('checked');
|
else contextCreated[i].removeAttribute('checked', 'checked');
|
||||||
|
|
||||||
|
/* {16} On sélectionna la valeur des boutons <radio> pour l'UTILISATION DES MEDIAS SOCIAUX */
|
||||||
|
var medsocCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="medsoc"]');
|
||||||
|
for( var i = 0 ; i < medsocCreated.length ; i++ )
|
||||||
|
if( medsocCreated[i].value == objectData.medsoc ) medsocCreated[i].setAttribute('checked', 'checked');
|
||||||
|
else medsocCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {17} On sélectionna la valeur des boutons <radio> pour l'UTILISATION DES MEDIAS SOCIAUX */
|
||||||
|
var medrelCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="medrel"]');
|
||||||
|
for( var i = 0 ; i < medrelCreated.length ; i++ )
|
||||||
|
if( medrelCreated[i].value == objectData.medrel ) medrelCreated[i].setAttribute('checked', 'checked');
|
||||||
|
else medrelCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
|
||||||
/* {14} On sélectionna la valeur des boutons <radio> pour les FREQUENCES */
|
/* {18} On sélectionna la valeur des boutons <radio> pour les FREQUENCES */
|
||||||
var freqCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');
|
var freqCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');
|
||||||
for( var i = 0 ; i < freqCreated.length ; i++ )
|
for( var i = 0 ; i < freqCreated.length ; i++ )
|
||||||
if( objectData.freq.indexOf(freqCreated[i].value) > -1 ) freqCreated[i].setAttribute('checked', 'checked');
|
if( objectData.freq.indexOf(freqCreated[i].value) > -1 ) freqCreated[i].setAttribute('checked', 'checked');
|
||||||
else freqCreated[i].removeAttribute('checked');
|
else freqCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
/* {15} On sélectionna la valeur des boutons <radio> pour les CONNECTIONS */
|
/* {19} On sélectionna la valeur des boutons <radio> pour les FREQUENCES IRL */
|
||||||
|
var irlfreqCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="irlfreq"]');
|
||||||
|
for( var i = 0 ; i < irlfreqCreated.length ; i++ )
|
||||||
|
if( objectData.irlfreq.indexOf(irlfreqCreated[i].value) > -1 ) irlfreqCreated[i].setAttribute('checked', 'checked');
|
||||||
|
else irlfreqCreated[i].removeAttribute('checked');
|
||||||
|
|
||||||
|
/* {20} On sélectionna la valeur des boutons <radio> pour les CONNECTIONS */
|
||||||
var connectCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');
|
var connectCreated = $$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+objectData.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');
|
||||||
for( var i = 0 ; i < connectCreated.length ; i++ )
|
for( var i = 0 ; i < connectCreated.length ; i++ )
|
||||||
if( objectData.connect.indexOf(connectCreated[i].value) > -1 ) connectCreated[i].setAttribute('checked', 'checked');
|
if( objectData.connect.indexOf(connectCreated[i].value) > -1 ) connectCreated[i].setAttribute('checked', 'checked');
|
||||||
|
@ -486,7 +529,7 @@ inputPhoneFiche.prototype.sync = function(){
|
||||||
copied.uid = clone[i][1].uid;
|
copied.uid = clone[i][1].uid;
|
||||||
lsi.set('p_fiches', copied.uid, copied);
|
lsi.set('p_fiches', copied.uid, copied);
|
||||||
|
|
||||||
/* (5.2) fiche vers mini OU mini vers fiche*/
|
/* (5.2) fiche vers mini */
|
||||||
}else if( clone[last_index][0] == 'fiche' ){
|
}else if( clone[last_index][0] == 'fiche' ){
|
||||||
|
|
||||||
/*CLONING_DEBUG*///console.warn('copying fiche#'+clone[last_index][1].uid+' to mini#'+clone[i][1].uid, clones_ts[last_index]-input_ts, clones_ts[i]-input_ts);
|
/*CLONING_DEBUG*///console.warn('copying fiche#'+clone[last_index][1].uid+' to mini#'+clone[i][1].uid, clones_ts[last_index]-input_ts, clones_ts[i]-input_ts);
|
||||||
|
@ -616,75 +659,91 @@ inputPhoneFiche.prototype.updateNavBar = function(){
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
inputPhoneFiche.prototype.check = function(ficheData){
|
inputPhoneFiche.prototype.check = function(ficheData){
|
||||||
|
|
||||||
// {1} Vérification des <input> //
|
/* {1} Vérification des <input> */
|
||||||
// 1. La ville a au moins 2 caractères
|
// 1. La ville a au moins 2 caractères
|
||||||
if( ficheData.city.length < 2 )
|
if( ficheData.city.length < 2 )
|
||||||
return false;
|
return false;
|
||||||
// 3. La durée de la relation en mois est vide ou un nombre
|
// 2. La durée de la relation en mois est vide ou un nombre
|
||||||
if( isNaN(parseInt(ficheData.duration[0])) && ficheData.duration[0].length > 0 )
|
if( isNaN(parseInt(ficheData.duration[0])) && ficheData.duration[0].length > 0 )
|
||||||
return false;
|
return false;
|
||||||
// 4. La durée de la relation en année est vide ou un nombre
|
// 3. La durée de la relation en année est vide ou un nombre
|
||||||
if( isNaN(parseInt(ficheData.duration[1])) && ficheData.duration[1].length > 0 )
|
if( isNaN(parseInt(ficheData.duration[1])) && ficheData.duration[1].length > 0 )
|
||||||
return false;
|
return false;
|
||||||
// 5. Pour la durée de la relation, au moins un des 2 n'est pas vide
|
// 4. Pour la durée de la relation, au moins un des 2 n'est pas vide
|
||||||
if( ficheData.duration[0].length+ficheData.duration[1].length == 0 )
|
if( ficheData.duration[0].length+ficheData.duration[1].length == 0 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// {2} Vérification des <select> //
|
/* {2} Vérification des <select> */
|
||||||
// 6. Le <select> pour la profession n'est pas indéfini
|
// 5. Le <select> pour la profession n'est pas indéfini
|
||||||
if( ficheData.job == '.' )
|
if( ficheData.job == '.' )
|
||||||
return false;
|
return false;
|
||||||
// 7. Le <select> pour les études n'est pas indéfini
|
// 6. Le <select> pour les études n'est pas indéfini
|
||||||
if( ficheData.studies == '.' )
|
if( ficheData.studies == '.' )
|
||||||
return false;
|
return false;
|
||||||
// 8. Le <select> pour l'AGE n'est pas indéfini
|
// 7. Le <select> pour l'AGE n'est pas indéfini
|
||||||
if( ficheData.age == '.' )
|
if( ficheData.age == '.' )
|
||||||
return false;
|
return false;
|
||||||
|
// 8. Le <select> pour l'INTEREST n'est pas indéfini
|
||||||
|
if( ficheData.interest == '.' )
|
||||||
|
return false;
|
||||||
|
// 9. Le <select> pour la NOTE DE RELATION n'est pas indéfini
|
||||||
|
if( ficheData.relmark == '.' )
|
||||||
|
return false;
|
||||||
|
|
||||||
// {3} Vérification des <input> radio //
|
/* {3} Vérification des <input> radio */
|
||||||
// 9. Le SEXE a un et un seul choix
|
// 10. Le SEXE a un et un seul choix
|
||||||
if( ficheData.sexe == '' )
|
if( ficheData.sexe == '' )
|
||||||
return false;
|
return false;
|
||||||
// 10. La SITUATION FAMILIALE a un et un seul choix
|
// 11. La SITUATION FAMILIALE a un et un seul choix
|
||||||
if( ficheData.famsit == '' )
|
if( ficheData.famsit == '' )
|
||||||
return false;
|
return false;
|
||||||
// 11. Le TYPE DE RELATION a un et un seul choix
|
// 12. Le TYPE DE RELATION a un et un seul choix
|
||||||
if( ficheData.reltype == '' )
|
if( ficheData.reltype == '' )
|
||||||
return false;
|
return false;
|
||||||
// 12. La DISTANCE DE DOMICILE (location) a un et un seul choix
|
// 13. La DISTANCE DE DOMICILE (location) a un et un seul choix
|
||||||
if( ficheData.loc == '' )
|
if( ficheData.loc == '' )
|
||||||
return false;
|
return false;
|
||||||
// 13. Le CONTEXTE DE RENCONTRE a un et un seul choix
|
// 14. Le CONTEXTE DE RENCONTRE a un et un seul choix
|
||||||
if( ficheData.context == '' )
|
if( ficheData.context == '' )
|
||||||
return false;
|
return false;
|
||||||
// 14. Les FRÉQUENCES ont un et un seul choix (par question de fréquence)
|
// 15. L'UTILISATION DES MEDIAS SOCIAUX a un et un seul choix
|
||||||
|
if( ficheData.medsoc == '' )
|
||||||
|
return false;
|
||||||
|
// 16. L'UTILISATION DES MEDIAS SOCIAUX a un et un seul choix
|
||||||
|
if( ficheData.medrel == '' )
|
||||||
|
return false;
|
||||||
|
// 17. Les FRÉQUENCES ont un et un seul choix (par question de fréquence)
|
||||||
for( var i = 0 ; i < ficheData.freq.length ; i++ )
|
for( var i = 0 ; i < ficheData.freq.length ; i++ )
|
||||||
if( ficheData.freq[i] == '' )
|
if( ficheData.freq[i] == '' )
|
||||||
return false;
|
return false;
|
||||||
// 15. Les CONNECTION ont un et un seul choix (par question de connection)
|
// 18. Les FRÉQUENCES IRL ont un et un seul choix (par question de fréquence)
|
||||||
|
for( var i = 0 ; i < ficheData.irlfreq.length ; i++ )
|
||||||
|
if( ficheData.irlfreq[i] == '' )
|
||||||
|
return false;
|
||||||
|
// 19. Les CONNECTION ont un et un seul choix (par question de connection)
|
||||||
for( var i = 0 ; i < ficheData.connect.length ; i++ )
|
for( var i = 0 ; i < ficheData.connect.length ; i++ )
|
||||||
if( ficheData.connect[i] == '' )
|
if( ficheData.connect[i] == '' )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// {4} <input> dépendant d'un choix d'un <input> radio //
|
/* {4} <input> dépendant d'un choix d'un <input> radio */
|
||||||
// 16. TYPE DE RELATION si autre est coché (indice 8), reltypeSpecial doit avoir au moins 2 caractère
|
// 20. TYPE DE RELATION si autre est coché (indice 8), reltypeSpecial doit avoir au moins 2 caractère
|
||||||
if( ficheData.reltype == '10' && ficheData.reltypeSpecial.length < 2 )
|
if( ficheData.reltype == '10' && ficheData.reltypeSpecial.length < 2 )
|
||||||
return false;
|
return false;
|
||||||
// 17. CONTEXTE DE RELATION si est coché indice 11, contactSpecial[0] doit avoir au moins 2 caractères
|
// 21. CONTEXTE DE RELATION si est coché indice 11, contactSpecial[0] doit avoir au moins 2 caractères
|
||||||
if( ficheData.context == '11' && ficheData.contextSpecial[0].length < 2 )
|
if( ficheData.context == '11' && ficheData.contextSpecial[0].length < 2 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// 18. CONTEXTE DE RELATION si est coché indice 12, contextSpecial[1] doit avoir au moins 2 caractères
|
// 22. CONTEXTE DE RELATION si est coché indice 12, contextSpecial[1] doit avoir au moins 2 caractères
|
||||||
if( ficheData.context == '12' && ficheData.contextSpecial[1].length < 2 )
|
if( ficheData.context == '12' && ficheData.contextSpecial[1].length < 2 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// 19. CONTEXTE DE RELATION si est coché indice 13, contextSpecial[2] doit avoir au moins 2 caractères
|
// 23. CONTEXTE DE RELATION si est coché indice 13, contextSpecial[2] doit avoir au moins 2 caractères
|
||||||
if( ficheData.context == '13' && ficheData.contextSpecial[2].length < 2 )
|
if( ficheData.context == '13' && ficheData.contextSpecial[2].length < 2 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 20. Si tout s'est bien passé, on retourne TRUE
|
// 24. Si tout s'est bien passé, on retourne TRUE
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ inputPhoneMatrice.prototype.storageToFields = function(){
|
||||||
conB = contactData[C];
|
conB = contactData[C];
|
||||||
|
|
||||||
// {3} Insertion //
|
// {3} Insertion //
|
||||||
matrice_html.push( "<input type='checkbox' data-name='"+conA.uid+"' value='"+conB.uid+"' id='f_matrice_"+conA.uid+"_"+conB.uid+"'" );
|
matrice_html.push( "<input type='checkbox' data-name='"+conA.uid+"' value='"+conB.uid+"' id='p_matrice_"+conA.uid+"_"+conB.uid+"'" );
|
||||||
|
|
||||||
// Si lien actif, on le restitue
|
// Si lien actif, on le restitue
|
||||||
if( matriceData.hasOwnProperty(conA.uid) && matriceData[conA.uid].indexOf(conB.uid) > -1 )
|
if( matriceData.hasOwnProperty(conA.uid) && matriceData[conA.uid].indexOf(conB.uid) > -1 )
|
||||||
|
@ -119,7 +119,7 @@ inputPhoneMatrice.prototype.storageToFields = function(){
|
||||||
|
|
||||||
matrice_html.push( ">" );
|
matrice_html.push( ">" );
|
||||||
|
|
||||||
matrice_html.push( "<label class='matrice-content' for='f_matrice_"+conA.uid+"_"+conB.uid+"'>")
|
matrice_html.push( "<label class='matrice-content' for='p_matrice_"+conA.uid+"_"+conB.uid+"'>")
|
||||||
matrice_html.push( "Est-ce que <span>" );
|
matrice_html.push( "Est-ce que <span>" );
|
||||||
matrice_html.push( !isNaN(conA.existing) ? lsi.get('p_friends', conA.existing).name : conA.username );
|
matrice_html.push( !isNaN(conA.existing) ? lsi.get('p_friends', conA.existing).name : conA.username );
|
||||||
matrice_html.push( '</span> et <span>' );
|
matrice_html.push( '</span> et <span>' );
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/* [0] Constructeur -> définit le conteneur et le bouton d'ajout
|
/* [0] Constructeur -> définit le conteneur et le bouton d'ajout
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
function inputPhoneSubject(iSubjectId, store_button){
|
function inputPhoneSubject(iSubjectId, iCoords, store_button){
|
||||||
this.subject_id = iSubjectId;
|
this.subject_id = iSubjectId;
|
||||||
|
this.coords = iCoords;
|
||||||
this.store_button = store_button;
|
this.store_button = store_button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +11,7 @@ function inputPhoneSubject(iSubjectId, store_button){
|
||||||
inputPhoneSubject.prototype = {
|
inputPhoneSubject.prototype = {
|
||||||
store_button: this.store_button, // Bouton d'ajout d'un formulaire
|
store_button: this.store_button, // Bouton d'ajout d'un formulaire
|
||||||
subject_id: this.subject_id,
|
subject_id: this.subject_id,
|
||||||
|
coords: this.coords,
|
||||||
handler: null
|
handler: null
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -23,20 +25,25 @@ inputPhoneSubject.prototype.check = function(){
|
||||||
|
|
||||||
/* [3] Gestion de l'enregistrement des formulaires de contact
|
/* [3] Gestion de l'enregistrement des formulaires de contact
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
inputPhoneSubject.prototype.fieldsToStorage = function(){
|
inputPhoneSubject.prototype.fieldsToStorage = function(onlyCoords){
|
||||||
console.group('[phone.subject] fields to storage');
|
console.group('[phone.subject] fields to storage');
|
||||||
|
|
||||||
|
( typeof onlyCoords != 'boolean' ) ? false : onlyCoords;
|
||||||
|
|
||||||
// {1} Si le formulaire n'est pas valide, on ne l'enregistre pas //
|
// {1} Si le formulaire n'est pas valide, on ne l'enregistre pas //
|
||||||
if( !this.check() ) return false;
|
if( !onlyCoords )
|
||||||
|
if( !this.check() )
|
||||||
|
return false;
|
||||||
|
|
||||||
// {2} Si on a déja saisie 1+ contact, on ne l'enregistre pas //
|
// {2} Si on a déja saisie 1+ contact, on ne l'enregistre pas //
|
||||||
if( lsi.keys('p_contacts').length > 0 ){
|
// et si on modifie le sujet
|
||||||
|
if( lsi.keys('p_subject').length === 1 && this.subject_id.value != lsi.get('p_subject',0).subject_id && lsi.keys('p_contacts').length > 0 ){
|
||||||
Notification.warning('Attention', 'Vous devez effacer le formulaire pour changer de sujet');
|
Notification.warning('Attention', 'Vous devez effacer le formulaire pour changer de sujet');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// {3} On récupère et met en forme les valeurs du deflater //
|
// {3} On récupère et met en forme les valeurs du deflater //
|
||||||
var obj = { subject_id: this.subject_id.value };
|
var obj = { subject_id: this.subject_id.value, coords: this.coords.value };
|
||||||
|
|
||||||
// {4} On enregistre les données dans le 'localStorage' //
|
// {4} On enregistre les données dans le 'localStorage' //
|
||||||
lsi.set('p_subject', 0, obj);
|
lsi.set('p_subject', 0, obj);
|
||||||
|
@ -57,10 +64,11 @@ inputPhoneSubject.prototype.storageToFields = function(){
|
||||||
// {1} On récupère les informations du sujet //
|
// {1} On récupère les informations du sujet //
|
||||||
var subjectData = lsi.get('p_subject', 0);
|
var subjectData = lsi.get('p_subject', 0);
|
||||||
|
|
||||||
subjectData = subjectData || { subject_id: '' };
|
subjectData = subjectData || { subject_id: '', coords: '' };
|
||||||
|
|
||||||
// {2} On restore les valeurs //
|
// {2} On restore les valeurs //
|
||||||
this.subject_id.value = subjectData.subject_id;
|
this.subject_id.value = subjectData.subject_id;
|
||||||
|
this.coords.value = subjectData.coords;
|
||||||
|
|
||||||
|
|
||||||
console.groupEnd();
|
console.groupEnd();
|
||||||
|
@ -81,18 +89,18 @@ inputPhoneSubject.prototype.attach = function(handler){
|
||||||
this.handler = handler;
|
this.handler = handler;
|
||||||
|
|
||||||
// Handler de mise à jour quand les champs sont bons
|
// Handler de mise à jour quand les champs sont bons
|
||||||
var fts = function(e){
|
function fts(e){ this.fieldsToStorage(); this.handler(true); this.storageToFields(); };
|
||||||
this.fieldsToStorage();
|
function fts2(e){ this.fieldsToStorage(true); this.storageToFields(); };
|
||||||
this.handler(true);
|
|
||||||
this.storageToFields();
|
|
||||||
}.bind(this);
|
|
||||||
|
|
||||||
|
|
||||||
/* (2) On attache l'évènement sur le bouton d'enregistrement */
|
/* (2) On attache l'évènement sur le bouton d'enregistrement */
|
||||||
this.store_button.addEventListener('click', fts, false);
|
this.store_button.addEventListener('click', fts.bind(this), false);
|
||||||
|
|
||||||
/* (3) On attache un évènement de 'blur' sur chaque '<input type="text">' */
|
/* (3) On attache un évènement de 'blur' sur chaque '<input type="text">' */
|
||||||
// this.subject_id.addEventListener('blur', fts, false);
|
this.subject_id.addEventListener('blur', fts.bind(this), false);
|
||||||
|
|
||||||
|
|
||||||
|
/* (4) On attache un évènement pour le champ coord */
|
||||||
|
this.coords.addEventListener('blur', fts2.bind(this), false);
|
||||||
|
|
||||||
/* (4) On charge le sujet depuis la mémoire ('localStorage') */
|
/* (4) On charge le sujet depuis la mémoire ('localStorage') */
|
||||||
this.storageToFields();
|
this.storageToFields();
|
||||||
|
|
|
@ -1,23 +1,28 @@
|
||||||
function inputFacebookFiche(a,b){this.container=a;this.nav_container=b;this.top_size=10}inputFacebookFiche.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null,defaultData:{sexe:"2",age:".",job:".",famsit:"0",studies:"0",reltype:"0",reltypeSpecial:"",city:"",quartier:"",cp:"",loc:"0",duration:["",""],context:"0",contextSpecial:["","",""],freq:["4","9","14","19","24"],connect:"1 3 5 7 9 11".split(" "),connectSpecial:["",""],timestamp:0,valid:!1}};
|
function inputFacebookFiche(a,b){this.container=a;this.nav_container=b;this.top_size=10}
|
||||||
inputFacebookFiche.prototype.fieldsToStorage=function(){console.group("[facebook.fiche] fields to storage");var a,b,c,e,d,h=$$('[data-sublink="facebook"] article.relation-panel .fiche-relation');a=0;for(b=h.length;a<b;a++)if(c=new FormDeflater(h[a],["input","select"],["data-name"]),e=c.deflate(),c=lsi.get("f_fiches",e.uid))e={sexe:e.sexe,age:e.age,job:e.job,famsit:e.famsit,studies:e.studies,reltype:e.reltype,reltypeSpecial:e.reltypeSpecial,city:e.city,quartier:e.quartier,cp:e.cp,loc:e.loc,duration:e.duration,
|
inputFacebookFiche.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null,defaultData:{sexe:"2",age:".",interest:".",relmark:".",job:".",famsit:"0",studies:".",reltype:"0",reltypeSpecial:"",city:"",quartier:"",cp:"",loc:"0",duration:["",""],context:"0",contextSpecial:["","",""],freq:["3","8","13","18","23"],irlfreq:["3","8","13","18","23"],connect:"1 3 5 7 9 11".split(" "),connectSpecial:["",""],medsoc:"0",medrel:"0",timestamp:0,valid:!1}};
|
||||||
context:e.context,contextSpecial:e.contextSpecial,freq:e.freq,connect:e.connect,connectSpecial:e.connectSpecial,uid:parseInt(e.uid),contact:parseInt(e.contact)},d=crc32(JSON.stringify(e)),c.hasOwnProperty("hash")&&d==c.hash||(e.hash=d,e.valid=this.check(e),e.timestamp=Date.now(),console.warn("> FICHE UPDATE ("+(e.timestamp-input_ts)+")"),lsi.set("f_fiches",e.uid,e));console.groupEnd()};
|
inputFacebookFiche.prototype.fieldsToStorage=function(){console.group("[facebook.fiche] fields to storage");var a,b,c,d,e,h=$$('[data-sublink="facebook"] article.relation-panel .fiche-relation');a=0;for(b=h.length;a<b;a++)if(c=new FormDeflater(h[a],["input","select"],["data-name"]),d=c.deflate(),c=lsi.get("f_fiches",d.uid))d={sexe:d.sexe,age:d.age,interest:d.interest,relmark:d.relmark,job:d.job,famsit:d.famsit,studies:d.studies,reltype:d.reltype,reltypeSpecial:d.reltypeSpecial,city:d.city,quartier:d.quartier,
|
||||||
|
cp:d.cp,loc:d.loc,duration:d.duration,context:d.context,medsoc:d.medsoc,medrel:d.medrel,contextSpecial:d.contextSpecial,freq:d.freq,irlfreq:d.irlfreq,connect:d.connect,connectSpecial:d.connectSpecial,uid:parseInt(d.uid),contact:parseInt(d.contact)},e=crc32(JSON.stringify(d)),c.hasOwnProperty("hash")&&e==c.hash||(d.hash=e,d.valid=this.check(d),d.timestamp=Date.now(),console.warn("> FICHE UPDATE ("+(d.timestamp-input_ts)+")"),lsi.set("f_fiches",d.uid,d));console.groupEnd()};
|
||||||
inputFacebookFiche.prototype.add=function(a){if(null==a.uid||isNaN(a.uid)||null==a.contact||isNaN(a.contact))return!1;a.city=null!=a.city?a.city:this.defaultData.city;a.quartier=null!=a.quartier?a.quartier:this.defaultData.quartier;a.cp=null!=a.cp?a.cp:this.defaultData.cp;a.duration[0]=null!=a.duration[0]?a.duration[0]:this.defaultData.duration[0];a.duration[1]=null!=a.duration[1]?a.duration[1]:this.defaultData.duration[1];a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial:this.defaultData.reltypeSpecial;
|
inputFacebookFiche.prototype.add=function(a){if(null==a.uid||isNaN(a.uid)||null==a.contact||isNaN(a.contact))return!1;a.city=null!=a.city?a.city:this.defaultData.city;a.quartier=null!=a.quartier?a.quartier:this.defaultData.quartier;a.cp=null!=a.cp?a.cp:this.defaultData.cp;a.duration[0]=null!=a.duration[0]?a.duration[0]:this.defaultData.duration[0];a.duration[1]=null!=a.duration[1]?a.duration[1]:this.defaultData.duration[1];a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial:this.defaultData.reltypeSpecial;
|
||||||
a.contextSpecial[0]=null!=a.contextSpecial[0]?a.contextSpecial[0]:this.defaultData.contextSpecial[0];a.contextSpecial[1]=null!=a.contextSpecial[1]?a.contextSpecial[1]:this.defaultData.contextSpecial[1];a.contextSpecial[2]=null!=a.contextSpecial[2]?a.contextSpecial[2]:this.defaultData.contextSpecial[2];a.connectSpecial[0]=null!=a.connectSpecial[0]?a.connectSpecial[0]:this.defaultData.connectSpecial[0];a.connectSpecial[1]=null!=a.connectSpecial[1]?a.connectSpecial[1]:this.defaultData.connectSpecial[1];
|
a.contextSpecial[0]=null!=a.contextSpecial[0]?a.contextSpecial[0]:this.defaultData.contextSpecial[0];a.contextSpecial[1]=null!=a.contextSpecial[1]?a.contextSpecial[1]:this.defaultData.contextSpecial[1];a.contextSpecial[2]=null!=a.contextSpecial[2]?a.contextSpecial[2]:this.defaultData.contextSpecial[2];a.connectSpecial[0]=null!=a.connectSpecial[0]?a.connectSpecial[0]:this.defaultData.connectSpecial[0];a.connectSpecial[1]=null!=a.connectSpecial[1]?a.connectSpecial[1]:this.defaultData.connectSpecial[1];
|
||||||
a.job=null!=a.job?a.job:this.defaultData.job;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.age=null!=a.age?a.age:this.defaultData.age;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.famsit=null!=a.famsit?a.famsit:this.defaultData.famsit;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.loc=null!=a.loc?a.loc:this.defaultData.loc;a.context=null!=a.context?a.context:this.defaultData.context;a.freq=null!=a.freq?a.freq:this.defaultData.freq;a.connect=null!=a.connect?a.connect:
|
a.job=null!=a.job?a.job:this.defaultData.job;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.age=null!=a.age?a.age:this.defaultData.age;a.interest=null!=a.interest?a.interest:this.defaultData.interest;a.relmark=null!=a.relmark?a.relmark:this.defaultData.relmark;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.famsit=null!=a.famsit?a.famsit:this.defaultData.famsit;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.loc=null!=a.loc?a.loc:this.defaultData.loc;a.context=null!=
|
||||||
this.defaultData.connect;var b=lsi.get("f_contacts",a.contact);if(!1===b)return!1;var c="";isNaN(b.existing)||(c=lsi.get("f_friends",b.existing),b.username=c.name,a.age=c.age,a.sexe=c.sexe,a.loc=c.dist,isNaN(c.reltype)?(a.reltype=10,a.reltypeSpecial=c.reltype):(a.reltype=c.reltype,a.reltypeSpecial=""),null!=c.studies2?(a.studies=c.studies2,a.job=c.job,a.famsit=c.famsit,a.city=c.city,a.cp=c.cp,a.quartier=c.quartier,a.duration[0]=c.duration[0],a.duration[1]=c.duration[1],a.context=c.context,a.contextSpecial=
|
a.context?a.context:this.defaultData.context;a.medsoc=null!=a.medsoc?a.medsoc:this.defaultData.medsoc;a.medrel=null!=a.medrel?a.medrel:this.defaultData.medrel;a.freq=null!=a.freq?a.freq:this.defaultData.freq;a.irlfreq=null!=a.irlfreq?a.irlfreq:this.defaultData.irlfreq;a.connect=null!=a.connect?a.connect:this.defaultData.connect;var b=lsi.get("f_contacts",a.contact);if(!1===b)return!1;var c="";isNaN(b.existing)||(c=lsi.get("f_friends",b.existing),b.username=c.name,a.age=c.age,a.sexe=c.sexe,a.loc=c.dist,
|
||||||
c.contextExtra,a.connect=c.connect,a.connectSpecial=c.connectExtra,a.freq=c.freq,c="Contact import\u00e9: non modifiable!"):c="Contact import\u00e9 (incomplet): modifiable partiellement!");this.container.innerHTML+=fFicheBuilder.build({importedfiche:c,name:b.username,countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],
|
isNaN(c.reltype)?(a.reltype=10,a.reltypeSpecial=c.reltype):(a.reltype=c.reltype,a.reltypeSpecial=""),null!=c.studies2?(a.studies=c.studies2,a.interest=c.interest,a.relmark=c.relmark,a.job=c.job,a.famsit=c.famsit,a.city=c.city,a.cp=c.cp,a.quartier=c.quartier,a.duration[0]=c.duration[0],a.duration[1]=c.duration[1],a.context=c.context,a.medsoc=c.medsoc,a.medrel=c.medrel,a.contextSpecial=c.contextExtra,a.connect=c.connect,a.connectSpecial=c.connectExtra,a.freq=c.freq,a.irlfreq=c.irlfreq,c="Contact import\u00e9: non modifiable!"):
|
||||||
contextspecial2:a.contextSpecial[2],connectspecial0:a.connectSpecial[0],connectspecial1:a.connectSpecial[1]});b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected",
|
c="Contact import\u00e9 (incomplet): modifiable partiellement!");this.container.innerHTML+=fFicheBuilder.build({importedfiche:c,name:b.username,countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],contextspecial2:a.contextSpecial[2],connectspecial0:a.connectSpecial[0],connectspecial1:a.connectSpecial[1]});
|
||||||
"selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+a.age+'"]');null!=b&&b.setAttribute("selected","selected");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');for(b=0;b<c.length;b++)c[b].value==a.sexe?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+
|
b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+
|
||||||
a.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');for(b=0;b<c.length;b++)c[b].value==a.famsit?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');for(b=0;b<c.length;b++)c[b].value==a.reltype?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+
|
a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+a.age+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="interest"]>option[value="'+a.interest+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="relmark"]>option[value="'+a.relmark+'"]');null!=
|
||||||
a.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');for(b=0;b<c.length;b++)c[b].value==a.loc?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="context"]');for(b=0;b<c.length;b++)c[b].value==a.context?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+
|
b&&b.setAttribute("selected","selected");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');for(b=0;b<c.length;b++)c[b].value==a.sexe?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');for(b=0;b<c.length;b++)c[b].value==a.famsit?c[b].setAttribute("checked",
|
||||||
a.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');for(b=0;b<c.length;b++)-1<a.freq.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');for(b=0;b<c.length;b++)-1<a.connect.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked")};
|
"checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');for(b=0;b<c.length;b++)c[b].value==a.reltype?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');for(b=0;b<c.length;b++)c[b].value==a.loc?c[b].setAttribute("checked",
|
||||||
inputFacebookFiche.prototype.storageToFields=function(){console.group("[facebook.fiche] storage to fields");var a,b=lsi["export"]("f_fiches");this.container.innerHTML="";for(var c in b)a=cloneObject(b[c]),delete a.hash,delete a.timestamp,delete a.valid,b[c].hash=crc32(JSON.stringify(a)),lsi.set("f_fiches",b[c].uid,b[c]),b[c].uid==this.selected&&this.add(b[c]);this.updateNavBar();console.groupEnd()};
|
"checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="context"]');for(b=0;b<c.length;b++)c[b].value==a.context?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="medsoc"]');for(b=0;b<c.length;b++)c[b].value==a.medsoc?c[b].setAttribute("checked",
|
||||||
inputFacebookFiche.prototype.sync=function(){console.group("[facebook.fiche] synchronisation");lsi["export"]("f_contacts");var a,b,c,e;e=lsi.keys("f_contacts").length<2*this.top_size?lsi.keys("f_contacts").length:2*this.top_size;for(b=0;b<e;b++)a=lsi.get("f_fiches",b),!a&&(a=this.defaultData),a.uid=b,a.contact=b,lsi.set("f_fiches",b,a);var d,h,g;e={};var l={};a=lsi["export"]("f_fiches");b=lsi["export"]("f_mini-fiches");for(var k in a)if(d=lsi.get("f_contacts",a[k].contact),!(0<d.username.length&&
|
"checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="medrel"]');for(b=0;b<c.length;b++)c[b].value==a.medrel?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');for(b=0;b<c.length;b++)-1<a.freq.indexOf(c[b].value)?c[b].setAttribute("checked",
|
||||||
void 0!=e[d.username]||0==d.username.length&&void 0!=l[d.existing])&&(0<d.username.length?e[d.username]=0:l[d.existing]=0,d)){var f=[["fiche",a[k]]];for(c in a)h=lsi.get("f_contacts",a[c].contact),c!=k&&h&&(g=0<h.username.length&&d.username===h.username,h=!isNaN(h.existing)&&d.existing===h.existing,(g||h)&&f.push(["fiche",a[c]]));for(c in b)h=lsi.get("f_contacts",b[c].contact),g=0<h.username.length&&d.username===h.username,h=!isNaN(h.existing)&&d.existing===h.existing,(g||h)&&f.push(["mini",b[c]]);
|
"checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="irlfreq"]');for(b=0;b<c.length;b++)-1<a.irlfreq.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="facebook"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');for(b=0;b<c.length;b++)-1<a.connect.indexOf(c[b].value)?
|
||||||
if(1!==f.length){d=[];for(c in f)d[c]=f[c][1].hasOwnProperty("timestamp")?f[c][1].timestamp:0;g=d.indexOf(Math.max.apply(Math,d));for(c in f)c!=g&&(f[c][0]==f[g][0]?(d=cloneObject(f[g][1]),d.uid=f[c][1].uid,lsi.set("f_fiches",d.uid,d)):"fiche"==f[g][0]?(d=cloneObject(f[c][1]),d.age=f[g][1].age,d.sexe=f[g][1].sexe,d.loc=f[g][1].loc,d.reltype=f[g][1].reltype,d.reltypeSpecial=f[g][1].reltypeSpecial,lsi.set("f_mini-fiches",d.uid,d)):(d=cloneObject(f[c][1]),d.age=f[g][1].age,d.sexe=f[g][1].sexe,d.loc=
|
c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked")};inputFacebookFiche.prototype.storageToFields=function(){console.group("[facebook.fiche] storage to fields");var a,b=lsi["export"]("f_fiches");this.container.innerHTML="";for(var c in b)a=cloneObject(b[c]),delete a.hash,delete a.timestamp,delete a.valid,b[c].hash=crc32(JSON.stringify(a)),lsi.set("f_fiches",b[c].uid,b[c]),b[c].uid==this.selected&&this.add(b[c]);this.updateNavBar();console.groupEnd()};
|
||||||
f[g][1].loc,d.reltype=f[g][1].reltype,d.reltypeSpecial=f[g][1].reltypeSpecial,"."==f[g][1].loc&&(d.loc="0"),"9"==f[g][1].reltype&&(d.reltype="10",d.reltypeSpecial="inconnu"),lsi.set("f_fiches",d.uid,d)))}}console.groupEnd()};
|
inputFacebookFiche.prototype.sync=function(){console.group("[facebook.fiche] synchronisation");lsi["export"]("f_contacts");var a,b,c,d;d=lsi.keys("f_contacts").length<2*this.top_size?lsi.keys("f_contacts").length:2*this.top_size;for(b=0;b<d;b++)a=lsi.get("f_fiches",b),!a&&(a=this.defaultData),a.uid=b,a.contact=b,lsi.set("f_fiches",b,a);var e,h,g;d={};var l={};a=lsi["export"]("f_fiches");b=lsi["export"]("f_mini-fiches");for(var k in a)if(e=lsi.get("f_contacts",a[k].contact),!(0<e.username.length&&
|
||||||
|
void 0!=d[e.username]||0==e.username.length&&void 0!=l[e.existing])&&(0<e.username.length?d[e.username]=0:l[e.existing]=0,e)){var f=[["fiche",a[k]]];for(c in a)h=lsi.get("f_contacts",a[c].contact),c!=k&&h&&(g=0<h.username.length&&e.username===h.username,h=!isNaN(h.existing)&&e.existing===h.existing,(g||h)&&f.push(["fiche",a[c]]));for(c in b)h=lsi.get("f_contacts",b[c].contact),g=0<h.username.length&&e.username===h.username,h=!isNaN(h.existing)&&e.existing===h.existing,(g||h)&&f.push(["mini",b[c]]);
|
||||||
|
if(1!==f.length){e=[];for(c in f)e[c]=f[c][1].hasOwnProperty("timestamp")?f[c][1].timestamp:0;g=e.indexOf(Math.max.apply(Math,e));for(c in f)c!=g&&(f[c][0]==f[g][0]?(e=cloneObject(f[g][1]),e.uid=f[c][1].uid,lsi.set("f_fiches",e.uid,e)):"fiche"==f[g][0]?(e=cloneObject(f[c][1]),e.age=f[g][1].age,e.sexe=f[g][1].sexe,e.loc=f[g][1].loc,e.reltype=f[g][1].reltype,e.reltypeSpecial=f[g][1].reltypeSpecial,lsi.set("f_mini-fiches",e.uid,e)):(e=cloneObject(f[c][1]),e.age=f[g][1].age,e.sexe=f[g][1].sexe,e.loc=
|
||||||
|
f[g][1].loc,e.reltype=f[g][1].reltype,e.reltypeSpecial=f[g][1].reltypeSpecial,"."==f[g][1].loc&&(e.loc="0"),"9"==f[g][1].reltype&&(e.reltype="10",e.reltypeSpecial="inconnu"),lsi.set("f_fiches",e.uid,e)))}}console.groupEnd()};
|
||||||
inputFacebookFiche.prototype.nav=function(a){if(!(a instanceof Element&&a.getData("n"))||isNaN(a.getData("n"))||"f_nav-fiche"!=a.parentNode.id)return!1;for(var b=$$('[data-sublink="facebook"] #f_nav-fiche > span.active'),c=0;c<b.length;c++)b[c].remClass("active");a.addClass("active");this.selected=parseInt(a.getData("n"))};
|
inputFacebookFiche.prototype.nav=function(a){if(!(a instanceof Element&&a.getData("n"))||isNaN(a.getData("n"))||"f_nav-fiche"!=a.parentNode.id)return!1;for(var b=$$('[data-sublink="facebook"] #f_nav-fiche > span.active'),c=0;c<b.length;c++)b[c].remClass("active");a.addClass("active");this.selected=parseInt(a.getData("n"))};
|
||||||
inputFacebookFiche.prototype.updateNavBar=function(){var a=lsi["export"]("f_fiches");this.nav_container.innerHTML="";for(var b=Object.keys(a),c=0;c<b.length;c++){var e=parseInt(b[c]);0==e&&(this.nav_container.innerHTML+="<span>HISTORIQUE</span>");20>e&&c<b.length-1&&20<=b[c+1]?this.nav_container.innerHTML+='<span data-n="'+e+'" class="lc">'+(e%20+1)+"</span> ":(20==e&&(this.nav_container.innerHTML+='<br><span class="fc">MESSENGER </span>'),this.nav_container.innerHTML+='<span data-n="'+
|
inputFacebookFiche.prototype.updateNavBar=function(){var a=lsi["export"]("f_fiches");this.nav_container.innerHTML="";for(var b=Object.keys(a),c=0;c<b.length;c++){var d=parseInt(b[c]);0==d&&(this.nav_container.innerHTML+="<span>HISTORIQUE</span>");20>d&&c<b.length-1&&20<=b[c+1]?this.nav_container.innerHTML+='<span data-n="'+d+'" class="lc">'+(d%20+1)+"</span> ":(20==d&&(this.nav_container.innerHTML+='<br><span class="fc">MESSENGER </span>'),this.nav_container.innerHTML+='<span data-n="'+
|
||||||
e+'">'+(e%20+1)+"</span>")}for(var d in a)b=$('[data-sublink="facebook"] #f_nav-fiche [data-n="'+a[d].uid+'"]'),null!=b&&(!0===a[d].valid?b.addClass("done"):b.remClass("done"));this.nav($('[data-sublink="facebook"] #f_nav-fiche [data-n="'+this.selected+'"]'))};
|
d+'">'+(d%20+1)+"</span>")}for(var e in a)b=$('[data-sublink="facebook"] #f_nav-fiche [data-n="'+a[e].uid+'"]'),null!=b&&(!0===a[e].valid?b.addClass("done"):b.remClass("done"));this.nav($('[data-sublink="facebook"] #f_nav-fiche [data-n="'+this.selected+'"]'))};
|
||||||
inputFacebookFiche.prototype.check=function(a){if(2>a.city.length||isNaN(parseInt(a.duration[0]))&&0<a.duration[0].length||isNaN(parseInt(a.duration[1]))&&0<a.duration[1].length||0==a.duration[0].length+a.duration[1].length||"."==a.job||"."==a.studies||"."==a.age||""==a.sexe||""==a.famsit||""==a.reltype||""==a.loc||""==a.context)return!1;for(var b=0;b<a.freq.length;b++)if(""==a.freq[b])return!1;for(b=0;b<a.connect.length;b++)if(""==a.connect[b])return!1;return"10"==a.reltype&&2>a.reltypeSpecial.length||
|
inputFacebookFiche.prototype.check=function(a){if(2>a.city.length||isNaN(parseInt(a.duration[0]))&&0<a.duration[0].length||isNaN(parseInt(a.duration[1]))&&0<a.duration[1].length||0==a.duration[0].length+a.duration[1].length||"."==a.job||"."==a.studies||"."==a.age||"."==a.interest||"."==a.relmark||""==a.sexe||""==a.famsit||""==a.reltype||""==a.loc||""==a.context||""==a.medsoc||""==a.medrel)return!1;for(var b=0;b<a.freq.length;b++)if(""==a.freq[b])return!1;for(b=0;b<a.irlfreq.length;b++)if(""==a.irlfreq[b])return!1;
|
||||||
"11"==a.context&&2>a.contextSpecial[0].length||"12"==a.context&&2>a.contextSpecial[1].length||"13"==a.context&&2>a.contextSpecial[2].length?!1:!0};inputFacebookFiche.prototype.attach=function(a){console.group("[facebook.fiche] attaching events");lsi.createDataset("f_fiches");this.storageToFields();this.handler=a;var b=this,b=this;this.nav_container.addEventListener("click",function(a){b.nav(a.target);b.handler(a.target)},!1);console.groupEnd()};
|
for(b=0;b<a.connect.length;b++)if(""==a.connect[b])return!1;return"10"==a.reltype&&2>a.reltypeSpecial.length||"11"==a.context&&2>a.contextSpecial[0].length||"12"==a.context&&2>a.contextSpecial[1].length||"13"==a.context&&2>a.contextSpecial[2].length?!1:!0};
|
||||||
|
inputFacebookFiche.prototype.attach=function(a){console.group("[facebook.fiche] attaching events");lsi.createDataset("f_fiches");this.storageToFields();this.handler=a;var b=this,b=this;this.nav_container.addEventListener("click",function(a){b.nav(a.target);b.handler(a.target)},!1);console.groupEnd()};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function inputFacebookMatrice(a){this.container=a}inputFacebookMatrice.prototype={container:this.container};
|
function inputFacebookMatrice(a){this.container=a}inputFacebookMatrice.prototype={container:this.container};
|
||||||
inputFacebookMatrice.prototype.fieldsToStorage=function(){console.group("[facebook.matrice] fields to storage");var a=(new FormDeflater(this.container,["input"],["data-name"])).deflate();crc32(JSON.stringify(a));var d={},b;for(b in a)if(a[b]instanceof Array)for(var e in a[b])null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b][e]));else null!==a[b]&&(null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b])));lsi.set("f_matrice",0,d);console.groupEnd()};
|
inputFacebookMatrice.prototype.fieldsToStorage=function(){console.group("[facebook.matrice] fields to storage");var a=(new FormDeflater(this.container,["input"],["data-name"])).deflate();crc32(JSON.stringify(a));var d={},b;for(b in a)if(a[b]instanceof Array)for(var f in a[b])null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b][f]));else null!==a[b]&&(null==d[b]&&(d[b]=[]),d[b].push(parseInt(a[b])));lsi.set("f_matrice",0,d);console.groupEnd()};
|
||||||
inputFacebookMatrice.prototype.storageToFields=function(){console.group("[facebook.matrice] storage to fields");var a=lsi["export"]("f_fiches"),d=lsi.get("f_matrice",0),b=lsi["export"]("f_contacts"),e=[],c;for(c in a)-1==e.indexOf(a[c].contact)&&e.push(a[c].contact);a=["<table class='line'>"];for(c=0;c<e.length;c++){var g=b[c];a.push("<tr>");0<c?(a.push('<td style="text-align: right;">'),a.push(g.username),a.push("</td>")):a.push("<td></td>");for(var f=0;f<e.length;f++)if(f<e.length-1){var h=b[f];
|
inputFacebookMatrice.prototype.storageToFields=function(){console.group("[facebook.matrice] storage to fields");var a=lsi["export"]("f_fiches"),d=lsi.get("f_matrice",0),b=lsi["export"]("f_contacts"),f=[],c;for(c in a)-1==f.indexOf(a[c].contact)&&f.push(a[c].contact);var a=["<div class='line matrice'>"],e,g,k,h,l;g=0;for(k=f.length;g<k;g++)for(c=b[g],h=g+1,l=f.length;h<l;h++)e=b[h],a.push("<input type='checkbox' data-name='"+c.uid+"' value='"+e.uid+"' id='f_matrice_"+c.uid+"_"+e.uid+"'"),d.hasOwnProperty(c.uid)&&
|
||||||
0==c?(a.push("<td>"),a.push('<span style="writing-mode: vertical-lr; text-align: right;">'),a.push(h.username),a.push("</span>")):f<c?(a.push("<td>"),a.push("<input type='checkbox' name='matrice_"+g.uid+"_"+h.uid+"' data-name='"+g.uid+"' value='"+h.uid+"' id='f_matrice_"+g.uid+"_"+h.uid+"'"),null!=d[c]&&-1<d[c].indexOf(f)&&a.push(" checked"),a.push(" >"),a.push("<label for='f_matrice_"+g.uid+"_"+h.uid+"'></label>")):a.push("<td class='hidden'>");a.push("</td>")}a.push("</tr>")}a.push("</table>");
|
-1<d[c.uid].indexOf(e.uid)&&a.push("checked='checked'"),a.push(">"),a.push("<label class='matrice-content' for='f_matrice_"+c.uid+"_"+e.uid+"'>"),a.push("Est-ce que <span>"),a.push(isNaN(c.existing)?c.username:lsi.get("f_friends",c.existing).name),a.push("</span> et <span>"),a.push(isNaN(e.existing)?e.username:lsi.get("f_friends",e.existing).name),a.push("</span> se connaissent ?"),a.push("</label>");a.push("</div>");this.container.innerHTML=a.join("");console.groupEnd()};
|
||||||
this.container.innerHTML=a.join("");console.groupEnd()};inputFacebookMatrice.prototype.attach=function(){console.group("[facebook.matrice] attaching events");lsi.createDataset("f_matrice");this.storageToFields();var a=this;this.container.addEventListener("click",function(d){a.fieldsToStorage();setTimeout(function(){a.storageToFields()},500)},!1);console.groupEnd()};
|
inputFacebookMatrice.prototype.attach=function(){console.group("[facebook.matrice] attaching events");lsi.createDataset("f_matrice");this.storageToFields();var a=this;this.container.addEventListener("click",function(d){a.fieldsToStorage();setTimeout(function(){a.storageToFields()},500)},!1);console.groupEnd()};
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
function inputFacebookSubject(a,b){this.subject_id=a;this.store_button=b}inputFacebookSubject.prototype={store_button:this.store_button,subject_id:this.subject_id,handler:null};inputFacebookSubject.prototype.check=function(){return 0<this.subject_id.value.length&&!isNaN(this.subject_id.value)};
|
function inputFacebookSubject(a,c,b){this.subject_id=a;this.coords=c;this.store_button=b}inputFacebookSubject.prototype={store_button:this.store_button,subject_id:this.subject_id,coords:this.coords,handler:null};inputFacebookSubject.prototype.check=function(){return 0<this.subject_id.value.length&&!isNaN(this.subject_id.value)};
|
||||||
inputFacebookSubject.prototype.fieldsToStorage=function(){console.group("[facebook.subject] fields to storage");if(!this.check())return!1;if(0<lsi.keys("f_contacts").length)return Notification.warning("Attention","Vous devez effacer le formulaire pour changer de sujet"),!1;lsi.set("f_subject",0,{subject_id:this.subject_id.value});console.groupEnd()};
|
inputFacebookSubject.prototype.fieldsToStorage=function(){console.group("[facebook.subject] fields to storage");if(!this.check())return!1;if(0<lsi.keys("f_contacts").length)return Notification.warning("Attention","Vous devez effacer le formulaire pour changer de sujet"),!1;lsi.set("f_subject",0,{subject_id:this.subject_id.value,coords:this.coords.value});console.groupEnd()};
|
||||||
inputFacebookSubject.prototype.storageToFields=function(){console.group("[facebook.subject] storage to fields");var a=lsi.get("f_subject",0);null==a&&(a={subject_id:""});this.subject_id.value=a.subject_id;console.groupEnd()};
|
inputFacebookSubject.prototype.storageToFields=function(){console.group("[facebook.subject] storage to fields");var a=lsi.get("f_subject",0);null==a&&(a={subject_id:""});this.subject_id.value=a.subject_id;this.coords.value=a.subject_id;console.groupEnd()};
|
||||||
inputFacebookSubject.prototype.attach=function(a){function b(a){c.fieldsToStorage();c.handler(!0);c.storageToFields()}console.group("[facebook.subject] attaching events");lsi.createDataset("f_subject");lsi.createDataset("f_friends");this.handler=a;var c=this;this.store_button.addEventListener("click",b,!1);this.subject_id.addEventListener("blur",b,!1);this.storageToFields();console.groupEnd()};
|
inputFacebookSubject.prototype.attach=function(a){function c(a){b.fieldsToStorage();b.handler(!0);b.storageToFields()}console.group("[facebook.subject] attaching events");lsi.createDataset("f_subject");lsi.createDataset("f_friends");this.handler=a;var b=this;this.store_button.addEventListener("click",c,!1);this.subject_id.addEventListener("blur",c,!1);this.storageToFields();console.groupEnd()};
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,23 +1,28 @@
|
||||||
function inputPhoneFiche(a,b){this.container=a;this.nav_container=b;this.top_size=10}inputPhoneFiche.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null,defaultData:{sexe:"2",age:".",job:".",famsit:"0",studies:"0",reltype:"0",reltypeSpecial:"",city:"",quartier:"",cp:"",loc:"0",duration:["",""],context:"0",contextSpecial:["","",""],freq:["4","9","14","19","24"],connect:"1 3 5 7 9 11".split(" "),connectSpecial:["",""],timestamp:0,valid:!1}};
|
function inputPhoneFiche(a,b){this.container=a;this.nav_container=b;this.top_size=10}
|
||||||
inputPhoneFiche.prototype.fieldsToStorage=function(){console.group("[phone.fiche] fields to storage");var a,b,c,e,d,h=$$('[data-sublink="phone"] article.relation-panel .fiche-relation');a=0;for(b=h.length;a<b;a++)if(c=new FormDeflater(h[a],["input","select"],["data-name"]),e=c.deflate(),c=lsi.get("p_fiches",e.uid))e={sexe:e.sexe,age:e.age,job:e.job,famsit:e.famsit,studies:e.studies,reltype:e.reltype,reltypeSpecial:e.reltypeSpecial,city:e.city,quartier:e.quartier,cp:e.cp,loc:e.loc,duration:e.duration,
|
inputPhoneFiche.prototype={container:this.container,nav_container:this.nav_container,selected:0,handler:null,defaultData:{sexe:"2",age:".",interest:".",relmark:".",job:".",famsit:"0",studies:".",reltype:"0",reltypeSpecial:"",city:"",quartier:"",cp:"",loc:"0",duration:["",""],context:"0",contextSpecial:["","",""],freq:["3","8","13","18","23"],irlfreq:["3","8","13","18","23"],connect:"1 3 5 7 9 11".split(" "),connectSpecial:["",""],medsoc:"0",medrel:"0",timestamp:0,valid:!1}};
|
||||||
context:e.context,contextSpecial:e.contextSpecial,freq:e.freq,connect:e.connect,connectSpecial:e.connectSpecial,uid:parseInt(e.uid),contact:parseInt(e.contact)},d=crc32(JSON.stringify(e)),c.hasOwnProperty("hash")&&d==c.hash||(e.hash=d,e.valid=this.check(e),e.timestamp=Date.now(),console.warn("> FICHE UPDATE ("+(e.timestamp-input_ts)+")"),lsi.set("p_fiches",e.uid,e));console.groupEnd()};
|
inputPhoneFiche.prototype.fieldsToStorage=function(){console.group("[phone.fiche] fields to storage");var a,b,c,d,e,h=$$('[data-sublink="phone"] article.relation-panel .fiche-relation');a=0;for(b=h.length;a<b;a++)if(c=new FormDeflater(h[a],["input","select"],["data-name"]),d=c.deflate(),c=lsi.get("p_fiches",d.uid))d={sexe:d.sexe,age:d.age,interest:d.interest,relmark:d.relmark,job:d.job,famsit:d.famsit,studies:d.studies,reltype:d.reltype,reltypeSpecial:d.reltypeSpecial,city:d.city,quartier:d.quartier,
|
||||||
|
cp:d.cp,loc:d.loc,duration:d.duration,context:d.context,medsoc:d.medsoc,medrel:d.medrel,contextSpecial:d.contextSpecial,freq:d.freq,irlfreq:d.irlfreq,connect:d.connect,connectSpecial:d.connectSpecial,uid:parseInt(d.uid),contact:parseInt(d.contact)},e=crc32(JSON.stringify(d)),c.hasOwnProperty("hash")&&e==c.hash||(d.hash=e,d.valid=this.check(d),d.timestamp=Date.now(),console.warn("> FICHE UPDATE ("+(d.timestamp-input_ts)+")"),lsi.set("p_fiches",d.uid,d));console.groupEnd()};
|
||||||
inputPhoneFiche.prototype.add=function(a){if(null==a.uid||isNaN(a.uid)||null==a.contact||isNaN(a.contact))return!1;a.city=null!=a.city?a.city:this.defaultData.city;a.quartier=null!=a.quartier?a.quartier:this.defaultData.quartier;a.cp=null!=a.cp?a.cp:this.defaultData.cp;a.duration[0]=null!=a.duration[0]?a.duration[0]:this.defaultData.duration[0];a.duration[1]=null!=a.duration[1]?a.duration[1]:this.defaultData.duration[1];a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial:this.defaultData.reltypeSpecial;
|
inputPhoneFiche.prototype.add=function(a){if(null==a.uid||isNaN(a.uid)||null==a.contact||isNaN(a.contact))return!1;a.city=null!=a.city?a.city:this.defaultData.city;a.quartier=null!=a.quartier?a.quartier:this.defaultData.quartier;a.cp=null!=a.cp?a.cp:this.defaultData.cp;a.duration[0]=null!=a.duration[0]?a.duration[0]:this.defaultData.duration[0];a.duration[1]=null!=a.duration[1]?a.duration[1]:this.defaultData.duration[1];a.reltypeSpecial=null!=a.reltypeSpecial?a.reltypeSpecial:this.defaultData.reltypeSpecial;
|
||||||
a.contextSpecial[0]=null!=a.contextSpecial[0]?a.contextSpecial[0]:this.defaultData.contextSpecial[0];a.contextSpecial[1]=null!=a.contextSpecial[1]?a.contextSpecial[1]:this.defaultData.contextSpecial[1];a.contextSpecial[2]=null!=a.contextSpecial[2]?a.contextSpecial[2]:this.defaultData.contextSpecial[2];a.connectSpecial[0]=null!=a.connectSpecial[0]?a.connectSpecial[0]:this.defaultData.connectSpecial[0];a.connectSpecial[1]=null!=a.connectSpecial[1]?a.connectSpecial[1]:this.defaultData.connectSpecial[1];
|
a.contextSpecial[0]=null!=a.contextSpecial[0]?a.contextSpecial[0]:this.defaultData.contextSpecial[0];a.contextSpecial[1]=null!=a.contextSpecial[1]?a.contextSpecial[1]:this.defaultData.contextSpecial[1];a.contextSpecial[2]=null!=a.contextSpecial[2]?a.contextSpecial[2]:this.defaultData.contextSpecial[2];a.connectSpecial[0]=null!=a.connectSpecial[0]?a.connectSpecial[0]:this.defaultData.connectSpecial[0];a.connectSpecial[1]=null!=a.connectSpecial[1]?a.connectSpecial[1]:this.defaultData.connectSpecial[1];
|
||||||
a.job=null!=a.job?a.job:this.defaultData.job;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.age=null!=a.age?a.age:this.defaultData.age;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.famsit=null!=a.famsit?a.famsit:this.defaultData.famsit;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.loc=null!=a.loc?a.loc:this.defaultData.loc;a.context=null!=a.context?a.context:this.defaultData.context;a.freq=null!=a.freq?a.freq:this.defaultData.freq;a.connect=null!=a.connect?a.connect:
|
a.job=null!=a.job?a.job:this.defaultData.job;a.studies=null!=a.studies?a.studies:this.defaultData.studies;a.age=null!=a.age?a.age:this.defaultData.age;a.interest=null!=a.interest?a.interest:this.defaultData.interest;a.relmark=null!=a.relmark?a.relmark:this.defaultData.relmark;a.sexe=null!=a.sexe?a.sexe:this.defaultData.sexe;a.famsit=null!=a.famsit?a.famsit:this.defaultData.famsit;a.reltype=null!=a.reltype?a.reltype:this.defaultData.reltype;a.loc=null!=a.loc?a.loc:this.defaultData.loc;a.context=null!=
|
||||||
this.defaultData.connect;var b=lsi.get("p_contacts",a.contact);if(!1===b)return!1;var c="";isNaN(b.existing)||(c=lsi.get("p_friends",b.existing),b.username=c.name,a.age=c.age,a.sexe=c.sexe,a.loc=c.dist,isNaN(c.reltype)?(a.reltype=10,a.reltypeSpecial=c.reltype):(a.reltype=c.reltype,a.reltypeSpecial=""),null!=c.studies2?(a.studies=c.studies2,a.job=c.job,a.famsit=c.famsit,a.city=c.city,a.cp=c.cp,a.quartier=c.quartier,a.duration[0]=c.duration[0],a.duration[1]=c.duration[1],a.context=c.context,a.contextSpecial=
|
a.context?a.context:this.defaultData.context;a.medsoc=null!=a.medsoc?a.medsoc:this.defaultData.medsoc;a.medrel=null!=a.medrel?a.medrel:this.defaultData.medrel;a.freq=null!=a.freq?a.freq:this.defaultData.freq;a.irlfreq=null!=a.irlfreq?a.irlfreq:this.defaultData.irlfreq;a.connect=null!=a.connect?a.connect:this.defaultData.connect;var b=lsi.get("p_contacts",a.contact);if(!1===b)return!1;var c="";isNaN(b.existing)||(c=lsi.get("p_friends",b.existing),b.username=c.name,a.age=c.age,a.sexe=c.sexe,a.loc=c.dist,
|
||||||
c.contextExtra,a.connect=c.connect,a.connectSpecial=c.connectExtra,a.freq=c.freq,c="Contact import\u00e9: non modifiable!"):c="Contact import\u00e9 (incomplet): modifiable partiellement!");this.container.innerHTML+=pFicheBuilder.build({importedfiche:c,name:b.username,countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],
|
isNaN(c.reltype)?(a.reltype=10,a.reltypeSpecial=c.reltype):(a.reltype=c.reltype,a.reltypeSpecial=""),null!=c.studies2?(a.studies=c.studies2,a.interest=c.interest,a.relmark=c.relmark,a.job=c.job,a.famsit=c.famsit,a.city=c.city,a.cp=c.cp,a.quartier=c.quartier,a.duration[0]=c.duration[0],a.duration[1]=c.duration[1],a.context=c.context,a.medsoc=c.medsoc,a.medrel=c.medrel,a.contextSpecial=c.contextExtra,a.connect=c.connect,a.connectSpecial=c.connectExtra,a.freq=c.freq,a.irlfreq=c.irlfreq,c="Contact import\u00e9: non modifiable!"):
|
||||||
contextspecial2:a.contextSpecial[2],connectspecial0:a.connectSpecial[0],connectspecial1:a.connectSpecial[1]});b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected",
|
c="Contact import\u00e9 (incomplet): modifiable partiellement!");this.container.innerHTML+=pFicheBuilder.build({importedfiche:c,name:b.username,countcall:b.countcall,countsms:b.countsms,uid:a.uid,contact:a.contact,city:a.city,quartier:a.quartier,cp:a.cp,duration0:a.duration[0],duration1:a.duration[1],reltypespecial:a.reltypeSpecial,contextspecial0:a.contextSpecial[0],contextspecial1:a.contextSpecial[1],contextspecial2:a.contextSpecial[2],connectspecial0:a.connectSpecial[0],connectspecial1:a.connectSpecial[1]});
|
||||||
"selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="age"]>option[value="'+a.age+'"]');null!=b&&b.setAttribute("selected","selected");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');for(b=0;b<c.length;b++)c[b].value==a.sexe?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+
|
b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="job"]>option[value="'+a.job+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="studies"]>option[value="'+a.studies+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+
|
||||||
a.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');for(b=0;b<c.length;b++)c[b].value==a.famsit?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');for(b=0;b<c.length;b++)c[b].value==a.reltype?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+
|
'"] ~ h5>span>select[data-name="age"]>option[value="'+a.age+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="interest"]>option[value="'+a.interest+'"]');null!=b&&b.setAttribute("selected","selected");b=$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>span>select[data-name="relmark"]>option[value="'+a.relmark+'"]');null!=b&&b.setAttribute("selected",
|
||||||
a.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');for(b=0;b<c.length;b++)c[b].value==a.loc?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="context"]');for(b=0;b<c.length;b++)c[b].value==a.context?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+
|
"selected");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="sexe"]');for(b=0;b<c.length;b++)c[b].value==a.sexe?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="famsit"]');for(b=0;b<c.length;b++)c[b].value==a.famsit?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");
|
||||||
a.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');for(b=0;b<c.length;b++)-1<a.freq.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');for(b=0;b<c.length;b++)-1<a.connect.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked")};
|
c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="reltype"]');for(b=0;b<c.length;b++)c[b].value==a.reltype?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="loc"]');for(b=0;b<c.length;b++)c[b].value==a.loc?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");
|
||||||
inputPhoneFiche.prototype.storageToFields=function(){console.group("[phone.fiche] storage to fields");var a,b=lsi["export"]("p_fiches");this.container.innerHTML="";for(var c in b)a=cloneObject(b[c]),delete a.hash,delete a.timestamp,delete a.valid,b[c].hash=crc32(JSON.stringify(a)),lsi.set("p_fiches",b[c].uid,b[c]),b[c].uid==this.selected&&this.add(b[c]);this.updateNavBar();console.groupEnd()};
|
c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="context"]');for(b=0;b<c.length;b++)c[b].value==a.context?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked","checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="medsoc"]');for(b=0;b<c.length;b++)c[b].value==a.medsoc?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");
|
||||||
inputPhoneFiche.prototype.sync=function(){console.group("[phone.fiche] synchronisation");lsi["export"]("p_contacts");var a,b,c,e;e=lsi.keys("p_contacts").length<2*this.top_size?lsi.keys("p_contacts").length:2*this.top_size;for(b=0;b<e;b++)a=lsi.get("p_fiches",b),!a&&(a=this.defaultData),a.uid=b,a.contact=b,lsi.set("p_fiches",b,a);var d,h,g;e={};var l={};a=lsi["export"]("p_fiches");b=lsi["export"]("p_mini-fiches");for(var k in a)if(d=lsi.get("p_contacts",a[k].contact),!(0<d.username.length&&void 0!=
|
c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="medrel"]');for(b=0;b<c.length;b++)c[b].value==a.medrel?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="freq"]');for(b=0;b<c.length;b++)-1<a.freq.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");
|
||||||
e[d.username]||0==d.username.length&&void 0!=l[d.existing])&&(0<d.username.length?e[d.username]=0:l[d.existing]=0,d)){var f=[["fiche",a[k]]];for(c in a)h=lsi.get("p_contacts",a[c].contact),c!=k&&h&&(g=0<h.username.length&&d.username===h.username,h=!isNaN(h.existing)&&d.existing===h.existing,(g||h)&&f.push(["fiche",a[c]]));for(c in b)h=lsi.get("p_contacts",b[c].contact),g=0<h.username.length&&d.username===h.username,h=!isNaN(h.existing)&&d.existing===h.existing,(g||h)&&f.push(["mini",b[c]]);if(1!==
|
c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="irlfreq"]');for(b=0;b<c.length;b++)-1<a.irlfreq.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):c[b].removeAttribute("checked");c=$$('[data-sublink="phone"] article.fiche-relation input[data-name="uid"][value="'+a.uid+'"] ~ h5>input[type="radio"][data-name="connect"]');for(b=0;b<c.length;b++)-1<a.connect.indexOf(c[b].value)?c[b].setAttribute("checked","checked"):
|
||||||
f.length){d=[];for(c in f)d[c]=f[c][1].hasOwnProperty("timestamp")?f[c][1].timestamp:0;g=d.indexOf(Math.max.apply(Math,d));for(c in f)c!=g&&(f[c][0]==f[g][0]?(d=cloneObject(f[g][1]),d.uid=f[c][1].uid,lsi.set("p_fiches",d.uid,d)):"fiche"==f[g][0]?(d=cloneObject(f[c][1]),d.age=f[g][1].age,d.sexe=f[g][1].sexe,d.loc=f[g][1].loc,d.reltype=f[g][1].reltype,d.reltypeSpecial=f[g][1].reltypeSpecial,lsi.set("p_mini-fiches",d.uid,d)):(d=cloneObject(f[c][1]),d.age=f[g][1].age,d.sexe=f[g][1].sexe,d.loc=f[g][1].loc,
|
c[b].removeAttribute("checked")};inputPhoneFiche.prototype.storageToFields=function(){console.group("[phone.fiche] storage to fields");var a,b=lsi["export"]("p_fiches");this.container.innerHTML="";for(var c in b)a=cloneObject(b[c]),delete a.hash,delete a.timestamp,delete a.valid,b[c].hash=crc32(JSON.stringify(a)),lsi.set("p_fiches",b[c].uid,b[c]),b[c].uid==this.selected&&this.add(b[c]);this.updateNavBar();console.groupEnd()};
|
||||||
d.reltype=f[g][1].reltype,d.reltypeSpecial=f[g][1].reltypeSpecial,"."==f[g][1].loc&&(d.loc="0"),"9"==f[g][1].reltype&&(d.reltype="10",d.reltypeSpecial="inconnu"),lsi.set("p_fiches",d.uid,d)))}}console.groupEnd()};
|
inputPhoneFiche.prototype.sync=function(){console.group("[phone.fiche] synchronisation");lsi["export"]("p_contacts");var a,b,c,d;d=lsi.keys("p_contacts").length<2*this.top_size?lsi.keys("p_contacts").length:2*this.top_size;for(b=0;b<d;b++)a=lsi.get("p_fiches",b),!a&&(a=this.defaultData),a.uid=b,a.contact=b,lsi.set("p_fiches",b,a);var e,h,g;d={};var l={};a=lsi["export"]("p_fiches");b=lsi["export"]("p_mini-fiches");for(var k in a)if(e=lsi.get("p_contacts",a[k].contact),!(0<e.username.length&&void 0!=
|
||||||
|
d[e.username]||0==e.username.length&&void 0!=l[e.existing])&&(0<e.username.length?d[e.username]=0:l[e.existing]=0,e)){var f=[["fiche",a[k]]];for(c in a)h=lsi.get("p_contacts",a[c].contact),c!=k&&h&&(g=0<h.username.length&&e.username===h.username,h=!isNaN(h.existing)&&e.existing===h.existing,(g||h)&&f.push(["fiche",a[c]]));for(c in b)h=lsi.get("p_contacts",b[c].contact),g=0<h.username.length&&e.username===h.username,h=!isNaN(h.existing)&&e.existing===h.existing,(g||h)&&f.push(["mini",b[c]]);if(1!==
|
||||||
|
f.length){e=[];for(c in f)e[c]=f[c][1].hasOwnProperty("timestamp")?f[c][1].timestamp:0;g=e.indexOf(Math.max.apply(Math,e));for(c in f)c!=g&&(f[c][0]==f[g][0]?(e=cloneObject(f[g][1]),e.uid=f[c][1].uid,lsi.set("p_fiches",e.uid,e)):"fiche"==f[g][0]?(e=cloneObject(f[c][1]),e.age=f[g][1].age,e.sexe=f[g][1].sexe,e.loc=f[g][1].loc,e.reltype=f[g][1].reltype,e.reltypeSpecial=f[g][1].reltypeSpecial,lsi.set("p_mini-fiches",e.uid,e)):(e=cloneObject(f[c][1]),e.age=f[g][1].age,e.sexe=f[g][1].sexe,e.loc=f[g][1].loc,
|
||||||
|
e.reltype=f[g][1].reltype,e.reltypeSpecial=f[g][1].reltypeSpecial,"."==f[g][1].loc&&(e.loc="0"),"9"==f[g][1].reltype&&(e.reltype="10",e.reltypeSpecial="inconnu"),lsi.set("p_fiches",e.uid,e)))}}console.groupEnd()};
|
||||||
inputPhoneFiche.prototype.nav=function(a){if(!(a instanceof Element&&a.getData("n"))||isNaN(a.getData("n"))||"p_nav-fiche"!=a.parentNode.id)return!1;for(var b=$$('[data-sublink="phone"] #p_nav-fiche > span.active'),c=0;c<b.length;c++)b[c].remClass("active");a.addClass("active");this.selected=parseInt(a.getData("n"))};
|
inputPhoneFiche.prototype.nav=function(a){if(!(a instanceof Element&&a.getData("n"))||isNaN(a.getData("n"))||"p_nav-fiche"!=a.parentNode.id)return!1;for(var b=$$('[data-sublink="phone"] #p_nav-fiche > span.active'),c=0;c<b.length;c++)b[c].remClass("active");a.addClass("active");this.selected=parseInt(a.getData("n"))};
|
||||||
inputPhoneFiche.prototype.updateNavBar=function(){var a=lsi["export"]("p_fiches");this.nav_container.innerHTML="";for(var b=Object.keys(a),c=0;c<b.length;c++){var e=parseInt(b[c]);0==e&&(this.nav_container.innerHTML+="<span>APPELS</span>");20>e&&c<b.length-1&&20<=b[c+1]?this.nav_container.innerHTML+='<span data-n="'+e+'" class="lc">'+(e%20+1)+"</span> ":(20==e&&(this.nav_container.innerHTML+='<br><span class="fc"> SMS </span>'),this.nav_container.innerHTML+='<span data-n="'+
|
inputPhoneFiche.prototype.updateNavBar=function(){var a=lsi["export"]("p_fiches");this.nav_container.innerHTML="";for(var b=Object.keys(a),c=0;c<b.length;c++){var d=parseInt(b[c]);0==d&&(this.nav_container.innerHTML+="<span>APPELS</span>");20>d&&c<b.length-1&&20<=b[c+1]?this.nav_container.innerHTML+='<span data-n="'+d+'" class="lc">'+(d%20+1)+"</span> ":(20==d&&(this.nav_container.innerHTML+='<br><span class="fc"> SMS </span>'),this.nav_container.innerHTML+='<span data-n="'+
|
||||||
e+'">'+(e%20+1)+"</span>")}for(var d in a)b=$('[data-sublink="phone"] #p_nav-fiche [data-n="'+a[d].uid+'"]'),null!=b&&(!0===a[d].valid?b.addClass("done"):b.remClass("done"));this.nav($('[data-sublink="phone"] #p_nav-fiche [data-n="'+this.selected+'"]'))};
|
d+'">'+(d%20+1)+"</span>")}for(var e in a)b=$('[data-sublink="phone"] #p_nav-fiche [data-n="'+a[e].uid+'"]'),null!=b&&(!0===a[e].valid?b.addClass("done"):b.remClass("done"));this.nav($('[data-sublink="phone"] #p_nav-fiche [data-n="'+this.selected+'"]'))};
|
||||||
inputPhoneFiche.prototype.check=function(a){if(2>a.city.length||isNaN(parseInt(a.duration[0]))&&0<a.duration[0].length||isNaN(parseInt(a.duration[1]))&&0<a.duration[1].length||0==a.duration[0].length+a.duration[1].length||"."==a.job||"."==a.studies||"."==a.age||""==a.sexe||""==a.famsit||""==a.reltype||""==a.loc||""==a.context)return!1;for(var b=0;b<a.freq.length;b++)if(""==a.freq[b])return!1;for(b=0;b<a.connect.length;b++)if(""==a.connect[b])return!1;return"10"==a.reltype&&2>a.reltypeSpecial.length||
|
inputPhoneFiche.prototype.check=function(a){if(2>a.city.length||isNaN(parseInt(a.duration[0]))&&0<a.duration[0].length||isNaN(parseInt(a.duration[1]))&&0<a.duration[1].length||0==a.duration[0].length+a.duration[1].length||"."==a.job||"."==a.studies||"."==a.age||"."==a.interest||"."==a.relmark||""==a.sexe||""==a.famsit||""==a.reltype||""==a.loc||""==a.context||""==a.medsoc||""==a.medrel)return!1;for(var b=0;b<a.freq.length;b++)if(""==a.freq[b])return!1;for(b=0;b<a.irlfreq.length;b++)if(""==a.irlfreq[b])return!1;
|
||||||
"11"==a.context&&2>a.contextSpecial[0].length||"12"==a.context&&2>a.contextSpecial[1].length||"13"==a.context&&2>a.contextSpecial[2].length?!1:!0};inputPhoneFiche.prototype.attach=function(a){console.group("[phone.fiche] attaching events");lsi.createDataset("p_fiches");this.storageToFields();this.handler=a;this.nav_container.addEventListener("click",function(a){this.nav(a.target);this.handler(a.target)}.bind(this),!1);console.groupEnd()};
|
for(b=0;b<a.connect.length;b++)if(""==a.connect[b])return!1;return"10"==a.reltype&&2>a.reltypeSpecial.length||"11"==a.context&&2>a.contextSpecial[0].length||"12"==a.context&&2>a.contextSpecial[1].length||"13"==a.context&&2>a.contextSpecial[2].length?!1:!0};
|
||||||
|
inputPhoneFiche.prototype.attach=function(a){console.group("[phone.fiche] attaching events");lsi.createDataset("p_fiches");this.storageToFields();this.handler=a;this.nav_container.addEventListener("click",function(a){this.nav(a.target);this.handler(a.target)}.bind(this),!1);console.groupEnd()};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
var inputPhoneMatrice=function(a){this.container=a};inputPhoneMatrice.prototype={container:this.container};
|
var inputPhoneMatrice=function(a){this.container=a};inputPhoneMatrice.prototype={container:this.container};
|
||||||
inputPhoneMatrice.prototype.fieldsToStorage=function(){console.group("[phone.matrice] fields to storage");var a=(new FormDeflater(this.container,["input"],["data-name"])).deflate();crc32(JSON.stringify(a));var c={},b;for(b in a)if(a[b]instanceof Array)for(var e in a[b])null==c[b]&&(c[b]=[]),c[b].push(parseInt(a[b][e]));else null!==a[b]&&(null==c[b]&&(c[b]=[]),c[b].push(parseInt(a[b])));lsi.set("p_matrice",0,c);console.groupEnd()};
|
inputPhoneMatrice.prototype.fieldsToStorage=function(){console.group("[phone.matrice] fields to storage");var a=(new FormDeflater(this.container,["input"],["data-name"])).deflate();crc32(JSON.stringify(a));var c={},b;for(b in a)if(a[b]instanceof Array)for(var e in a[b])null==c[b]&&(c[b]=[]),c[b].push(parseInt(a[b][e]));else null!==a[b]&&(null==c[b]&&(c[b]=[]),c[b].push(parseInt(a[b])));lsi.set("p_matrice",0,c);console.groupEnd()};
|
||||||
inputPhoneMatrice.prototype.storageToFields=function(){console.group("[phone.matrice] storage to fields");var a=lsi["export"]("p_fiches"),c=lsi.get("p_matrice",0),b=lsi["export"]("p_contacts"),e=[],d;for(d in a)-1==e.indexOf(a[d].contact)&&e.push(a[d].contact);var a=["<div class='line matrice'>"],f,g,k,h,l;g=0;for(k=e.length;g<k;g++)for(d=b[g],h=g+1,l=e.length;h<l;h++)f=b[h],a.push("<input type='checkbox' data-name='"+d.uid+"' value='"+f.uid+"' id='f_matrice_"+d.uid+"_"+f.uid+"'"),c.hasOwnProperty(d.uid)&&
|
inputPhoneMatrice.prototype.storageToFields=function(){console.group("[phone.matrice] storage to fields");var a=lsi["export"]("p_fiches"),c=lsi.get("p_matrice",0),b=lsi["export"]("p_contacts"),e=[],d;for(d in a)-1==e.indexOf(a[d].contact)&&e.push(a[d].contact);var a=["<div class='line matrice'>"],f,g,k,h,l;g=0;for(k=e.length;g<k;g++)for(d=b[g],h=g+1,l=e.length;h<l;h++)f=b[h],a.push("<input type='checkbox' data-name='"+d.uid+"' value='"+f.uid+"' id='p_matrice_"+d.uid+"_"+f.uid+"'"),c.hasOwnProperty(d.uid)&&
|
||||||
-1<c[d.uid].indexOf(f.uid)&&a.push("checked='checked'"),a.push(">"),a.push("<label class='matrice-content' for='f_matrice_"+d.uid+"_"+f.uid+"'>"),a.push("Est-ce que <span>"),a.push(isNaN(d.existing)?d.username:lsi.get("p_friends",d.existing).name),a.push("</span> et <span>"),a.push(isNaN(f.existing)?f.username:lsi.get("p_friends",f.existing).name),a.push("</span> se connaissent ?"),a.push("</label>");a.push("</div>");this.container.innerHTML=a.join("");console.groupEnd()};
|
-1<c[d.uid].indexOf(f.uid)&&a.push("checked='checked'"),a.push(">"),a.push("<label class='matrice-content' for='p_matrice_"+d.uid+"_"+f.uid+"'>"),a.push("Est-ce que <span>"),a.push(isNaN(d.existing)?d.username:lsi.get("p_friends",d.existing).name),a.push("</span> et <span>"),a.push(isNaN(f.existing)?f.username:lsi.get("p_friends",f.existing).name),a.push("</span> se connaissent ?"),a.push("</label>");a.push("</div>");this.container.innerHTML=a.join("");console.groupEnd()};
|
||||||
inputPhoneMatrice.prototype.attach=function(){console.group("[phone.matrice] attaching events");lsi.createDataset("p_matrice");this.storageToFields();var a=this;this.container.addEventListener("click",function(c){a.fieldsToStorage();setTimeout(function(){a.storageToFields()},500)},!1);console.groupEnd()};
|
inputPhoneMatrice.prototype.attach=function(){console.group("[phone.matrice] attaching events");lsi.createDataset("p_matrice");this.storageToFields();var a=this;this.container.addEventListener("click",function(c){a.fieldsToStorage();setTimeout(function(){a.storageToFields()},500)},!1);console.groupEnd()};
|
||||||
inputPhoneMatrice.prototype.parseGrid=function(){var a=$$(".matrice-panel input[data-name][value]"),c;for(c in a)if(a[c]instanceof Element){var b=a[c].getData("name"),e=a[c].value;this.sGrid[b]instanceof Array||(this.sGrid[b]=[]);this.sGrid[b][e]=a[c]}};
|
inputPhoneMatrice.prototype.parseGrid=function(){var a=$$(".matrice-panel input[data-name][value]"),c;for(c in a)if(a[c]instanceof Element){var b=a[c].getData("name"),e=a[c].value;this.sGrid[b]instanceof Array||(this.sGrid[b]=[]);this.sGrid[b][e]=a[c]}};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
{"subject":{"tmp_id":"","subject_id":"1"},"contacts":{"0":{"uid":0,"number":"","username":"","call":-1,"sms":-1,"countcall":0,"countsms":0,"existing":18,"hash":898112018}},"mini":{},"fiches":{"0":{"contact":0,"uid":0,"sexe":"0","age":"9","job":"56","famsit":"0","studies":"06","reltype":"3","reltypeSpecial":"","city":"76","quartier":"66","cp":"10066","loc":"2","duration":["66","166"],"context":"10","contextSpecial":["","",""],"freq":["4","9","14","19","24"],"connect":["1","3","5","7","9","11"],"connectSpecial":["",""],"hash":4117636975,"valid":true,"timestamp":1474798137256}},"matrice":{}}
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SOCIOVIEW - Tableau de bord</title>
|
<title>NxTIC - Tableau de bord</title>
|
||||||
|
|
||||||
<!-- Informations de la page -->
|
<!-- Informations de la page -->
|
||||||
<meta name='Content-Type' content='text/html; charset=utf-8'>
|
<meta name='Content-Type' content='text/html; charset=utf-8'>
|
||||||
|
|
|
@ -150,6 +150,11 @@ if( $getAllR->error == ManagerError::Success )
|
||||||
<!-- NAVIGATION ENTRE LES FICHES -->
|
<!-- NAVIGATION ENTRE LES FICHES -->
|
||||||
<article class='matrice-panel' id='snake'></article>
|
<article class='matrice-panel' id='snake'></article>
|
||||||
|
|
||||||
|
<h5 class='nobold color0'>
|
||||||
|
Accepteriez- vous de participer à cette étude dans quelques années pour nous aider à comprendre comment votre rapport aux médias sociaux a évolué et a pu changer vos relations avec vos proches ?
|
||||||
|
Si oui, pouvez-vous nous transmettre vos coordonnées : <br>
|
||||||
|
<input type="text" id='coord_p' data-name="coords" placeholder="Coordonnées" value="">
|
||||||
|
</h5>
|
||||||
|
|
||||||
<!-- BOUTON D'ENVOI DU FORMULAIRE -->
|
<!-- BOUTON D'ENVOI DU FORMULAIRE -->
|
||||||
<h3 data-n='6' class='color4'>Envoi des données</h3>
|
<h3 data-n='6' class='color4'>Envoi des données</h3>
|
||||||
|
@ -265,6 +270,13 @@ if( $getAllR->error == ManagerError::Success )
|
||||||
<article class='matrice-panel'></article>
|
<article class='matrice-panel'></article>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class='nobold color0'>
|
||||||
|
Accepteriez- vous de participer à cette étude dans quelques années pour nous aider à comprendre comment votre rapport aux médias sociaux a évolué et a pu changer vos relations avec vos proches ?
|
||||||
|
Si oui, pouvez-vous nous transmettre vos coordonnées : <br>
|
||||||
|
<input type="text" id='coord_f' data-name="coords" placeholder="Coordonnées" value="">
|
||||||
|
</h5>
|
||||||
|
|
||||||
|
|
||||||
<!-- BOUTON D'ENVOI DU FORMULAIRE -->
|
<!-- BOUTON D'ENVOI DU FORMULAIRE -->
|
||||||
<h3 data-n='6' class='color4'>Envoi des données</h3>
|
<h3 data-n='6' class='color4'>Envoi des données</h3>
|
||||||
<article class='submit-panel'>
|
<article class='submit-panel'>
|
||||||
|
|
|
@ -52,22 +52,15 @@ var tmpSubjectSearchListener = function(e){
|
||||||
var htmlContent = [];
|
var htmlContent = [];
|
||||||
for( var id in response.results ){
|
for( var id in response.results ){
|
||||||
htmlContent.push("<li data-element data-id='"+id+"'>");
|
htmlContent.push("<li data-element data-id='"+id+"'>");
|
||||||
|
|
||||||
htmlContent.push("<div data-user><span>SUJET</span></div>");
|
htmlContent.push("<div data-user><span>SUJET</span></div>");
|
||||||
|
|
||||||
htmlContent.push("<div> <span><input type='text' readonly style='text-align: center' onclick='this.select()' class='flag' value='"+id+"'></span> </div>");
|
htmlContent.push("<div> <span><input type='text' readonly style='text-align: center' onclick='this.select()' class='flag' value='"+id+"'></span> </div>");
|
||||||
|
|
||||||
htmlContent.push("<div> <span data-prefix='Nom'>"+response.results[id].name+"</span> </div>");
|
htmlContent.push("<div> <span data-prefix='Nom'>"+response.results[id].name+"</span> </div>");
|
||||||
|
|
||||||
htmlContent.push("<div> <span data-prefix='Création'>"+response.results[id].creation+"</span> </div>");
|
htmlContent.push("<div> <span data-prefix='Création'>"+response.results[id].creation+"</span> </div>");
|
||||||
|
|
||||||
htmlContent.push("<div> <span><input type='checkbox' id='s_"+id+"' "+((response.results[id].phone!=null)?'checked':'')+" disabled><label for='s_"+id+"'>Cellulaire</label>");
|
htmlContent.push("<div> <span><input type='checkbox' id='s_"+id+"' "+((response.results[id].phone!=null)?'checked':'')+" disabled><label for='s_"+id+"'>Cellulaire</label>");
|
||||||
htmlContent.push("</span> </div>");
|
htmlContent.push("</span> </div>");
|
||||||
|
|
||||||
htmlContent.push("<div> <span><input type='checkbox' id='s_"+id+"' "+((response.results[id].facebook!=null)?'checked':'')+" disabled><label for='s_"+id+"'>Facebook</label>");
|
htmlContent.push("<div> <span><input type='checkbox' id='s_"+id+"' "+((response.results[id].facebook!=null)?'checked':'')+" disabled><label for='s_"+id+"'>Facebook</label>");
|
||||||
htmlContent.push("</span> </div>");
|
htmlContent.push("</span> </div>");
|
||||||
|
|
||||||
|
|
||||||
htmlContent.push( "</li>");
|
htmlContent.push( "</li>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,6 +108,7 @@ var phoneRoutine = function(){
|
||||||
/* (1) On crée une instance du manager du sujet */
|
/* (1) On crée une instance du manager du sujet */
|
||||||
pSubjectManager = new inputPhoneSubject(
|
pSubjectManager = new inputPhoneSubject(
|
||||||
$('[data-sublink="phone"] article.subject-panel [data-name="subject_id"]'),
|
$('[data-sublink="phone"] article.subject-panel [data-name="subject_id"]'),
|
||||||
|
$('[data-sublink="phone"] #coord_p'),
|
||||||
$('[data-sublink="phone"] article.subject-panel [data-name="submit"]')
|
$('[data-sublink="phone"] article.subject-panel [data-name="submit"]')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -210,7 +204,7 @@ var phoneRoutine = function(){
|
||||||
|
|
||||||
/* (2) On lance le téléchargement */
|
/* (2) On lance le téléchargement */
|
||||||
var downloadTarget = $('[data-sublink="phone"] #p_download-target'); // On récupère le lien (<a>) caché qui fera le téléchargement
|
var downloadTarget = $('[data-sublink="phone"] #p_download-target'); // On récupère le lien (<a>) caché qui fera le téléchargement
|
||||||
downloadTarget.download = 'local-facebook-data.json'; // Nom du fichier qui sera téléchargé
|
downloadTarget.download = 'local-phone-data.json'; // Nom du fichier qui sera téléchargé
|
||||||
downloadTarget.href = 'data:application/octet-stream,' + encodeURIComponent(JSON.stringify(data)); // Contenu
|
downloadTarget.href = 'data:application/octet-stream,' + encodeURIComponent(JSON.stringify(data)); // Contenu
|
||||||
downloadTarget.click(); // On lance le téléchargement
|
downloadTarget.click(); // On lance le téléchargement
|
||||||
|
|
||||||
|
@ -259,6 +253,8 @@ var phoneRoutine = function(){
|
||||||
/* (3) On met à jour l'affichage */
|
/* (3) On met à jour l'affichage */
|
||||||
pSubjectManager.storageToFields();
|
pSubjectManager.storageToFields();
|
||||||
pContactManager.storageToFields();
|
pContactManager.storageToFields();
|
||||||
|
pMiniManager.storageToFields();
|
||||||
|
pFicheManager.storageToFields();
|
||||||
pMatriceManager.storageToFields();
|
pMatriceManager.storageToFields();
|
||||||
pDynamicUpdate(true);
|
pDynamicUpdate(true);
|
||||||
|
|
||||||
|
@ -310,7 +306,7 @@ var phoneRoutine = function(){
|
||||||
var request = {
|
var request = {
|
||||||
path: 'input/phone',
|
path: 'input/phone',
|
||||||
|
|
||||||
subject: lsi.export('p_subject')[0].subject_id,
|
subject: lsi.export('p_subject')[0],
|
||||||
contacts: lsi.export('p_contacts'),
|
contacts: lsi.export('p_contacts'),
|
||||||
mini: lsi.export('p_mini-fiches'),
|
mini: lsi.export('p_mini-fiches'),
|
||||||
fiches: lsi.export('p_fiches'),
|
fiches: lsi.export('p_fiches'),
|
||||||
|
@ -371,6 +367,7 @@ var facebookRoutine = function(){
|
||||||
/* (1) On crée une instance du manager du sujet */
|
/* (1) On crée une instance du manager du sujet */
|
||||||
fSubjectManager = new inputFacebookSubject(
|
fSubjectManager = new inputFacebookSubject(
|
||||||
$('[data-sublink="facebook"] article.subject-panel [data-name="subject_id"]'),
|
$('[data-sublink="facebook"] article.subject-panel [data-name="subject_id"]'),
|
||||||
|
$('[data-sublink="facebook"] #coord_f'),
|
||||||
$('[data-sublink="facebook"] article.subject-panel [data-name="submit"]')
|
$('[data-sublink="facebook"] article.subject-panel [data-name="submit"]')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -457,7 +454,7 @@ var facebookRoutine = function(){
|
||||||
|
|
||||||
/* (1) On construit les données */
|
/* (1) On construit les données */
|
||||||
var data = {
|
var data = {
|
||||||
subject: lsi.export('f_subject')[0].subject_id,
|
subject: lsi.export('f_subject')[0],
|
||||||
contacts: lsi.export('f_contacts'),
|
contacts: lsi.export('f_contacts'),
|
||||||
mini: lsi.export('f_mini-fiches'),
|
mini: lsi.export('f_mini-fiches'),
|
||||||
fiches: lsi.export('f_fiches'),
|
fiches: lsi.export('f_fiches'),
|
||||||
|
@ -514,10 +511,12 @@ var facebookRoutine = function(){
|
||||||
lsi.set('f_matrice', 0, response.local_data.matrice);
|
lsi.set('f_matrice', 0, response.local_data.matrice);
|
||||||
|
|
||||||
/* (3) On met à jour l'affichage */
|
/* (3) On met à jour l'affichage */
|
||||||
pSubjectManager.storageToFields();
|
fSubjectManager.storageToFields();
|
||||||
pContactManager.storageToFields();
|
fContactManager.storageToFields();
|
||||||
pMatriceManager.storageToFields();
|
fMiniManager.storageToFields();
|
||||||
pDynamicUpdate(true);
|
fFicheManager.storageToFields();
|
||||||
|
fMatriceManager.storageToFields();
|
||||||
|
fDynamicUpdate(true);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -812,9 +811,9 @@ function testContactsPhone(){
|
||||||
for( var i = 0 ; i < 45 ; i++ ){
|
for( var i = 0 ; i < 45 ; i++ ){
|
||||||
|
|
||||||
if( i%20 == 0 )
|
if( i%20 == 0 )
|
||||||
lsi.set('p_contacts', i, { uid: i, username: 'contact-x' });
|
lsi.set('p_contacts', i, { uid: i, username: 'contact-x', existing: '.' });
|
||||||
else
|
else
|
||||||
lsi.set('p_contacts', i, { uid: i, username: 'contact-'+i });
|
lsi.set('p_contacts', i, { uid: i, username: 'contact-'+i, existing: '.' });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -851,6 +850,8 @@ function testRoutinePhone(doMini){
|
||||||
$('#unknown_min_p_'+m).checked = name.length == 0;
|
$('#unknown_min_p_'+m).checked = name.length == 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* (3) Si personne inconnue -> valeurs indéterminées */
|
/* (3) Si personne inconnue -> valeurs indéterminées */
|
||||||
if( name.length == 0 ){
|
if( name.length == 0 ){
|
||||||
|
|
||||||
|
@ -884,15 +885,19 @@ function testRoutinePhone(doMini){
|
||||||
$('input[data-name="uid"][value="'+m+'"] ~ h5 select[data-name="studies"]').value = 1 + (count % 6);
|
$('input[data-name="uid"][value="'+m+'"] ~ h5 select[data-name="studies"]').value = 1 + (count % 6);
|
||||||
|
|
||||||
// {4} Type de relation //
|
// {4} Type de relation //
|
||||||
var relVal = count % 10;
|
var relVal = count % 9;
|
||||||
|
if( relVal == 7 ) relVal = 9; // value 7,8 removed so 9 directly
|
||||||
// Si AUTRE
|
// Si AUTRE
|
||||||
if( relVal == 9 ){
|
if( relVal == 8 ){
|
||||||
$('#reltype10_mini_p_'+m).checked = true;
|
$('#reltype10_mini_p_'+m).checked = true;
|
||||||
$('input[data-name="uid"][value="'+m+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
$('input[data-name="uid"][value="'+m+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
||||||
// Sinon
|
// Sinon
|
||||||
}else
|
}else
|
||||||
$('#reltype'+relVal+'_mini_p_'+m).checked = true;
|
$('#reltype'+relVal+'_mini_p_'+m).checked = true;
|
||||||
|
|
||||||
|
// {7} Temps entre les domiciles //
|
||||||
|
var locVal = ['X', 'A', 'B', 'C', 'D'][ Math.floor(count % 5) ];
|
||||||
|
$('#loc'+locVal+'_mini_p_'+m).checked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
@ -903,6 +908,8 @@ function testRoutinePhone(doMini){
|
||||||
|
|
||||||
|
|
||||||
/* [2] Remplissage des fiches complètes
|
/* [2] Remplissage des fiches complètes
|
||||||
|
*
|
||||||
|
*
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
for( var f in fiches ){
|
for( var f in fiches ){
|
||||||
|
|
||||||
|
@ -930,20 +937,18 @@ function testRoutinePhone(doMini){
|
||||||
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value = count % 19;
|
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value = count % 19;
|
||||||
|
|
||||||
// {3} On remplit la profession //
|
// {3} On remplit la profession //
|
||||||
var jobVal = ['10', '21', '22', '23', '31', '32', '36', '41', '46', '47', '48', '51', '54', '55', '56', '61', '66', '69', '71', '72', '73', '74', '75', '76', '81', '82'];
|
var jobVal = (count % 13).toString();
|
||||||
jobVal = jobVal[ count % jobVal.length ];
|
|
||||||
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="job"]').value = jobVal;
|
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="job"]').value = jobVal;
|
||||||
|
|
||||||
// {4} On remplit les études //
|
// {4} On remplit les études //
|
||||||
var stuVal = (count % 12).toString();
|
var stuVal = (count % 8).toString();
|
||||||
if( stuVal.length == 1 ) stuVal = '0'+stuVal;
|
|
||||||
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value = stuVal;
|
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value = stuVal;
|
||||||
|
|
||||||
// {5} Type de relation //
|
// {5} Type de relation //
|
||||||
var relVal = count % 9;
|
var relVal = count % 8;
|
||||||
|
|
||||||
// Si AUTRE
|
// Si AUTRE
|
||||||
if( relVal == 8 ){
|
if( relVal == 7 ){
|
||||||
$('#reltype10_p_'+f).checked = true;
|
$('#reltype10_p_'+f).checked = true;
|
||||||
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
||||||
// Sinon
|
// Sinon
|
||||||
|
@ -959,8 +964,24 @@ function testRoutinePhone(doMini){
|
||||||
var locVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
var locVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
$('#loc'+locVal+'_p_'+f).checked = true;
|
$('#loc'+locVal+'_p_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Situation familiale //
|
||||||
|
var famsitVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
|
$('#famsit'+famsitVal+'_p_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Situation familiale //
|
||||||
|
var famsitVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
|
$('#famsit'+famsitVal+'_p_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Utilisation des Medias Sociaux //
|
||||||
|
var medsocVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
|
$('#medsoc'+medsocVal+'_p_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Relation via médias sociaux //
|
||||||
|
var medrelVal = ['A', 'B', 'C'][ Math.floor(count % 3) ];
|
||||||
|
$('#medrel'+medrelVal+'_p_'+f).checked = true;
|
||||||
|
|
||||||
// {8} Temps de connaissance //
|
// {8} Temps de connaissance //
|
||||||
var duration = $$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="duration"]');
|
var duration = $$('section[data-sublink="phone"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="duration"]');
|
||||||
duration[0].value = count.toString();
|
duration[0].value = count.toString();
|
||||||
duration[1].value = 1+count.toString();
|
duration[1].value = 1+count.toString();
|
||||||
|
|
||||||
|
@ -968,7 +989,7 @@ function testRoutinePhone(doMini){
|
||||||
var ctxVal = count % 14;
|
var ctxVal = count % 14;
|
||||||
$('article.fiche-relation #contexte'+ctxVal+'_p_'+f).checked = true;
|
$('article.fiche-relation #contexte'+ctxVal+'_p_'+f).checked = true;
|
||||||
|
|
||||||
var ctxSpe = $$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="contextSpecial"]');
|
var ctxSpe = $$('section[data-sublink="phone"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="contextSpecial"]');
|
||||||
|
|
||||||
// Si special1
|
// Si special1
|
||||||
if( ctxVal == 11 )
|
if( ctxVal == 11 )
|
||||||
|
@ -982,7 +1003,41 @@ function testRoutinePhone(doMini){
|
||||||
if( ctxVal == 13 )
|
if( ctxVal == 13 )
|
||||||
ctxSpe[2].value = 'autre';
|
ctxSpe[2].value = 'autre';
|
||||||
|
|
||||||
|
// {3} On remplit les interets //
|
||||||
|
var interestVal = ['0','1','2','3','4'];
|
||||||
|
interestVal = interestVal[ count % interestVal.length ];
|
||||||
|
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="interest"]').value = interestVal;
|
||||||
|
|
||||||
|
// {3} On remplit la relation avec la personne //
|
||||||
|
var relmarkVal = ['0','1','2','3','4'];
|
||||||
|
relmarkVal = relmarkVal[ count % relmarkVal.length ];
|
||||||
|
$('article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="relmark"]').value = relmarkVal;
|
||||||
|
|
||||||
|
|
||||||
|
// FREQ
|
||||||
|
var freqVal;
|
||||||
|
for( var i = 0 ; i < 5 ; i++ ){
|
||||||
|
freqVal = 1+ i*5+ Math.floor( count % 4 );
|
||||||
|
if( freqVal < 10 ) freqVal = '0'+freqVal;
|
||||||
|
|
||||||
|
$('#freq'+freqVal+'_p_'+f).checked = true;
|
||||||
|
}
|
||||||
|
// IRLFREQ
|
||||||
|
var irlfreqVal;
|
||||||
|
for( var i = 0 ; i < 5 ; i++ ){
|
||||||
|
irlfreqVal = 1+ i*5+ Math.floor( count % 4 );
|
||||||
|
if( irlfreqVal < 10 ) irlfreqVal = '0'+irlfreqVal;
|
||||||
|
|
||||||
|
$('#irlfreq'+irlfreqVal+'_p_'+f).checked = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// CONNECT
|
||||||
|
var connectVal;
|
||||||
|
for( var i = 1 ; i < 7 ; i++ ){
|
||||||
|
connectVal = 1+ Math.floor( count % 2 );
|
||||||
|
|
||||||
|
$('#connect'+i+''+connectVal+'_p_'+f).checked = true;
|
||||||
|
}
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
|
||||||
|
@ -1003,9 +1058,9 @@ function testContactsFacebook(){
|
||||||
for( var i = 0 ; i < 45 ; i++ ){
|
for( var i = 0 ; i < 45 ; i++ ){
|
||||||
|
|
||||||
if( i%20 == 0 )
|
if( i%20 == 0 )
|
||||||
lsi.set('f_contacts', i, { uid: i, username: 'contact-x' });
|
lsi.set('f_contacts', i, { uid: i, username: 'contact-x', existing: '.' });
|
||||||
else
|
else
|
||||||
lsi.set('f_contacts', i, { uid: i, username: 'contact-'+i });
|
lsi.set('f_contacts', i, { uid: i, username: 'contact-'+i, existing: '.' });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1075,15 +1130,19 @@ function testRoutineFacebook(doMini){
|
||||||
$('input[data-name="uid"][value="'+m+'"] ~ h5 select[data-name="studies"]').value = 1 + (count % 6);
|
$('input[data-name="uid"][value="'+m+'"] ~ h5 select[data-name="studies"]').value = 1 + (count % 6);
|
||||||
|
|
||||||
// {4} Type de relation //
|
// {4} Type de relation //
|
||||||
var relVal = count % 10;
|
var relVal = count % 9;
|
||||||
|
if( relVal == 7 ) relVal = 9; // value 7,8 removed so 9 directly
|
||||||
// Si AUTRE
|
// Si AUTRE
|
||||||
if( relVal == 9 ){
|
if( relVal == 8 ){
|
||||||
$('#reltype10_mini_f_'+m).checked = true;
|
$('#reltype10_mini_f_'+m).checked = true;
|
||||||
$('input[data-name="uid"][value="'+m+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
$('input[data-name="uid"][value="'+m+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
||||||
// Sinon
|
// Sinon
|
||||||
}else
|
}else
|
||||||
$('#reltype'+relVal+'_mini_f_'+m).checked = true;
|
$('#reltype'+relVal+'_mini_f_'+m).checked = true;
|
||||||
|
|
||||||
|
// {7} Temps entre les domiciles //
|
||||||
|
var locVal = ['X', 'A', 'B', 'C', 'D'][ Math.floor(count % 5) ];
|
||||||
|
$('#loc'+locVal+'_mini_f_'+m).checked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
@ -1121,20 +1180,20 @@ function testRoutineFacebook(doMini){
|
||||||
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value = count % 19;
|
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value = count % 19;
|
||||||
|
|
||||||
// {3} On remplit la profession //
|
// {3} On remplit la profession //
|
||||||
var jobVal = ['10', '21', '22', '23', '31', '32', '36', '41', '46', '47', '48', '51', '54', '55', '56', '61', '66', '69', '71', '72', '73', '74', '75', '76', '81', '82'];
|
var jobVal = (count % 13).toString();
|
||||||
jobVal = jobVal[ count % jobVal.length ];
|
jobVal = jobVal[ count % jobVal.length ];
|
||||||
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="job"]').value = jobVal;
|
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="job"]').value = jobVal;
|
||||||
|
|
||||||
// {4} On remplit les études //
|
// {4} On remplit les études //
|
||||||
var stuVal = (count % 12).toString();
|
var stuVal = (count % 8).toString();
|
||||||
if( stuVal.length == 1 ) stuVal = '0'+stuVal;
|
if( stuVal.length == 1 ) stuVal = '0'+stuVal;
|
||||||
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value = stuVal;
|
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value = stuVal;
|
||||||
|
|
||||||
// {5} Type de relation //
|
// {5} Type de relation //
|
||||||
var relVal = count % 9;
|
var relVal = count % 8;
|
||||||
|
|
||||||
// Si AUTRE
|
// Si AUTRE
|
||||||
if( relVal == 8 ){
|
if( relVal == 7 ){
|
||||||
$('#reltype10_f_'+f).checked = true;
|
$('#reltype10_f_'+f).checked = true;
|
||||||
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="reltypeSpecial"]').value = 'autre';
|
||||||
// Sinon
|
// Sinon
|
||||||
|
@ -1150,6 +1209,22 @@ function testRoutineFacebook(doMini){
|
||||||
var locVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
var locVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
$('#loc'+locVal+'_f_'+f).checked = true;
|
$('#loc'+locVal+'_f_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Situation familiale //
|
||||||
|
var famsitVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
|
$('#famsit'+famsitVal+'_f_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Situation familiale //
|
||||||
|
var famsitVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
|
$('#famsit'+famsitVal+'_f_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Utilisation des Medias Sociaux //
|
||||||
|
var medsocVal = ['A', 'B', 'C', 'D'][ Math.floor(count % 4) ];
|
||||||
|
$('#medsoc'+medsocVal+'_f_'+f).checked = true;
|
||||||
|
|
||||||
|
// {7} Relation via médias sociaux //
|
||||||
|
var medrelVal = ['A', 'B', 'C'][ Math.floor(count % 3) ];
|
||||||
|
$('#medrel'+medrelVal+'_f_'+f).checked = true;
|
||||||
|
|
||||||
// {8} Temps de connaissance //
|
// {8} Temps de connaissance //
|
||||||
var duration = $$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="duration"]');
|
var duration = $$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="duration"]');
|
||||||
duration[0].value = count.toString();
|
duration[0].value = count.toString();
|
||||||
|
@ -1173,6 +1248,41 @@ function testRoutineFacebook(doMini){
|
||||||
if( ctxVal == 13 )
|
if( ctxVal == 13 )
|
||||||
ctxSpe[2].value = 'autre';
|
ctxSpe[2].value = 'autre';
|
||||||
|
|
||||||
|
// {3} On remplit les interets //
|
||||||
|
var interestVal = ['0','1','2','3','4'];
|
||||||
|
interestVal = interestVal[ count % interestVal.length ];
|
||||||
|
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="interest"]').value = interestVal;
|
||||||
|
|
||||||
|
// {3} On remplit la relation avec la personne //
|
||||||
|
var relmarkVal = ['0','1','2','3','4'];
|
||||||
|
relmarkVal = relmarkVal[ count % relmarkVal.length ];
|
||||||
|
$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="relmark"]').value = relmarkVal;
|
||||||
|
|
||||||
|
|
||||||
|
// FREQ
|
||||||
|
var freqVal;
|
||||||
|
for( var i = 0 ; i < 5 ; i++ ){
|
||||||
|
freqVal = 1+ i*5+ Math.floor( count % 4 );
|
||||||
|
if( freqVal < 10 ) freqVal = '0'+freqVal;
|
||||||
|
|
||||||
|
$('#freq'+freqVal+'_f_'+f).checked = true;
|
||||||
|
}
|
||||||
|
// IRLFREQ
|
||||||
|
var irlfreqVal;
|
||||||
|
for( var i = 0 ; i < 5 ; i++ ){
|
||||||
|
irlfreqVal = 1+ i*5+ Math.floor( count % 4 );
|
||||||
|
if( irlfreqVal < 10 ) irlfreqVal = '0'+irlfreqVal;
|
||||||
|
|
||||||
|
$('#irlfreq'+irlfreqVal+'_f_'+f).checked = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// CONNECT
|
||||||
|
var connectVal;
|
||||||
|
for( var i = 1 ; i < 7 ; i++ ){
|
||||||
|
connectVal = 1+ Math.floor( count % 2 );
|
||||||
|
|
||||||
|
$('#connect'+i+''+connectVal+'_f_'+f).checked = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
count++;
|
count++;
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
var sField,sSubmit,sList,pSubjectManager=null,pContactManager=null,pMiniManager=null,pFicheManager=null,pMatriceManager=null,fSubjectManager=null,fContactManager=null,fMiniManager=null,fFicheManager=null,fMatriceManager=null,input_ts=Date.now();sField=$("#search-field");sSubmit=$("#search-subject");sList=$('section[data-sublink="survey"] ul[data-list]');
|
var sField,sSubmit,sList,pSubjectManager=null,pContactManager=null,pMiniManager=null,pFicheManager=null,pMatriceManager=null,fSubjectManager=null,fContactManager=null,fMiniManager=null,fFicheManager=null,fMatriceManager=null,input_ts=Date.now();sField=$("#search-field");sSubmit=$("#search-subject");sList=$('section[data-sublink="survey"] ul[data-list]');
|
||||||
var tmpSubjectSearchListener=function(a){api.send({path:"subject/search",name:sField.value},function(a){console.warn(a);if(0!=a.ModuleError)return Notification.error("Erreur","La recherche a \u00e9chou\u00e9."),!1;console.log(a);var c=[],g;for(g in a.results)c.push("<li data-element data-id='"+g+"'>"),c.push("<div data-user><span>SUJET</span></div>"),c.push("<div> <span><input type='text' readonly style='text-align: center' onclick='this.select()' class='flag' value='"+g+"'></span> </div>"),c.push("<div> <span data-prefix='Nom'>"+
|
var tmpSubjectSearchListener=function(a){api.send({path:"subject/search",name:sField.value},function(b){console.warn(b);if(0!=b.ModuleError)return Notification.error("Erreur","La recherche a \u00e9chou\u00e9."),!1;console.log(b);var a=[],e;for(e in b.results)a.push("<li data-element data-id='"+e+"'>"),a.push("<div data-user><span>SUJET</span></div>"),a.push("<div> <span><input type='text' readonly style='text-align: center' onclick='this.select()' class='flag' value='"+e+"'></span> </div>"),a.push("<div> <span data-prefix='Nom'>"+
|
||||||
a.results[g].name+"</span> </div>"),c.push("<div> <span data-prefix='Cr\u00e9ation'>"+a.results[g].creation+"</span> </div>"),c.push("<div> <span><input type='checkbox' id='s_"+g+"' "+(null!=a.results[g].phone?"checked":"")+" disabled><label for='s_"+g+"'>Cellulaire</label>"),c.push("</span> </div>"),c.push("<div> <span><input type='checkbox' id='s_"+g+"' "+(null!=a.results[g].facebook?"checked":"")+" disabled><label for='s_"+g+"'>Facebook</label>"),c.push("</span> </div>"),c.push("</li>");sList.innerHTML=
|
b.results[e].name+"</span> </div>"),a.push("<div> <span data-prefix='Cr\u00e9ation'>"+b.results[e].creation+"</span> </div>"),a.push("<div> <span><input type='checkbox' id='s_"+e+"' "+(null!=b.results[e].phone?"checked":"")+" disabled><label for='s_"+e+"'>Cellulaire</label>"),a.push("</span> </div>"),a.push("<div> <span><input type='checkbox' id='s_"+e+"' "+(null!=b.results[e].facebook?"checked":"")+" disabled><label for='s_"+e+"'>Facebook</label>"),a.push("</span> </div>"),a.push("</li>");sList.innerHTML=
|
||||||
c.join("")})};sSubmit.addEventListener("click",tmpSubjectSearchListener,!1);sField.addEventListener("keypress",function(a){13===a.keyCode&&tmpSubjectSearchListener(a)},!1);tmpSubjectSearchListener();
|
a.join("")})};sSubmit.addEventListener("click",tmpSubjectSearchListener,!1);sField.addEventListener("keypress",function(a){13===a.keyCode&&tmpSubjectSearchListener(a)},!1);tmpSubjectSearchListener();
|
||||||
var pAlready=0,pLoaded=[0,0,0,0,0],phoneRoutine=function(){!Math.min.apply(Math,pLoaded)|pAlready||(pAlready=1,console.groupEnd(),console.group("[phone] Initialization"),pSubjectManager=new inputPhoneSubject($('[data-sublink="phone"] article.subject-panel [data-name="subject_id"]'),$('[data-sublink="phone"] article.subject-panel [data-name="submit"]')),pSubjectManager.attach(pDynamicUpdate),pContactManager=new inputPhoneContact($('[data-sublink="phone"] article.contact-panel'),$('[data-sublink="phone"] #p_nav-contact')),
|
var pAlready=0,pLoaded=[0,0,0,0,0],phoneRoutine=function(){!Math.min.apply(Math,pLoaded)|pAlready||(pAlready=1,console.groupEnd(),console.group("[phone] Initialization"),pSubjectManager=new inputPhoneSubject($('[data-sublink="phone"] article.subject-panel [data-name="subject_id"]'),$('[data-sublink="phone"] article.subject-panel [data-name="submit"]')),pSubjectManager.attach(pDynamicUpdate),pContactManager=new inputPhoneContact($('[data-sublink="phone"] article.contact-panel'),$('[data-sublink="phone"] #p_nav-contact')),
|
||||||
pContactManager.attach(pDynamicUpdate),pMiniManager=new inputPhoneMini($('[data-sublink="phone"] article.mini-relation-panel'),$('[data-sublink="phone"] #p_nav-mini')),pMiniManager.attach(pDynamicUpdate),pFicheManager=new inputPhoneFiche($('[data-sublink="phone"] article.relation-panel'),$('[data-sublink="phone"] #p_nav-fiche')),pFicheManager.top_size=20,pFicheManager.attach(pDynamicUpdate),pMatriceManager=new inputPhoneMatrice($('[data-sublink="phone"] article.matrice-panel')),pMatriceManager.attach(pDynamicUpdate),
|
pContactManager.attach(pDynamicUpdate),pMiniManager=new inputPhoneMini($('[data-sublink="phone"] article.mini-relation-panel'),$('[data-sublink="phone"] #p_nav-mini')),pMiniManager.attach(pDynamicUpdate),pFicheManager=new inputPhoneFiche($('[data-sublink="phone"] article.relation-panel'),$('[data-sublink="phone"] #p_nav-fiche')),pFicheManager.top_size=20,pFicheManager.attach(pDynamicUpdate),pMatriceManager=new inputPhoneMatrice($('[data-sublink="phone"] article.matrice-panel')),pMatriceManager.attach(pDynamicUpdate),
|
||||||
$('[data-sublink="phone"] #p_clear-all').addEventListener("click",function(a){lsi.clear("p_subject");lsi.clear("p_contacts");lsi.clear("p_mini-fiches");lsi.clear("p_fiches");lsi.clear("p_matrice");lsi.clear("p_friends");pSubjectManager.storageToFields();pContactManager.storageToFields();pMiniManager.storageToFields();pFicheManager.storageToFields();pMatriceManager.storageToFields();Notification.success("OK","Les donn\u00e9es ont \u00e9t\u00e9 supprim\u00e9es")},!1),$('[data-sublink="phone"] #p_export-all').addEventListener("click",
|
$('[data-sublink="phone"] #p_clear-all').addEventListener("click",function(a){lsi.clear("p_subject");lsi.clear("p_contacts");lsi.clear("p_mini-fiches");lsi.clear("p_fiches");lsi.clear("p_matrice");lsi.clear("p_friends");pSubjectManager.storageToFields();pContactManager.storageToFields();pMiniManager.storageToFields();pFicheManager.storageToFields();pMatriceManager.storageToFields();Notification.success("OK","Les donn\u00e9es ont \u00e9t\u00e9 supprim\u00e9es")},!1),$('[data-sublink="phone"] #p_export-all').addEventListener("click",
|
||||||
function(a){Notification.info("INFORMATION","Lancement du t\u00e9l\u00e9chargement de la sauvegarde");a={subject:lsi["export"]("p_subject")[0],contacts:lsi["export"]("p_contacts"),mini:lsi["export"]("p_mini-fiches"),fiches:lsi["export"]("p_fiches"),matrice:lsi["export"]("p_matrice")[0]};var b=$('[data-sublink="phone"] #p_download-target');b.download="local-facebook-data.json";b.href="data:application/octet-stream,"+encodeURIComponent(JSON.stringify(a));b.click()},!1),$('[data-sublink="phone"] #p_import-all').addEventListener("click",
|
function(a){Notification.info("INFORMATION","Lancement du t\u00e9l\u00e9chargement de la sauvegarde");a={subject:lsi["export"]("p_subject")[0],contacts:lsi["export"]("p_contacts"),mini:lsi["export"]("p_mini-fiches"),fiches:lsi["export"]("p_fiches"),matrice:lsi["export"]("p_matrice")[0]};var b=$('[data-sublink="phone"] #p_download-target');b.download="local-phone-data.json";b.href="data:application/octet-stream,"+encodeURIComponent(JSON.stringify(a));b.click()},!1),$('[data-sublink="phone"] #p_import-all').addEventListener("click",
|
||||||
function(a){$('[data-sublink="phone"] #p_local-upload').click()},!1),$('[data-sublink="phone"] #p_local-upload').addEventListener("click",function(a){a.target.value=null},!1),$('[data-sublink="phone"] #p_local-upload').addEventListener("change",function(a){a={path:"upload/local_data",file:$('[data-sublink="phone"] #p_local-upload').files[0]};api.send(a,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("Erreur",a.ModuleError),!1;lsi.set("p_subject",0,a.local_data.subject);lsi["import"]("p_contacts",
|
function(a){$('[data-sublink="phone"] #p_local-upload').click()},!1),$('[data-sublink="phone"] #p_local-upload').addEventListener("click",function(a){a.target.value=null},!1),$('[data-sublink="phone"] #p_local-upload').addEventListener("change",function(a){a={path:"upload/local_data",file:$('[data-sublink="phone"] #p_local-upload').files[0]};api.send(a,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("Erreur",a.ModuleError),!1;lsi.set("p_subject",0,a.local_data.subject);lsi["import"]("p_contacts",
|
||||||
a.local_data.contacts);lsi["import"]("p_mini-fiches",a.local_data.mini);lsi["import"]("p_fiches",a.local_data.fiches);lsi.set("p_matrice",0,a.local_data.matrice);pSubjectManager.storageToFields();pContactManager.storageToFields();pMatriceManager.storageToFields();pDynamicUpdate(!0)})},!1),$('[data-sublink="phone"] #p_submit-all').addEventListener("click",function(a){console.log("> GATHERING ALL DATA");pContactManager.fieldsToStorage();pMiniManager.fieldsToStorage();pFicheManager.fieldsToStorage();
|
a.local_data.contacts);lsi["import"]("p_mini-fiches",a.local_data.mini);lsi["import"]("p_fiches",a.local_data.fiches);lsi.set("p_matrice",0,a.local_data.matrice);pSubjectManager.storageToFields();pContactManager.storageToFields();pMatriceManager.storageToFields();pDynamicUpdate(!0)})},!1),$('[data-sublink="phone"] #p_submit-all').addEventListener("click",function(a){console.log("> GATHERING ALL DATA");pContactManager.fieldsToStorage();pMiniManager.fieldsToStorage();pFicheManager.fieldsToStorage();
|
||||||
if(!pSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du <i>sujet</i>"),!1;a=lsi["export"]("p_mini-fiches");var b=0,c;for(c in a)if(!isNaN(c)&&(b++,!a[c].valid))return Notification.warning("Attention","La <i>fiche rapide</i> <b>"+b+"</b> est incompl\u00e8te et/ou incorrecte"),!1;a=lsi["export"]("p_fiches");for(c in a)if(!a[c].valid)return Notification.warning("Attention","La <i>fiche compl\u00e8te</i> <b>"+(parseInt(c)+1)+"</b> est incompl\u00e8te et/ou incorrecte"),
|
if(!pSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du <i>sujet</i>"),!1;a=lsi["export"]("p_mini-fiches");var b=0,f;for(f in a)if(!isNaN(f)&&(b++,!a[f].valid))return Notification.warning("Attention","La <i>fiche rapide</i> <b>"+b+"</b> est incompl\u00e8te et/ou incorrecte"),!1;a=lsi["export"]("p_fiches");for(f in a)if(!a[f].valid)return Notification.warning("Attention","La <i>fiche compl\u00e8te</i> <b>"+(parseInt(f)+1)+"</b> est incompl\u00e8te et/ou incorrecte"),
|
||||||
!1;c={path:"input/phone",subject:lsi["export"]("p_subject")[0].subject_id,contacts:lsi["export"]("p_contacts"),mini:lsi["export"]("p_mini-fiches"),fiches:lsi["export"]("p_fiches"),matrice:lsi["export"]("p_matrice")[0]};api.send(c,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;Notification.success("OK","L'identifiant du sujet est <strong>"+a.subject_id+"</strong> ! Tout s'est bien d\u00e9roul\u00e9.",1E4);console.log(a)},!1)},!1),console.groupEnd())};
|
!1;f={path:"input/phone",subject:lsi["export"]("p_subject")[0].subject_id,contacts:lsi["export"]("p_contacts"),mini:lsi["export"]("p_mini-fiches"),fiches:lsi["export"]("p_fiches"),matrice:lsi["export"]("p_matrice")[0]};api.send(f,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;Notification.success("OK","L'identifiant du sujet est <strong>"+a.subject_id+"</strong> ! Tout s'est bien d\u00e9roul\u00e9.",1E4);console.log(a)},!1)},!1),console.groupEnd())};
|
||||||
include("/js/includes/input-phone-subject.js",function(){pLoaded[0]=1;phoneRoutine()});include("/js/includes/input-phone-contact.js",function(){pLoaded[1]=1;phoneRoutine()});include("/js/includes/input-phone-mini.js",function(){pLoaded[2]=1;phoneRoutine()});include("/js/includes/input-phone-fiche.js",function(){pLoaded[3]=1;phoneRoutine()});include("/js/includes/input-phone-matrice.js",function(){pLoaded[4]=1;phoneRoutine()});
|
include("/js/includes/input-phone-subject.js",function(){pLoaded[0]=1;phoneRoutine()});include("/js/includes/input-phone-contact.js",function(){pLoaded[1]=1;phoneRoutine()});include("/js/includes/input-phone-mini.js",function(){pLoaded[2]=1;phoneRoutine()});include("/js/includes/input-phone-fiche.js",function(){pLoaded[3]=1;phoneRoutine()});include("/js/includes/input-phone-matrice.js",function(){pLoaded[4]=1;phoneRoutine()});
|
||||||
var fAlready=0,fLoaded=[0,0,0,0,0],facebookRoutine=function(){!Math.min.apply(Math,fLoaded)|fAlready||(fAlready=1,console.groupEnd(),console.group("[facebook] Initialization"),fSubjectManager=new inputFacebookSubject($('[data-sublink="facebook"] article.subject-panel [data-name="subject_id"]'),$('[data-sublink="facebook"] article.subject-panel [data-name="submit"]')),fSubjectManager.attach(fDynamicUpdate),fContactManager=new inputFacebookContact($('[data-sublink="facebook"] article.contact-panel'),
|
var fAlready=0,fLoaded=[0,0,0,0,0],facebookRoutine=function(){!Math.min.apply(Math,fLoaded)|fAlready||(fAlready=1,console.groupEnd(),console.group("[facebook] Initialization"),fSubjectManager=new inputFacebookSubject($('[data-sublink="facebook"] article.subject-panel [data-name="subject_id"]'),$('[data-sublink="facebook"] article.subject-panel [data-name="submit"]')),fSubjectManager.attach(fDynamicUpdate),fContactManager=new inputFacebookContact($('[data-sublink="facebook"] article.contact-panel'),
|
||||||
$('[data-sublink="facebook"] #f_nav-contact')),fContactManager.attach(fDynamicUpdate),fMiniManager=new inputFacebookMini($('[data-sublink="facebook"] article.mini-relation-panel'),$('[data-sublink="facebook"] #f_nav-mini')),fMiniManager.attach(fDynamicUpdate),fFicheManager=new inputFacebookFiche($('[data-sublink="facebook"] article.relation-panel'),$('[data-sublink="facebook"] #f_nav-fiche')),fFicheManager.top_size=20,fFicheManager.attach(fDynamicUpdate),fMatriceManager=new inputFacebookMatrice($('[data-sublink="facebook"] article.matrice-panel')),
|
$('[data-sublink="facebook"] #f_nav-contact')),fContactManager.attach(fDynamicUpdate),fMiniManager=new inputFacebookMini($('[data-sublink="facebook"] article.mini-relation-panel'),$('[data-sublink="facebook"] #f_nav-mini')),fMiniManager.attach(fDynamicUpdate),fFicheManager=new inputFacebookFiche($('[data-sublink="facebook"] article.relation-panel'),$('[data-sublink="facebook"] #f_nav-fiche')),fFicheManager.top_size=20,fFicheManager.attach(fDynamicUpdate),fMatriceManager=new inputFacebookMatrice($('[data-sublink="facebook"] article.matrice-panel')),
|
||||||
|
@ -17,24 +17,25 @@ fMatriceManager.attach(fDynamicUpdate),$('[data-sublink="facebook"] #f_clear-all
|
||||||
!1),$('[data-sublink="facebook"] #f_export-all').addEventListener("click",function(a){Notification.info("INFORMATION","Lancement du t\u00e9l\u00e9chargement de la sauvegarde");a={subject:lsi["export"]("f_subject")[0].subject_id,contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]};var b=$('[data-sublink="facebook"] #f_download-target');b.download="local-facebook-data.json";b.href="data:application/octet-stream,"+
|
!1),$('[data-sublink="facebook"] #f_export-all').addEventListener("click",function(a){Notification.info("INFORMATION","Lancement du t\u00e9l\u00e9chargement de la sauvegarde");a={subject:lsi["export"]("f_subject")[0].subject_id,contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]};var b=$('[data-sublink="facebook"] #f_download-target');b.download="local-facebook-data.json";b.href="data:application/octet-stream,"+
|
||||||
encodeURIComponent(JSON.stringify(a));b.click()},!1),$('[data-sublink="facebook"] #f_import-all').addEventListener("click",function(a){$('[data-sublink="facebook"] #f_local-upload').click()},!1),$('[data-sublink="facebook"] #f_local-upload').addEventListener("click",function(a){a.target.value=null},!1),$('[data-sublink="facebook"] #f_local-upload').addEventListener("change",function(a){a={path:"upload/local_data",file:$('[data-sublink="facebook"] #f_local-upload').files[0]};api.send(a,function(a){console.log(a);
|
encodeURIComponent(JSON.stringify(a));b.click()},!1),$('[data-sublink="facebook"] #f_import-all').addEventListener("click",function(a){$('[data-sublink="facebook"] #f_local-upload').click()},!1),$('[data-sublink="facebook"] #f_local-upload').addEventListener("click",function(a){a.target.value=null},!1),$('[data-sublink="facebook"] #f_local-upload').addEventListener("change",function(a){a={path:"upload/local_data",file:$('[data-sublink="facebook"] #f_local-upload').files[0]};api.send(a,function(a){console.log(a);
|
||||||
if(0!=a.ModuleError)return Notification.error("Erreur",a.ModuleError),!1;lsi.set("f_subject",0,a.local_data.subject);lsi["import"]("f_contacts",a.local_data.contacts);lsi["import"]("f_mini-fiches",a.local_data.mini);lsi["import"]("f_fiches",a.local_data.fiches);lsi.set("f_matrice",0,a.local_data.matrice);pSubjectManager.storageToFields();pContactManager.storageToFields();pMatriceManager.storageToFields();pDynamicUpdate(!0)})},!1),$('[data-sublink="facebook"] #f_submit-all').addEventListener("click",
|
if(0!=a.ModuleError)return Notification.error("Erreur",a.ModuleError),!1;lsi.set("f_subject",0,a.local_data.subject);lsi["import"]("f_contacts",a.local_data.contacts);lsi["import"]("f_mini-fiches",a.local_data.mini);lsi["import"]("f_fiches",a.local_data.fiches);lsi.set("f_matrice",0,a.local_data.matrice);pSubjectManager.storageToFields();pContactManager.storageToFields();pMatriceManager.storageToFields();pDynamicUpdate(!0)})},!1),$('[data-sublink="facebook"] #f_submit-all').addEventListener("click",
|
||||||
function(a){console.log("> GATHERING ALL DATA");pContactManager.fieldsToStorage();pMiniManager.fieldsToStorage();pFicheManager.fieldsToStorage();if(!pSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du <i>sujet</i>"),!1;a=lsi["export"]("f_mini-fiches");var b=0,c;for(c in a)if(!isNaN(c)&&(b++,!a[c].valid))return Notification.warning("Attention","La <i>fiche rapide</i> <b>"+b+"</b> est incompl\u00e8te et/ou incorrecte"),!1;a=lsi["export"]("f_fiches");
|
function(a){console.log("> GATHERING ALL DATA");pContactManager.fieldsToStorage();pMiniManager.fieldsToStorage();pFicheManager.fieldsToStorage();if(!pSubjectManager.check())return Notification.warning("Attention","Vous devez saisir les informations du <i>sujet</i>"),!1;a=lsi["export"]("f_mini-fiches");var b=0,f;for(f in a)if(!isNaN(f)&&(b++,!a[f].valid))return Notification.warning("Attention","La <i>fiche rapide</i> <b>"+b+"</b> est incompl\u00e8te et/ou incorrecte"),!1;a=lsi["export"]("f_fiches");
|
||||||
for(c in a)if(!a[c].valid)return Notification.warning("Attention","La <i>fiche compl\u00e8te</i> <b>"+(parseInt(c)+1)+"</b> est incompl\u00e8te et/ou incorrecte"),!1;c={path:"input/facebook",subject:lsi["export"]("f_subject")[0],contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]};api.send(c,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;Notification.success("OK",
|
for(f in a)if(!a[f].valid)return Notification.warning("Attention","La <i>fiche compl\u00e8te</i> <b>"+(parseInt(f)+1)+"</b> est incompl\u00e8te et/ou incorrecte"),!1;f={path:"input/facebook",subject:lsi["export"]("f_subject")[0],contacts:lsi["export"]("f_contacts"),mini:lsi["export"]("f_mini-fiches"),fiches:lsi["export"]("f_fiches"),matrice:lsi["export"]("f_matrice")[0]};api.send(f,function(a){console.log(a);if(0!=a.ModuleError)return Notification.error("ERREUR",a.ModuleError),!1;Notification.success("OK",
|
||||||
"L'identifiant du sujet est <strong>"+a.subject_id+"</strong> ! Tout s'est bien d\u00e9roul\u00e9.",1E4);console.log(a)},!1)},!1),console.groupEnd())};include("/js/includes/input-facebook-subject.js",function(){fLoaded[0]=1;facebookRoutine()});include("/js/includes/input-facebook-contact.js",function(){fLoaded[1]=1;facebookRoutine()});include("/js/includes/input-facebook-mini.js",function(){fLoaded[2]=1;facebookRoutine()});include("/js/includes/input-facebook-fiche.js",function(){fLoaded[3]=1;facebookRoutine()});
|
"L'identifiant du sujet est <strong>"+a.subject_id+"</strong> ! Tout s'est bien d\u00e9roul\u00e9.",1E4);console.log(a)},!1)},!1),console.groupEnd())};include("/js/includes/input-facebook-subject.js",function(){fLoaded[0]=1;facebookRoutine()});include("/js/includes/input-facebook-contact.js",function(){fLoaded[1]=1;facebookRoutine()});include("/js/includes/input-facebook-mini.js",function(){fLoaded[2]=1;facebookRoutine()});include("/js/includes/input-facebook-fiche.js",function(){fLoaded[3]=1;facebookRoutine()});
|
||||||
include("/js/includes/input-facebook-matrice.js",function(){fLoaded[4]=1;facebookRoutine()});
|
include("/js/includes/input-facebook-matrice.js",function(){fLoaded[4]=1;facebookRoutine()});
|
||||||
var pDynamicUpdate=function(a){var b=a instanceof Element,c=b&&"INPUT"==a.tagName&&"submit"==a.type,g=b&&"SPAN"==a.tagName&&("p_nav-mini"==a.parentNode.id||"p_nav-fiche"==a.parentNode.id),b=b&&"SPAN"==a.tagName&&"p_nav-contact"==a.parentNode.id;if(!c&&!g&&!b&&!0!==a)return!1;console.groupEnd();console.groupEnd();console.group("[phone] Dynamic Update");pMiniManager.fieldsToStorage();pFicheManager.fieldsToStorage();pContactManager.fieldsToStorage();pMatriceManager.fieldsToStorage();pFicheManager.sync();
|
var pDynamicUpdate=function(a){var b=a instanceof Element,f=b&&"INPUT"==a.tagName&&"submit"==a.type,e=b&&"SPAN"==a.tagName&&("p_nav-mini"==a.parentNode.id||"p_nav-fiche"==a.parentNode.id),b=b&&"SPAN"==a.tagName&&"p_nav-contact"==a.parentNode.id;if(!f&&!e&&!b&&!0!==a)return!1;console.groupEnd();console.groupEnd();console.group("[phone] Dynamic Update");pMiniManager.fieldsToStorage();pFicheManager.fieldsToStorage();pContactManager.fieldsToStorage();pMatriceManager.fieldsToStorage();pFicheManager.sync();
|
||||||
pMiniManager.sync();!0===a?api.send({path:"subject/getFriends",subject_id:pSubjectManager.subject_id.value},function(a){console.warn("xx",a);if(0!=a.ModuleError)return console.groupEnd(),!1;lsi["import"]("p_friends",a.subjects);pMiniManager.storageToFields();pFicheManager.storageToFields();pMatriceManager.storageToFields();pContactManager.storageToFields();pMiniManager.updateNavBar();pFicheManager.updateNavBar()}):(pMiniManager.storageToFields(),pFicheManager.storageToFields(),pMatriceManager.storageToFields(),
|
pMiniManager.sync();!0===a?api.send({path:"subject/getFriends",subject_id:pSubjectManager.subject_id.value},function(a){console.warn("xx",a);if(0!=a.ModuleError)return console.groupEnd(),!1;lsi["import"]("p_friends",a.subjects);pMiniManager.storageToFields();pFicheManager.storageToFields();pMatriceManager.storageToFields();pContactManager.storageToFields();pMiniManager.updateNavBar();pFicheManager.updateNavBar()}):(pMiniManager.storageToFields(),pFicheManager.storageToFields(),pMatriceManager.storageToFields(),
|
||||||
pMiniManager.updateNavBar(),pFicheManager.updateNavBar(),(c||b)&&pContactManager.storageToFields());console.groupEnd()},fDynamicUpdate=function(a){var b=a instanceof Element,c=b&&"INPUT"==a.tagName&&"submit"==a.type,g=b&&"SPAN"==a.tagName&&("f_nav-mini"==a.parentNode.id||"f_nav-fiche"==a.parentNode.id),b=b&&"SPAN"==a.tagName&&"f_nav-contact"==a.parentNode.id;if(!c&&!g&&!b&&!0!==a)return!1;console.groupEnd();console.groupEnd();console.group("[facebook] Dynamic Update");fMiniManager.fieldsToStorage();
|
pMiniManager.updateNavBar(),pFicheManager.updateNavBar(),(f||b)&&pContactManager.storageToFields());console.groupEnd()},fDynamicUpdate=function(a){var b=a instanceof Element,f=b&&"INPUT"==a.tagName&&"submit"==a.type,e=b&&"SPAN"==a.tagName&&("f_nav-mini"==a.parentNode.id||"f_nav-fiche"==a.parentNode.id),b=b&&"SPAN"==a.tagName&&"f_nav-contact"==a.parentNode.id;if(!f&&!e&&!b&&!0!==a)return!1;console.groupEnd();console.groupEnd();console.group("[facebook] Dynamic Update");fMiniManager.fieldsToStorage();
|
||||||
fFicheManager.fieldsToStorage();fContactManager.fieldsToStorage();fMatriceManager.fieldsToStorage();fFicheManager.sync();fMiniManager.sync();!0===a?api.send({path:"subject/getFriends",subject_id:fSubjectManager.subject_id.value},function(a){if(0!=a.ModuleError)return console.groupEnd(),!1;lsi["import"]("f_friends",a.subjects);fMiniManager.storageToFields();fFicheManager.storageToFields();fMatriceManager.storageToFields();fContactManager.storageToFields()}):(fMiniManager.storageToFields(),fFicheManager.storageToFields(),
|
fFicheManager.fieldsToStorage();fContactManager.fieldsToStorage();fMatriceManager.fieldsToStorage();fFicheManager.sync();fMiniManager.sync();!0===a?api.send({path:"subject/getFriends",subject_id:fSubjectManager.subject_id.value},function(a){if(0!=a.ModuleError)return console.groupEnd(),!1;lsi["import"]("f_friends",a.subjects);fMiniManager.storageToFields();fFicheManager.storageToFields();fMatriceManager.storageToFields();fContactManager.storageToFields()}):(fMiniManager.storageToFields(),fFicheManager.storageToFields(),
|
||||||
fMatriceManager.storageToFields(),(c||b)&&fContactManager.storageToFields());console.groupEnd()};function testContactsPhone(){for(var a=0;45>a;a++)0==a%20?lsi.set("p_contacts",a,{uid:a,username:"contact-x"}):lsi.set("p_contacts",a,{uid:a,username:"contact-"+a})}
|
fMatriceManager.storageToFields(),(f||b)&&fContactManager.storageToFields());console.groupEnd()};function testContactsPhone(){for(var a=0;45>a;a++)0==a%20?lsi.set("p_contacts",a,{uid:a,username:"contact-x",existing:"."}):lsi.set("p_contacts",a,{uid:a,username:"contact-"+a,existing:"."})}
|
||||||
function testRoutinePhone(a){var b=lsi["export"]("p_contacts"),c=lsi["export"]("p_mini-fiches"),g=lsi["export"]("p_fiches"),d=0;if(null!=a&&a)for(var f in c)isNaN(f)||(a="",null!=b[f]&&(a=b[f].username),c=$('#p_nav-mini [data-n="'+f+'"]'),c.click(),$("#unknown_min_p_"+f).checked=0==a.length,0==a.length?($("#sexeI_mini_p_"+f).checked=!0,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value=d%19,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value=
|
function testRoutinePhone(a){var b=lsi["export"]("p_contacts"),f=lsi["export"]("p_mini-fiches"),e=lsi["export"]("p_fiches"),c=0;if(null!=a&&a)for(var g in f)isNaN(g)||(a="",null!=b[g]&&(a=b[g].username),f=$('#p_nav-mini [data-n="'+g+'"]'),f.click(),$("#unknown_min_p_"+g).checked=0==a.length,0==a.length?($("#sexeI_mini_p_"+g).checked=!0,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="age"]').value=c%19,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="studies"]').value=
|
||||||
0,$("#reltype9_mini_p_"+f).checked=!0):(a=["H","F"][Math.floor(d%2)],$("#sexe"+a+"_mini_p_"+f).checked=!0,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value=d%19,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value=1+d%6,a=d%10,9==a?($("#reltype10_mini_p_"+f).checked=!0,$('input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_mini_p_"+f).checked=!0,d++));for(var e in g)isNaN(e)||(c=$('#p_nav-fiche [data-n="'+
|
0,$("#reltype9_mini_p_"+g).checked=!0):(a=["H","F"][Math.floor(c%2)],$("#sexe"+a+"_mini_p_"+g).checked=!0,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="age"]').value=c%19,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="studies"]').value=1+c%6,a=c%10,9==a?($("#reltype10_mini_p_"+g).checked=!0,$('input[data-name="uid"][value="'+g+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_mini_p_"+g).checked=!0,c++));for(var d in e)if(!isNaN(d)){f=
|
||||||
e+'"]'),c.click(),a=["H","F","I"][Math.floor(d%3)],$("#sexe"+a+"_p_"+e).checked=!0,$('article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 select[data-name="age"]').value=d%19,b="10 21 22 23 31 32 36 41 46 47 48 51 54 55 56 61 66 69 71 72 73 74 75 76 81 82".split(" "),b=b[d%b.length],$('article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 select[data-name="job"]').value=b,b=(d%12).toString(),1==b.length&&(b="0"+b),$('article.fiche-relation > input[data-name="uid"][value="'+
|
$('#p_nav-fiche [data-n="'+d+'"]');f.click();a=["H","F","I"][Math.floor(c%3)];$("#sexe"+a+"_p_"+d).checked=!0;$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 select[data-name="age"]').value=c%19;b=(c%13).toString();$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 select[data-name="job"]').value=b;b=(c%8).toString();$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 select[data-name="studies"]').value=b;a=c%8;7==a?($("#reltype10_p_"+
|
||||||
e+'"] ~ h5 select[data-name="studies"]').value=b,a=d%9,8==a?($("#reltype10_p_"+e).checked=!0,$('article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_p_"+e).checked=!0,$('article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="city"]').value=(10+d).toString(),$('article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="cp"]').value=(1E4+d).toString(),$('article.fiche-relation > input[data-name="uid"][value="'+
|
d).checked=!0,$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_p_"+d).checked=!0;$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="city"]').value=(10+c).toString();$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="cp"]').value=(1E4+c).toString();$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="quartier"]').value=
|
||||||
e+'"] ~ h5 input[data-name="quartier"]').value=d,$("#loc"+["A","B","C","D"][Math.floor(d%4)]+"_p_"+e).checked=!0,b=$$('article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="duration"]'),b[0].value=d.toString(),b[1].value=1+d.toString(),b=d%14,$("article.fiche-relation #contexte"+b+"_p_"+e).checked=!0,g=$$('article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="contextSpecial"]'),11==b&&(g[0].value="internet"),12==b&&(g[1].value="association"),
|
c;$("#loc"+["A","B","C","D"][Math.floor(c%4)]+"_p_"+d).checked=!0;b=["A","B","C","D"][Math.floor(c%4)];$("#famsit"+b+"_p_"+d).checked=!0;b=["A","B","C","D"][Math.floor(c%4)];$("#famsit"+b+"_p_"+d).checked=!0;$("#medsoc"+["A","B","C","D"][Math.floor(c%4)]+"_p_"+d).checked=!0;$("#medrel"+["A","B","C"][Math.floor(c%3)]+"_p_"+d).checked=!0;b=$$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="duration"]');b[0].value=c.toString();b[1].value=1+c.toString();b=c%14;$("article.fiche-relation #contexte"+
|
||||||
13==b&&(g[2].value="autre"),d++)}function testContactsFacebook(){for(var a=0;45>a;a++)0==a%20?lsi.set("f_contacts",a,{uid:a,username:"contact-x"}):lsi.set("f_contacts",a,{uid:a,username:"contact-"+a})}
|
b+"_p_"+d).checked=!0;e=$$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="contextSpecial"]');11==b&&(e[0].value="internet");12==b&&(e[1].value="association");13==b&&(e[2].value="autre");b=["0","1","2","3","4"];b=b[c%b.length];$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 select[data-name="interest"]').value=b;b=["0","1","2","3","4"];b=b[c%b.length];$('article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 select[data-name="relmark"]').value=
|
||||||
function testRoutineFacebook(a){var b=lsi["export"]("f_contacts"),c=lsi["export"]("f_mini-fiches"),g=lsi["export"]("f_fiches"),d=0;if(null!=a&&a)for(var f in c)isNaN(f)||(a="",null!=b[f]&&(a=b[f].username),c=$('#f_nav-mini [data-n="'+f+'"]'),c.click(),$("#unknown_min_f_"+f).checked=0==a.length,0==a.length?($("#sexeI_mini_f_"+f).checked=!0,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value=d%19,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value=
|
b;for(b=0;5>b;b++)e=1+5*b+Math.floor(c%4),10>e&&(e="0"+e),$("#freq"+e+"_p_"+d).checked=!0;for(b=0;5>b;b++)e=1+5*b+Math.floor(c%4),10>e&&(e="0"+e),$("#irlfreq"+e+"_p_"+d).checked=!0;for(b=1;7>b;b++)e=1+Math.floor(c%2),$("#connect"+b+""+e+"_p_"+d).checked=!0;c++}}function testContactsFacebook(){for(var a=0;45>a;a++)0==a%20?lsi.set("f_contacts",a,{uid:a,username:"contact-x",existing:"."}):lsi.set("f_contacts",a,{uid:a,username:"contact-"+a,existing:"."})}
|
||||||
0,$("#reltype9_mini_f_"+f).checked=!0):(a=["H","F"][Math.floor(d%2)],$("#sexe"+a+"_mini_f_"+f).checked=!0,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="age"]').value=d%19,$('input[data-name="uid"][value="'+f+'"] ~ h5 select[data-name="studies"]').value=1+d%6,a=d%10,9==a?($("#reltype10_mini_f_"+f).checked=!0,$('input[data-name="uid"][value="'+f+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_mini_f_"+f).checked=!0,d++));for(var e in g)isNaN(e)||(c=$('#f_nav-fiche [data-n="'+
|
function testRoutineFacebook(a){var b=lsi["export"]("f_contacts"),f=lsi["export"]("f_mini-fiches"),e=lsi["export"]("f_fiches"),c=0;if(null!=a&&a)for(var g in f)isNaN(g)||(a="",null!=b[g]&&(a=b[g].username),f=$('#f_nav-mini [data-n="'+g+'"]'),f.click(),$("#unknown_min_f_"+g).checked=0==a.length,0==a.length?($("#sexeI_mini_f_"+g).checked=!0,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="age"]').value=c%19,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="studies"]').value=
|
||||||
e+'"]'),c.click(),a=["H","F","I"][Math.floor(d%3)],$("#sexe"+a+"_f_"+e).checked=!0,$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 select[data-name="age"]').value=d%19,b="10 21 22 23 31 32 36 41 46 47 48 51 54 55 56 61 66 69 71 72 73 74 75 76 81 82".split(" "),b=b[d%b.length],$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 select[data-name="job"]').value=b,b=(d%12).toString(),1==b.length&&
|
0,$("#reltype9_mini_f_"+g).checked=!0):(a=["H","F"][Math.floor(c%2)],$("#sexe"+a+"_mini_f_"+g).checked=!0,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="age"]').value=c%19,$('input[data-name="uid"][value="'+g+'"] ~ h5 select[data-name="studies"]').value=1+c%6,a=c%10,9==a?($("#reltype10_mini_f_"+g).checked=!0,$('input[data-name="uid"][value="'+g+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_mini_f_"+g).checked=!0,c++));for(var d in e)isNaN(d)||(f=$('#f_nav-fiche [data-n="'+
|
||||||
(b="0"+b),$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 select[data-name="studies"]').value=b,a=d%9,8==a?($("#reltype10_f_"+e).checked=!0,$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_f_"+e).checked=!0,$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="city"]').value=
|
d+'"]'),f.click(),a=["H","F","I"][Math.floor(c%3)],$("#sexe"+a+"_f_"+d).checked=!0,$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 select[data-name="age"]').value=c%19,b=(c%13).toString(),b=b[c%b.length],$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 select[data-name="job"]').value=b,b=(c%8).toString(),1==b.length&&(b="0"+b),$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+
|
||||||
(10+d).toString(),$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="cp"]').value=(1E4+d).toString(),$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="quartier"]').value=d,$("#loc"+["A","B","C","D"][Math.floor(d%4)]+"_f_"+e).checked=!0,b=$$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="duration"]'),
|
d+'"] ~ h5 select[data-name="studies"]').value=b,a=c%9,8==a?($("#reltype10_f_"+d).checked=!0,$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="reltypeSpecial"]').value="autre"):$("#reltype"+a+"_f_"+d).checked=!0,$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="city"]').value=(10+c).toString(),$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+
|
||||||
b[0].value=d.toString(),b[1].value=1+d.toString(),b=d%14,$('section[data-sublink="facebook"] article.fiche-relation #contexte'+b+"_f_"+e).checked=!0,g=$$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+e+'"] ~ h5 input[data-name="contextSpecial"]'),11==b&&(g[0].value="internet"),12==b&&(g[1].value="association"),13==b&&(g[2].value="autre"),d++)};
|
d+'"] ~ h5 input[data-name="cp"]').value=(1E4+c).toString(),$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="quartier"]').value=c,$("#loc"+["A","B","C","D"][Math.floor(c%4)]+"_f_"+d).checked=!0,b=$$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="duration"]'),b[0].value=c.toString(),b[1].value=1+c.toString(),b=c%14,$('section[data-sublink="facebook"] article.fiche-relation #contexte'+
|
||||||
|
b+"_f_"+d).checked=!0,e=$$('section[data-sublink="facebook"] article.fiche-relation > input[data-name="uid"][value="'+d+'"] ~ h5 input[data-name="contextSpecial"]'),11==b&&(e[0].value="internet"),12==b&&(e[1].value="association"),13==b&&(e[2].value="autre"),c++)};
|
||||||
|
|
Loading…
Reference in New Issue